Lines Matching refs:state

37 #define MTK_CORE_PWR_STATE(state)	(state)->pwr_domain_state[MTK_PWR_LVL0]  argument
38 #define MTK_CLUSTER_PWR_STATE(state) (state)->pwr_domain_state[MTK_PWR_LVL1] argument
39 #define MTK_SYSTEM_PWR_STATE(state) ((PLAT_MAX_PWR_LVL > MTK_PWR_LVL1) ?\ argument
40 (state)->pwr_domain_state[MTK_PWR_LVL2] : 0)
291 static void plat_power_domain_off(const psci_power_state_t *state) in plat_power_domain_off() argument
302 if (MTK_CLUSTER_PWR_STATE(state) == MTK_LOCAL_STATE_OFF) { in plat_power_domain_off()
322 static void plat_power_domain_suspend(const psci_power_state_t *state) in plat_power_domain_suspend() argument
339 if (MTK_SYSTEM_PWR_STATE(state) != MTK_LOCAL_STATE_OFF) { in plat_power_domain_suspend()
341 if (MTK_CLUSTER_PWR_STATE(state) == MTK_LOCAL_STATE_OFF) in plat_power_domain_suspend()
348 if (MTK_CLUSTER_PWR_STATE(state) == MTK_LOCAL_STATE_OFF) { in plat_power_domain_suspend()
353 if (MTK_SYSTEM_PWR_STATE(state) == MTK_LOCAL_STATE_OFF) { in plat_power_domain_suspend()
372 static void plat_power_domain_on_finish(const psci_power_state_t *state) in plat_power_domain_on_finish() argument
376 assert(state->pwr_domain_state[MPIDR_AFFLVL0] == MTK_LOCAL_STATE_OFF); in plat_power_domain_on_finish()
379 (state->pwr_domain_state[MTK_PWR_LVL2] == MTK_LOCAL_STATE_OFF)) in plat_power_domain_on_finish()
382 if (state->pwr_domain_state[MPIDR_AFFLVL1] == MTK_LOCAL_STATE_OFF) { in plat_power_domain_on_finish()
388 (state->pwr_domain_state[MTK_PWR_LVL2] == MTK_LOCAL_STATE_OFF)) in plat_power_domain_on_finish()
402 static void plat_power_domain_suspend_finish(const psci_power_state_t *state) in plat_power_domain_suspend_finish() argument
406 if (state->pwr_domain_state[MTK_PWR_LVL0] == MTK_LOCAL_STATE_RET) in plat_power_domain_suspend_finish()
409 if (MTK_SYSTEM_PWR_STATE(state) == MTK_LOCAL_STATE_OFF) { in plat_power_domain_suspend_finish()
418 if (MTK_CLUSTER_PWR_STATE(state) == MTK_LOCAL_STATE_OFF) { in plat_power_domain_suspend_finish()
425 if (MTK_SYSTEM_PWR_STATE(state) != MTK_LOCAL_STATE_OFF) { in plat_power_domain_suspend_finish()
427 if (MTK_CLUSTER_PWR_STATE(state) == MTK_LOCAL_STATE_OFF) in plat_power_domain_suspend_finish()