Lines Matching defs:pwrlvl
256 unsigned int pwrlvl;
264 pwrlvl = psci_get_suspend_pwrlvl();
265 if (pwrlvl == PSCI_INVALID_PWR_LVL)
266 pwrlvl = PLAT_MAX_PWR_LVL;
267 assert(pwrlvl < PSCI_INVALID_PWR_LVL);
268 return pwrlvl;
276 static void psci_set_req_local_pwr_state(unsigned int pwrlvl,
280 assert(pwrlvl > PSCI_CPU_PWR_LVL);
281 if ((pwrlvl > PSCI_CPU_PWR_LVL) && (pwrlvl <= PLAT_MAX_PWR_LVL) &&
283 psci_req_local_pwr_states[pwrlvl - 1U][cpu_idx] = req_pwr_state;
293 unsigned int pwrlvl;
296 for (pwrlvl = 0U; pwrlvl < PLAT_MAX_PWR_LVL; pwrlvl++) {
298 psci_req_local_pwr_states[pwrlvl][core] =
306 * states requested by each cpu for a power domain at 'pwrlvl'. The size of the
312 static plat_local_state_t *psci_get_req_local_pwr_states(unsigned int pwrlvl,
315 assert(pwrlvl > PSCI_CPU_PWR_LVL);
317 if ((pwrlvl > PSCI_CPU_PWR_LVL) && (pwrlvl <= PLAT_MAX_PWR_LVL) &&
319 return &psci_req_local_pwr_states[pwrlvl - 1U][cpu_idx];