Lines Matching defs:optee_ctx

33 	optee_context_t *optee_ctx = &opteed_sp_context[linear_id];
35 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) {
40 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON);
44 rc = opteed_synchronous_sp_entry(optee_ctx);
57 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_OFF);
70 optee_context_t *optee_ctx = &opteed_sp_context[linear_id];
72 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) {
77 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON);
79 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx), CTX_GPREG_X0,
84 rc = opteed_synchronous_sp_entry(optee_ctx);
94 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_SUSPEND);
107 optee_context_t *optee_ctx = &opteed_sp_context[linear_id];
111 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_OFF ||
112 get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN);
116 0, 0, 0, optee_ctx);
122 rc = opteed_synchronous_sp_entry(optee_ctx);
132 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_ON);
144 optee_context_t *optee_ctx = &opteed_sp_context[linear_id];
146 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) {
151 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_SUSPEND);
154 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
158 rc = opteed_synchronous_sp_entry(optee_ctx);
168 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_ON);
187 optee_context_t *optee_ctx = &opteed_sp_context[linear_id];
193 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) {
198 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON);
205 opteed_synchronous_sp_entry(optee_ctx);
215 optee_context_t *optee_ctx = &opteed_sp_context[linear_id];
221 if (get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_UNKNOWN) {
226 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON);
233 opteed_synchronous_sp_entry(optee_ctx);