Searched refs:mah (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/power/
H A Dab8500_fg.c125 int mah; member in struct:ab8500_fg_battery_capacity
1043 di->bat_cap.mah, ab8500_fg_calc_cap_charging()
1047 if (di->bat_cap.mah + di->accu_charge > 0) ab8500_fg_calc_cap_charging()
1048 di->bat_cap.mah += di->accu_charge; ab8500_fg_calc_cap_charging()
1050 di->bat_cap.mah = 0; ab8500_fg_calc_cap_charging()
1055 if (di->bat_cap.mah >= di->bat_cap.max_mah_design || ab8500_fg_calc_cap_charging()
1057 di->bat_cap.mah = di->bat_cap.max_mah_design; ab8500_fg_calc_cap_charging()
1060 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); ab8500_fg_calc_cap_charging()
1062 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); ab8500_fg_calc_cap_charging()
1068 return di->bat_cap.mah; ab8500_fg_calc_cap_charging()
1082 int permille, mah; ab8500_fg_calc_cap_discharge_voltage() local
1089 mah = ab8500_fg_convert_permille_to_mah(di, permille); ab8500_fg_calc_cap_discharge_voltage()
1091 di->bat_cap.mah = ab8500_fg_add_cap_sample(di, mah); ab8500_fg_calc_cap_discharge_voltage()
1093 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); ab8500_fg_calc_cap_discharge_voltage()
1095 return di->bat_cap.mah; ab8500_fg_calc_cap_discharge_voltage()
1112 di->bat_cap.mah, ab8500_fg_calc_cap_discharge_fg()
1116 if (di->bat_cap.mah + di->accu_charge > 0) ab8500_fg_calc_cap_discharge_fg()
1117 di->bat_cap.mah += di->accu_charge; ab8500_fg_calc_cap_discharge_fg()
1119 di->bat_cap.mah = 0; ab8500_fg_calc_cap_discharge_fg()
1121 if (di->bat_cap.mah >= di->bat_cap.max_mah_design) ab8500_fg_calc_cap_discharge_fg()
1122 di->bat_cap.mah = di->bat_cap.max_mah_design; ab8500_fg_calc_cap_discharge_fg()
1128 permille = ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); ab8500_fg_calc_cap_discharge_fg()
1133 di->bat_cap.mah = ab8500_fg_convert_permille_to_mah(di, ab8500_fg_calc_cap_discharge_fg()
1141 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); ab8500_fg_calc_cap_discharge_fg()
1143 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); ab8500_fg_calc_cap_discharge_fg()
1145 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); ab8500_fg_calc_cap_discharge_fg()
1148 return di->bat_cap.mah; ab8500_fg_calc_cap_discharge_fg()
1316 di->bat_cap.mah = 0; ab8500_fg_check_capacity_limits()
1325 di->bat_cap.prev_mah = di->bat_cap.mah; ab8500_fg_check_capacity_limits()
1343 di->bat_cap.prev_mah = di->bat_cap.mah; ab8500_fg_check_capacity_limits()
1370 di->bat_cap.prev_mah = di->bat_cap.mah; ab8500_fg_check_capacity_limits()
1492 di->bat_cap.mah = cap; force_capacity()
1517 lower, cap_permille, upper, cap, di->bat_cap.mah); check_sysfs_capacity()
1769 di->bat_cap.mah, ab8500_fg_algorithm()
2223 di->bat_cap.max_mah = di->bat_cap.mah; ab8500_fg_get_ext_psy_data()

Completed in 51 milliseconds