Home
last modified time | relevance | path

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

/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()
/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.c452 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()
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()
/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()
/drivers/power/supply/
Dab8500_fg.c341 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()
Dab8500_charger.c1011 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()
/drivers/net/wireless/ath/ath10k/
Dqmi_wlfw_v01.h517 u64 voltage_uv; member
Dqmi_wlfw_v01.c1689 voltage_uv),