Lines Matching refs:prev_percent
129 int prev_percent; member
1182 int capacity = di->bat_cap.prev_percent; in ab8500_fg_calculate_scaled_capacity()
1203 DIV_ROUND_CLOSEST(di->bat_cap.prev_percent * in ab8500_fg_calculate_scaled_capacity()
1213 if (di->bat_cap.prev_percent >= in ab8500_fg_calculate_scaled_capacity()
1217 capacity = di->bat_cap.prev_percent; in ab8500_fg_calculate_scaled_capacity()
1251 cs->cap_to_scale[1] = di->bat_cap.prev_percent; in ab8500_fg_update_cap_scalers()
1255 max(di->bat_cap.prev_percent, in ab8500_fg_update_cap_scalers()
1305 di->bat_cap.prev_percent = 0; in ab8500_fg_check_capacity_limits()
1317 di->bat_cap.prev_percent = percent; in ab8500_fg_check_capacity_limits()
1327 di->bat_cap.prev_percent; in ab8500_fg_check_capacity_limits()
1330 } else if (di->bat_cap.prev_percent != percent) { in ab8500_fg_check_capacity_limits()
1335 di->bat_cap.prev_percent = percent; in ab8500_fg_check_capacity_limits()
1340 } else if (di->bat_cap.prev_percent != percent) { in ab8500_fg_check_capacity_limits()
1347 di->bat_cap.prev_percent = 1; in ab8500_fg_check_capacity_limits()
1352 percent > di->bat_cap.prev_percent) || init) { in ab8500_fg_check_capacity_limits()
1359 di->bat_cap.prev_percent, in ab8500_fg_check_capacity_limits()
1362 di->bat_cap.prev_percent = percent; in ab8500_fg_check_capacity_limits()
1369 di->bat_cap.prev_percent, in ab8500_fg_check_capacity_limits()
1381 di->bat_cap.prev_percent, in ab8500_fg_check_capacity_limits()
1766 di->bat_cap.prev_percent, in ab8500_fg_algorithm()
2146 val->intval = di->bat_cap.prev_percent; in ab8500_fg_get_property()