Home
last modified time | relevance | path

Searched refs:voltage_uv (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/drivers/iio/adc/
Dad7780.c112 int voltage_uv; in ad7780_read_raw() local
118 voltage_uv = regulator_get_voltage(st->reg); in ad7780_read_raw()
119 if (voltage_uv < 0) in ad7780_read_raw()
120 return voltage_uv; in ad7780_read_raw()
121 voltage_uv /= 1000; in ad7780_read_raw()
122 *val = voltage_uv * st->gain; in ad7780_read_raw()
124 st->int_vref_mv = voltage_uv; in ad7780_read_raw()
Dad7791.c288 int voltage_uv; in ad7791_read_raw() local
290 voltage_uv = regulator_get_voltage(st->reg); in ad7791_read_raw()
291 if (voltage_uv < 0) in ad7791_read_raw()
292 return voltage_uv; in ad7791_read_raw()
294 *val = voltage_uv / 1000; in ad7791_read_raw()
/kernel/linux/linux-5.10/drivers/iio/dac/
Dad5624r_spi.c226 int ret, voltage_uv = 0; in ad5624r_probe() local
242 voltage_uv = ret; in ad5624r_probe()
257 voltage_uv = ret; in ad5624r_probe()
265 if (voltage_uv) in ad5624r_probe()
266 st->vref_mv = voltage_uv / 1000; in ad5624r_probe()
279 !!voltage_uv, 16); in ad5624r_probe()
Dad5686.c427 int ret, i, voltage_uv = 0; in ad5686_probe() local
450 voltage_uv = ret; in ad5686_probe()
455 if (voltage_uv) in ad5686_probe()
456 st->vref_mv = voltage_uv / 1000; in ad5686_probe()
476 st->use_internal_vref = !voltage_uv; in ad5686_probe()
481 st->use_internal_vref = !voltage_uv; in ad5686_probe()
490 st->use_internal_vref = !voltage_uv; in ad5686_probe()
497 val = (voltage_uv | ref_bit_msk); in ad5686_probe()
Dad5504.c277 int ret, voltage_uv = 0; in ad5504_probe() local
292 voltage_uv = ret; in ad5504_probe()
297 if (voltage_uv) in ad5504_probe()
298 st->vref_mv = voltage_uv / 1000; in ad5504_probe()
Dad5446.c230 int ret, voltage_uv = 0; in ad5446_probe() local
242 voltage_uv = ret; in ad5446_probe()
269 else if (voltage_uv) in ad5446_probe()
270 st->vref_mv = voltage_uv / 1000; in ad5446_probe()
/kernel/linux/linux-5.10/drivers/hwmon/
Dina3221.c436 int resistance_uo, current_ma, voltage_uv; in ina3221_write_curr() local
452 voltage_uv = DIV_ROUND_CLOSEST(current_ma * resistance_uo, 1000); in ina3221_write_curr()
455 voltage_uv = clamp_val(voltage_uv, -163800, 163800); in ina3221_write_curr()
469 regval = DIV_ROUND_CLOSEST(voltage_uv, 20) & 0xfffe; in ina3221_write_curr()
471 regval = DIV_ROUND_CLOSEST(voltage_uv, 5) & 0xfff8; in ina3221_write_curr()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dqmi_wlfw_v01.h517 u64 voltage_uv; member
Dqmi_wlfw_v01.c1689 voltage_uv),