Lines Matching full:mah

127 	int mah;  member
378 * @sample: the capacity in mAh to add to the filter
436 * @sample: the capacity in mAh to fill the filter with
438 * The capacity filter is filled with a capacity in mAh
999 * ab8500_fg_convert_mah_to_permille() - Capacity in mAh to permille
1001 * @cap_mah: capacity in mAh
1003 * Converts capacity in mAh to capacity in permille
1011 * ab8500_fg_convert_permille_to_mah() - Capacity in permille to mAh
1015 * Converts capacity in permille to capacity in mAh
1023 * ab8500_fg_convert_mah_to_uwh() - Capacity in mAh to uWh
1025 * @cap_mah: capacity in mAh
1027 * Converts capacity in mAh to capacity in uWh
1053 * Return the capacity in mAh based on previous calculated capcity and the FG
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()
1092 * Return the capacity in mAh based on the load compensated battery voltage.
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()
1115 * Return the capacity in mAh based on previous calculated capcity and the FG
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()