Searched refs:axes (Results 1 - 17 of 17) sorted by relevance

/linux-master/drivers/input/joystick/
H A Dadc-joystick.c26 struct adc_joystick_axis *axes; member in struct:adc_joystick
41 input_report_abs(input, joy->axes[i].code, val);
89 input_report_abs(joy->input, joy->axes[i].code, val);
124 struct adc_joystick_axis *axes; local
140 axes = devm_kmalloc_array(dev, num_axes, sizeof(*axes), GFP_KERNEL);
141 if (!axes)
158 &axes[i].code);
165 axes[i].range, 2);
171 fwnode_property_read_u32(child, "abs-fuzz", &axes[
[all...]
H A Dspaceorb.c60 int axes[6]; local
79 axes[0] = ( data[2] << 3) | (data[ 3] >> 4);
80 axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1);
81 axes[2] = ((data[4] & 0x01) << 9) | (data[ 5] << 2) | (data[4] >> 5);
82 axes[3] = ((data[6] & 0x1f) << 5) | (data[ 7] >> 2);
83 axes[4] = ((data[7] & 0x03) << 8) | (data[ 8] << 1) | (data[7] >> 6);
84 axes[5] = ((data[9] & 0x3f) << 4) | (data[10] >> 3);
86 input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0));
H A Da3d.c39 int axes[4]; member in struct:a3d
113 a3d->axes[0] = ((signed char)((data[11] << 6) | (data[12] << 3) | (data[13]))) + 128;
114 a3d->axes[1] = ((signed char)((data[14] << 6) | (data[15] << 3) | (data[16]))) + 128;
115 a3d->axes[2] = ((signed char)((data[17] << 6) | (data[18] << 3) | (data[19]))) + 128;
116 a3d->axes[3] = ((signed char)((data[20] << 6) | (data[21] << 3) | (data[22]))) + 128;
178 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
184 axes[i] = (a3d->axes[i] < 254) ? a3d->axes[i] : -1;
303 int axes[] local
[all...]
H A Djoydump.c34 int axes[4], buttons; local
54 gameport_cooked_read(gameport, axes, &buttons);
57 printk(KERN_INFO "joydump: | Axis %d: %4d. |\n", i, axes[i]);
H A Danalog.c109 int axes[4]; member in struct:analog_port
119 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) argument
126 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) {
140 input_report_key(dev, analog_pads[0], axes[2] < (initial[2] >> 1));
142 input_report_key(dev, analog_pads[1], axes[3] < (initial[3] >> 1));
144 input_report_key(dev, analog_pads[2], axes[2] > (initial[2] + (initial[2] >> 1)));
146 input_report_key(dev, analog_pads[3], axes[3] > (initial[3] + (initial[3] >> 1)));
150 input_report_abs(dev, analog_axes[j++], axes[i]);
211 port->axes[j] = ((u32)ktime_sub(time[i], start) << ANALOG_FUZZ_BITS) / port->loop;
258 port->bads -= gameport_cooked_read(port->gameport, port->axes,
[all...]
H A Dtmdc.c80 const signed char *axes; member in struct:tmdc_model
279 port->abs = model->axes;
/linux-master/drivers/input/gameport/
H A Dfm801-gp.c29 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
35 axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
37 axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
40 axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
42 axes[3] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
H A Dlightning.c57 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
75 axes[i] = inb(L4_PORT);
76 if (axes[i] > 252) axes[i] = -1;
177 static int l4_calibrate(struct gameport *gameport, int *axes, int *max) argument
189 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t;
190 axes[i] = (axes[
[all...]
/linux-master/sound/pci/au88x0/
H A Dau88x0_game.c43 vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
51 axes[i] =
53 if (axes[i] == AXIS_RANGE)
54 axes[i] = -1;
/linux-master/include/linux/
H A Dgameport.h175 static inline int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
178 return gameport->cooked_read(gameport, axes, buttons);
183 static inline int gameport_calibrate(struct gameport *gameport, int *axes, int *max) argument
186 return gameport->calibrate(gameport, axes, max);
/linux-master/sound/pci/
H A Dazt3328.c286 u16 axes[4]; member in struct:snd_azf3328
1720 int *axes,
1748 for (i = 0; i < ARRAY_SIZE(chip->axes); ++i) {
1753 chip->axes[i] = snd_azf3328_game_inw(
1759 /* trigger next sampling of axes, to be evaluated the next time we
1763 * Measurement Ready monitoring for all axes here,
1765 val = 0x03; /* we're able to monitor axes 1 and 2 only */
1771 for (i = 0; i < ARRAY_SIZE(chip->axes); i++) {
1772 axes[i] = chip->axes[
1719 snd_azf3328_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons ) argument
[all...]
H A Dcs4281.c1186 int *axes, int *buttons)
1200 axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF;
1201 axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF;
1202 axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF;
1203 axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF;
1206 if (axes[jst] == 0xFFFF) axes[jst] = -1;
1185 snd_cs4281_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
/linux-master/drivers/platform/x86/
H A Dhdaps.c178 /* hdaps_invert is a bitvector to negate the axes */
487 #define HDAPS_DMI_MATCH_INVERT(vendor, model, axes) { \
490 .driver_data = (void *)axes, \
623 "2 invert y-axis, 3 invert both axes.");
/linux-master/drivers/input/joystick/iforce/
H A Diforce-ff.c291 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button,
302 data[2] = LO(axes) | find_button(iforce, button);
290 make_core(struct iforce* iforce, u16 id, u16 mod_id1, u16 mod_id2, u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, u16 interval, u16 direction) argument
/linux-master/sound/pci/cs46xx/
H A Dcs46xx_lib.c2709 static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
2723 axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF;
2724 axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF;
2725 axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF;
2726 axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF;
2729 if(axes[jst]==0xFFFF) axes[jst] = -1;
/linux-master/drivers/misc/lis3lv02d/
H A Dlis3lv02d.c113 module_param_array_named(axes, lis3_dev.ac.as_array, axis, NULL, 0644);
114 MODULE_PARM_DESC(axes, "Axis-mapping for x,y,z directions");
/linux-master/sound/pci/trident/
H A Dtrident_main.c3115 static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
3126 axes[i] = inw(TRID_REG(chip, GAMEPORT_AXES + i * 2));
3127 if (axes[i] == 0xffff) axes[i] = -1;

Completed in 217 milliseconds