Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/iio/adc/
Dad7476.c108 int scale_uv; in ad7476_read_raw() local
125 scale_uv = regulator_get_voltage(st->reg); in ad7476_read_raw()
126 if (scale_uv < 0) in ad7476_read_raw()
127 return scale_uv; in ad7476_read_raw()
129 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw()
131 *val = scale_uv / 1000; in ad7476_read_raw()
Dad7766.c134 int scale_uv; in ad7766_read_raw() local
138 scale_uv = regulator_get_voltage(vref); in ad7766_read_raw()
139 if (scale_uv < 0) in ad7766_read_raw()
140 return scale_uv; in ad7766_read_raw()
141 *val = scale_uv / 1000; in ad7766_read_raw()
Dad7793.c261 unsigned long long scale_uv; in ad7793_setup() local
330 scale_uv = ((u64)vref_mv * 100000000) in ad7793_setup()
333 scale_uv >>= i; in ad7793_setup()
335 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7793_setup()
336 st->scale_avail[i][0] = scale_uv; in ad7793_setup()
404 unsigned long long scale_uv; in ad7793_read_raw() local
426 scale_uv = (1170ULL * 1000000000ULL * 6ULL); in ad7793_read_raw()
430 scale_uv = 1444444444444444ULL; in ad7793_read_raw()
436 scale_uv >>= (chan->scan_type.realbits - (unipolar ? 0 : 1)); in ad7793_read_raw()
438 *val2 = scale_uv; in ad7793_read_raw()
Dmxs-lradc-adc.c704 u64 scale_uv; in mxs_lradc_adc_probe() local
791 scale_uv = ((u64)adc->vref_mv[i] * 100000000) >> in mxs_lradc_adc_probe()
794 do_div(scale_uv, 100000000) * 10; in mxs_lradc_adc_probe()
795 adc->scale_avail[i][s].integer = scale_uv; in mxs_lradc_adc_probe()
/Linux-v4.19/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.c321 int scale_uv; in ad5064_read_raw() local
328 scale_uv = ad5064_get_vref(st, chan); in ad5064_read_raw()
329 if (scale_uv < 0) in ad5064_read_raw()
330 return scale_uv; in ad5064_read_raw()
332 *val = scale_uv / 1000; in ad5064_read_raw()
/Linux-v4.19/drivers/staging/iio/adc/
Dad7192.c233 unsigned long long scale_uv; in ad7192_setup() local
325 scale_uv = ((u64)st->int_vref_mv * 100000000) in ad7192_setup()
328 scale_uv >>= i; in ad7192_setup()
330 st->scale_avail[i][1] = do_div(scale_uv, 100000000) * 10; in ad7192_setup()
331 st->scale_avail[i][0] = scale_uv; in ad7192_setup()