Lines Matching refs:mah
127 int mah; member
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()
1079 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()
1085 return di->bat_cap.mah; in ab8500_fg_calc_cap_charging()
1098 int permille, mah; in ab8500_fg_calc_cap_discharge_voltage() local
1102 mah = ab8500_fg_convert_permille_to_mah(di, permille); in ab8500_fg_calc_cap_discharge_voltage()
1104 di->bat_cap.mah = ab8500_fg_add_cap_sample(di, mah); in ab8500_fg_calc_cap_discharge_voltage()
1106 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_voltage()
1108 return di->bat_cap.mah; in ab8500_fg_calc_cap_discharge_voltage()
1125 di->bat_cap.mah, in ab8500_fg_calc_cap_discharge_fg()
1129 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_discharge_fg()
1130 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_discharge_fg()
1132 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_discharge_fg()
1134 if (di->bat_cap.mah >= di->bat_cap.max_mah_design) in ab8500_fg_calc_cap_discharge_fg()
1135 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_discharge_fg()
1141 permille = ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1146 di->bat_cap.mah = ab8500_fg_convert_permille_to_mah(di, in ab8500_fg_calc_cap_discharge_fg()
1154 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1156 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1158 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1161 return di->bat_cap.mah; in ab8500_fg_calc_cap_discharge_fg()
1329 di->bat_cap.mah = 0; in ab8500_fg_check_capacity_limits()
1338 di->bat_cap.prev_mah = di->bat_cap.mah; in ab8500_fg_check_capacity_limits()
1356 di->bat_cap.prev_mah = di->bat_cap.mah; in ab8500_fg_check_capacity_limits()
1383 di->bat_cap.prev_mah = di->bat_cap.mah; in ab8500_fg_check_capacity_limits()
1505 di->bat_cap.mah = cap; in force_capacity()
1530 lower, cap_permille, upper, cap, di->bat_cap.mah); in check_sysfs_capacity()
1783 di->bat_cap.mah, in ab8500_fg_algorithm()
2234 di->bat_cap.max_mah = di->bat_cap.mah; in ab8500_fg_get_ext_psy_data()