Searched refs:voltage_uv (Results 1 – 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | ad7780.c | 112 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()
|
D | ad7791.c | 288 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/ |
D | ad5624r_spi.c | 226 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()
|
D | ad5686.c | 427 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()
|
D | ad5504.c | 277 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()
|
D | ad5446.c | 230 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/ |
D | ina3221.c | 436 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/ |
D | qmi_wlfw_v01.h | 517 u64 voltage_uv; member
|
D | qmi_wlfw_v01.c | 1689 voltage_uv),
|