Home
last modified time | relevance | path

Searched refs:accel_scale (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/iio/accel/
H A Dsca3300.c177 const int (*accel_scale)[2]; member
218 .accel_scale = sca3300_accel_scale,
234 .accel_scale = scl3300_accel_scale,
400 opmode_scale = (int *)chip->accel_scale[chip->accel_scale_map[index]]; in sca3300_set_frequency()
402 new_scale = (int *)chip->accel_scale[chip->accel_scale_map[i]]; in sca3300_set_frequency()
433 if ((val == data->chip->accel_scale[index][0]) && in sca3300_write_raw()
434 (val2 == data->chip->accel_scale[index][1])) in sca3300_write_raw()
471 *val = data->chip->accel_scale[index][0]; in sca3300_read_raw()
472 *val2 = data->chip->accel_scale[index][1]; in sca3300_read_raw()
602 *vals = (const int *)data->chip->accel_scale; in sca3300_read_avail()
H A Dadxl355.h28 struct adxl355_fractional_type accel_scale; member
H A Dadxl355_core.c95 .accel_scale = {
120 .accel_scale = {
525 *val = data->chip_info->accel_scale.integer; in adxl355_read_raw()
526 *val2 = data->chip_info->accel_scale.decimal; in adxl355_read_raw()
/linux/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_core.c40 static const int accel_scale[] = {598, 1196, 2392, 4785}; variable
770 *val2 = accel_scale[st->chip_config.accl_fs]; in inv_mpu6050_read_raw()
863 for (i = 0; i < ARRAY_SIZE(accel_scale); ++i) { in inv_mpu6050_write_accel_scale()
864 if (accel_scale[i] == val2) { in inv_mpu6050_write_accel_scale()