/linux-6.3-rc2/drivers/input/joystick/ |
A D | adc-joystick.c | 26 struct adc_joystick_axis *axes; member 41 input_report_abs(input, joy->axes[i].code, val); in adc_joystick_poll() 124 struct adc_joystick_axis *axes; in adc_joystick_set_axes() local 140 axes = devm_kmalloc_array(dev, num_axes, sizeof(*axes), GFP_KERNEL); in adc_joystick_set_axes() 141 if (!axes) in adc_joystick_set_axes() 158 &axes[i].code); in adc_joystick_set_axes() 165 axes[i].range, 2); in adc_joystick_set_axes() 174 input_set_abs_params(joy->input, axes[i].code, in adc_joystick_set_axes() 175 axes[i].range[0], axes[i].range[1], in adc_joystick_set_axes() 176 axes[i].fuzz, axes[i].flat); in adc_joystick_set_axes() [all …]
|
A D | spaceorb.c | 60 int axes[6]; in spaceorb_process_packet() local 79 axes[0] = ( data[2] << 3) | (data[ 3] >> 4); in spaceorb_process_packet() 80 axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1); in spaceorb_process_packet() 81 axes[2] = ((data[4] & 0x01) << 9) | (data[ 5] << 2) | (data[4] >> 5); in spaceorb_process_packet() 82 axes[3] = ((data[6] & 0x1f) << 5) | (data[ 7] >> 2); in spaceorb_process_packet() 83 axes[4] = ((data[7] & 0x03) << 8) | (data[ 8] << 1) | (data[7] >> 6); in spaceorb_process_packet() 84 axes[5] = ((data[9] & 0x3f) << 4) | (data[10] >> 3); in spaceorb_process_packet() 86 input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0)); in spaceorb_process_packet()
|
A D | analog.c | 109 int axes[4]; member 126 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) { in analog_decode() 150 input_report_abs(dev, analog_axes[j++], axes[i]); in analog_decode() 397 x = port->axes[i]; in analog_init_device() 398 y = (port->axes[0] + port->axes[1]) >> 1; in analog_init_device() 399 z = y - port->axes[i]; in analog_init_device() 408 if (i == 2) x = port->axes[i]; in analog_init_device() 499 for (i = 0; i < 4; i++) max[i] = port->axes[i] << 1; in analog_init_masks() 507 gameport_calibrate(port->gameport, port->axes, max); in analog_init_masks() 511 port->initial[i] = port->axes[i]; in analog_init_masks() [all …]
|
A D | a3d.c | 39 int axes[4]; member 113 a3d->axes[0] = ((signed char)((data[11] << 6) | (data[12] << 3) | (data[13]))) + 128; in a3d_read() 114 a3d->axes[1] = ((signed char)((data[14] << 6) | (data[15] << 3) | (data[16]))) + 128; in a3d_read() 115 a3d->axes[2] = ((signed char)((data[17] << 6) | (data[18] << 3) | (data[19]))) + 128; in a3d_read() 116 a3d->axes[3] = ((signed char)((data[20] << 6) | (data[21] << 3) | (data[22]))) + 128; in a3d_read() 178 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) in a3d_adc_cooked_read() argument 184 axes[i] = (a3d->axes[i] < 254) ? a3d->axes[i] : -1; in a3d_adc_cooked_read() 303 int axes[] = { ABS_X, ABS_Y, ABS_THROTTLE, ABS_RUDDER }; in a3d_connect() local 325 input_set_abs_params(input_dev, axes[i], in a3d_connect() 326 48, input_abs_get_val(input_dev, axes[i]) * 2 - 48, 0, 8); in a3d_connect() [all …]
|
A D | joydump.c | 34 int axes[4], buttons; in joydump_connect() local 54 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect() 57 printk(KERN_INFO "joydump: | Axis %d: %4d. |\n", i, axes[i]); in joydump_connect()
|
A D | tmdc.c | 80 const signed char *axes; member 279 port->abs = model->axes; in tmdc_setup_port()
|
/linux-6.3-rc2/drivers/input/gameport/ |
A D | lightning.c | 57 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) in l4_cooked_read() argument 75 axes[i] = inb(L4_PORT); in l4_cooked_read() 76 if (axes[i] > 252) axes[i] = -1; in l4_cooked_read() 177 static int l4_calibrate(struct gameport *gameport, int *axes, int *max) in l4_calibrate() argument 189 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate() 190 axes[i] = (axes[i] > 252) ? 252 : axes[i]; in l4_calibrate()
|
A D | fm801-gp.c | 29 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) in fm801_gp_cooked_read() argument 35 axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read() 37 axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read() 40 axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read() 42 axes[3] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
|
/linux-6.3-rc2/sound/pci/au88x0/ |
A D | au88x0_game.c | 43 vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) in vortex_game_cooked_read() argument 51 axes[i] = in vortex_game_cooked_read() 53 if (axes[i] == AXIS_RANGE) in vortex_game_cooked_read() 54 axes[i] = -1; in vortex_game_cooked_read()
|
/linux-6.3-rc2/Documentation/input/devices/ |
A D | xpad.rst | 23 The number of buttons/axes reported varies based on 3 things: 28 module configuration for "Map D-PAD to buttons rather than axes for unknown 32 the driver will map the directional pad to axes (X/Y). 47 axes and 10 buttons. 49 All 8 axes work, though they all have the same range (-32768..32767) 66 When using a known dance pad, jstest will report 6 axes and 14 buttons. 69 have been made. The old driver would map the d-pad to axes, resulting 76 If your dance pad is recognized by the driver but is using axes instead 195 18 inputs (8 axes, 10 buttons), and its values should change if you move 197 show 20 inputs (6 axes, 14 buttons). [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | gameport.h | 182 static inline int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in gameport_cooked_read() argument 185 return gameport->cooked_read(gameport, axes, buttons); in gameport_cooked_read() 190 static inline int gameport_calibrate(struct gameport *gameport, int *axes, int *max) in gameport_calibrate() argument 193 return gameport->calibrate(gameport, axes, max); in gameport_calibrate()
|
/linux-6.3-rc2/Documentation/input/ |
A D | gameport-programming.rst | 75 int my_cooked_read(struct gameport *gameport, int *axes, int *buttons) 80 axes[i] = my_mmio[i]; 180 int (*cooked_read)(struct gameport *, int *axes, int *buttons); 183 read function. It should fill axes[0..3] with four values of the joystick axes 188 int (*calibrate)(struct gameport *, int *axes, int *max); 190 Function for calibrating the ADC hardware. When called, axes[0..3] should be 194 recompute the axes[] values to match the new sensitivity or re-read them from
|
A D | event-codes.rst | 396 Directional axes on this device (absolute and/or relative x, y, z) represent 398 can report through the rotational axes (absolute and/or relative rx, ry, rz). 400 All other axes retain their meaning. A device must not mix 401 regular directional axes and accelerometer axes on the same event node.
|
/linux-6.3-rc2/Documentation/devicetree/bindings/iio/magnetometer/ |
A D | ti,tmag5273.yaml | 14 integrates three independent Hall-effect sensors in the X, Y, and Z axes. 17 magnetic axes and temperature measurements. An integrated angle calculation 20 performed using two user-selected magnetic axes.
|
/linux-6.3-rc2/Documentation/admin-guide/laptops/ |
A D | toshiba_haps.rst | 14 3. Accelerometer axes 52 3. Accelerometer axes 55 This device does not report any axes, however, to query the sensor position
|
/linux-6.3-rc2/Documentation/devicetree/bindings/input/ |
A D | pxa27x-keypad.txt | 32 - marvell,rotary-rel-key : When rotary is used for relative axes 34 axes measurement in the device. It is a u32 value. Bit[31:16]
|
/linux-6.3-rc2/sound/pci/ |
A D | azt3328.c | 286 u16 axes[4]; member 1722 int *axes, in snd_azf3328_gameport_cooked_read() argument 1750 for (i = 0; i < ARRAY_SIZE(chip->axes); ++i) { in snd_azf3328_gameport_cooked_read() 1755 chip->axes[i] = snd_azf3328_game_inw( in snd_azf3328_gameport_cooked_read() 1773 for (i = 0; i < ARRAY_SIZE(chip->axes); i++) { in snd_azf3328_gameport_cooked_read() 1774 axes[i] = chip->axes[i]; in snd_azf3328_gameport_cooked_read() 1775 if (axes[i] == 0xffff) in snd_azf3328_gameport_cooked_read() 1776 axes[i] = -1; in snd_azf3328_gameport_cooked_read() 1780 axes[0], axes[1], axes[2], axes[3], *buttons); in snd_azf3328_gameport_cooked_read()
|
A D | cs4281.c | 1189 int *axes, int *buttons) in snd_cs4281_gameport_cooked_read() argument 1203 axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF; in snd_cs4281_gameport_cooked_read() 1204 axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF; in snd_cs4281_gameport_cooked_read() 1205 axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF; in snd_cs4281_gameport_cooked_read() 1206 axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF; in snd_cs4281_gameport_cooked_read() 1209 if (axes[jst] == 0xFFFF) axes[jst] = -1; in snd_cs4281_gameport_cooked_read()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/iio/ |
A D | mount-matrix.txt | 28 reference to (x,y,z) orientation, with (x,y) corresponding to these axes on the 36 A sensor can be mounted in any angle along the axes relative to the frame of 56 is held with its screen flat on the planets surface and 0 on the other axes, 157 to orient the senor axes relative to a desired point of reference. This means
|
/linux-6.3-rc2/Documentation/ABI/testing/ |
A D | sysfs-bus-iio-mpu6050 | 13 aligned with each other. All axes are exactly the same.
|
/linux-6.3-rc2/Documentation/input/joydev/ |
A D | joystick-api.rst | 26 to 2 axes, and applications using it usually decode only 2 buttons, although 104 independent axes, even if the hardware doesn't allow independent movement. 231 #define JSIOCGAXES /* get number of axes char */ 238 For example, to read the number of axes:: 280 information for all axes. That is, struct js_corr corr[MAX_AXIS];
|
/linux-6.3-rc2/Documentation/devicetree/bindings/iio/accel/ |
A D | kionix,kxsd9.yaml | 13 3 axis 12 bit accelerometer with +-8G range on all axes. Also has a
|
/linux-6.3-rc2/drivers/platform/x86/ |
A D | hdaps.c | 487 #define HDAPS_DMI_MATCH_INVERT(vendor, model, axes) { \ argument 490 .driver_data = (void *)axes, \
|
/linux-6.3-rc2/drivers/input/joystick/iforce/ |
A D | iforce-ff.c | 291 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, in make_core() argument 302 data[2] = LO(axes) | find_button(iforce, button); in make_core()
|
/linux-6.3-rc2/sound/pci/cs46xx/ |
A D | cs46xx_lib.c | 2712 static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in snd_cs46xx_gameport_cooked_read() argument 2726 axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF; in snd_cs46xx_gameport_cooked_read() 2727 axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF; in snd_cs46xx_gameport_cooked_read() 2728 axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF; in snd_cs46xx_gameport_cooked_read() 2729 axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF; in snd_cs46xx_gameport_cooked_read() 2732 if(axes[jst]==0xFFFF) axes[jst] = -1; in snd_cs46xx_gameport_cooked_read()
|