Lines Matching refs:mah
127 int mah; member
1055 di->bat_cap.mah, in ab8500_fg_calc_cap_charging()
1059 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_charging()
1060 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_charging()
1062 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_charging()
1067 if (di->bat_cap.mah >= di->bat_cap.max_mah_design || in ab8500_fg_calc_cap_charging()
1069 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_charging()
1072 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()
1074 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()
1080 return di->bat_cap.mah; in ab8500_fg_calc_cap_charging()
1093 int permille, mah; in ab8500_fg_calc_cap_discharge_voltage() local
1097 mah = ab8500_fg_convert_permille_to_mah(di, permille); in ab8500_fg_calc_cap_discharge_voltage()
1099 di->bat_cap.mah = ab8500_fg_add_cap_sample(di, mah); in ab8500_fg_calc_cap_discharge_voltage()
1101 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_voltage()
1103 return di->bat_cap.mah; in ab8500_fg_calc_cap_discharge_voltage()
1120 di->bat_cap.mah, in ab8500_fg_calc_cap_discharge_fg()
1124 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_discharge_fg()
1125 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_discharge_fg()
1127 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_discharge_fg()
1129 if (di->bat_cap.mah >= di->bat_cap.max_mah_design) in ab8500_fg_calc_cap_discharge_fg()
1130 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_discharge_fg()
1136 permille = ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1141 di->bat_cap.mah = ab8500_fg_convert_permille_to_mah(di, in ab8500_fg_calc_cap_discharge_fg()
1149 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1151 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1153 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1156 return di->bat_cap.mah; in ab8500_fg_calc_cap_discharge_fg()
1324 di->bat_cap.mah = 0; in ab8500_fg_check_capacity_limits()
1333 di->bat_cap.prev_mah = di->bat_cap.mah; in ab8500_fg_check_capacity_limits()
1351 di->bat_cap.prev_mah = di->bat_cap.mah; in ab8500_fg_check_capacity_limits()
1378 di->bat_cap.prev_mah = di->bat_cap.mah; in ab8500_fg_check_capacity_limits()
1500 di->bat_cap.mah = cap; in force_capacity()
1525 lower, cap_permille, upper, cap, di->bat_cap.mah); in check_sysfs_capacity()
1778 di->bat_cap.mah, in ab8500_fg_algorithm()
2229 di->bat_cap.max_mah = di->bat_cap.mah; in ab8500_fg_get_ext_psy_data()