Lines Matching defs:tsp_ctx
27 tsp_context_t *tsp_ctx)
32 assert(tsp_ctx);
43 tsp_ctx->mpidr = read_mpidr_el1();
44 tsp_ctx->state = 0;
45 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_OFF);
46 clr_yield_smc_active_flag(tsp_ctx->state);
48 cm_set_context(&tsp_ctx->cpu_ctx, SECURE);
65 * 1. Applies the S-EL1 system register context from tsp_ctx->cpu_ctx.
69 * from the tsp_ctx->cpu_ctx are used to enter the secure payload image.
71 uint64_t tspd_synchronous_sp_entry(tsp_context_t *tsp_ctx)
75 assert(tsp_ctx != NULL);
76 assert(tsp_ctx->c_rt_ctx == 0);
79 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx);
83 rc = tspd_enter_sp(&tsp_ctx->c_rt_ctx);
85 tsp_ctx->c_rt_ctx = 0;
94 * 1. Saves the S-EL1 system register context tp tsp_ctx->cpu_ctx.
100 void tspd_synchronous_sp_exit(tsp_context_t *tsp_ctx, uint64_t ret)
102 assert(tsp_ctx != NULL);
104 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx);
107 assert(tsp_ctx->c_rt_ctx != 0);
108 tspd_exit_sp(tsp_ctx->c_rt_ctx, ret);
119 int tspd_abort_preempted_smc(tsp_context_t *tsp_ctx)
121 if (!get_yield_smc_active_flag(tsp_ctx->state))
125 clr_yield_smc_active_flag(tsp_ctx->state);
133 uint64_t rc = tspd_synchronous_sp_entry(tsp_ctx);