Lines Matching defs:optee_ctx
83 optee_context_t *optee_ctx;
96 optee_ctx = &opteed_sp_context[linear_id];
97 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE));
110 SMC_RET1(&optee_ctx->cpu_ctx, read_elr_el3());
191 optee_context_t *optee_ctx = &opteed_sp_context[linear_id];
201 rc = opteed_synchronous_sp_entry(optee_ctx);
436 optee_context_t *optee_ctx = &opteed_sp_context[linear_id];
496 if (get_optee_pstate(optee_ctx->state) ==
508 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE));
525 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
529 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
533 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
538 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx),
543 SMC_RET4(&optee_ctx->cpu_ctx, smc_fid, x1, x2, x3);
563 set_optee_pstate(optee_ctx->state, OPTEE_PSTATE_ON);
598 opteed_synchronous_sp_exit(optee_ctx, x1);
633 opteed_synchronous_sp_exit(optee_ctx, x1);