Lines Matching defs:state

29  * PSCI requested local power state map. This array is used to store the local
31 * PLAT_MAX_PWR_LVL. It does not store the requested local power state for power
32 * level 0 (PSCI_CPU_PWR_LVL) as the requested and the target power state for a
35 * During state coordination, the platform is passed an array containing the
50 * Arrays that hold the platform's power domain tree information for state
62 /* Lock for PSCI state coordination */
81 * The power state coordination mode used in CPU_SUSPEND.
109 static plat_local_state_type_t find_local_state_type(plat_local_state_t state)
111 if (state != 0U) {
112 if (state > PLAT_MAX_RET_STATE) {
130 * This function ensures that the power state parameter in a CPU_SUSPEND request
136 /* Check SBZ bits in power state are zero */
272 * Helper function to update the requested local power state array. This array
273 * does not store the requested state for the CPU power level. Hence an
292 /* Initialize the requested state of all non CPU power domains as OFF */
309 * target state for this power domain during psci state coordination. An
344 /* Save the previous requested local power state */
347 /* Update the new requested local power state */
372 /* Restore the previous requested local power state */
393 * Retrieve local state of non-CPU power domain node from a non-cached CPU,
408 * Update local state of non-CPU power domain node from a cached CPU; perform
412 plat_local_state_t state)
414 psci_non_cpu_pd_nodes[parent_idx].local_state = state;
423 * Helper function to return the current local power state of each power domain
425 * function will be called after a cpu is powered on to find the local state
437 /* Copy the local power state from node to state_info */
449 * Helper function to set the target local power state that each power domain
497 * affinity info state, target power state and requested power state for the
515 /* Set the affinity info state to ON */
533 * coordinate and return the target power state. If the target state for a level
534 * is RUN then subsequent levels are not considered. At the CPU level, state
538 * The 'state_info' is updated with the target state for each level between the
555 /* For level 0, the requested state will be equivalent
556 to target state */
559 /* First update the requested power state */
569 * this power level and return the target local power state.
578 /* Break early if the negotiated target power state is RUN */
587 * the target power state is RUN at a power level < end_pwlvl.
588 * We update the requested power state from state_info and then
589 * set the target state as RUN.
612 * coordinate and return the target power state. If the requested state does
613 * not match the target state, the request is denied.
646 * this power level and return the target local power state.
654 * Verify that the requested power state matches the target
655 * local power state.
689 * state is requested then no power level is turned off and the highest power
690 * level is placed in a standby/retention state.
692 * It also ensures that the state level X will enter is not shallower than the
693 * state level X + 1 will enter.
702 plat_local_state_t state;
711 /* All power domain levels are in a RUN state to begin with */
715 state = state_info->pwr_domain_state[i];
716 req_state_type = find_local_state_type(state);
720 * the state requested for lower levels has to be the same or
721 * deeper i.e. equal to or greater than the state at the higher
722 * levels. If this condition is true, then the requested state
723 * becomes the deepest state encountered so far.
739 * If this is not a request for a power down state then max off level
769 * placed in a low power state during a suspend operation.
893 /* Switch to non secure state */
900 /* Return to original state */
951 * the non-secure world from the non-secure state from
961 * off and performs generic, architectural, platform setup and state management
982 ERROR("Unexpected affinity info state.\n");
998 * and state management can be done safely.
1011 * affinity state of the CPU:
1012 * - If the affinity state is ON_PENDING then it has just been
1033 * Set the requested and target state of this CPU and all the higher
1097 * This function prints the state of all power domains present in the
1104 plat_local_state_t state;
1128 state = psci_get_cpu_local_state_by_idx(idx);
1129 state_type = find_local_state_type(state);
1193 * transition to power down state. Passing '0' makes it non-blocking.