Home
last modified time | relevance | path

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

/drivers/iio/gyro/
Dadis16080.c32 int scale_val; member
92 *val = st->info->scale_val; in adis16080_read_raw()
175 .scale_val = 80,
180 .scale_val = 300,
/drivers/iio/
Dinkern.c591 int scale_type, scale_val, scale_val2, offset; in iio_convert_raw_to_processed_unlocked() local
599 scale_type = iio_channel_read(chan, &scale_val, &scale_val2, in iio_convert_raw_to_processed_unlocked()
612 *processed = raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
616 *processed = -raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
618 *processed = raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
624 *processed = -raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
626 *processed = raw64 * scale_val; in iio_convert_raw_to_processed_unlocked()
631 *processed = div_s64(raw64 * (s64)scale_val * scale, in iio_convert_raw_to_processed_unlocked()
635 *processed = (raw64 * (s64)scale_val * scale) >> scale_val2; in iio_convert_raw_to_processed_unlocked()
/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()