Searched refs:bat_cap (Results 1 – 2 of 2) sorted by relevance
227 struct ab8500_fg_battery_capacity bat_cap; member1007 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 …]
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()