Home
last modified time | relevance | path

Searched refs:voltage_uV (Results 1 – 8 of 8) sorted by relevance

/openbmc/u-boot/drivers/power/mfd/
H A Dfg_max77693.c61 max77693_get_vcell(&pb->bat->voltage_uV); in power_update_battery()
94 pb->bat->voltage_uV / 1000000, in power_check_battery()
95 pb->bat->voltage_uV % 1000000, in power_check_battery()
98 if (pb->bat->voltage_uV > 3850000) in power_check_battery()
100 else if (pb->bat->voltage_uV < 3600000 || pb->bat->state_of_chrg < 5) in power_check_battery()
/openbmc/u-boot/drivers/power/fuel_gauge/
H A Dfg_max17042.c209 pb->bat->voltage_uV = ((val & 0xFFUL) >> 3) + ((val & 0xFF00) >> 3); in power_update_battery()
210 pb->bat->voltage_uV = (pb->bat->voltage_uV * 625); in power_update_battery()
244 pb->bat->voltage_uV / 1000000, in power_check_battery()
245 pb->bat->voltage_uV % 1000000, in power_check_battery()
248 if (pb->bat->voltage_uV > 3850000) in power_check_battery()
250 else if (pb->bat->voltage_uV < 3600000 || pb->bat->state_of_chrg < 5) in power_check_battery()
/openbmc/linux/drivers/power/supply/
H A Dds2782_battery.c48 int (*get_battery_voltage)(struct ds278x_info *info, int *voltage_uV);
145 static int ds2782_get_voltage(struct ds278x_info *info, int *voltage_uV) in ds2782_get_voltage() argument
157 *voltage_uV = (raw / 32) * 4800; in ds2782_get_voltage()
185 static int ds2786_get_voltage(struct ds278x_info *info, int *voltage_uV) in ds2786_get_voltage() argument
197 *voltage_uV = (raw / 8) * 1220; in ds2786_get_voltage()
H A Dds2760_battery.c96 int voltage_uV; /* units of µV */ member
286 di->voltage_uV = di->voltage_raw * 4880; in ds2760_battery_read_status()
554 val->intval = di->voltage_uV; in ds2760_battery_get_property()
H A Dds2781_battery.c160 int *voltage_uV) in ds2781_get_voltage() argument
183 *voltage_uV = voltage_raw * 9760; in ds2781_get_voltage()
H A Dds2780_battery.c156 int *voltage_uV) in ds2780_get_voltage() argument
179 *voltage_uV = (voltage_raw / 32) * 4880; in ds2780_get_voltage()
/openbmc/u-boot/include/power/
H A Dbattery.h15 unsigned int voltage_uV; member
/openbmc/u-boot/drivers/power/battery/
H A Dbat_trats.c34 debug(" %d [V]", battery->voltage_uV); in power_battery_charge()