Home
last modified time | relevance | path

Searched refs:scale_uv (Results 1 – 7 of 7) sorted by relevance

/drivers/iio/adc/
Dad7476.c105 int scale_uv; in ad7476_read_raw() local
123 scale_uv = regulator_get_voltage(st->reg); in ad7476_read_raw()
124 if (scale_uv < 0) in ad7476_read_raw()
125 return scale_uv; in ad7476_read_raw()
127 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw()
129 *val = scale_uv / 1000; in ad7476_read_raw()
Dad7793.c261 unsigned long long scale_uv; in ad7793_setup() local
331 scale_uv = ((u64)vref_mv * 100000000) in ad7793_setup()
334 scale_uv >>= i; in ad7793_setup()
336 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7793_setup()
337 st->scale_avail[i][0] = scale_uv; in ad7793_setup()
462 unsigned long long scale_uv; in ad7793_read_raw() local
484 scale_uv = (1170ULL * 1000000000ULL * 6ULL); in ad7793_read_raw()
489 scale_uv = 1444444444444444ULL; in ad7793_read_raw()
495 scale_uv >>= (chan->scan_type.realbits - (unipolar ? 0 : 1)); in ad7793_read_raw()
497 *val2 = scale_uv; in ad7793_read_raw()
/drivers/iio/dac/
Dad5449.c136 int scale_uv; in ad5449_read_raw() local
154 scale_uv = regulator_get_voltage(reg->consumer); in ad5449_read_raw()
155 if (scale_uv < 0) in ad5449_read_raw()
156 return scale_uv; in ad5449_read_raw()
158 *val = scale_uv / 1000; in ad5449_read_raw()
Dad5360.c375 int scale_uv; in ad5360_read_raw() local
387 scale_uv = ad5360_get_channel_vref(st, chan->channel); in ad5360_read_raw()
388 if (scale_uv < 0) in ad5360_read_raw()
389 return scale_uv; in ad5360_read_raw()
392 *val = scale_uv * 4 / 1000; in ad5360_read_raw()
Dad5064.c235 int scale_uv; in ad5064_read_raw() local
242 scale_uv = ad5064_get_vref(st, chan); in ad5064_read_raw()
243 if (scale_uv < 0) in ad5064_read_raw()
244 return scale_uv; in ad5064_read_raw()
246 *val = scale_uv / 1000; in ad5064_read_raw()
/drivers/staging/iio/adc/
Dad7192.c214 unsigned long long scale_uv; in ad7192_setup() local
302 scale_uv = ((u64)st->int_vref_mv * 100000000) in ad7192_setup()
305 scale_uv >>= i; in ad7192_setup()
307 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7192_setup()
308 st->scale_avail[i][0] = scale_uv; in ad7192_setup()
Dmxs-lradc.c1604 u64 scale_uv; in mxs_lradc_probe() local
1699 scale_uv = ((u64)lradc->vref_mv[i] * 100000000) >> in mxs_lradc_probe()
1702 do_div(scale_uv, 100000000) * 10; in mxs_lradc_probe()
1703 lradc->scale_avail[i][s].integer = scale_uv; in mxs_lradc_probe()