axes 29 drivers/input/gameport/fm801-gp.c static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) axes 35 drivers/input/gameport/fm801-gp.c axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); axes 37 drivers/input/gameport/fm801-gp.c axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); axes 40 drivers/input/gameport/fm801-gp.c axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); axes 42 drivers/input/gameport/fm801-gp.c axes[3] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); axes 60 drivers/input/gameport/lightning.c static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) axes 78 drivers/input/gameport/lightning.c axes[i] = inb(L4_PORT); axes 79 drivers/input/gameport/lightning.c if (axes[i] > 252) axes[i] = -1; axes 180 drivers/input/gameport/lightning.c static int l4_calibrate(struct gameport *gameport, int *axes, int *max) axes 192 drivers/input/gameport/lightning.c axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; axes 193 drivers/input/gameport/lightning.c axes[i] = (axes[i] > 252) ? 252 : axes[i]; axes 42 drivers/input/joystick/a3d.c int axes[4]; axes 116 drivers/input/joystick/a3d.c a3d->axes[0] = ((signed char)((data[11] << 6) | (data[12] << 3) | (data[13]))) + 128; axes 117 drivers/input/joystick/a3d.c a3d->axes[1] = ((signed char)((data[14] << 6) | (data[15] << 3) | (data[16]))) + 128; axes 118 drivers/input/joystick/a3d.c a3d->axes[2] = ((signed char)((data[17] << 6) | (data[18] << 3) | (data[19]))) + 128; axes 119 drivers/input/joystick/a3d.c a3d->axes[3] = ((signed char)((data[20] << 6) | (data[21] << 3) | (data[22]))) + 128; axes 181 drivers/input/joystick/a3d.c static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) axes 187 drivers/input/joystick/a3d.c axes[i] = (a3d->axes[i] < 254) ? a3d->axes[i] : -1; axes 306 drivers/input/joystick/a3d.c int axes[] = { ABS_X, ABS_Y, ABS_THROTTLE, ABS_RUDDER }; axes 328 drivers/input/joystick/a3d.c input_set_abs_params(input_dev, axes[i], axes 329 drivers/input/joystick/a3d.c 48, input_abs_get_val(input_dev, axes[i]) * 2 - 48, 0, 8); axes 331 drivers/input/joystick/a3d.c input_set_abs_params(input_dev, axes[i], 2, 253, 0, 0); axes 116 drivers/input/joystick/analog.c int axes[4]; axes 186 drivers/input/joystick/analog.c static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) axes 193 drivers/input/joystick/analog.c if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) { axes 207 drivers/input/joystick/analog.c input_report_key(dev, analog_pads[0], axes[2] < (initial[2] >> 1)); axes 209 drivers/input/joystick/analog.c input_report_key(dev, analog_pads[1], axes[3] < (initial[3] >> 1)); axes 211 drivers/input/joystick/analog.c input_report_key(dev, analog_pads[2], axes[2] > (initial[2] + (initial[2] >> 1))); axes 213 drivers/input/joystick/analog.c input_report_key(dev, analog_pads[3], axes[3] > (initial[3] + (initial[3] >> 1))); axes 217 drivers/input/joystick/analog.c input_report_abs(dev, analog_axes[j++], axes[i]); axes 278 drivers/input/joystick/analog.c port->axes[j] = (delta(start, time[i]) << ANALOG_FUZZ_BITS) / port->loop; axes 325 drivers/input/joystick/analog.c port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons); axes 343 drivers/input/joystick/analog.c analog_decode(port->analog + i, port->axes, port->initial, port->buttons); axes 479 drivers/input/joystick/analog.c x = port->axes[i]; axes 480 drivers/input/joystick/analog.c y = (port->axes[0] + port->axes[1]) >> 1; axes 481 drivers/input/joystick/analog.c z = y - port->axes[i]; axes 490 drivers/input/joystick/analog.c if (i == 2) x = port->axes[i]; axes 522 drivers/input/joystick/analog.c analog_decode(analog, port->axes, port->initial, port->buttons); axes 581 drivers/input/joystick/analog.c for (i = 0; i < 4; i++) max[i] = port->axes[i] << 1; axes 589 drivers/input/joystick/analog.c gameport_calibrate(port->gameport, port->axes, max); axes 593 drivers/input/joystick/analog.c port->initial[i] = port->axes[i]; axes 647 drivers/input/joystick/analog.c if (!gameport_cooked_read(gameport, port->axes, &port->buttons)) axes 650 drivers/input/joystick/analog.c if (port->axes[i] != -1) axes 291 drivers/input/joystick/iforce/iforce-ff.c u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, axes 302 drivers/input/joystick/iforce/iforce-ff.c data[2] = LO(axes) | find_button(iforce, button); axes 37 drivers/input/joystick/joydump.c int axes[4], buttons; axes 57 drivers/input/joystick/joydump.c gameport_cooked_read(gameport, axes, &buttons); axes 60 drivers/input/joystick/joydump.c printk(KERN_INFO "joydump: | Axis %d: %4d. |\n", i, axes[i]); axes 63 drivers/input/joystick/spaceorb.c int axes[6]; axes 82 drivers/input/joystick/spaceorb.c axes[0] = ( data[2] << 3) | (data[ 3] >> 4); axes 83 drivers/input/joystick/spaceorb.c axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1); axes 84 drivers/input/joystick/spaceorb.c axes[2] = ((data[4] & 0x01) << 9) | (data[ 5] << 2) | (data[4] >> 5); axes 85 drivers/input/joystick/spaceorb.c axes[3] = ((data[6] & 0x1f) << 5) | (data[ 7] >> 2); axes 86 drivers/input/joystick/spaceorb.c axes[4] = ((data[7] & 0x03) << 8) | (data[ 8] << 1) | (data[7] >> 6); axes 87 drivers/input/joystick/spaceorb.c axes[5] = ((data[9] & 0x3f) << 4) | (data[10] >> 3); axes 89 drivers/input/joystick/spaceorb.c input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0)); axes 83 drivers/input/joystick/tmdc.c const signed char *axes; axes 282 drivers/input/joystick/tmdc.c port->abs = model->axes; axes 113 drivers/misc/lis3lv02d/lis3lv02d.c module_param_array_named(axes, lis3_dev.ac.as_array, axis, NULL, 0644); axes 114 drivers/misc/lis3lv02d/lis3lv02d.c MODULE_PARM_DESC(axes, "Axis-mapping for x,y,z directions"); axes 488 drivers/platform/x86/hdaps.c #define HDAPS_DMI_MATCH_INVERT(vendor, model, axes) { \ axes 491 drivers/platform/x86/hdaps.c .driver_data = (void *)axes, \ axes 182 include/linux/gameport.h static inline int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) axes 185 include/linux/gameport.h return gameport->cooked_read(gameport, axes, buttons); axes 190 include/linux/gameport.h static inline int gameport_calibrate(struct gameport *gameport, int *axes, int *max) axes 193 include/linux/gameport.h return gameport->calibrate(gameport, axes, max); axes 43 sound/pci/au88x0/au88x0_game.c vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) axes 51 sound/pci/au88x0/au88x0_game.c axes[i] = axes 53 sound/pci/au88x0/au88x0_game.c if (axes[i] == AXIS_RANGE) axes 54 sound/pci/au88x0/au88x0_game.c axes[i] = -1; axes 287 sound/pci/azt3328.c u16 axes[4]; axes 1745 sound/pci/azt3328.c int *axes, axes 1773 sound/pci/azt3328.c for (i = 0; i < ARRAY_SIZE(chip->axes); ++i) { axes 1778 sound/pci/azt3328.c chip->axes[i] = snd_azf3328_game_inw( axes 1796 sound/pci/azt3328.c for (i = 0; i < ARRAY_SIZE(chip->axes); i++) { axes 1797 sound/pci/azt3328.c axes[i] = chip->axes[i]; axes 1798 sound/pci/azt3328.c if (axes[i] == 0xffff) axes 1799 sound/pci/azt3328.c axes[i] = -1; axes 1803 sound/pci/azt3328.c axes[0], axes[1], axes[2], axes[3], *buttons); axes 1202 sound/pci/cs4281.c int *axes, int *buttons) axes 1216 sound/pci/cs4281.c axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF; axes 1217 sound/pci/cs4281.c axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF; axes 1218 sound/pci/cs4281.c axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF; axes 1219 sound/pci/cs4281.c axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF; axes 1222 sound/pci/cs4281.c if (axes[jst] == 0xFFFF) axes[jst] = -1; axes 2729 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) axes 2743 sound/pci/cs46xx/cs46xx_lib.c axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF; axes 2744 sound/pci/cs46xx/cs46xx_lib.c axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF; axes 2745 sound/pci/cs46xx/cs46xx_lib.c axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF; axes 2746 sound/pci/cs46xx/cs46xx_lib.c axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF; axes 2749 sound/pci/cs46xx/cs46xx_lib.c if(axes[jst]==0xFFFF) axes[jst] = -1; axes 3129 sound/pci/trident/trident_main.c static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) axes 3140 sound/pci/trident/trident_main.c axes[i] = inw(TRID_REG(chip, GAMEPORT_AXES + i * 2)); axes 3141 sound/pci/trident/trident_main.c if (axes[i] == 0xffff) axes[i] = -1;