Searched refs:ydsoc (Results 1 - 2 of 2) sorted by relevance
/device/soc/rockchip/common/vendor/drivers/power/ |
H A D | rk817_battery.c | 2449 int ydsoc = 0, delta_cap = 0, old_cap = 0, tmp_soc;
in rk817_bat_smooth_algorithm() local 2480 /* discharge: sm_linek < 0, if delate_cap <0, ydsoc > 0 */
in rk817_bat_smooth_algorithm() 2481 ydsoc = battery->sm_linek * abs(delta_cap / 0x0A) / DIV(battery->fcc);
in rk817_bat_smooth_algorithm() 2483 DBG("smooth: ydsoc = %d, fcc = %d\n", ydsoc, battery->fcc);
in rk817_bat_smooth_algorithm() 2484 if (ydsoc == 0) {
in rk817_bat_smooth_algorithm() 2485 DBG("<%s>. ydsoc = 0\n", __func__);
in rk817_bat_smooth_algorithm() 2490 DBG("<%s>. k=%d, ydsoc=%d; cap:old=%d, new:%d; delta_cap=%d\n", __func__, battery->sm_linek, ydsoc, old_cap,
in rk817_bat_smooth_algorithm() 2494 /* discharge mode, but ydsoc > in rk817_bat_smooth_algorithm() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/power/supply/ |
H A D | rk817_battery.c | 2399 int ydsoc = 0, delta_cap = 0, old_cap = 0, tmp_soc; in rk817_bat_smooth_algorithm() local 2436 /* discharge: sm_linek < 0, if delate_cap <0, ydsoc > 0 */ in rk817_bat_smooth_algorithm() 2437 ydsoc = battery->sm_linek * abs(delta_cap / 10) / DIV(battery->fcc); in rk817_bat_smooth_algorithm() 2439 DBG("smooth: ydsoc = %d, fcc = %d\n", ydsoc, battery->fcc); in rk817_bat_smooth_algorithm() 2440 if (ydsoc == 0) { in rk817_bat_smooth_algorithm() 2441 DBG("<%s>. ydsoc = 0\n", __func__); in rk817_bat_smooth_algorithm() 2446 DBG("<%s>. k=%d, ydsoc=%d; cap:old=%d, new:%d; delta_cap=%d\n", in rk817_bat_smooth_algorithm() 2447 __func__, battery->sm_linek, ydsoc, old_cap, in rk817_bat_smooth_algorithm() 2451 /* discharge mode, but ydsoc > in rk817_bat_smooth_algorithm() [all...] |
Completed in 9 milliseconds