Home
last modified time | relevance | path

Searched refs:bat_cap (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/power/supply/
Dab8500_fg.c224 struct ab8500_fg_battery_capacity bat_cap; member
988 return (cap_mah * 1000) / di->bat_cap.max_mah_design; in ab8500_fg_convert_mah_to_permille()
1000 return cap_pm * di->bat_cap.max_mah_design / 1000; in ab8500_fg_convert_permille_to_mah()
1036 di->bat_cap.mah, in ab8500_fg_calc_cap_charging()
1040 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_charging()
1041 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_charging()
1043 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_charging()
1048 if (di->bat_cap.mah >= di->bat_cap.max_mah_design || in ab8500_fg_calc_cap_charging()
1050 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_charging()
1053 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()
[all …]
/Linux-v5.4/drivers/staging/nvec/
Dnvec_power.c39 int bat_cap; member
164 power->bat_cap = res->plc[1]; in nvec_power_bat_notifier()
249 val->intval = power->bat_cap; in nvec_battery_get_property()