Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/drivers/power/fuel_gauge/
H A Dfg_rk816.c136 int dsoc; member
815 di->dsoc = di->rsoc; in rk816_bat_first_pwron()
819 BAT_INFO("first power on: soc=%d\n", di->dsoc); in rk816_bat_first_pwron()
888 di->dsoc = pre_soc; in rk816_bat_not_first_pwron()
893 di->dsoc, di->rsoc, di->remain_cap, di->pwroff_min, in rk816_bat_not_first_pwron()
935 di->calc_dsoc = di->dsoc; in rk816_bat_calc_linek()
939 delta = abs(di->dsoc - di->rsoc); in rk816_bat_calc_linek()
941 di->sm_meet_soc = (di->dsoc >= di->rsoc) ? in rk816_bat_calc_linek()
942 (di->dsoc + diff) : (di->rsoc + diff); in rk816_bat_calc_linek()
944 if (di->dsoc < di->rsoc) in rk816_bat_calc_linek()
[all …]
H A Dfg_rk818.c175 int dsoc; member
818 di->dsoc = di->rsoc; in rk818_bat_first_pwron()
824 rk818_bat_save_dsoc(di, di->dsoc); in rk818_bat_first_pwron()
828 di->dsoc, vol, ocv_vol, curr, rk818_bat_get_usb_state(di), di->fcc); in rk818_bat_first_pwron()
906 di->dsoc = pre_soc; in rk818_bat_not_first_pwron()
909 rk818_bat_save_dsoc(di, di->dsoc); in rk818_bat_not_first_pwron()
912 di->dsoc, di->rsoc, di->remain_cap, di->pwroff_min, in rk818_bat_not_first_pwron()
973 } else if ((di->dsoc == 0) && (voltage >= ZERO_MIN_VOLTAGE)) { in rk818_bat_init_rsoc()
998 di->calc_dsoc = di->dsoc; in rk818_bat_calc_linek()
1002 delta = abs(di->dsoc - di->rsoc); in rk818_bat_calc_linek()
[all …]
H A Dfg_rk817.c273 int dsoc; member
1001 battery->dsoc = battery->rsoc; in rk817_bat_first_pwron()
1010 __func__, battery->rsoc, battery->dsoc, battery->fcc, battery->nac); in rk817_bat_first_pwron()
1131 battery->dsoc = pre_soc; in rk817_bat_not_first_pwron()
1132 if (battery->dsoc > 100000) in rk817_bat_not_first_pwron()
1133 battery->dsoc = 100000; in rk817_bat_not_first_pwron()
1139 battery->dsoc, battery->nac, rk817_bat_get_battery_voltage(battery), in rk817_bat_not_first_pwron()
1176 battery->smooth_soc = battery->dsoc; in rk817_bat_rsoc_init()
1179 rk817_bat_save_dsoc(battery, battery->dsoc); in rk817_bat_rsoc_init()
1188 (MAX_PERCENTAGE * MAX_INTERPOLATE - battery->rsoc + battery->dsoc); in rk817_bat_calc_linek()
[all …]