Lines Matching refs:state
35 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) { in opteed_cpu_off_handler()
40 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_cpu_off_handler()
57 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_OFF); in opteed_cpu_off_handler()
72 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) { in opteed_cpu_suspend_handler()
77 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_cpu_suspend_handler()
94 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_SUSPEND); in opteed_cpu_suspend_handler()
111 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_OFF || in opteed_cpu_on_finish_handler()
112 get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN); in opteed_cpu_on_finish_handler()
132 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_ON); in opteed_cpu_on_finish_handler()
149 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) { in opteed_cpu_suspend_finish_handler()
154 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_SUSPEND); in opteed_cpu_suspend_finish_handler()
171 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_ON); in opteed_cpu_suspend_finish_handler()
196 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) { in opteed_system_off()
201 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_system_off()
224 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) { in opteed_system_reset()
229 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_system_reset()