Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/iio/adc/
Dmax11100.c74 int ret, vref_uv; in max11100_read_raw() local
86 vref_uv = regulator_get_voltage(state->vref_reg); in max11100_read_raw()
87 if (vref_uv < 0) in max11100_read_raw()
91 *val = vref_uv / 1000; in max11100_read_raw()
Dnpcm_adc.c138 int vref_uv; in npcm_adc_read_raw() local
153 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
154 *val = vref_uv / 1000; in npcm_adc_read_raw()
Dimx7d_adc.c111 u32 vref_uv; member
318 info->vref_uv = regulator_get_voltage(info->vref); in imx7d_adc_read_raw()
319 *val = info->vref_uv / 1000; in imx7d_adc_read_raw()
Dmax1363.c183 u32 vref_uv; member
429 *val = st->vref_uv / 1000; in max1363_read_raw()
1608 st->vref_uv = st->chip_info->int_vref_mv * 1000; in max1363_probe()
1611 int vref_uv; in max1363_probe() local
1617 vref_uv = regulator_get_voltage(vref); in max1363_probe()
1618 if (vref_uv <= 0) { in max1363_probe()
1622 st->vref_uv = vref_uv; in max1363_probe()
Dvf610_adc.c160 u32 vref_uv; member
679 *val = info->vref_uv / 1000; in vf610_read_raw()
850 info->vref_uv = regulator_get_voltage(info->vref); in vf610_adc_probe()
Dat91-sama5d2_adc.c390 int vref_uv; member
1381 *val = st->vref_uv / 1000; in at91_adc_read_raw()
1760 st->vref_uv = regulator_get_voltage(st->vref); in at91_adc_probe()
1761 if (st->vref_uv <= 0) { in at91_adc_probe()
/Linux-v5.4/drivers/iio/dac/
Dad7303.c115 int vref_uv; in ad7303_read_raw() local
122 vref_uv = ad7303_get_vref(st, chan); in ad7303_read_raw()
123 if (vref_uv < 0) in ad7303_read_raw()
124 return vref_uv; in ad7303_read_raw()
126 *val = 2 * vref_uv / 1000; in ad7303_read_raw()
/Linux-v5.4/drivers/hwmon/
Dads7828.c110 unsigned int vref_uv; in ads7828_probe() local
131 vref_uv = regulator_get_voltage(reg); in ads7828_probe()
132 vref_mv = DIV_ROUND_CLOSEST(vref_uv, 1000); in ads7828_probe()