Lines Matching refs:state

110 static int get_state(struct ppu_v1_reg *ppu, unsigned int *state)  in get_state()  argument
121 *state = ppu_mode_to_power_state[mode]; in get_state()
123 if ((*state == MOD_PD_STATE_OFF) && (ppu_v1_is_dynamic_enabled(ppu))) in get_state()
124 *state = MOD_PD_STATE_SLEEP; in get_state()
126 if (*state == MODE_UNSUPPORTED) { in get_state()
134 static int ppu_v1_pd_set_state(fwk_id_t pd_id, unsigned int state) in ppu_v1_pd_set_state() argument
141 switch (state) { in ppu_v1_pd_set_state()
157 FWK_LOG_ERR("[PD] Requested power state (%i) is not supported.", state); in ppu_v1_pd_set_state()
164 static int ppu_v1_pd_get_state(fwk_id_t pd_id, unsigned int *state) in ppu_v1_pd_get_state() argument
170 return get_state(pd_ctx->ppu, state); in ppu_v1_pd_get_state()
210 unsigned int state; in ppu_v1_core_pd_init() local
214 status = get_state(ppu, &state); in ppu_v1_core_pd_init()
218 if (state == MOD_PD_STATE_ON) { in ppu_v1_core_pd_init()
227 static int ppu_v1_core_pd_set_state(fwk_id_t core_pd_id, unsigned int state) in ppu_v1_core_pd_set_state() argument
236 switch (state) { in ppu_v1_core_pd_set_state()
283 "[PPU_V1] Requested CPU power state (%i) is not supported!", state); in ppu_v1_core_pd_set_state()
481 unsigned int state; in ppu_v1_cluster_pd_init() local
485 status = get_state(ppu, &state); in ppu_v1_cluster_pd_init()
493 if (state == MOD_PD_STATE_ON) { in ppu_v1_cluster_pd_init()
504 unsigned int state) in ppu_v1_cluster_pd_set_state() argument
511 switch (state) { in ppu_v1_cluster_pd_set_state()
530 "[PPU_V1] Requested CPU power state (%i) is not supported!", state); in ppu_v1_cluster_pd_set_state()
982 if (params->state != MOD_PD_STATE_ON) in ppu_v1_process_notification()