Home
last modified time | relevance | path

Searched refs:axes (Results 1 – 11 of 11) sorted by relevance

/drivers/input/gameport/
Dlightning.c76 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) in l4_cooked_read() argument
94 axes[i] = inb(L4_PORT); in l4_cooked_read()
95 if (axes[i] > 252) axes[i] = -1; in l4_cooked_read()
196 static int l4_calibrate(struct gameport *gameport, int *axes, int *max) in l4_calibrate() argument
208 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate()
209 axes[i] = (axes[i] > 252) ? 252 : axes[i]; in l4_calibrate()
Dfm801-gp.c44 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) in fm801_gp_cooked_read() argument
50 axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
52 axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
55 axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
57 axes[3] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
/drivers/input/joystick/
Dspaceorb.c79 int axes[6]; in spaceorb_process_packet() local
98 axes[0] = ( data[2] << 3) | (data[ 3] >> 4); in spaceorb_process_packet()
99 axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1); in spaceorb_process_packet()
100 axes[2] = ((data[4] & 0x01) << 9) | (data[ 5] << 2) | (data[4] >> 5); in spaceorb_process_packet()
101 axes[3] = ((data[6] & 0x1f) << 5) | (data[ 7] >> 2); in spaceorb_process_packet()
102 axes[4] = ((data[7] & 0x03) << 8) | (data[ 8] << 1) | (data[7] >> 6); in spaceorb_process_packet()
103 axes[5] = ((data[9] & 0x3f) << 4) | (data[10] >> 3); in spaceorb_process_packet()
105 input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0)); in spaceorb_process_packet()
Da3d.c58 int axes[4]; member
132 a3d->axes[0] = ((signed char)((data[11] << 6) | (data[12] << 3) | (data[13]))) + 128; in a3d_read()
133 a3d->axes[1] = ((signed char)((data[14] << 6) | (data[15] << 3) | (data[16]))) + 128; in a3d_read()
134 a3d->axes[2] = ((signed char)((data[17] << 6) | (data[18] << 3) | (data[19]))) + 128; in a3d_read()
135 a3d->axes[3] = ((signed char)((data[20] << 6) | (data[21] << 3) | (data[22]))) + 128; in a3d_read()
197 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) in a3d_adc_cooked_read() argument
203 axes[i] = (a3d->axes[i] < 254) ? a3d->axes[i] : -1; in a3d_adc_cooked_read()
322 int axes[] = { ABS_X, ABS_Y, ABS_THROTTLE, ABS_RUDDER }; in a3d_connect() local
344 input_set_abs_params(input_dev, axes[i], in a3d_connect()
345 48, input_abs_get_val(input_dev, axes[i]) * 2 - 48, 0, 8); in a3d_connect()
[all …]
Danalog.c132 int axes[4]; member
202 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument
209 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) { in analog_decode()
223 input_report_key(dev, analog_pads[0], axes[2] < (initial[2] >> 1)); in analog_decode()
225 input_report_key(dev, analog_pads[1], axes[3] < (initial[3] >> 1)); in analog_decode()
227 input_report_key(dev, analog_pads[2], axes[2] > (initial[2] + (initial[2] >> 1))); in analog_decode()
229 input_report_key(dev, analog_pads[3], axes[3] > (initial[3] + (initial[3] >> 1))); in analog_decode()
233 input_report_abs(dev, analog_axes[j++], axes[i]); in analog_decode()
294 port->axes[j] = (delta(start, time[i]) << ANALOG_FUZZ_BITS) / port->loop; in analog_cooked_read()
341 port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons); in analog_poll()
[all …]
Djoydump.c53 int axes[4], buttons; in joydump_connect() local
73 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect()
76 printk(KERN_INFO "joydump: | Axis %d: %4d. |\n", i, axes[i]); in joydump_connect()
Dtmdc.c99 const signed char *axes; member
298 port->abs = model->axes; in tmdc_setup_port()
/drivers/input/misc/
Dgpio_tilt_polled.c63 pdata->axes[i].axis, in gpio_tilt_polled_poll()
64 tilt_state->axes[i]); in gpio_tilt_polled_poll()
150 input_set_abs_params(input, pdata->axes[i].axis, in gpio_tilt_polled_probe()
151 pdata->axes[i].min, pdata->axes[i].max, in gpio_tilt_polled_probe()
152 pdata->axes[i].fuzz, pdata->axes[i].flat); in gpio_tilt_polled_probe()
/drivers/platform/x86/
Dhdaps.c500 #define HDAPS_DMI_MATCH_INVERT(vendor, model, axes) { \ argument
503 .driver_data = (void *)axes, \
/drivers/input/joystick/iforce/
Diforce-ff.c310 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, in make_core() argument
321 data[2] = LO(axes) | find_button(iforce, button); in make_core()
/drivers/misc/lis3lv02d/
Dlis3lv02d.c125 module_param_array_named(axes, lis3_dev.ac.as_array, axis, NULL, 0644);
126 MODULE_PARM_DESC(axes, "Axis-mapping for x,y,z directions");