Searched refs:dsoc (Results 1 – 9 of 9) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | rk818_battery.c | 192 int dsoc; member 966 if (di->dsoc < 1) in rk818_get_capacity_leve() 968 else if (di->dsoc <= 20) in rk818_get_capacity_leve() 970 else if (di->dsoc <= 70) in rk818_get_capacity_leve() 972 else if (di->dsoc <= 90) in rk818_get_capacity_leve() 1020 val->intval = di->dsoc; in rk818_battery_get_property() 1039 else if (di->dsoc == 100) in rk818_battery_get_property() 1267 di->dsoc = di->rsoc; in rk818_bat_first_pwron() 1271 di->dsoc, di->rsoc, di->nac, di->fcc, ocv_vol); in rk818_bat_first_pwron() 1331 di->dsoc = pre_soc; in rk818_bat_not_first_pwron() [all …]
|
| H A D | rk817_battery.c | 532 int dsoc; member 1529 delta = abs(battery->dsoc - battery->rsoc); in rk817_bat_calc_sm_linek() 1533 if (battery->dsoc < battery->rsoc) in rk817_bat_calc_sm_linek() 1535 else if (battery->dsoc > battery->rsoc) in rk817_bat_calc_sm_linek() 1540 if (battery->dsoc < battery->rsoc) in rk817_bat_calc_sm_linek() 1542 else if (battery->dsoc > battery->rsoc) in rk817_bat_calc_sm_linek() 1548 battery->dbg_meet_soc = (battery->dsoc >= battery->rsoc) ? in rk817_bat_calc_sm_linek() 1549 (battery->dsoc - diff) : (battery->rsoc - diff); in rk817_bat_calc_sm_linek() 1553 battery->dbg_calc_dsoc = battery->dsoc; in rk817_bat_calc_sm_linek() 1559 battery->smooth_soc = battery->dsoc; in rk817_bat_smooth_algo_prepare() [all …]
|
| H A D | rk816_battery.c | 211 int dsoc; member 972 di->dsoc--; in rk816_bat_lowpwr_check() 974 di->dsoc, di->current_avg); in rk816_bat_lowpwr_check() 982 __func__, base2sec(time), di->dsoc, in rk816_bat_lowpwr_check() 1138 if (di->dsoc < 1) in rk816_get_capacity_leve() 1140 else if (di->dsoc <= 20) in rk816_get_capacity_leve() 1142 else if (di->dsoc <= 70) in rk816_get_capacity_leve() 1144 else if (di->dsoc <= 90) in rk816_get_capacity_leve() 1192 val->intval = di->dsoc; in rk816_battery_get_property() 1667 if (di->dsoc == 100 && rk816_bat_chrg_online(di)) in rk816_bat_set_chrg_param() [all …]
|
| H A D | rk818_charger.c | 280 int current_avg, dsoc, fake_offline = 0; in rk818_cg_lowpwr_check() local 286 dsoc = rk818_cg_get_dsoc(cg); in rk818_cg_lowpwr_check() 288 if ((current_avg < 0) && (dsoc == 0)) { in rk818_cg_lowpwr_check() 294 dsoc, current_avg); in rk818_cg_lowpwr_check() 302 __func__, get_boot_sec() - time, dsoc, current_avg, fake_offline); in rk818_cg_lowpwr_check()
|
| /OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/ |
| H A D | fg_rk817.c | 228 int dsoc; member 696 battery->dsoc = battery->rsoc; in rk817_bat_first_pwron() 705 __func__, battery->rsoc, battery->dsoc, battery->fcc, battery->nac); in rk817_bat_first_pwron() 818 battery->dsoc = pre_soc; in rk817_bat_not_first_pwron() 819 if (battery->dsoc > 100000) in rk817_bat_not_first_pwron() 820 battery->dsoc = 100000; in rk817_bat_not_first_pwron() 826 battery->dsoc, battery->nac, rk817_bat_get_battery_voltage(battery), in rk817_bat_not_first_pwron() 863 rk817_bat_save_dsoc(battery, battery->dsoc); in rk817_bat_rsoc_init() 871 battery->calc_dsoc = battery->dsoc; in rk817_bat_calc_linek() 875 delta = abs(battery->dsoc - battery->rsoc); in rk817_bat_calc_linek() [all …]
|
| H A D | fg_rk816.c | 136 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 D | fg_rk818.c | 175 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power_supply/ |
| H A D | rk817-battery.txt | 16 - max_soc_offset: soc threshold of correct dsoc as rsoc
|
| H A D | rk816-battery.txt | 20 - max_soc_offset: soc threshold of correct dsoc as rsoc
|