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/adc/
Dad9467.c303 unsigned int scale_val[2]; in ad9467_set_scale() local
311 __ad9467_get_scale(conv, i, &scale_val[0], &scale_val[1]); in ad9467_set_scale()
312 if (scale_val[0] != val || scale_val[1] != val2) in ad9467_set_scale()
/drivers/iio/
Dinkern.c585 int scale_type, scale_val, scale_val2; in iio_convert_raw_to_processed_unlocked() local
615 scale_type = iio_channel_read(chan, &scale_val, &scale_val2, in iio_convert_raw_to_processed_unlocked()
628 *processed = raw64 * scale_val * scale; in iio_convert_raw_to_processed_unlocked()
632 *processed = -raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
634 *processed = raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
640 *processed = -raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
642 *processed = raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
647 *processed = div_s64(raw64 * (s64)scale_val * scale, in iio_convert_raw_to_processed_unlocked()
651 *processed = (raw64 * (s64)scale_val * scale) >> scale_val2; in iio_convert_raw_to_processed_unlocked()
/drivers/iio/accel/
Dstk8ba50.c66 u32 scale_val; member
236 *val2 = stk8ba50_scale_table[data->range].scale_val; in stk8ba50_read_raw()
263 if (val2 == stk8ba50_scale_table[i].scale_val) { in stk8ba50_write_raw()