Lines Matching refs:mah
125 int mah; member
1036 di->bat_cap.mah, in ab8500_fg_calc_cap_charging()
1040 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_charging()
1041 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_charging()
1043 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_charging()
1048 if (di->bat_cap.mah >= di->bat_cap.max_mah_design || in ab8500_fg_calc_cap_charging()
1050 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_charging()
1053 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()
1055 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()
1061 return di->bat_cap.mah; in ab8500_fg_calc_cap_charging()
1075 int permille, mah; in ab8500_fg_calc_cap_discharge_voltage() local
1082 mah = ab8500_fg_convert_permille_to_mah(di, permille); in ab8500_fg_calc_cap_discharge_voltage()
1084 di->bat_cap.mah = ab8500_fg_add_cap_sample(di, mah); in ab8500_fg_calc_cap_discharge_voltage()
1086 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_voltage()
1088 return di->bat_cap.mah; in ab8500_fg_calc_cap_discharge_voltage()
1105 di->bat_cap.mah, in ab8500_fg_calc_cap_discharge_fg()
1109 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_discharge_fg()
1110 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_discharge_fg()
1112 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_discharge_fg()
1114 if (di->bat_cap.mah >= di->bat_cap.max_mah_design) in ab8500_fg_calc_cap_discharge_fg()
1115 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_discharge_fg()
1121 permille = ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1126 di->bat_cap.mah = ab8500_fg_convert_permille_to_mah(di, in ab8500_fg_calc_cap_discharge_fg()
1134 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1136 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1138 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1141 return di->bat_cap.mah; in ab8500_fg_calc_cap_discharge_fg()
1309 di->bat_cap.mah = 0; in ab8500_fg_check_capacity_limits()
1318 di->bat_cap.prev_mah = di->bat_cap.mah; in ab8500_fg_check_capacity_limits()
1336 di->bat_cap.prev_mah = di->bat_cap.mah; in ab8500_fg_check_capacity_limits()
1363 di->bat_cap.prev_mah = di->bat_cap.mah; in ab8500_fg_check_capacity_limits()
1485 di->bat_cap.mah = cap; in force_capacity()
1510 lower, cap_permille, upper, cap, di->bat_cap.mah); in check_sysfs_capacity()
1762 di->bat_cap.mah, in ab8500_fg_algorithm()
2211 di->bat_cap.max_mah = di->bat_cap.mah; in ab8500_fg_get_ext_psy_data()