Lines Matching defs:end_pwrlvl
166 * This function verifies that all the other cores at the 'end_pwrlvl' have been
167 * idled and the current CPU is the last running CPU at the 'end_pwrlvl'.
171 static bool psci_is_last_cpu_to_idle_at_pwrlvl(unsigned int end_pwrlvl)
177 if (end_pwrlvl == PSCI_CPU_PWR_LVL) {
183 for (lvl = PSCI_CPU_PWR_LVL; lvl <= end_pwrlvl; lvl++) {
330 void psci_update_req_local_pwr_states(unsigned int end_pwrlvl,
348 if (lvl <= end_pwrlvl) {
351 req_state = state_info->pwr_domain_state[end_pwrlvl];
424 * from the current cpu power domain to its ancestor at the 'end_pwrlvl'. This
428 void psci_get_target_local_pwr_states(unsigned int end_pwrlvl,
438 for (lvl = PSCI_CPU_PWR_LVL + 1U; lvl <= end_pwrlvl; lvl++) {
450 * from the current cpu power domain to its ancestor at the 'end_pwrlvl' will
454 void psci_set_target_local_pwr_states(unsigned int end_pwrlvl,
471 for (lvl = 1U; lvl <= end_pwrlvl; lvl++) {
500 void psci_set_pwr_domains_to_run(unsigned int end_pwrlvl)
506 for (lvl = PSCI_CPU_PWR_LVL + 1U; lvl <= end_pwrlvl; lvl++) {
527 * the target power level (end_pwrlvl). It updates the array of requested power
530 * Then, for each level (apart from the CPU level) until the 'end_pwrlvl', it
539 * CPU and the 'end_pwrlvl' and returned to the caller.
544 void psci_do_state_coordination(unsigned int end_pwrlvl,
552 assert(end_pwrlvl <= PLAT_MAX_PWR_LVL);
557 for (lvl = PSCI_CPU_PWR_LVL + 1U; lvl <= end_pwrlvl; lvl++) {
591 for (lvl = lvl + 1U; lvl <= end_pwrlvl; lvl++) {
605 * the target power level (end_pwrlvl), and ensures the requested power states
609 * Then, for each level (apart from the CPU level) until the 'end_pwrlvl', it
620 int psci_validate_state_coordination(unsigned int end_pwrlvl,
630 assert(end_pwrlvl <= PLAT_MAX_PWR_LVL);
637 psci_update_req_local_pwr_states(end_pwrlvl, cpu_idx, state_info, prev);
639 for (lvl = PSCI_CPU_PWR_LVL + 1U; lvl <= end_pwrlvl; lvl++) {
789 void psci_acquire_pwr_domain_locks(unsigned int end_pwrlvl,
796 for (level = PSCI_CPU_PWR_LVL + 1U; level <= end_pwrlvl; level++) {
807 void psci_release_pwr_domain_locks(unsigned int end_pwrlvl,
814 for (level = end_pwrlvl; level >= (PSCI_CPU_PWR_LVL + 1U); level--) {
969 unsigned int end_pwrlvl;
990 end_pwrlvl = get_power_on_target_pwrlvl();
993 psci_get_parent_pwr_domain_nodes(cpu_idx, end_pwrlvl, parent_nodes);
1000 psci_acquire_pwr_domain_locks(end_pwrlvl, parent_nodes);
1002 psci_get_target_local_pwr_states(end_pwrlvl, &state_info);
1036 psci_set_pwr_domains_to_run(end_pwrlvl);
1045 psci_stats_update_pwr_up(end_pwrlvl, &state_info);
1052 psci_release_pwr_domain_locks(end_pwrlvl, parent_nodes);