Searched refs:bat_cap (Results 1 – 2 of 2) sorted by relevance
226 struct ab8500_fg_battery_capacity bat_cap; member997 return (cap_mah * 1000) / di->bat_cap.max_mah_design; in ab8500_fg_convert_mah_to_permille()1009 return cap_pm * di->bat_cap.max_mah_design / 1000; in ab8500_fg_convert_permille_to_mah()1045 di->bat_cap.mah, in ab8500_fg_calc_cap_charging()1049 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_charging()1050 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_charging()1052 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_charging()1057 if (di->bat_cap.mah >= di->bat_cap.max_mah_design || in ab8500_fg_calc_cap_charging()1059 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_charging()1062 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()[all …]
43 int bat_cap; member168 power->bat_cap = res->plc[1]; in nvec_power_bat_notifier()250 val->intval = power->bat_cap; in nvec_battery_get_property()