Lines Matching refs:permille

128 	int permille;  member
1078 di->bat_cap.permille = in ab8500_fg_calc_cap_charging()
1098 int permille, mah; in ab8500_fg_calc_cap_discharge_voltage() local
1100 permille = ab8500_fg_load_comp_volt_to_capacity(di); in ab8500_fg_calc_cap_discharge_voltage()
1102 mah = ab8500_fg_convert_permille_to_mah(di, permille); in ab8500_fg_calc_cap_discharge_voltage()
1105 di->bat_cap.permille = in ab8500_fg_calc_cap_discharge_voltage()
1121 int permille_volt, permille; in ab8500_fg_calc_cap_discharge_fg() local
1141 permille = ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1144 if (permille < permille_volt) { in ab8500_fg_calc_cap_discharge_fg()
1145 di->bat_cap.permille = permille_volt; in ab8500_fg_calc_cap_discharge_fg()
1147 di->bat_cap.permille); in ab8500_fg_calc_cap_discharge_fg()
1151 permille, in ab8500_fg_calc_cap_discharge_fg()
1157 di->bat_cap.permille = in ab8500_fg_calc_cap_discharge_fg()
1174 percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_capacity_level()
1295 int percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_check_capacity_limits()
1326 di->bat_cap.permille = 0; in ab8500_fg_check_capacity_limits()
1381 di->bat_cap.permille); in ab8500_fg_check_capacity_limits()
1391 di->bat_cap.permille); in ab8500_fg_check_capacity_limits()
1504 di->bat_cap.permille = ab8500_fg_convert_mah_to_permille(di, cap); in force_capacity()
1519 lower = di->bat_cap.permille - di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1520 upper = di->bat_cap.permille + di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1784 di->bat_cap.permille, in ab8500_fg_algorithm()