Lines Matching refs:percent
1159 int ret, percent; in ab8500_fg_capacity_level() local
1161 percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_capacity_level()
1163 if (percent <= di->bm->cap_levels->critical || in ab8500_fg_capacity_level()
1166 else if (percent <= di->bm->cap_levels->low) in ab8500_fg_capacity_level()
1168 else if (percent <= di->bm->cap_levels->normal) in ab8500_fg_capacity_level()
1170 else if (percent <= di->bm->cap_levels->high) in ab8500_fg_capacity_level()
1282 int percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_check_capacity_limits() local
1314 percent = 0; in ab8500_fg_check_capacity_limits()
1324 di->bat_cap.prev_percent = percent; in ab8500_fg_check_capacity_limits()
1337 } else if (di->bat_cap.prev_percent != percent) { in ab8500_fg_check_capacity_limits()
1341 percent); in ab8500_fg_check_capacity_limits()
1342 di->bat_cap.prev_percent = percent; in ab8500_fg_check_capacity_limits()
1347 } else if (di->bat_cap.prev_percent != percent) { in ab8500_fg_check_capacity_limits()
1348 if (percent == 0) { in ab8500_fg_check_capacity_limits()
1355 percent = 1; in ab8500_fg_check_capacity_limits()
1359 percent > di->bat_cap.prev_percent) || init) { in ab8500_fg_check_capacity_limits()
1367 percent, in ab8500_fg_check_capacity_limits()
1369 di->bat_cap.prev_percent = percent; in ab8500_fg_check_capacity_limits()
1377 percent, in ab8500_fg_check_capacity_limits()