Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/power/supply/
Dab8500_fg.c227 struct ab8500_fg_battery_capacity bat_cap; member
1007 return (cap_mah * 1000) / di->bat_cap.max_mah_design; in ab8500_fg_convert_mah_to_permille()
1019 return cap_pm * di->bat_cap.max_mah_design / 1000; in ab8500_fg_convert_permille_to_mah()
1060 di->bat_cap.mah, in ab8500_fg_calc_cap_charging()
1064 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_charging()
1065 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_charging()
1067 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_charging()
1072 if (di->bat_cap.mah >= di->bat_cap.max_mah_design || in ab8500_fg_calc_cap_charging()
1074 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_charging()
1077 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()
[all …]
/linux-6.6.21/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()