Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Drk817_charger.c82 int fcc_mah; member
224 rsoc = (charger->soc * charger->fcc_mah) / 100000; in rk817_record_battery_nvram_values()
231 put_unaligned_le24(charger->fcc_mah, bulk_reg); in rk817_record_battery_nvram_values()
261 charge_now_adc = CHARGE_TO_ADC(charger->fcc_mah, in rk817_bat_calib_cap()
270 charger->soc, charger->fcc_mah * 1000); in rk817_bat_calib_cap()
289 if (charge_now / 1000 > charger->fcc_mah) { in rk817_bat_calib_cap()
298 charge_now_adc = CHARGE_TO_ADC(charger->fcc_mah, in rk817_bat_calib_cap()
331 charger->fcc_mah = charger->fcc_mah - (charge_now / 1000); in rk817_bat_calib_cap()
335 charger->fcc_mah * 1000); in rk817_bat_calib_cap()
385 if (charger->charge_now_uah > charger->fcc_mah * 1000) in rk817_read_props()
[all …]