Searched refs:voltage_uv (Results 1 – 11 of 11) sorted by relevance
/linux-5.19.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()
|
/linux-5.19.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 | 452 int ret, i, voltage_uv = 0; in ad5686_probe() local 475 voltage_uv = ret; in ad5686_probe() 480 if (voltage_uv) in ad5686_probe() 481 st->vref_mv = voltage_uv / 1000; in ad5686_probe() 501 st->use_internal_vref = !voltage_uv; in ad5686_probe() 506 st->use_internal_vref = !voltage_uv; in ad5686_probe() 515 st->use_internal_vref = !voltage_uv; in ad5686_probe() 522 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()
|
/linux-5.19.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()
|
/linux-5.19.10/drivers/power/supply/ |
D | ab8500_fg.c | 341 static u8 ab8500_volt_to_regval(int voltage_uv) in ab8500_volt_to_regval() argument 345 if (voltage_uv < ab8500_fg_lowbat_voltage_map[0]) in ab8500_volt_to_regval() 349 if (voltage_uv < ab8500_fg_lowbat_voltage_map[i]) in ab8500_volt_to_regval() 857 static int ab8500_fg_volt_to_capacity(struct ab8500_fg *di, int voltage_uv) in ab8500_fg_volt_to_capacity() argument 862 return power_supply_batinfo_ocv2cap(bi, voltage_uv, di->bat_temp) * 10; in ab8500_fg_volt_to_capacity()
|
D | ab8500_charger.c | 1011 static int ab8500_voltage_to_regval(int voltage_uv) in ab8500_voltage_to_regval() argument 1016 if (voltage_uv < ab8500_charger_voltage_map[0]) in ab8500_voltage_to_regval() 1020 if (voltage_uv < ab8500_charger_voltage_map[i]) in ab8500_voltage_to_regval() 1026 if (voltage_uv == ab8500_charger_voltage_map[i]) in ab8500_voltage_to_regval()
|
/linux-5.19.10/drivers/net/wireless/ath/ath10k/ |
D | qmi_wlfw_v01.h | 517 u64 voltage_uv; member
|
D | qmi_wlfw_v01.c | 1689 voltage_uv),
|