Lines Matching refs:permille

128 	int permille;  member
1073 di->bat_cap.permille = in ab8500_fg_calc_cap_charging()
1093 int permille, mah; in ab8500_fg_calc_cap_discharge_voltage() local
1095 permille = ab8500_fg_load_comp_volt_to_capacity(di); in ab8500_fg_calc_cap_discharge_voltage()
1097 mah = ab8500_fg_convert_permille_to_mah(di, permille); in ab8500_fg_calc_cap_discharge_voltage()
1100 di->bat_cap.permille = in ab8500_fg_calc_cap_discharge_voltage()
1116 int permille_volt, permille; in ab8500_fg_calc_cap_discharge_fg() local
1136 permille = ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1139 if (permille < permille_volt) { in ab8500_fg_calc_cap_discharge_fg()
1140 di->bat_cap.permille = permille_volt; in ab8500_fg_calc_cap_discharge_fg()
1142 di->bat_cap.permille); in ab8500_fg_calc_cap_discharge_fg()
1146 permille, in ab8500_fg_calc_cap_discharge_fg()
1152 di->bat_cap.permille = in ab8500_fg_calc_cap_discharge_fg()
1169 percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_capacity_level()
1290 int percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_check_capacity_limits()
1321 di->bat_cap.permille = 0; in ab8500_fg_check_capacity_limits()
1376 di->bat_cap.permille); in ab8500_fg_check_capacity_limits()
1386 di->bat_cap.permille); in ab8500_fg_check_capacity_limits()
1499 di->bat_cap.permille = ab8500_fg_convert_mah_to_permille(di, cap); in force_capacity()
1514 lower = di->bat_cap.permille - di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1515 upper = di->bat_cap.permille + di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1779 di->bat_cap.permille, in ab8500_fg_algorithm()