Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/drivers/input/joystick/
H A Dadc-joystick.c26 struct adc_joystick_axis *axes; member
74 input_report_abs(joy->input, joy->axes[i].code, val); in adc_joystick_handle()
109 struct adc_joystick_axis *axes; in adc_joystick_set_axes() local
125 axes = devm_kmalloc_array(dev, num_axes, sizeof(*axes), GFP_KERNEL); in adc_joystick_set_axes()
126 if (!axes) in adc_joystick_set_axes()
143 &axes[i].code); in adc_joystick_set_axes()
150 axes[i].range, 2); in adc_joystick_set_axes()
156 fwnode_property_read_u32(child, "abs-fuzz", &axes[i].fuzz); in adc_joystick_set_axes()
157 fwnode_property_read_u32(child, "abs-flat", &axes[i].flat); in adc_joystick_set_axes()
159 input_set_abs_params(joy->input, axes[i].code, in adc_joystick_set_axes()
[all …]
H A Dspaceorb.c63 int axes[6]; in spaceorb_process_packet() local
82 axes[0] = ( data[2] << 3) | (data[ 3] >> 4); in spaceorb_process_packet()
83 axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1); in spaceorb_process_packet()
84 axes[2] = ((data[4] & 0x01) << 9) | (data[ 5] << 2) | (data[4] >> 5); in spaceorb_process_packet()
85 axes[3] = ((data[6] & 0x1f) << 5) | (data[ 7] >> 2); in spaceorb_process_packet()
86 axes[4] = ((data[7] & 0x03) << 8) | (data[ 8] << 1) | (data[7] >> 6); in spaceorb_process_packet()
87 axes[5] = ((data[9] & 0x3f) << 4) | (data[10] >> 3); in spaceorb_process_packet()
89 input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0)); in spaceorb_process_packet()
H A Da3d.c42 int axes[4]; member
116 a3d->axes[0] = ((signed char)((data[11] << 6) | (data[12] << 3) | (data[13]))) + 128; in a3d_read()
117 a3d->axes[1] = ((signed char)((data[14] << 6) | (data[15] << 3) | (data[16]))) + 128; in a3d_read()
118 a3d->axes[2] = ((signed char)((data[17] << 6) | (data[18] << 3) | (data[19]))) + 128; in a3d_read()
119 a3d->axes[3] = ((signed char)((data[20] << 6) | (data[21] << 3) | (data[22]))) + 128; in a3d_read()
181 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) in a3d_adc_cooked_read() argument
187 axes[i] = (a3d->axes[i] < 254) ? a3d->axes[i] : -1; in a3d_adc_cooked_read()
306 int axes[] = { ABS_X, ABS_Y, ABS_THROTTLE, ABS_RUDDER }; in a3d_connect() local
328 input_set_abs_params(input_dev, axes[i], in a3d_connect()
329 48, input_abs_get_val(input_dev, axes[i]) * 2 - 48, 0, 8); in a3d_connect()
[all …]
H A Danalog.c116 int axes[4]; member
186 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument
193 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) { in analog_decode()
207 input_report_key(dev, analog_pads[0], axes[2] < (initial[2] >> 1)); in analog_decode()
209 input_report_key(dev, analog_pads[1], axes[3] < (initial[3] >> 1)); in analog_decode()
211 input_report_key(dev, analog_pads[2], axes[2] > (initial[2] + (initial[2] >> 1))); in analog_decode()
213 input_report_key(dev, analog_pads[3], axes[3] > (initial[3] + (initial[3] >> 1))); in analog_decode()
217 input_report_abs(dev, analog_axes[j++], axes[i]); in analog_decode()
278 port->axes[j] = (delta(start, time[i]) << ANALOG_FUZZ_BITS) / port->loop; in analog_cooked_read()
325 port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons); in analog_poll()
[all …]
H A Djoydump.c37 int axes[4], buttons; in joydump_connect() local
57 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect()
60 printk(KERN_INFO "joydump: | Axis %d: %4d. |\n", i, axes[i]); in joydump_connect()
/OK3568_Linux_fs/kernel/drivers/input/gameport/
H A Dlightning.c60 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) in l4_cooked_read() argument
78 axes[i] = inb(L4_PORT); in l4_cooked_read()
79 if (axes[i] > 252) axes[i] = -1; in l4_cooked_read()
180 static int l4_calibrate(struct gameport *gameport, int *axes, int *max) in l4_calibrate() argument
192 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate()
193 axes[i] = (axes[i] > 252) ? 252 : axes[i]; in l4_calibrate()
H A Dfm801-gp.c29 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()
/OK3568_Linux_fs/external/xserver/Xi/
H A Dgtmotion.c94 int rc, num_events, axes, size = 0; in ProcXGetDeviceMotionEvents() local
112 axes = v->numAxes; in ProcXGetDeviceMotionEvents()
119 .axes = axes, in ProcXGetDeviceMotionEvents()
133 size = sizeof(Time) + (axes * sizeof(INT32)); in ProcXGetDeviceMotionEvents()
147 for (i = 0; i < nEvents * (axes + 1); i++) { in ProcXGetDeviceMotionEvents()
H A Dlistdev.c229 int i, j, axes, t_axes; in CopySwapValuatorClass() local
235 for (i = 0, axes = v->numAxes; i < ((v->numAxes + 19) / VPC); in CopySwapValuatorClass()
236 i++, axes -= VPC) { in CopySwapValuatorClass()
237 t_axes = axes < VPC ? axes : VPC; in CopySwapValuatorClass()
250 a = v->axes + (VPC * i); in CopySwapValuatorClass()
H A Dgetdctl.c101 for (i = 0, a = v->axes; i < v->numAxes; i++, a++) in CopySwapDeviceResolution()
103 for (i = 0, a = v->axes; i < v->numAxes; i++, a++) in CopySwapDeviceResolution()
105 for (i = 0, a = v->axes; i < v->numAxes; i++, a++) in CopySwapDeviceResolution()
H A Dxiquerydevice.c229 if (dev->valuator->axes[i].scroll.type != SCROLL_TYPE_NONE) in SizeDeviceClasses()
359 info->label = v->axes[axisnumber].label; in ListValuatorInfo()
360 info->min.integral = v->axes[axisnumber].min_value; in ListValuatorInfo()
362 info->max.integral = v->axes[axisnumber].max_value; in ListValuatorInfo()
365 info->resolution = v->axes[axisnumber].resolution; in ListValuatorInfo()
397 AxisInfoPtr axis = &v->axes[axisnumber]; in ListScrollInfo()
/OK3568_Linux_fs/external/xserver/dix/
H A Dgetevents.c280 dce->valuators[i].min = slave->valuator->axes[i].min_value; in CreateClassesChangedEvent()
281 dce->valuators[i].max = slave->valuator->axes[i].max_value; in CreateClassesChangedEvent()
282 dce->valuators[i].resolution = slave->valuator->axes[i].resolution; in CreateClassesChangedEvent()
283 dce->valuators[i].mode = slave->valuator->axes[i].mode; in CreateClassesChangedEvent()
284 dce->valuators[i].name = slave->valuator->axes[i].label; in CreateClassesChangedEvent()
285 dce->valuators[i].scroll = slave->valuator->axes[i].scroll; in CreateClassesChangedEvent()
346 pDev->valuator->axes + 0, in updateSlaveDeviceCoords()
353 pDev->valuator->axes + 1, in updateSlaveDeviceCoords()
500 axes[j] : NULL; in GetMotionHistory()
573 memcpy(buff, &v->axes[i].min_value, sizeof(INT32)); in updateMotionHistory()
[all …]
H A Ddevices.c115 sx = dev->valuator->axes[0].max_value - dev->valuator->axes[0].min_value + 1; in DeviceSetTransform()
116 sy = dev->valuator->axes[1].max_value - dev->valuator->axes[1].min_value + 1; in DeviceSetTransform()
120 scale.m[0][2] = dev->valuator->axes[0].min_value; in DeviceSetTransform()
121 scale.m[1][2] = dev->valuator->axes[1].min_value; in DeviceSetTransform()
132 scale.m[0][2] = -dev->valuator->axes[0].min_value / sx; in DeviceSetTransform()
133 scale.m[1][2] = -dev->valuator->axes[1].min_value / sy; in DeviceSetTransform()
1314 v->axes = (AxisInfoPtr) (v->axisVal + numAxes); in AllocValuatorClass()
2519 event.valuators[i].min = master->valuator->axes[i].min_value; in RecalculateMasterButtons()
2520 event.valuators[i].max = master->valuator->axes[i].max_value; in RecalculateMasterButtons()
2522 master->valuator->axes[i].resolution; in RecalculateMasterButtons()
[all …]
/OK3568_Linux_fs/kernel/sound/pci/au88x0/
H A Dau88x0_game.c43 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()
/OK3568_Linux_fs/kernel/Documentation/input/devices/
H A Dxpad.rst23 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).
45 With a normal controller, the directional pad is mapped to its own X/Y axes.
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
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dgameport.h182 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()
/OK3568_Linux_fs/kernel/Documentation/input/
H A Dgameport-programming.rst75 int my_cooked_read(struct gameport *gameport, int *axes, int *buttons)
80 axes[i] = my_mmio[i];
177 int (*cooked_read)(struct gameport *, int *axes, int *buttons);
180 read function. It should fill axes[0..3] with four values of the joystick axes
185 int (*calibrate)(struct gameport *, int *axes, int *max);
187 Function for calibrating the ADC hardware. When called, axes[0..3] should be
191 recompute the axes[] values to match the new sensitivity or re-read them from
/OK3568_Linux_fs/kernel/Documentation/admin-guide/laptops/
H A Dtoshiba_haps.rst14 3. Accelerometer axes
52 3. Accelerometer axes
55 This device does not report any axes, however, to query the sensor position
/OK3568_Linux_fs/buildroot/support/scripts/
H A Dgraph-build-time155 axes = plt.gcf().gca()
156 for line in axes.get_xticklines():
159 axes.set_ylabel('Time (seconds)')
/OK3568_Linux_fs/kernel/sound/pci/
H A Dazt3328.c287 u16 axes[4]; member
1731 int *axes, in snd_azf3328_gameport_cooked_read() argument
1759 for (i = 0; i < ARRAY_SIZE(chip->axes); ++i) { in snd_azf3328_gameport_cooked_read()
1764 chip->axes[i] = snd_azf3328_game_inw( in snd_azf3328_gameport_cooked_read()
1782 for (i = 0; i < ARRAY_SIZE(chip->axes); i++) { in snd_azf3328_gameport_cooked_read()
1783 axes[i] = chip->axes[i]; in snd_azf3328_gameport_cooked_read()
1784 if (axes[i] == 0xffff) in snd_azf3328_gameport_cooked_read()
1785 axes[i] = -1; in snd_azf3328_gameport_cooked_read()
1789 axes[0], axes[1], axes[2], axes[3], *buttons); in snd_azf3328_gameport_cooked_read()
/OK3568_Linux_fs/external/xserver/hw/dmx/input/
H A Ddmxcommon.c433 info->res[k] = vi->axes[k].resolution; in dmxCommonOthGetInfo()
434 info->minres[k] = vi->axes[k].resolution; in dmxCommonOthGetInfo()
435 info->maxres[k] = vi->axes[k].resolution; in dmxCommonOthGetInfo()
436 info->minval[k] = vi->axes[k].min_value; in dmxCommonOthGetInfo()
437 info->maxval[k] = vi->axes[k].max_value; in dmxCommonOthGetInfo()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/
H A Dpxa27x-keypad.txt32 - 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]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/
H A Dmount-matrix.txt28 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
/OK3568_Linux_fs/external/xserver/test/
H A Dinput.c78 assert(val->axes->min_value == NO_AXIS_LIMITS); in dix_init_valuators()
79 assert(val->axes->max_value == NO_AXIS_LIMITS); in dix_init_valuators()
80 assert(val->axes->mode == Absolute); in dix_init_valuators()
101 axis = &dev.valuator->axes[0]; in dix_init_valuators()
109 axis = &dev.valuator->axes[1]; in dix_init_valuators()
123 axis = &dev.valuator->axes[1]; in dix_init_valuators()
131 axis = &dev.valuator->axes[0]; in dix_init_valuators()
139 axis = &dev.valuator->axes[0]; in dix_init_valuators()
145 axis = &dev.valuator->axes[0]; in dix_init_valuators()
1349 assert(dev.valuator->axes[i].mode == Relative); in dix_valuator_mode()
[all …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dsysfs-bus-iio-mpu605013 aligned with each other. All axes are exactly the same.

123