Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/power/supply/
Drk817_charger.c734 u32 boot_voltage, boot_charge_mah, tmp; in rk817_read_or_set_full_charge_on_boot() local
790 boot_charge_mah = ADC_TO_CHARGE_UAH(tmp, in rk817_read_or_set_full_charge_on_boot()
816 charger->soc = (boot_charge_mah * 1000 * 100 / in rk817_read_or_set_full_charge_on_boot()
830 boot_charge_mah = ADC_TO_CHARGE_UAH(tmp, charger->res_div) / 1000; in rk817_read_or_set_full_charge_on_boot()
840 boot_charge_mah = charger->soc * charger->fcc_mah / 100 / 1000; in rk817_read_or_set_full_charge_on_boot()
841 if (boot_charge_mah > charger->fcc_mah) in rk817_read_or_set_full_charge_on_boot()
842 boot_charge_mah = charger->fcc_mah; in rk817_read_or_set_full_charge_on_boot()
843 tmp = CHARGE_TO_ADC(boot_charge_mah, charger->res_div); in rk817_read_or_set_full_charge_on_boot()