axis 90 drivers/hid/hid-udraw-ps3.c static int clamp_accel(int axis, int offset) axis 92 drivers/hid/hid-udraw-ps3.c axis = clamp(axis, axis 95 drivers/hid/hid-udraw-ps3.c axis = (axis - accel_limits[offset].min) / axis 98 drivers/hid/hid-udraw-ps3.c return axis; axis 68 drivers/iio/accel/adxl345_core.c #define ADXL345_CHANNEL(index, axis) { \ axis 71 drivers/iio/accel/adxl345_core.c .channel2 = IIO_MOD_##axis, \ axis 225 drivers/iio/accel/adxl372.c #define ADXL372_ACCEL_CHANNEL(index, reg, axis) { \ axis 229 drivers/iio/accel/adxl372.c .channel2 = IIO_MOD_##axis, \ axis 35 drivers/iio/accel/bma220_spi.c #define BMA220_ACCEL_CHANNEL(index, reg, axis) { \ axis 39 drivers/iio/accel/bma220_spi.c .channel2 = IIO_MOD_##axis, \ axis 122 drivers/iio/accel/bmc150-accel-core.c #define BMC150_ACCEL_AXIS_TO_REG(axis) (BMC150_ACCEL_REG_XOUT_L + (axis * 2)) axis 544 drivers/iio/accel/bmc150-accel-core.c int axis = chan->scan_index; axis 554 drivers/iio/accel/bmc150-accel-core.c ret = regmap_bulk_read(data->regmap, BMC150_ACCEL_AXIS_TO_REG(axis), axis 557 drivers/iio/accel/bmc150-accel-core.c dev_err(dev, "Error reading axis %d\n", axis); axis 35 drivers/iio/accel/da280.c #define DA280_CHANNEL(reg, axis) { \ axis 39 drivers/iio/accel/da280.c .channel2 = IIO_MOD_##axis, \ axis 80 drivers/iio/accel/da311.c #define DA311_CHANNEL(reg, axis) { \ axis 84 drivers/iio/accel/da311.c .channel2 = IIO_MOD_##axis, \ axis 54 drivers/iio/accel/dmard10.c #define DMARD10_CHANNEL(reg, axis) { \ axis 58 drivers/iio/accel/dmard10.c .channel2 = IIO_MOD_##axis, \ axis 699 drivers/iio/accel/kxcjk-1013.c static int kxcjk1013_get_acc_reg(struct kxcjk1013_data *data, int axis) axis 701 drivers/iio/accel/kxcjk-1013.c u8 reg = KXCJK1013_REG_XOUT_L + axis * 2; axis 707 drivers/iio/accel/kxcjk-1013.c "failed to read accel_%c registers\n", 'x' + axis); axis 274 drivers/iio/accel/kxsd9.c #define KXSD9_ACCEL_CHAN(axis, index) \ axis 278 drivers/iio/accel/kxsd9.c .channel2 = IIO_MOD_##axis, \ axis 283 drivers/iio/accel/kxsd9.c .address = KXSD9_REG_##axis, \ axis 40 drivers/iio/accel/mc3230.c #define MC3230_CHANNEL(reg, axis) { \ axis 44 drivers/iio/accel/mc3230.c .channel2 = IIO_MOD_##axis, \ axis 201 drivers/iio/accel/mma7455_core.c #define MMA7455_CHANNEL(axis, idx) { \ axis 204 drivers/iio/accel/mma7455_core.c .address = MMA7455_REG_##axis##OUTL,\ axis 205 drivers/iio/accel/mma7455_core.c .channel2 = IIO_MOD_##axis, \ axis 41 drivers/iio/accel/mma7660.c #define MMA7660_CHANNEL(reg, axis) { \ axis 45 drivers/iio/accel/mma7660.c .channel2 = IIO_MOD_##axis, \ axis 1207 drivers/iio/accel/mma8452.c #define MMA8452_CHANNEL(axis, idx, bits) { \ axis 1210 drivers/iio/accel/mma8452.c .channel2 = IIO_MOD_##axis, \ axis 1229 drivers/iio/accel/mma8452.c #define MMA8652_CHANNEL(axis, idx, bits) { \ axis 1232 drivers/iio/accel/mma8452.c .channel2 = IIO_MOD_##axis, \ axis 164 drivers/iio/accel/mma9551.c enum iio_modifier axis, axis 172 drivers/iio/accel/mma9551.c mma_axis = axis - 1; axis 191 drivers/iio/accel/mma9551.c switch (axis) { axis 307 drivers/iio/accel/mma9551.c #define MMA9551_INCLI_CHANNEL(axis) { \ axis 310 drivers/iio/accel/mma9551.c .channel2 = axis, \ axis 33 drivers/iio/accel/mma9551_core.h #define MMA9551_ACCEL_CHANNEL(axis) { \ axis 36 drivers/iio/accel/mma9551_core.h .channel2 = axis, \ axis 1175 drivers/iio/accel/sca3000.c static int sca3000_motion_detect_set_state(struct iio_dev *indio_dev, int axis, axis 1190 drivers/iio/accel/sca3000.c if (state && !(ctrlval & sca3000_addresses[axis][2])) { axis 1194 drivers/iio/accel/sca3000.c sca3000_addresses[axis][2]); axis 1198 drivers/iio/accel/sca3000.c } else if (!state && (ctrlval & sca3000_addresses[axis][2])) { axis 1202 drivers/iio/accel/sca3000.c ~(sca3000_addresses[axis][2])); axis 74 drivers/iio/accel/stk8312.c #define STK8312_ACCEL_CHANNEL(index, reg, axis) { \ axis 78 drivers/iio/accel/stk8312.c .channel2 = IIO_MOD_##axis, \ axis 102 drivers/iio/accel/stk8ba50.c #define STK8BA50_ACCEL_CHANNEL(index, reg, axis) { \ axis 106 drivers/iio/accel/stk8ba50.c .channel2 = IIO_MOD_##axis, \ axis 68 drivers/iio/gyro/bmg160_core.c #define BMG160_AXIS_TO_REG(axis) (BMG160_REG_XOUT_L + (axis * 2)) axis 517 drivers/iio/gyro/bmg160_core.c static int bmg160_get_axis(struct bmg160_data *data, int axis, int *val) axis 530 drivers/iio/gyro/bmg160_core.c ret = regmap_bulk_read(data->regmap, BMG160_AXIS_TO_REG(axis), &raw_val, axis 533 drivers/iio/gyro/bmg160_core.c dev_err(dev, "Error reading axis %d\n", axis); axis 43 drivers/iio/gyro/fxas21002c_core.c #define FXAS21002C_AXIS_TO_REG(axis) (FXAS21002C_REG_OUT_X_MSB + ((axis) * 2)) axis 81 drivers/iio/gyro/mpu3050-core.c #define MPU3050_AXIS_REGS(axis) (MPU3050_XOUT_H + (axis * 2)) axis 684 drivers/iio/gyro/mpu3050-core.c #define MPU3050_AXIS_CHANNEL(axis, index) \ axis 688 drivers/iio/gyro/mpu3050-core.c .channel2 = IIO_MOD_##axis, \ axis 347 drivers/iio/imu/bmi160/bmi160_core.c int axis, int *val) axis 354 drivers/iio/imu/bmi160/bmi160_core.c reg = bmi160_regs[t].data + (axis - IIO_MOD_X) * sizeof(sample); axis 361 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c int axis, int val) axis 366 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c ind = (axis - IIO_MOD_X) * 2; axis 375 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c int axis, int *val) axis 380 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c ind = (axis - IIO_MOD_X) * 2; axis 517 drivers/iio/magnetometer/ak8974.c static const char axis[3] = "XYZ"; axis 529 drivers/iio/magnetometer/ak8974.c axis[i], offz, sens, fine, pgaxis[i * 2], axis 634 drivers/iio/magnetometer/ak8974.c #define AK8974_AXIS_CHANNEL(axis, index) \ axis 638 drivers/iio/magnetometer/ak8974.c .channel2 = IIO_MOD_##axis, \ axis 746 drivers/iio/magnetometer/ak8975.c #define AK8975_CHANNEL(axis, index) \ axis 750 drivers/iio/magnetometer/ak8975.c .channel2 = IIO_MOD_##axis, \ axis 464 drivers/iio/magnetometer/hmc5843_core.c #define HMC5843_CHANNEL(axis, idx) \ axis 468 drivers/iio/magnetometer/hmc5843_core.c .channel2 = IIO_MOD_##axis, \ axis 482 drivers/iio/magnetometer/hmc5843_core.c #define HMC5983_CHANNEL(axis, idx) \ axis 486 drivers/iio/magnetometer/hmc5843_core.c .channel2 = IIO_MOD_##axis, \ axis 413 drivers/iio/magnetometer/mag3110.c #define MAG3110_CHANNEL(axis, idx) { \ axis 416 drivers/iio/magnetometer/mag3110.c .channel2 = IIO_MOD_##axis, \ axis 236 drivers/iio/magnetometer/rm3100-core.c #define RM3100_CHANNEL(axis, idx) \ axis 240 drivers/iio/magnetometer/rm3100-core.c .channel2 = IIO_MOD_##axis, \ axis 504 drivers/input/input.c void input_set_abs_params(struct input_dev *dev, unsigned int axis, axis 513 drivers/input/input.c absinfo = &dev->absinfo[axis]; axis 520 drivers/input/input.c __set_bit(axis, dev->absbit); axis 238 drivers/input/misc/adxl34x.c static void adxl34x_get_triple(struct adxl34x *ac, struct axis_triple *axis) axis 246 drivers/input/misc/adxl34x.c axis->x = ac->saved.x; axis 249 drivers/input/misc/adxl34x.c axis->y = ac->saved.y; axis 252 drivers/input/misc/adxl34x.c axis->z = ac->saved.z; axis 259 drivers/input/misc/adxl34x.c struct axis_triple axis; axis 261 drivers/input/misc/adxl34x.c adxl34x_get_triple(ac, &axis); axis 264 drivers/input/misc/adxl34x.c axis.x - ac->swcal.x); axis 266 drivers/input/misc/adxl34x.c axis.y - ac->swcal.y); axis 268 drivers/input/misc/adxl34x.c axis.z - ac->swcal.z); axis 30 drivers/input/misc/gpio_decoder.c u32 axis; axis 63 drivers/input/misc/gpio_decoder.c input_report_abs(poll_dev->input, decoder->axis, state); axis 81 drivers/input/misc/gpio_decoder.c device_property_read_u32(dev, "linux,axis", &decoder->axis); axis 106 drivers/input/misc/gpio_decoder.c input_set_abs_params(poll_dev->input, decoder->axis, 0, max, 0, 0); axis 39 drivers/input/misc/rotary_encoder.c u32 axis; axis 78 drivers/input/misc/rotary_encoder.c encoder->axis, encoder->dir); axis 98 drivers/input/misc/rotary_encoder.c input_report_abs(encoder->input, encoder->axis, encoder->pos); axis 234 drivers/input/misc/rotary_encoder.c device_property_read_u32(dev, "linux,axis", &encoder->axis); axis 261 drivers/input/misc/rotary_encoder.c input_set_capability(input, EV_REL, encoder->axis); axis 264 drivers/input/misc/rotary_encoder.c encoder->axis, 0, encoder->steps, 0, 1); axis 766 drivers/input/touchscreen/cyttsp4_core.c int *axis, int size, int max, u8 *xy_data, int bofs) axis 771 drivers/input/touchscreen/cyttsp4_core.c for (nbyte = 0, *axis = 0, next = 0; nbyte < size; nbyte++) { axis 775 drivers/input/touchscreen/cyttsp4_core.c __func__, *axis, *axis, size, max, xy_data, next, axis 777 drivers/input/touchscreen/cyttsp4_core.c *axis = (*axis * 256) + (xy_data[next] >> bofs); axis 781 drivers/input/touchscreen/cyttsp4_core.c *axis &= max - 1; axis 786 drivers/input/touchscreen/cyttsp4_core.c __func__, *axis, *axis, size, max, xy_data, next, axis 33 drivers/input/touchscreen/of_touchscreen.c unsigned long axis, axis 38 drivers/input/touchscreen/of_touchscreen.c if (!test_bit(axis, dev->absbit)) { axis 41 drivers/input/touchscreen/of_touchscreen.c axis); axis 45 drivers/input/touchscreen/of_touchscreen.c absinfo = &dev->absinfo[axis]; axis 69 drivers/input/touchscreen/of_touchscreen.c unsigned int axis; axis 77 drivers/input/touchscreen/of_touchscreen.c axis = multitouch ? ABS_MT_POSITION_X : ABS_X; axis 79 drivers/input/touchscreen/of_touchscreen.c input_abs_get_min(input, axis), axis 83 drivers/input/touchscreen/of_touchscreen.c axis) + 1, axis 86 drivers/input/touchscreen/of_touchscreen.c input_abs_get_fuzz(input, axis), axis 89 drivers/input/touchscreen/of_touchscreen.c touchscreen_set_params(input, axis, minimum, maximum - 1, fuzz); axis 91 drivers/input/touchscreen/of_touchscreen.c axis = multitouch ? ABS_MT_POSITION_Y : ABS_Y; axis 93 drivers/input/touchscreen/of_touchscreen.c input_abs_get_min(input, axis), axis 97 drivers/input/touchscreen/of_touchscreen.c axis) + 1, axis 100 drivers/input/touchscreen/of_touchscreen.c input_abs_get_fuzz(input, axis), axis 103 drivers/input/touchscreen/of_touchscreen.c touchscreen_set_params(input, axis, minimum, maximum - 1, fuzz); axis 105 drivers/input/touchscreen/of_touchscreen.c axis = multitouch ? ABS_MT_PRESSURE : ABS_PRESSURE; axis 108 drivers/input/touchscreen/of_touchscreen.c input_abs_get_max(input, axis), axis 112 drivers/input/touchscreen/of_touchscreen.c input_abs_get_fuzz(input, axis), axis 115 drivers/input/touchscreen/of_touchscreen.c touchscreen_set_params(input, axis, 0, maximum, fuzz); axis 120 drivers/input/touchscreen/of_touchscreen.c axis = multitouch ? ABS_MT_POSITION_X : ABS_X; axis 122 drivers/input/touchscreen/of_touchscreen.c prop->max_x = input_abs_get_max(input, axis); axis 123 drivers/input/touchscreen/of_touchscreen.c prop->max_y = input_abs_get_max(input, axis + 1); axis 128 drivers/input/touchscreen/of_touchscreen.c absinfo = &input->absinfo[axis]; axis 136 drivers/input/touchscreen/of_touchscreen.c absinfo = &input->absinfo[axis + 1]; axis 144 drivers/input/touchscreen/of_touchscreen.c swap(input->absinfo[axis], input->absinfo[axis + 1]); axis 113 drivers/misc/lis3lv02d/lis3lv02d.c module_param_array_named(axes, lis3_dev.ac.as_array, axis, NULL, 0644); axis 155 drivers/misc/lis3lv02d/lis3lv02d.c static inline int lis3lv02d_get_axis(s8 axis, int hw_values[3]) axis 157 drivers/misc/lis3lv02d/lis3lv02d.c if (axis > 0) axis 158 drivers/misc/lis3lv02d/lis3lv02d.c return hw_values[axis - 1]; axis 160 drivers/misc/lis3lv02d/lis3lv02d.c return -hw_values[-axis - 1]; axis 2479 drivers/platform/x86/toshiba_acpi.c #define TOSHIBA_IIO_ACCEL_CHANNEL(axis, chan) { \ axis 2483 drivers/platform/x86/toshiba_acpi.c .channel2 = IIO_MOD_##axis, \ axis 226 drivers/staging/comedi/drivers/jr3_pci.c unsigned int axis = chan % 8; axis 229 drivers/staging/comedi/drivers/jr3_pci.c switch (axis) { axis 467 include/linux/input.h void input_set_abs_params(struct input_dev *dev, unsigned int axis, axis 472 include/linux/input.h unsigned int axis) \ axis 474 include/linux/input.h return dev->absinfo ? dev->absinfo[axis]._item : 0; \ axis 478 include/linux/input.h unsigned int axis, int val) \ axis 482 include/linux/input.h dev->absinfo[axis]._item = val; \ axis 90 include/linux/input/mt.h static inline bool input_is_mt_value(int axis) axis 92 include/linux/input/mt.h return axis >= ABS_MT_FIRST && axis <= ABS_MT_LAST; axis 95 include/linux/input/mt.h static inline bool input_is_mt_axis(int axis) axis 97 include/linux/input/mt.h return axis == ABS_MT_SLOT || input_is_mt_value(axis); axis 191 sound/usb/caiaq/input.c int axis, const unsigned char *buf, axis 194 sound/usb/caiaq/input.c input_report_abs(cdev->input_dev, axis, axis 724 sound/usb/caiaq/input.c int axis = KONTROLS4_ABS(i); axis 725 sound/usb/caiaq/input.c input->absbit[BIT_WORD(axis)] |= BIT_MASK(axis);