Searched refs:now_cap (Results 1 - 2 of 2) sorted by relevance
/device/soc/rockchip/common/vendor/drivers/power/ |
H A D | rk817_battery.c | 1563 int now_cap = rk817_bat_get_capacity_mah(battery);
in is_rk817_bat_last_halt() local 1565 if (abs(now_cap - pre_cap) > (battery->fcc / 10)) {
in is_rk817_bat_last_halt() 1672 int now_cap, pre_soc, pre_cap, ocv_cap, ocv_soc, ocv_vol;
in rk817_bat_not_first_pwron() local 1677 now_cap = rk817_bat_get_capacity_mah(battery);
in rk817_bat_not_first_pwron() 1685 BAT_INFO("system halt last time... cap: pre=%d, now=%d\n", pre_cap, now_cap);
in rk817_bat_not_first_pwron() 1686 if (now_cap < 0) {
in rk817_bat_not_first_pwron() 1687 now_cap = 0;
in rk817_bat_not_first_pwron() 1689 rk817_bat_init_coulomb_cap(battery, now_cap);
in rk817_bat_not_first_pwron() 1690 pre_cap = now_cap;
in rk817_bat_not_first_pwron()
|
/device/soc/rockchip/rk3588/kernel/drivers/power/supply/ |
H A D | rk817_battery.c | 1500 int now_cap = rk817_bat_get_capacity_mah(battery); in is_rk817_bat_last_halt() local 1503 if (abs(now_cap - pre_cap) > (battery->fcc / 10)) { in is_rk817_bat_last_halt() 1612 int now_cap, pre_soc, pre_cap, ocv_cap, ocv_soc, ocv_vol; in rk817_bat_not_first_pwron() local 1617 now_cap = rk817_bat_get_capacity_mah(battery); in rk817_bat_not_first_pwron() 1626 pre_cap, now_cap); in rk817_bat_not_first_pwron() 1627 if (now_cap < 0) in rk817_bat_not_first_pwron() 1628 now_cap = 0; in rk817_bat_not_first_pwron() 1629 rk817_bat_init_coulomb_cap(battery, now_cap); in rk817_bat_not_first_pwron() 1630 pre_cap = now_cap; in rk817_bat_not_first_pwron()
|
Completed in 10 milliseconds