Lines Matching refs:permille
126 int permille; member
1054 di->bat_cap.permille = in ab8500_fg_calc_cap_charging()
1075 int permille, mah; in ab8500_fg_calc_cap_discharge_voltage() local
1078 permille = ab8500_fg_load_comp_volt_to_capacity(di); in ab8500_fg_calc_cap_discharge_voltage()
1080 permille = ab8500_fg_uncomp_volt_to_capacity(di); in ab8500_fg_calc_cap_discharge_voltage()
1082 mah = ab8500_fg_convert_permille_to_mah(di, permille); in ab8500_fg_calc_cap_discharge_voltage()
1085 di->bat_cap.permille = in ab8500_fg_calc_cap_discharge_voltage()
1101 int permille_volt, permille; in ab8500_fg_calc_cap_discharge_fg() local
1121 permille = ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_discharge_fg()
1124 if (permille < permille_volt) { in ab8500_fg_calc_cap_discharge_fg()
1125 di->bat_cap.permille = permille_volt; in ab8500_fg_calc_cap_discharge_fg()
1127 di->bat_cap.permille); in ab8500_fg_calc_cap_discharge_fg()
1131 permille, in ab8500_fg_calc_cap_discharge_fg()
1137 di->bat_cap.permille = in ab8500_fg_calc_cap_discharge_fg()
1154 percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_capacity_level()
1275 int percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_check_capacity_limits()
1306 di->bat_cap.permille = 0; in ab8500_fg_check_capacity_limits()
1361 di->bat_cap.permille); in ab8500_fg_check_capacity_limits()
1371 di->bat_cap.permille); in ab8500_fg_check_capacity_limits()
1484 di->bat_cap.permille = ab8500_fg_convert_mah_to_permille(di, cap); in force_capacity()
1499 lower = di->bat_cap.permille - di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1500 upper = di->bat_cap.permille + di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1763 di->bat_cap.permille, in ab8500_fg_algorithm()