Home
last modified time | relevance | path

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

/drivers/iio/gyro/
Dadis16080.c32 int scale_val; member
94 *val = st->info->scale_val; in adis16080_read_raw()
177 .scale_val = 80,
182 .scale_val = 300,
/drivers/iio/
Dinkern.c632 int scale_type, scale_val, scale_val2; in iio_convert_raw_to_processed_unlocked() local
662 scale_type = iio_channel_read(chan, &scale_val, &scale_val2, in iio_convert_raw_to_processed_unlocked()
675 *processed = raw64 * scale_val * scale; in iio_convert_raw_to_processed_unlocked()
679 *processed = -raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
681 *processed = raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
687 *processed = -raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
689 *processed = raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
694 *processed = div_s64(raw64 * (s64)scale_val * scale, in iio_convert_raw_to_processed_unlocked()
698 *processed = (raw64 * (s64)scale_val * scale) >> scale_val2; in iio_convert_raw_to_processed_unlocked()
/drivers/iio/adc/
Dad9467.c299 unsigned int scale_val[2]; in ad9467_set_scale() local
307 __ad9467_get_scale(st, i, &scale_val[0], &scale_val[1]); in ad9467_set_scale()
308 if (scale_val[0] != val || scale_val[1] != val2) in ad9467_set_scale()
/drivers/iio/accel/
Dstk8ba50.c66 u32 scale_val; member
237 *val2 = stk8ba50_scale_table[data->range].scale_val; in stk8ba50_read_raw()
264 if (val2 == stk8ba50_scale_table[i].scale_val) { in stk8ba50_write_raw()