Lines Matching refs:pwrlvl
187 unsigned int pwrlvl; in get_power_on_target_pwrlvl() local
195 pwrlvl = psci_get_suspend_pwrlvl(); in get_power_on_target_pwrlvl()
196 if (pwrlvl == PSCI_INVALID_PWR_LVL) in get_power_on_target_pwrlvl()
197 pwrlvl = PLAT_MAX_PWR_LVL; in get_power_on_target_pwrlvl()
198 assert(pwrlvl < PSCI_INVALID_PWR_LVL); in get_power_on_target_pwrlvl()
199 return pwrlvl; in get_power_on_target_pwrlvl()
207 static void psci_set_req_local_pwr_state(unsigned int pwrlvl, in psci_set_req_local_pwr_state() argument
211 assert(pwrlvl > PSCI_CPU_PWR_LVL); in psci_set_req_local_pwr_state()
212 if ((pwrlvl > PSCI_CPU_PWR_LVL) && (pwrlvl <= PLAT_MAX_PWR_LVL) && in psci_set_req_local_pwr_state()
214 psci_req_local_pwr_states[pwrlvl - 1U][cpu_idx] = req_pwr_state; in psci_set_req_local_pwr_state()
224 unsigned int pwrlvl; in psci_init_req_local_pwr_states() local
227 for (pwrlvl = 0U; pwrlvl < PLAT_MAX_PWR_LVL; pwrlvl++) { in psci_init_req_local_pwr_states()
229 psci_req_local_pwr_states[pwrlvl][core] = in psci_init_req_local_pwr_states()
243 static plat_local_state_t *psci_get_req_local_pwr_states(unsigned int pwrlvl, in psci_get_req_local_pwr_states() argument
246 assert(pwrlvl > PSCI_CPU_PWR_LVL); in psci_get_req_local_pwr_states()
248 if ((pwrlvl > PSCI_CPU_PWR_LVL) && (pwrlvl <= PLAT_MAX_PWR_LVL) && in psci_get_req_local_pwr_states()
250 return &psci_req_local_pwr_states[pwrlvl - 1U][cpu_idx]; in psci_get_req_local_pwr_states()