Lines Matching refs:max_power
337 static void divvy_up_power(u32 *req_power, u32 *max_power, int num_actors, in divvy_up_power() argument
358 if (granted_power[i] > max_power[i]) { in divvy_up_power()
359 extra_power += granted_power[i] - max_power[i]; in divvy_up_power()
360 granted_power[i] = max_power[i]; in divvy_up_power()
363 extra_actor_power[i] = max_power[i] - granted_power[i]; in divvy_up_power()
388 u32 *req_power, *max_power, *granted_power, *extra_actor_power; in allocate_power() local
419 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*max_power)); in allocate_power()
429 max_power = &req_power[num_actors]; in allocate_power()
460 &max_power[i])) in allocate_power()
464 max_allocatable_power += max_power[i]; in allocate_power()
472 divvy_up_power(weighted_req_power, max_power, num_actors, in allocate_power()