Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/drivers/power/fuel_gauge/
H A Dfg_rk817.c1044 int pre_cap = rk817_bat_get_prev_cap(battery); in is_rk817_bat_last_halt() local
1051 if (now_cap > pre_cap) { in is_rk817_bat_last_halt()
1052 if (abs(now_cap - pre_cap) > (battery->fcc / 10)) { in is_rk817_bat_last_halt()
1059 if (abs(battery->nac - pre_cap) > (battery->fcc / 5)) { in is_rk817_bat_last_halt()
1098 int now_soc, now_cap, pre_soc, pre_cap; in rk817_bat_not_first_pwron() local
1102 pre_cap = rk817_bat_get_prev_cap(battery); in rk817_bat_not_first_pwron()
1110 DBG("now_cap: %d, pre_cap: %d\n", now_cap, pre_cap); in rk817_bat_not_first_pwron()
1112 if ((now_cap > 0) && (now_cap > pre_cap + 10)) { in rk817_bat_not_first_pwron()
1118 pre_soc += (now_soc - pre_cap * 1000 * 100 / battery->fcc); in rk817_bat_not_first_pwron()
1119 pre_cap = now_cap; in rk817_bat_not_first_pwron()
[all …]
H A Dfg_rk816.c837 int pre_cap = rk816_bat_get_prev_cap(di); in is_rk816_bat_last_halt() local
841 if (abs(now_cap - pre_cap) > (di->fcc / 20)) { in is_rk816_bat_last_halt()
851 int pre_soc, pre_cap, ocv_cap, ocv_soc, ocv_vol, now_cap; in rk816_bat_not_first_pwron() local
855 pre_cap = rk816_bat_get_prev_cap(di); in rk816_bat_not_first_pwron()
865 pre_cap, now_cap); in rk816_bat_not_first_pwron()
869 pre_cap = di->remain_cap; in rk816_bat_not_first_pwron()
876 pre_cap = ocv_cap; in rk816_bat_not_first_pwron()
889 di->nac = pre_cap; in rk816_bat_not_first_pwron()
H A Dfg_rk818.c846 int pre_cap = rk818_bat_get_prev_cap(di); in is_rk818_bat_last_halt() local
850 if (abs(now_cap - pre_cap) > (di->fcc / 20)) { in is_rk818_bat_last_halt()
860 int pre_soc, pre_cap, ocv_cap = 0, ocv_soc = 0, ocv_vol, now_cap; in rk818_bat_not_first_pwron() local
865 pre_cap = rk818_bat_get_prev_cap(di); in rk818_bat_not_first_pwron()
876 pre_cap, now_cap); in rk818_bat_not_first_pwron()
880 pre_cap = di->remain_cap; in rk818_bat_not_first_pwron()
887 pre_cap = ocv_cap; in rk818_bat_not_first_pwron()
901 pre_cap = di->remain_cap; in rk818_bat_not_first_pwron()
907 di->nac = pre_cap; in rk818_bat_not_first_pwron()