Lines Matching refs:granted_power
22 return (actor_ctx->granted_power >= actor_ctx->demand_power); in is_power_request_satisfied()
50 *level = driver->power_to_level(driver_id, actor_ctx->granted_power); in get_actor_level()
62 actor_ctx->granted_power = in allocate_power()
67 if (actor_ctx->granted_power > actor_ctx->demand_power) { in allocate_power()
69 actor_ctx->granted_power - actor_ctx->demand_power; in allocate_power()
72 actor_ctx->granted_power = actor_ctx->demand_power; in allocate_power()
76 actor_ctx->demand_power - actor_ctx->granted_power; in allocate_power()
101 actor_ctx->granted_power += in re_allocate_power()
105 if (actor_ctx->granted_power > actor_ctx->demand_power) { in re_allocate_power()
107 actor_ctx->granted_power - actor_ctx->demand_power; in re_allocate_power()
109 actor_ctx->granted_power = actor_ctx->demand_power; in re_allocate_power()
173 prev_used_power = (actor_ctx->granted_power * activity) / 1024; in distribute_power()
174 idle_power += actor_ctx->granted_power - prev_used_power; in distribute_power()