Searched refs:voltage_uv (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/iio/adc/ |
| H A 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()
|
| H A D | ad7791.c | 289 int voltage_uv; in ad7791_read_raw() local 291 voltage_uv = regulator_get_voltage(st->reg); in ad7791_read_raw() 292 if (voltage_uv < 0) in ad7791_read_raw() 293 return voltage_uv; in ad7791_read_raw() 295 *val = voltage_uv / 1000; in ad7791_read_raw()
|
| /linux/drivers/hwmon/ |
| H A D | ina3221.c | 439 int resistance_uo, current_ma, voltage_uv; in ina3221_write_curr() local 455 voltage_uv = DIV_ROUND_CLOSEST(current_ma * resistance_uo, 1000); in ina3221_write_curr() 458 voltage_uv = clamp_val(voltage_uv, -163800, 163800); in ina3221_write_curr() 472 regval = DIV_ROUND_CLOSEST(voltage_uv, 20) & 0xfffe; in ina3221_write_curr() 474 regval = DIV_ROUND_CLOSEST(voltage_uv, 5) & 0xfff8; in ina3221_write_curr()
|
| /linux/drivers/power/supply/ |
| H A D | ab8500_fg.c | 336 static u8 ab8500_volt_to_regval(int voltage_uv) in ab8500_volt_to_regval() argument 340 if (voltage_uv < ab8500_fg_lowbat_voltage_map[0]) in ab8500_volt_to_regval() 344 if (voltage_uv < ab8500_fg_lowbat_voltage_map[i]) in ab8500_volt_to_regval() 852 static int ab8500_fg_volt_to_capacity(struct ab8500_fg *di, int voltage_uv) in ab8500_fg_volt_to_capacity() argument 857 return power_supply_batinfo_ocv2cap(bi, voltage_uv, di->bat_temp) * 10; in ab8500_fg_volt_to_capacity()
|
| H A D | ab8500_charger.c | 1023 static int ab8500_voltage_to_regval(int voltage_uv) in ab8500_voltage_to_regval() argument 1028 if (voltage_uv < ab8500_charger_voltage_map[0]) in ab8500_voltage_to_regval() 1032 if (voltage_uv < ab8500_charger_voltage_map[i]) in ab8500_voltage_to_regval() 1038 if (voltage_uv == ab8500_charger_voltage_map[i]) in ab8500_voltage_to_regval()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | qmi_wlfw_v01.h | 518 u64 voltage_uv; member
|
| H A D | qmi_wlfw_v01.c | 1690 voltage_uv),
|