| /linux-6.15/drivers/iio/accel/ |
| H A D | bmi088-accel-core.c | 122 const int scale_table[4][2]; member 245 if (val == data->chip_info->scale_table[i][0] && in bmi088_accel_set_scale() 246 val2 == data->chip_info->scale_table[i][1]) in bmi088_accel_set_scale() 356 *val = data->chip_info->scale_table[reg][0]; in bmi088_accel_read_raw() 357 *val2 = data->chip_info->scale_table[reg][1]; in bmi088_accel_read_raw() 393 *vals = (const int *)data->chip_info->scale_table; in bmi088_accel_read_avail() 471 .scale_table = {{0, 598}, {0, 1196}, {0, 2393}, {0, 4785}}, 478 .scale_table = {{0, 897}, {0, 1794}, {0, 3589}, {0, 7178}}, 485 .scale_table = {{0, 897}, {0, 1794}, {0, 3589}, {0, 7178}},
|
| H A D | bmc150-accel-core.c | 157 const struct bmc150_scale_info scale_table[4]; member 582 if (data->chip_info->scale_table[i].scale == val) { in bmc150_accel_set_scale() 585 data->chip_info->scale_table[i].reg_range); in bmc150_accel_set_scale() 591 data->range = data->chip_info->scale_table[i].reg_range; in bmc150_accel_set_scale() 691 int st_size = ARRAY_SIZE(data->chip_info->scale_table); in bmc150_accel_read_raw() 694 si = &data->chip_info->scale_table[i]; in bmc150_accel_read_raw() 1111 .scale_table = { {153229, BMC150_ACCEL_DEF_RANGE_2G}, 1121 .scale_table = { {153229, BMC150_ACCEL_DEF_RANGE_2G}, 1131 .scale_table = { {38307, BMC150_ACCEL_DEF_RANGE_2G}, 1141 .scale_table = { {9577, BMC150_ACCEL_DEF_RANGE_2G}, [all …]
|
| H A D | kionix-kx022a.c | 434 *vals = (const int *)data->chip_info->scale_table; in kx022a_read_avail() 457 *val1 = data->chip_info->scale_table[val][0]; in kx022a_reg2scale() 458 *val2 = data->chip_info->scale_table[val][1]; in kx022a_reg2scale() 545 if (val == data->chip_info->scale_table[n][0] && in __kx022a_write_raw() 546 val2 == data->chip_info->scale_table[n][1]) in __kx022a_write_raw() 1162 .scale_table = kx022a_scale_table, 1190 .scale_table = kx022a_scale_table, 1219 .scale_table = kx134acr_lbz_scale_table, 1255 .scale_table = kx022a_scale_table, 1283 .scale_table = kx134acr_lbz_scale_table,
|
| H A D | bma180.c | 48 const int *scale_table; member 293 if (data->part_info->scale_table[i] == val) { in bma180_set_scale() 513 return bma180_show_avail(buf, data->part_info->scale_table, in bma180_show_scale_avail() 759 .scale_table = bma023_scale_table, 788 .scale_table = bma023_scale_table, 816 .scale_table = bma180_scale_table, 843 .scale_table = bma250_scale_table,
|
| H A D | kionix-kx022a.h | 174 const int (*scale_table)[2]; member
|
| /linux-6.15/drivers/iio/adc/ |
| H A D | ad4851.c | 724 const struct ad4851_scale *scale_table; in ad4851_set_scale() local 729 scale_table = ad4851_scale_table_bipolar; in ad4851_set_scale() 732 scale_table = ad4851_scale_table_unipolar; in ad4851_set_scale() 737 ret = __ad4851_get_scale(indio_dev, scale_table[i].scale_val, in ad4851_set_scale() 747 scale_table[i].reg_val); in ad4851_set_scale() 758 const struct ad4851_scale *scale_table; in ad4851_get_scale() local 764 scale_table = ad4851_scale_table_bipolar; in ad4851_get_scale() 767 scale_table = ad4851_scale_table_unipolar; in ad4851_get_scale() 777 if (softspan_val == scale_table[i].reg_val) in ad4851_get_scale() 784 ret = __ad4851_get_scale(indio_dev, scale_table[i].scale_val, val, in ad4851_get_scale()
|
| H A D | ad9467.c | 138 const unsigned int (*scale_table)[2]; member 278 tmp = (info->scale_table[index][0] * 1000000ULL) >> in __ad9467_get_scale() 343 .scale_table = ad9467_scale_table, 360 .scale_table = ad9434_scale_table, 376 .scale_table = ad9265_scale_table, 394 .scale_table = ad9643_scale_table, 412 .scale_table = ad9649_scale_table, 429 .scale_table = ad9652_scale_table, 459 if (vref_val == info->scale_table[i][1]) in ad9467_get_scale() 491 info->scale_table[i][1]); in ad9467_set_scale()
|
| /linux-6.15/drivers/iio/imu/bmi323/ |
| H A D | bmi323_core.c | 78 const int (*scale_table)[2]; member 110 .scale_table = bmi323_accel_scale, 116 .scale_table = bmi323_gyro_scale, 1645 *val2 = bmi323_hw[sensor].scale_table[scale_raw][1]; in bmi323_get_scale() 1658 if (val == bmi323_hw[sensor].scale_table[scale_raw][0] && in bmi323_set_scale() 1659 val2 == bmi323_hw[sensor].scale_table[scale_raw][1]) in bmi323_set_scale() 1687 *vals = (const int *)bmi323_hw[sensor].scale_table; in bmi323_read_avail()
|