Home
last modified time | relevance | path

Searched refs:actor_ctx (Results 1 – 3 of 3) sorted by relevance

/SCP-firmware-master/module/thermal_mgmt/src/
A Dpower_allocation.c22 return (actor_ctx->granted_power >= actor_ctx->demand_power); in is_power_request_satisfied()
62 actor_ctx->granted_power = in allocate_power()
63 ((actor_ctx->config->weight * actor_ctx->demand_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()
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()
[all …]
A Dmod_thermal_mgmt.c247 struct mod_thermal_mgmt_actor_ctx *actor_ctx; in thermal_mgmt_dev_init() local
275 actor_ctx = get_actor_ctx(dev_ctx, actor); in thermal_mgmt_dev_init()
276 actor_ctx->config = &config->thermal_actors_table[actor]; in thermal_mgmt_dev_init()
279 actor_ctx->config->dvfs_domain_id)) { in thermal_mgmt_dev_init()
283 if (!fwk_id_type_is_valid(actor_ctx->config->driver_id) || in thermal_mgmt_dev_init()
305 struct mod_thermal_mgmt_actor_ctx *actor_ctx; in thermal_mgmt_bind() local
348 actor_ctx = get_actor_ctx(dev_ctx, actor); in thermal_mgmt_bind()
350 if (actor_ctx->config->activity_factor != NULL) { in thermal_mgmt_bind()
353 actor_ctx->config->activity_factor->driver_id, in thermal_mgmt_bind()
354 actor_ctx->config->activity_factor->driver_api_id, in thermal_mgmt_bind()
[all …]
/SCP-firmware-master/module/thermal_mgmt/test/
A Dmod_thermal_mgmt_unit_test.c30 struct mod_thermal_mgmt_actor_ctx *actor_ctx; in setUp() local
62 actor_ctx = &dev_ctx->actor_ctx_table[actor_idx]; in setUp()
63 memset(actor_ctx, 0, sizeof(*actor_ctx)); in setUp()
65 actor_ctx->config = &(config->thermal_actors_table[actor_idx]); in setUp()
236 struct mod_thermal_mgmt_actor_ctx *actor_ctx; in test_thermal_mgmt_bind_success() local
240 actor_ctx = &dev_ctx->actor_ctx_table[0]; in test_thermal_mgmt_bind_success()
262 actor_ctx->config->activity_factor->driver_id, in test_thermal_mgmt_bind_success()
263 actor_ctx->config->activity_factor->driver_api_id, in test_thermal_mgmt_bind_success()
264 &actor_ctx->activity_api, in test_thermal_mgmt_bind_success()

Completed in 6 milliseconds