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

/drivers/input/misc/
H A Drotary_encoder.c36 unsigned int axis; member in struct:rotary_encoder
65 pdata->axis, encoder->dir ? -1 : 1);
85 input_report_abs(encoder->input, pdata->axis, encoder->pos);
169 of_property_read_u32(np, "linux,axis", &pdata->axis);
178 "rotary-encoder,relative-axis", NULL);
230 input->relbit[0] = BIT_MASK(pdata->axis);
234 pdata->axis, 0, pdata->steps, 0, 1);
H A Dmpu3050.c2 * MPU3050 Tri-axis gyroscope driver
241 struct axis_data axis; local
243 mpu3050_read_xyz(sensor->client, &axis);
245 input_report_abs(sensor->idev, ABS_X, axis.x);
246 input_report_abs(sensor->idev, ABS_Y, axis.y);
247 input_report_abs(sensor->idev, ABS_Z, axis.z);
481 MODULE_DESCRIPTION("MPU3050 Tri-axis gyroscope driver");
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) argument
246 axis->x = ac->saved.x;
249 axis->y = ac->saved.y;
252 axis->z = ac->saved.z;
259 struct axis_triple axis; local
[all...]
H A Dgpio_tilt_polled.c63 pdata->axes[i].axis,
150 input_set_abs_params(input, pdata->axes[i].axis,
H A DKconfig349 tristate "Kionix KXTJ9 tri-axis digital accelerometer"
352 Say Y here to enable support for the Kionix KXTJ9 digital tri-axis
650 tristate "VTI CMA3000 Tri-axis accelerometer"
/drivers/staging/iio/accel/
H A DKconfig12 Say yes here to build support for Analog Devices adis16201 dual-axis
39 Say yes here to build support for Analog Devices adis16209 dual-axis digital inclinometer
/drivers/iio/gyro/
H A DKconfig58 Say yes here to build support for Bosch BMG160 Tri-axis Gyro Sensor
110 3-axis gyroscope sensor.
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) argument
504 ret = i2c_smbus_read_word_data(data->client, BMG160_AXIS_TO_REG(axis));
506 dev_err(&data->client->dev, "Error reading axis %d\n", axis);
/drivers/iio/accel/
H A Dkxsd9.c176 #define KXSD9_ACCEL_CHAN(axis) \
180 .channel2 = IIO_MOD_##axis, \
183 .address = KXSD9_REG_##axis, \
H A DKconfig89 Say yes here to build support for the Freescale MMA8452Q 3-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 Dbmc150-accel.c2 * 3-axis accelerometer driver supporting following Bosch-Sensortec chips:
122 #define BMC150_ACCEL_AXIS_TO_REG(axis) (BMC150_ACCEL_REG_XOUT_L + (axis * 2))
605 int axis = chan->scan_index; local
615 BMC150_ACCEL_AXIS_TO_REG(axis));
617 dev_err(&data->client->dev, "Error reading axis %d\n", 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
636 static int kxcjk1013_get_acc_reg(struct kxcjk1013_data *data, int axis) argument
638 u8 reg = KXCJK1013_REG_XOUT_L + axis * 2;
644 "failed to read accel_%c registers\n", 'x' + axis);
/drivers/iio/magnetometer/
H A Dak09911.c2 * AK09911 3-axis compass driver
199 dev_err(&client->dev, "Read axis data fails\n");
235 #define AK09911_CHANNEL(axis, index) \
239 .channel2 = IIO_MOD_##axis, \
H A Dmag3110.c271 #define MAG3110_CHANNEL(axis, idx) { \
274 .channel2 = IIO_MOD_##axis, \
H A Dak8975.c250 * Precalculate scale factor (in Gauss units) for each axis and
253 * This scale factor is axis-dependent, and is derived from 3 calibration
370 * Emits the raw flux value for the x, y, or z axis.
420 dev_err(&client->dev, "Read axis data fails\n");
453 #define AK8975_CHANNEL(axis, index) \
457 .channel2 = IIO_MOD_##axis, \
/drivers/staging/iio/magnetometer/
H A Dhmc5843_core.c441 #define HMC5843_CHANNEL(axis, idx) \
445 .channel2 = IIO_MOD_##axis, \
/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]) argument
169 if (axis > 0)
170 return hw_values[axis - 1];
172 return -hw_values[-axis - 1];
176 * lis3lv02d_get_xyz - Get X, Y and Z axis values from the accelerometer
178 * @x: where to store the X axis valu
[all...]
/drivers/input/touchscreen/
H A Dcyttsp4_core.c748 int *axis, int size, int max, u8 *xy_data, int bofs)
753 for (nbyte = 0, *axis = 0, next = 0; nbyte < size; nbyte++) {
755 "%s: *axis=%02X(%d) size=%d max=%08X xy_data=%p"
757 __func__, *axis, *axis, size, max, xy_data, next,
759 *axis = (*axis * 256) + (xy_data[next] >> bofs);
763 *axis &= max - 1;
766 "%s: *axis=%02X(%d) size=%d max=%08X xy_data=%p"
768 __func__, *axis, *axi
747 cyttsp4_get_touch_axis(struct cyttsp4_mt_data *md, int *axis, int size, int max, u8 *xy_data, int bofs) argument
[all...]
/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_core.c198 int axis, int *val)
203 ind = (axis - IIO_MOD_X) * 2;
197 inv_mpu6050_sensor_show(struct inv_mpu6050_state *st, int reg, int axis, int *val) argument
/drivers/staging/comedi/drivers/
H A Djr3_pci.c234 unsigned int axis = chan % 8; local
237 switch (axis) {
/drivers/input/
H A Dinput.c421 * axis, etc.
486 void input_set_abs_params(struct input_dev *dev, unsigned int axis, argument
495 absinfo = &dev->absinfo[axis];
502 __set_bit(axis, dev->absbit);
/drivers/hid/
H A DKconfig658 * Sony PS3 6-axis controllers

Completed in 5631 milliseconds