Searched refs:axis (Results 1 - 136 of 136) sorted by relevance

/linux-4.1.27/drivers/iio/imu/
H A Dadis16400.h27 #define ADIS16400_XGYRO_OUT 0x04 /* X-axis gyroscope output */
28 #define ADIS16400_YGYRO_OUT 0x06 /* Y-axis gyroscope output */
29 #define ADIS16400_ZGYRO_OUT 0x08 /* Z-axis gyroscope output */
30 #define ADIS16400_XACCL_OUT 0x0A /* X-axis accelerometer output */
31 #define ADIS16400_YACCL_OUT 0x0C /* Y-axis accelerometer output */
32 #define ADIS16400_ZACCL_OUT 0x0E /* Z-axis accelerometer output */
33 #define ADIS16400_XMAGN_OUT 0x10 /* X-axis magnetometer measurement */
34 #define ADIS16400_YMAGN_OUT 0x12 /* Y-axis magnetometer measurement */
35 #define ADIS16400_ZMAGN_OUT 0x14 /* Z-axis magnetometer measurement */
39 #define ADIS16350_XTEMP_OUT 0x10 /* X-axis gyroscope temperature measurement */
40 #define ADIS16350_YTEMP_OUT 0x12 /* Y-axis gyroscope temperature measurement */
41 #define ADIS16350_ZTEMP_OUT 0x14 /* Z-axis gyroscope temperature measurement */
43 #define ADIS16300_PITCH_OUT 0x12 /* X axis inclinometer output measurement */
44 #define ADIS16300_ROLL_OUT 0x14 /* Y axis inclinometer output measurement */
51 #define ADIS16400_XGYRO_OFF 0x1A /* X-axis gyroscope bias offset factor */
52 #define ADIS16400_YGYRO_OFF 0x1C /* Y-axis gyroscope bias offset factor */
53 #define ADIS16400_ZGYRO_OFF 0x1E /* Z-axis gyroscope bias offset factor */
54 #define ADIS16400_XACCL_OFF 0x20 /* X-axis acceleration bias offset factor */
55 #define ADIS16400_YACCL_OFF 0x22 /* Y-axis acceleration bias offset factor */
56 #define ADIS16400_ZACCL_OFF 0x24 /* Z-axis acceleration bias offset factor */
57 #define ADIS16400_XMAGN_HIF 0x26 /* X-axis magnetometer, hard-iron factor */
58 #define ADIS16400_YMAGN_HIF 0x28 /* Y-axis magnetometer, hard-iron factor */
59 #define ADIS16400_ZMAGN_HIF 0x2A /* Z-axis magnetometer, hard-iron factor */
60 #define ADIS16400_XMAGN_SIF 0x2C /* X-axis magnetometer, soft-iron factor */
61 #define ADIS16400_YMAGN_SIF 0x2E /* Y-axis magnetometer, soft-iron factor */
62 #define ADIS16400_ZMAGN_SIF 0x30 /* Z-axis magnetometer, soft-iron factor */
H A Dadis16480.c789 [ADIS16480_DIAG_STAT_XGYRO_FAIL] = "X-axis gyroscope self-test failure",
790 [ADIS16480_DIAG_STAT_YGYRO_FAIL] = "Y-axis gyroscope self-test failure",
791 [ADIS16480_DIAG_STAT_ZGYRO_FAIL] = "Z-axis gyroscope self-test failure",
792 [ADIS16480_DIAG_STAT_XACCL_FAIL] = "X-axis accelerometer self-test failure",
793 [ADIS16480_DIAG_STAT_YACCL_FAIL] = "Y-axis accelerometer self-test failure",
794 [ADIS16480_DIAG_STAT_ZACCL_FAIL] = "Z-axis accelerometer self-test failure",
795 [ADIS16480_DIAG_STAT_XMAGN_FAIL] = "X-axis magnetometer self-test failure",
796 [ADIS16480_DIAG_STAT_YMAGN_FAIL] = "Y-axis magnetometer self-test failure",
797 [ADIS16480_DIAG_STAT_ZMAGN_FAIL] = "Z-axis magnetometer self-test failure",
H A Dadis16400_core.c801 [ADIS16400_DIAG_STAT_ZACCL_FAIL] = "Z-axis accelerometer self-test failure",
802 [ADIS16400_DIAG_STAT_YACCL_FAIL] = "Y-axis accelerometer self-test failure",
803 [ADIS16400_DIAG_STAT_XACCL_FAIL] = "X-axis accelerometer self-test failure",
804 [ADIS16400_DIAG_STAT_XGYRO_FAIL] = "X-axis gyroscope self-test failure",
805 [ADIS16400_DIAG_STAT_YGYRO_FAIL] = "Y-axis gyroscope self-test failure",
806 [ADIS16400_DIAG_STAT_ZGYRO_FAIL] = "Z-axis gyroscope self-test failure",
H A Dkmx61.c2 * KMX61 - Kionix 6-axis Accelerometer/Magnetometer
38 * three 16-bit accelerometer output registers for X/Y/Z axis
57 * three 16-bit magnetometer output registers for X/Y/Z axis
/linux-4.1.27/drivers/staging/iio/accel/
H A Dadis16201.h8 #define ADIS16201_XACCL_OUT 0x04 /* Output, x-axis accelerometer */
9 #define ADIS16201_YACCL_OUT 0x06 /* Output, y-axis accelerometer */
12 #define ADIS16201_XINCL_OUT 0x0C /* Output, x-axis inclination */
13 #define ADIS16201_YINCL_OUT 0x0E /* Output, y-axis inclination */
14 #define ADIS16201_XACCL_OFFS 0x10 /* Calibration, x-axis acceleration offset */
15 #define ADIS16201_YACCL_OFFS 0x12 /* Calibration, y-axis acceleration offset */
16 #define ADIS16201_XACCL_SCALE 0x14 /* x-axis acceleration scale factor */
17 #define ADIS16201_YACCL_SCALE 0x16 /* y-axis acceleration scale factor */
18 #define ADIS16201_XINCL_OFFS 0x18 /* Calibration, x-axis inclination offset */
19 #define ADIS16201_YINCL_OFFS 0x1A /* Calibration, y-axis inclination offset */
20 #define ADIS16201_XINCL_SCALE 0x1C /* x-axis inclination scale factor */
21 #define ADIS16201_YINCL_SCALE 0x1E /* y-axis inclination scale factor */
H A Dadis16209.h10 /* Output, x-axis accelerometer */
12 /* Output, y-axis accelerometer */
18 /* Output, x-axis inclination */
20 /* Output, y-axis inclination */
24 /* Calibration, x-axis acceleration offset null */
26 /* Calibration, y-axis acceleration offset null */
28 /* Calibration, x-axis inclination offset null */
30 /* Calibration, y-axis inclination offset null */
H A Dadis16240.h10 /* Output, x-axis accelerometer */
12 /* Output, y-axis accelerometer */
14 /* Output, z-axis accelerometer */
20 /* Output, x-axis acceleration peak */
22 /* Output, y-axis acceleration peak */
24 /* Output, z-axis acceleration peak */
38 /* Calibration, x-axis acceleration offset adjustment */
40 /* Calibration, y-axis acceleration offset adjustment */
42 /* Calibration, z-axis acceleration offset adjustment */
H A Dadis16204.h8 #define ADIS16204_XACCL_OUT 0x04 /* Output, x-axis accelerometer */
9 #define ADIS16204_YACCL_OUT 0x06 /* Output, y-axis accelerometer */
14 #define ADIS16204_XACCL_NULL 0x10 /* Calibration, x-axis acceleration offset null */
15 #define ADIS16204_YACCL_NULL 0x12 /* Calibration, y-axis acceleration offset null */
16 #define ADIS16204_XACCL_SCALE 0x14 /* X-axis scale factor calibration register */
17 #define ADIS16204_YACCL_SCALE 0x16 /* Y-axis scale factor calibration register */
H A Dadis16203.h10 #define ADIS16203_XINCL_OUT 0x0C /* Output, x-axis inclination */
11 #define ADIS16203_YINCL_OUT 0x0E /* Output, y-axis inclination */
H A Dlis3l02dq.h114 /* XYZ axis data overrun - first is all overrun? */
H A Dsca3000_core.c932 * This is a per axis control, but enabling any will result in the
952 * this axis is on sca3000_write_event_config()
/linux-4.1.27/include/linux/
H A Drotary_encoder.h6 unsigned int axis; member in struct:rotary_encoder_platform_data
H A Dlis3lv02d.h7 * @click_thresh_x: Click detection unit x axis threshold
8 * @click_thresh_y: Click detection unit y axis threshold
9 * @click_thresh_z: Click detection unit z axis threshold
25 * @axis_x: Sensor orientation remapping for x-axis
26 * @axis_y: Sensor orientation remapping for y-axis
27 * @axis_z: Sensor orientation remapping for z-axis
H A Dfb.h328 __u32 sx; /* origin in the x-axis */
329 __u32 sy; /* origin in the y-axis */
330 __u32 width; /* number of tiles in the x-axis */
331 __u32 height; /* number of tiles in the y-axis */
339 __u32 sx; /* source origin in the x-axis */
340 __u32 sy; /* source origin in the y-axis */
341 __u32 dx; /* destination origin in the x-axis */
342 __u32 dy; /* destination origin in the y-axis */
343 __u32 width; /* number of tiles in the x-axis */
344 __u32 height; /* number of tiles in the y-axis */
348 __u32 sx; /* origin in the x-axis */
349 __u32 sy; /* origin in the y-axis */
350 __u32 width; /* number of tiles in the x-axis */
351 __u32 height; /* number of tiles in the y-axis */
359 __u32 sx; /* cursor position in the x-axis */
360 __u32 sy; /* cursor position in the y-axis */
H A Dgpio_keys.h19 * @value: axis value for %EV_ABS
H A Dhil.h248 #define HIL_IDD_HEADER_AXSET_MASK 0x03 /* Number of axis in a set */
254 #define HIL_IDD_HEADER_2X_AXIS 0x80 /* Two sets of 1-3 axis */
468 #define HIL_POL_NUM_AXES_MASK 0x03 /* Number of axis reported */
480 #define HIL_POL_AXIS_ALT 0x80 /* Data is from axis set 2 */
H A Dinput.h440 void input_set_abs_params(struct input_dev *dev, unsigned int axis,
445 unsigned int axis) \
447 return dev->absinfo ? dev->absinfo[axis]._item : 0; \
451 unsigned int axis, int val) \
455 dev->absinfo[axis]._item = val; \
/linux-4.1.27/include/linux/input/
H A Das5011.h16 char xp, xn; /* threshold for x axis */
17 char yp, yn; /* threshold for y axis */
H A Dgpio_tilt.h6 * @axis: Constant describing the axis, e.g. ABS_X
13 int axis; member in struct:gpio_tilt_axis
27 * This structure describes a supported axis settings
H A Dkxtj9.h30 * By default, x is axis 0, y is axis 1, z is axis 2; these can be
38 * Each axis can be negated to account for sensor orientation within
H A Dmt.h93 static inline bool input_is_mt_value(int axis) input_is_mt_value() argument
95 return axis >= ABS_MT_FIRST && axis <= ABS_MT_LAST; input_is_mt_value()
98 static inline bool input_is_mt_axis(int axis) input_is_mt_axis() argument
100 return axis == ABS_MT_SLOT || input_is_mt_value(axis); input_is_mt_axis()
H A Dadxl34x.h33 * selected axis from participation in Tap detection.
91 * or inactivity detection. A '0' excludes the selected axis from
275 * select the event type and event code for new x, y and z axis data
/linux-4.1.27/drivers/input/touchscreen/
H A Dof_touchscreen.c28 unsigned long axis, touchscreen_set_params()
33 if (!test_bit(axis, dev->absbit)) { touchscreen_set_params()
35 * Emit a warning only if the axis is not a multitouch touchscreen_set_params()
36 * axis, which might not be set by the driver. touchscreen_set_params()
38 if (!input_is_mt_axis(axis)) touchscreen_set_params()
40 "DT specifies parameters but the axis is not set up\n"); touchscreen_set_params()
44 absinfo = &dev->absinfo[axis]; touchscreen_set_params()
27 touchscreen_set_params(struct input_dev *dev, unsigned long axis, int max, int fuzz) touchscreen_set_params() argument
H A Dtouchit213.c49 * presented, x is the horizontal axis with values growing from left to
50 * right and y is the vertical axis with values growing from top to
54 * correct position, x ist the vertical axis with values growing from
55 * top to bottom and y is the horizontal axis with values growing from
H A Dcyttsp4_core.h403 /* abs axis signal offsets in the framworks array */
439 /* x-axis resolution of panel in pixels */
442 /* y-axis resolution of panel in pixels */
445 /* x-axis, 0:origin is on left side of panel, 1: right */
448 /* y-axis, 0:origin is on top side of panel, 1: bottom */
H A Dhtcpen.c45 MODULE_PARM_DESC(invert_x, "If set, X axis is inverted");
48 MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted");
H A Dcyttsp4_core.c748 int *axis, int size, int max, u8 *xy_data, int bofs) cyttsp4_get_touch_axis()
753 for (nbyte = 0, *axis = 0, next = 0; nbyte < size; nbyte++) { cyttsp4_get_touch_axis()
755 "%s: *axis=%02X(%d) size=%d max=%08X xy_data=%p" cyttsp4_get_touch_axis()
757 __func__, *axis, *axis, size, max, xy_data, next, cyttsp4_get_touch_axis()
759 *axis = (*axis * 256) + (xy_data[next] >> bofs); cyttsp4_get_touch_axis()
763 *axis &= max - 1; cyttsp4_get_touch_axis()
766 "%s: *axis=%02X(%d) size=%d max=%08X xy_data=%p" cyttsp4_get_touch_axis()
768 __func__, *axis, *axis, size, max, xy_data, next, cyttsp4_get_touch_axis()
747 cyttsp4_get_touch_axis(struct cyttsp4_mt_data *md, int *axis, int size, int max, u8 *xy_data, int bofs) cyttsp4_get_touch_axis() argument
H A Dsur40.c75 __le16 axis_x; /* somehow related to major/minor axis, mostly: */
78 __le32 angle; /* orientation in radians relative to x axis -
462 /* max value unknown, but major/minor axis sur40_input_setup()
H A Dmc13783_ts.c30 "If the minimal and maximal value read out for one axis (out "
H A Dusbtouchscreen.c832 __be16 x_len; /* bytes for X axis */
833 __be16 y_len; /* bytes for Y axis */
/linux-4.1.27/sound/pci/
H A Dazt3328.h174 * still lets us evaluate button states, but not axis states */
208 * axis measurement bits enabled
215 /* enables axis 1 (X axis) measurement: */
217 /* enables axis 2 (Y axis) measurement: */
219 /* enables axis 3 (X axis) measurement: */
221 /* enables axis 4 (Y axis) measurement: */
223 /* selects the current axis to read the measured value of
225 * 00 = axis 1, 01 = axis 2, 10 = axis 3, 11 = axis 4: */
247 /* R: value of currently configured axis (word value!);
248 * W: trigger axis measurement */
H A Dazt3328.c1714 * (we do not want axis reading in interrupt handler - too much load!) snd_azf3328_gameport_interrupt()
1788 /* configure the axis to read */ snd_azf3328_gameport_cooked_read()
/linux-4.1.27/drivers/hid/
H A Dhid-lg3ff.c34 * 1 - 30 deal with the x axis
35 * 31 -60 deal with the y axis
37 * Field 1 is x axis constant force
38 * Field 31 is y axis constant force
40 * other interesting fields 1,2,3,4 on x axis
41 * (same for 31,32,33,34 on y axis)
H A Dhid-xinmo.c3 * Fixes the negative axis event values (the devices sends -2) to match the
4 * logical axis minimum of the HID report descriptor (the report announces
H A Dhid-saitek.c5 * Fixes the HID report descriptor by removing a non-existent axis and
85 /* convert spurious axis to a "noop" Logical Minimum (0) */ saitek_report_fixup()
H A Dhid-input.c197 * hidinput_calc_abs_res - calculate an absolute axis resolution
199 * @code: axis code
H A Dhid-lg.c59 * These descriptors remove the combined Y axis and instead report
H A Dhid-lg4ff.c247 /* Recalculates X axis value accordingly to currently selected range */ lg4ff_adjust_dfp_x_axis()
H A Dwacom_sys.c86 * Calculate the resolution of the X or Y axis using hidinput_calc_abs_res.
H A Dhid-sony.c402 * descriptor the button and axis definitions must be moved to report 17 or
H A Dhid-wiimote-modules.c427 * 3 axis accelerometer data is part of nearly all DRMs. If not supported by a
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dadl_pci8164.c86 /* read MSTS register / write CMD register for each axis (channel) */ adl_pci8164_auto_attach()
97 /* read SSTS register / write OTP register for each axis (channel) */ adl_pci8164_auto_attach()
108 /* read/write BUF0 register for each axis (channel) */ adl_pci8164_auto_attach()
119 /* read/write BUF1 register for each axis (channel) */ adl_pci8164_auto_attach()
H A Djr3_pci.h79 * selection of a single axis. The V1x axis bit corresponds to a hex
108 /* The xx_near_sat bits signify that the indicated axis has reached or
128 * xx_sat bits signify that the indicated axis has reached or exceeded
235 * 1 - translate along X axis (TX)
236 * 2 - translate along Y axis (TY)
237 * 3 - translate along Z axis (TZ)
238 * 4 - rotate about X axis (RX)
239 * 5 - rotate about Y axis (RY)
240 * 6 - rotate about Z axis (RZ)
H A Djr3_pci.c233 unsigned int axis = chan % 8; jr3_pci_ai_read_chan() local
236 switch (axis) { jr3_pci_ai_read_chan()
/linux-4.1.27/include/linux/iio/accel/
H A Dkxcjk_1013.h2 * KXCJK-1013 3-axis accelerometer Interface
/linux-4.1.27/drivers/input/misc/
H A Drotary_encoder.c36 unsigned int axis; member in struct:rotary_encoder
65 pdata->axis, encoder->dir ? -1 : 1); rotary_encoder_report_event()
85 input_report_abs(encoder->input, pdata->axis, encoder->pos); rotary_encoder_report_event()
169 of_property_read_u32(np, "linux,axis", &pdata->axis); rotary_encoder_parse_dt()
178 "rotary-encoder,relative-axis", NULL); rotary_encoder_parse_dt()
230 input->relbit[0] = BIT_MASK(pdata->axis); rotary_encoder_probe()
234 pdata->axis, 0, pdata->steps, 0, 1); rotary_encoder_probe()
H A Dadxl34x.c25 #define OFSX 0x1E /* R/W X-axis offset */
26 #define OFSY 0x1F /* R/W Y-axis offset */
27 #define OFSZ 0x20 /* R/W Z-axis offset */
122 * Maximum value our axis may get in full res mode for the input device
128 * Maximum value our axis may get in fixed res mode for the input device
238 static void adxl34x_get_triple(struct adxl34x *ac, struct axis_triple *axis) adxl34x_get_triple() argument
246 axis->x = ac->saved.x; adxl34x_get_triple()
249 axis->y = ac->saved.y; adxl34x_get_triple()
252 axis->z = ac->saved.z; adxl34x_get_triple()
259 struct axis_triple axis; adxl34x_service_ev_fifo() local
261 adxl34x_get_triple(ac, &axis); adxl34x_service_ev_fifo()
264 axis.x - ac->swcal.x); adxl34x_service_ev_fifo()
266 axis.y - ac->swcal.y); adxl34x_service_ev_fifo()
268 axis.z - ac->swcal.z); adxl34x_service_ev_fifo()
H A Dmpu3050.c2 * MPU3050 Tri-axis gyroscope driver
241 struct axis_data axis; mpu3050_interrupt_thread() local
243 mpu3050_read_xyz(sensor->client, &axis); mpu3050_interrupt_thread()
245 input_report_abs(sensor->idev, ABS_X, axis.x); mpu3050_interrupt_thread()
246 input_report_abs(sensor->idev, ABS_Y, axis.y); mpu3050_interrupt_thread()
247 input_report_abs(sensor->idev, ABS_Z, axis.z); mpu3050_interrupt_thread()
481 MODULE_DESCRIPTION("MPU3050 Tri-axis gyroscope driver");
H A Dgpio_tilt_polled.c63 pdata->axes[i].axis, gpio_tilt_polled_poll()
150 input_set_abs_params(input, pdata->axes[i].axis, gpio_tilt_polled_probe()
H A Dbma150.c41 /* Each axis is represented by a 2-byte data word */
/linux-4.1.27/include/uapi/linux/
H A Djoystick.h51 __u8 number; /* axis/button number */
67 #define JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_CNT]) /* set axis mapping */
68 #define JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_CNT]) /* get axis mapping */
H A Dinput.h50 * @value: latest reported value for the axis.
51 * @minimum: specifies minimum value for the axis.
52 * @maximum: specifies maximum value for the axis.
58 * the axis.
853 #define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */
854 #define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */
855 #define ABS_MT_WIDTH_MAJOR 0x32 /* Major axis of approaching ellipse */
856 #define ABS_MT_WIDTH_MINOR 0x33 /* Minor axis (omit if circular) */
1161 struct ff_condition_effect condition[2]; /* One for each axis */
/linux-4.1.27/drivers/input/mouse/
H A Dtrackpoint.h61 #define TP_REACH 0x57 /* Backup for Z-axis press */
64 /* with Z-axis pressed) */
69 #define TP_THRESH 0x5C /* Minimum value for a Z-axis press */
70 #define TP_UP_THRESH 0x5A /* Used to generate a 'click' on Z-axis */
H A Delantech.h61 * One hard to find application note states that X axis range is 0 to 576
62 * and Y axis range is 0 to 384 for harware version 1.
H A Dcyapa_gen5.c212 /* Bit 7 - 0 of X-axis coordinate of the touch in pixel. */
215 /* Bit 15 - 8 of X-axis coordinate of the touch in pixel. */
218 /* Bit 7 - 0 of Y-axis coordinate of the touch in pixel. */
221 /* Bit 15 - 8 of Y-axis coordinate of the touch in pixel. */
228 * The length of the major axis of the ellipse of contact between
234 * The length of the minor axis of the ellipse of contact between
240 * The length of the major axis of the approaching tool.
246 * The length of the minor axis of the approaching tool.
252 * The angle between the panel vertical axis and
253 * the major axis of the contact ellipse. This value is an 8-bit
256 * The positive direction is clockwise from the vertical axis.
H A Dbcm5974.c205 __le16 tool_major; /* tool area, major axis */
206 __le16 tool_minor; /* tool area, minor axis */
208 __le16 touch_major; /* touch area, major axis */
209 __le16 touch_minor; /* touch area, minor axis */
H A Dcyapa.c430 * Orientation is the angle between the vertical axis and cyapa_create_input_dev()
431 * the major axis of the contact ellipse. cyapa_create_input_dev()
433 * the positive direction is clockwise form the vertical axis. cyapa_create_input_dev()
H A Dvsxxxaa.c282 * Get X/Y position. Y axis needs to be inverted since VSXXX-AB vsxxxaa_handle_ABS_packet()
H A Dalps.c449 * on either axis as the finger count. alps_process_bitmap()
454 * If an axis reports only a single contact, we have overlapping or alps_process_bitmap()
H A Dsynaptics.c808 * convert these values to the maximum axis value. synaptics_parse_hw_state()
/linux-4.1.27/arch/cris/arch-v10/lib/
H A Dhw_settings.S8 * Authors: Mikael Starvik (starvik@axis.com)
/linux-4.1.27/arch/cris/mm/
H A Dinit.c7 * Authors: Bjorn Wesen (bjornw@axis.com)
H A Dtlb.c6 * Authors: Bjorn Wesen (bjornw@axis.com)
/linux-4.1.27/drivers/iio/accel/
H A Dmma9551_core.h41 #define MMA9551_ACCEL_CHANNEL(axis) { \
44 .channel2 = axis, \
H A Dkxsd9.c176 #define KXSD9_ACCEL_CHAN(axis) \
180 .channel2 = IIO_MOD_##axis, \
183 .address = KXSD9_REG_##axis, \
H A Dmma8452.c2 * mma8452.c - Support for Freescale MMA8452Q 3-axis 12-bit accelerometer
294 #define MMA8452_CHANNEL(axis, idx) { \
297 .channel2 = IIO_MOD_##axis, \
H A Dmma9551.c173 enum iio_modifier axis, mma9551_config_incli_event()
181 mma_axis = axis - 1; mma9551_config_incli_event()
200 switch (axis) { mma9551_config_incli_event()
316 #define MMA9551_INCLI_CHANNEL(axis) { \
319 .channel2 = axis, \
172 mma9551_config_incli_event(struct iio_dev *indio_dev, enum iio_modifier axis, int state) mma9551_config_incli_event() argument
H A Dbmc150-accel.c2 * 3-axis accelerometer driver supporting following Bosch-Sensortec chips:
126 #define BMC150_ACCEL_AXIS_TO_REG(axis) (BMC150_ACCEL_REG_XOUT_L + (axis * 2))
626 int axis = chan->scan_index; bmc150_accel_get_axis() local
636 BMC150_ACCEL_AXIS_TO_REG(axis)); bmc150_accel_get_axis()
638 dev_err(&data->client->dev, "Error reading axis %d\n", axis); bmc150_accel_get_axis()
H A Dkxcjk-1013.c2 * KXCJK-1013 3-axis accelerometer driver
40 * From low byte X axis register, all the other addresses of Y and Z can be
41 * obtained by just applying axis offset. The following axis defines are just
641 static int kxcjk1013_get_acc_reg(struct kxcjk1013_data *data, int axis) kxcjk1013_get_acc_reg() argument
643 u8 reg = KXCJK1013_REG_XOUT_L + axis * 2; kxcjk1013_get_acc_reg()
649 "failed to read accel_%c registers\n", 'x' + axis); kxcjk1013_get_acc_reg()
/linux-4.1.27/drivers/platform/x86/
H A Dhdaps.c8 * starting with the R40, T41, and X40. It provides a basic two-axis
46 #define HDAPS_PORT_YPOS 0x1612 /* y-axis position */
47 #define HDAPS_PORT_XPOS 0x1614 /* x-axis position */
49 #define HDAPS_PORT_YVAR 0x1617 /* y-axis variance (what is this?) */
50 #define HDAPS_PORT_XVAR 0x1619 /* x-axis variance (what is this?) */
496 pr_info("inverting axis (%u) readings\n", hdaps_invert); hdaps_dmi_match_invert()
636 MODULE_PARM_DESC(invert, "invert data along each axis. 1 invert x-axis, "
637 "2 invert y-axis, 3 invert both axes.");
H A Dhp_accel.c168 /* Represents, for each axis seen by userspace, the corresponding hw axis (+1).
251 /* Laptop models without axis info (yet):
/linux-4.1.27/arch/cris/arch-v32/kernel/
H A Dprocess.c4 * Authors: Bjorn Wesen (bjornw@axis.com)
5 * Mikael Starvik (starvik@axis.com)
6 * Tobias Anderberg (tobiasa@axis.com), CRISv32 port.
H A Dirq.c466 np = of_find_compatible_node(NULL, NULL, "axis,crisv32-intc"); init_IRQ()
H A Dentry.S4 * Authors: Bjorn Wesen (bjornw@axis.com)
5 * Tobias Anderberg (tobiasa@axis.com), CRISv32 port.
/linux-4.1.27/drivers/misc/lis3lv02d/
H A Dlis3lv02d.c103 * over the axis array size
125 module_param_array_named(axes, lis3_dev.ac.as_array, axis, NULL, 0644);
161 * lis3lv02d_get_axis - For the given axis, give the value converted
162 * @axis: 1,2,3 - can also be negative
167 static inline int lis3lv02d_get_axis(s8 axis, int hw_values[3]) lis3lv02d_get_axis() argument
169 if (axis > 0) lis3lv02d_get_axis()
170 return hw_values[axis - 1]; lis3lv02d_get_axis()
172 return -hw_values[-axis - 1]; lis3lv02d_get_axis()
176 * lis3lv02d_get_xyz - Get X, Y and Z axis values from the accelerometer
178 * @x: where to store the X axis value
179 * @y: where to store the Y axis value
180 * @z: where to store the Z axis value
310 /* Read directly to avoid axis remap */ lis3lv02d_selftest()
400 /* disable X,Y,Z axis and power down */ lis3lv02d_poweroff()
1075 if (of_property_read_s32(np, "st,axis-x", &sval) == 0) lis3lv02d_init_dt()
1077 if (of_property_read_s32(np, "st,axis-y", &sval) == 0) lis3lv02d_init_dt()
1079 if (of_property_read_s32(np, "st,axis-z", &sval) == 0) lis3lv02d_init_dt()
1260 MODULE_DESCRIPTION("ST LIS3LV02Dx three-axis digital accelerometer driver");
H A Dlis3lv02d.h301 union axis_conversion ac; /* hw -> logical axis */
H A Dlis3lv02d_i2c.c104 /* Default axis mapping but it can be overwritten by platform data */
/linux-4.1.27/drivers/input/
H A Dinput-compat.h63 struct ff_condition_effect condition[2]; /* One for each axis */
H A Djoydev.c562 * Process variable-sized commands (the axis and button map commands joydev_ioctl_common()
764 * axis). joydev_dev_is_absolute_mouse()
H A Dinput.c427 * axis, etc.
492 void input_set_abs_params(struct input_dev *dev, unsigned int axis, input_set_abs_params() argument
501 absinfo = &dev->absinfo[axis]; input_set_abs_params()
508 __set_bit(axis, dev->absbit); input_set_abs_params()
/linux-4.1.27/drivers/input/joystick/
H A Dzhenhua.c20 * 2. byte = X axis
21 * 3. byte = Y axis
22 * 4. byte = RZ axis
23 * 5. byte = Z axis
H A Ddb9.c282 case 0x16: /* multi controller (analog 4 axis) */ db9_saturn_report()
284 case 0x15: /* mission stick (analog 3 axis) */ db9_saturn_report()
287 case 0x13: /* racing controller (analog 1 axis) */ db9_saturn_report()
290 case 0x02: /* digital pad (digital 2 axis + buttons) */ db9_saturn_report()
296 case 0x19: /* mission stick x2 (analog 6 axis + buttons) */ db9_saturn_report()
312 case 0xd3: /* sankyo ff (analog 1 axis + stop btn) */ db9_saturn_report()
316 case 0xe3: /* shuttle mouse (analog 2 axis + buttons. signed value) */ db9_saturn_report()
H A Das5011.c242 dev_err(&client->dev, "No axis IRQ?\n"); as5011_probe()
318 "Can't allocate axis irq %d\n", plat_data->axis_irq); as5011_probe()
H A Dgrip_mp.c108 /* Maps multiport directional values to X,Y axis values (each axis encoded in 3 bits) */
519 /* Store axis states with linux driver */ report_slot()
H A Dwarrior.c78 case 3: /* XY-axis info->data */ warrior_process_packet()
H A Dspaceball.c145 * can occur in the axis values.
H A Dtwidjoy.c18 * sensor delivers X and Y axis data depending on how the Twiddler is held.
H A Dsidewinder.c180 if (kick && (~v & u & 0x01)) { /* Falling edge on axis 0 */ sw_read_packet()
252 while ((gameport_read(gameport) & 1) && t) t--; /* Wait for axis to fall back to 0 */ sw_init_digital()
H A Dtmdc.c107 { 0, "Unknown %d-axis, %d-button TM device %d", 0, 0, { 0, 0 }, { 0, 0 }, tmdc_abs, tmdc_btn_joy }
H A Dadi.c96 * Hat to axis conversion arrays.
H A Danalog.c438 snprintf(analog->name, sizeof(analog->name), "Analog %d-axis %d-button", analog_name()
/linux-4.1.27/arch/cris/kernel/
H A Dirq.c7 * Authors: Bjorn Wesen (bjornw@axis.com)
H A Dprocess.c7 * Authors: Bjorn Wesen (bjornw@axis.com)
H A Dvmlinux.lds.S2 * Authors: Bjorn Wesen (bjornw@axis.com)
/linux-4.1.27/arch/cris/arch-v10/kernel/
H A Dprocess.c7 * Authors: Bjorn Wesen (bjornw@axis.com)
8 * Mikael Starvik (starvik@axis.com)
H A Dirq.c6 * Authors: Bjorn Wesen (bjornw@axis.com)
H A Dsignal.c12 * Authors: Bjorn Wesen (bjornw@axis.com)
H A Dentry.S6 * Authors: Bjorn Wesen (bjornw@axis.com)
/linux-4.1.27/arch/cris/arch-v32/mm/
H A Dinit.c6 * Authors: Bjorn Wesen <bjornw@axis.com>
7 * Tobias Anderberg <tobiasa@axis.com>, CRISv32 port.
H A Dtlb.c6 * Authors: Bjorn Wesen <bjornw@axis.com>
7 * Tobias Anderberg <tobiasa@axis.com>, CRISv32 port.
H A Dmmu.S6 * Authors: Mikael Starvik (starvik@axis.com)
/linux-4.1.27/arch/cris/arch-v32/mach-a3/
H A Ddram_init.S10 * Authors: Mikael Starvik <starvik@axis.com>
/linux-4.1.27/drivers/iio/magnetometer/
H A Dak8975.c143 * Precalculate scale factor (in Gauss units) for each axis and
146 * This scale factor is axis-dependent, and is derived from 3 calibration
605 * Emits the raw flux value for the x, y, or z axis.
652 dev_err(&client->dev, "Read axis data fails\n"); ak8975_read_axis()
685 #define AK8975_CHANNEL(axis, index) \
689 .channel2 = IIO_MOD_##axis, \
H A Dmag3110.c271 #define MAG3110_CHANNEL(axis, idx) { \
274 .channel2 = IIO_MOD_##axis, \
/linux-4.1.27/drivers/macintosh/ams/
H A Dams-input.c28 MODULE_PARM_DESC(invert, "Invert input data on X and Y axis");
/linux-4.1.27/arch/cris/arch-v32/mach-fs/
H A Ddram_init.S10 * Authors: Mikael Starvik <starvik@axis.com>
/linux-4.1.27/drivers/macintosh/
H A Dadbhid.c423 data[1] = bxxx xxxx First button and x-axis motion. adbhid_mouse_input()
424 data[2] = byyy yyyy Second button and y-axis motion. adbhid_mouse_input()
433 data[1] = bxxx xxxx Left button and x-axis motion. adbhid_mouse_input()
434 data[2] = byyy yyyy Second button and y-axis motion. adbhid_mouse_input()
436 high bits of y-axis motion. XY is additional adbhid_mouse_input()
437 high bits of x-axis motion. adbhid_mouse_input()
446 data[1] = bxxx xxxx Left button and x-axis motion. adbhid_mouse_input()
447 data[2] = byyy yyyy Right button and y-axis motion. adbhid_mouse_input()
/linux-4.1.27/sound/usb/caiaq/
H A Dinput.c204 int axis, const unsigned char *buf, snd_caiaq_input_report_abs()
207 input_report_abs(cdev->input_dev, axis, snd_caiaq_input_report_abs()
734 int axis = KONTROLS4_ABS(i); snd_usb_caiaq_input_init() local
735 input->absbit[BIT_WORD(axis)] |= BIT_MASK(axis); snd_usb_caiaq_input_init()
203 snd_caiaq_input_report_abs(struct snd_usb_caiaqdev *cdev, int axis, const unsigned char *buf, int offset) snd_caiaq_input_report_abs() argument
/linux-4.1.27/arch/cris/arch-v10/mm/
H A Dtlb.c9 * Authors: Bjorn Wesen (bjornw@axis.com)
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_rect.c310 * to the vertical axis of the untransformed coordinate
377 * to the vertical axis of the original untransformed
/linux-4.1.27/arch/cris/include/asm/
H A Duaccess.h2 * Authors: Bjorn Wesen (bjornw@axis.com)
3 * Hans-Peter Nilsson (hp@axis.com)
/linux-4.1.27/drivers/iio/gyro/
H A Dbmg160.c74 #define BMG160_AXIS_TO_REG(axis) (BMG160_REG_XOUT_L + (axis * 2))
493 static int bmg160_get_axis(struct bmg160_data *data, int axis, int *val) bmg160_get_axis() argument
504 ret = i2c_smbus_read_word_data(data->client, BMG160_AXIS_TO_REG(axis)); bmg160_get_axis()
506 dev_err(&data->client->dev, "Error reading axis %d\n", axis); bmg160_get_axis()
H A Dadis16260.c26 #define ADIS16260_GYRO_OUT 0x04 /* X-axis gyroscope output */
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
H A Deeprom.c630 * on x axis and PCDAC steps (offsets) on y axis and looks like an
890 * power steps on x axis and PCDAC steps on y axis and looks like a
1133 * Each curve has power on x axis in 0.5 db steps and PDDADC steps on y
1134 * axis and looks like an exponential function like the RF5111 curve.
H A Dphy.c2456 * (x value) that is so that we don't go below x axis and have negative
2516 * Each curve has power on x axis (in 0.5dB units) and PCDAC/PDADC
2517 * steps (offsets) on y axis. Power can go up to 31.5dB and max
2847 * on x axis and PCDAC steps (offsets) on y axis and looks like an
2854 * power steps on x axis and PCDAC steps on y axis and looks like a
3055 * calibrated channel. Each curve has power on x axis in 0.5 db steps and
3056 * PDADC steps on y axis and looks like an exponential function like the
/linux-4.1.27/drivers/staging/iio/magnetometer/
H A Dhmc5843_core.c447 #define HMC5843_CHANNEL(axis, idx) \
451 .channel2 = IIO_MOD_##axis, \
/linux-4.1.27/arch/cris/include/arch-v10/arch/
H A Duaccess.h2 * Authors: Bjorn Wesen (bjornw@axis.com)
3 * Hans-Peter Nilsson (hp@axis.com)
/linux-4.1.27/drivers/input/gameport/
H A Dns558.c80 * The lower two axis bits must be 1 after a write. ns558_isa_probe()
/linux-4.1.27/sound/pci/au88x0/
H A Dau8830.h249 #define VORTEX_GAME_AXIS 0x28810 /* Axis base register. 4 axis's */
/linux-4.1.27/include/linux/iio/common/
H A Dst_sensors.h173 * @enable_axis: Enable one or more axis of the sensor.
/linux-4.1.27/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_core.c287 int axis, int *val) inv_mpu6050_sensor_show()
292 ind = (axis - IIO_MOD_X) * 2; inv_mpu6050_sensor_show()
286 inv_mpu6050_sensor_show(struct inv_mpu6050_state *st, int reg, int axis, int *val) inv_mpu6050_sensor_show() argument
/linux-4.1.27/drivers/staging/iio/
H A Diio_simple_dummy.c206 * 'modified' (i.e. axis specified) acceleration channel
379 /* only the acceleration axis - read from cache */ iio_dummy_read_raw()
/linux-4.1.27/drivers/media/i2c/m5mols/
H A Dm5mols.h103 * @mcc: Multi-axis Color Conversion which means emotion color
/linux-4.1.27/net/sched/
H A Dsch_hfsc.c74 * x-axis: unit is clock count.
75 * y-axis: unit is byte.
95 u64 x; /* current starting position on x-axis */
96 u64 y; /* current starting position on y-axis */
/linux-4.1.27/drivers/input/keyboard/
H A Dhil_kbd.c436 "HIL pointer device found (did: 0x%02x, axis: %s)\n", hil_dev_pointer_setup()
/linux-4.1.27/arch/cris/include/arch-v32/arch/
H A Duaccess.h2 * Authors: Hans-Peter Nilsson (hp@axis.com)
/linux-4.1.27/drivers/misc/echo/
H A Decho.c368 * at (1-Beta) on real axis. Some chip sets (like Si labs) don't oslec_update()
/linux-4.1.27/arch/cris/arch-v10/drivers/
H A Deeprom.c5 *! Johan.Adolfsson@axis.com
/linux-4.1.27/arch/arm/mach-pxa/
H A Draumfeld.c371 .axis = REL_X,
/linux-4.1.27/arch/arm/mach-omap2/
H A Dboard-rx51-peripherals.c137 /* Limits for all axis. millig-value / 18 to get HW values */
/linux-4.1.27/include/linux/iio/
H A Diio.h216 * the 'x' axis.
/linux-4.1.27/drivers/video/fbdev/
H A Dskeletonfb.c722 * FBINFO_HWACCEL_YPAN - hardware can pan display in y-axis xxxfb_probe()
723 * FBINFO_HWACCEL_YWRAP - hardware can wrap display in y-axis xxxfb_probe()
/linux-4.1.27/drivers/tty/serial/
H A Detraxfs-uart.c959 { .compatible = "axis,etraxfs-uart" },
/linux-4.1.27/drivers/mmc/host/
H A Dmmc_spi.c8 * Hans-Peter Nilsson (hp@axis.com)
/linux-4.1.27/drivers/video/fbdev/omap/
H A Domapfb_main.c654 /* Set mirror to vertical axis and switch to the new mode. */ omapfb_mirror()
/linux-4.1.27/include/linux/mfd/
H A Dcros_ec_commands.h1325 /* Array of all sensor data. Each sensor is 3-axis. */

Completed in 2312 milliseconds