Lines Matching defs:state

34 /* Local power state for power domains in Run state. */
36 /* Local power state for retention. */
38 /* Local power state for OFF/power-down. */
43 * Macros used to parse state information from State-ID if it is using the
49 /* Macros to construct the composite power state */
51 /* Make composite power state parameter till power level 0 */
65 /* Make composite power state parameter till power level 1 */
70 /* Make composite power state parameter till power level 2 */
80 /* Macros to read the MTK power domain state */
81 #define MTK_CORE_PWR_STATE(state) (state)->pwr_domain_state[MTK_PWR_LVL0]
82 #define MTK_CLUSTER_PWR_STATE(state) (state)->pwr_domain_state[MTK_PWR_LVL1]
83 #define MTK_SYSTEM_PWR_STATE(state) ((PLAT_MAX_PWR_LVL > MTK_PWR_LVL1) ? \
84 (state)->pwr_domain_state[MTK_PWR_LVL2] : 0)
89 * array entries are populated in ascending order of state-id to
90 * enable us to use binary search during power state validation.
326 static void plat_mtk_power_domain_off(const psci_power_state_t *state)
331 const plat_local_state_t *pds = state->pwr_domain_state;
345 static void plat_mtk_power_domain_on_finish(const psci_power_state_t *state)
350 const plat_local_state_t *pds = state->pwr_domain_state;
361 static void plat_mtk_power_domain_suspend(const psci_power_state_t *state)
366 const plat_local_state_t *pds = state->pwr_domain_state;
402 static void plat_mtk_power_domain_suspend_finish(const psci_power_state_t *state)
406 const plat_local_state_t *pds = state->pwr_domain_state;
454 * entry in the idle power state array. This can be made a binary
462 /* Return error if entry not found in the idle state array */
469 /* Parse the State ID and populate the state info parameter */
493 /* Sanity check the requested state */