Lines Matching defs:plat_local_state
246 * Function to test whether the plat_local_state is RUN state
248 static inline int is_local_state_run(unsigned int plat_local_state)
250 return (plat_local_state == PSCI_LOCAL_STATE_RUN) ? 1 : 0;
254 * Function to test whether the plat_local_state is RETENTION state
256 static inline int is_local_state_retn(unsigned int plat_local_state)
258 return ((plat_local_state > PSCI_LOCAL_STATE_RUN) &&
259 (plat_local_state <= PLAT_MAX_RET_STATE)) ? 1 : 0;
263 * Function to test whether the plat_local_state is OFF state
265 static inline int is_local_state_off(unsigned int plat_local_state)
267 return ((plat_local_state > PLAT_MAX_RET_STATE) &&
268 (plat_local_state <= PLAT_MAX_OFF_STATE)) ? 1 : 0;