Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iio/gyro/
Dadis16080.c33 int scale_val2; member
95 *val2 = st->info->scale_val2; in adis16080_read_raw()
178 .scale_val2 = 46925,
183 .scale_val2 = 70474,
/linux-6.12.1/drivers/iio/
Dinkern.c603 int scale_type, scale_val, scale_val2; in iio_convert_raw_to_processed_unlocked() local
633 scale_type = iio_channel_read(chan, &scale_val, &scale_val2, in iio_convert_raw_to_processed_unlocked()
649 if (scale_val2 < 0) in iio_convert_raw_to_processed_unlocked()
653 *processed += div_s64(raw64 * (s64)scale_val2 * scale, in iio_convert_raw_to_processed_unlocked()
657 if (scale_val2 < 0) in iio_convert_raw_to_processed_unlocked()
661 *processed += div_s64(raw64 * (s64)scale_val2 * scale, in iio_convert_raw_to_processed_unlocked()
666 scale_val2); in iio_convert_raw_to_processed_unlocked()
669 *processed = (raw64 * (s64)scale_val * scale) >> scale_val2; in iio_convert_raw_to_processed_unlocked()
/linux-6.12.1/drivers/iio/adc/
Dpac1921.c501 int scale_val, int scale_val2) in pac1921_lookup_scale() argument
505 scales_tbl[i][1] == scale_val2) in pac1921_lookup_scale()
544 int scale_val, int scale_val2) in pac1921_update_gain_from_scale() argument
552 scale_val, scale_val2); in pac1921_update_gain_from_scale()
561 scale_val, scale_val2); in pac1921_update_gain_from_scale()
570 scale_val, scale_val2); in pac1921_update_gain_from_scale()