Searched refs:bat_cap (Results 1 – 2 of 2) sorted by relevance
224 struct ab8500_fg_battery_capacity bat_cap; member990 return (cap_mah * 1000) / di->bat_cap.max_mah_design; in ab8500_fg_convert_mah_to_permille()1002 return cap_pm * di->bat_cap.max_mah_design / 1000; in ab8500_fg_convert_permille_to_mah()1038 di->bat_cap.mah, in ab8500_fg_calc_cap_charging()1042 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_charging()1043 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_charging()1045 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_charging()1050 if (di->bat_cap.mah >= di->bat_cap.max_mah_design || in ab8500_fg_calc_cap_charging()1052 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_charging()1055 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()[all …]
39 int bat_cap; member164 power->bat_cap = res->plc[1]; in nvec_power_bat_notifier()249 val->intval = power->bat_cap; in nvec_battery_get_property()