Lines Matching defs:tsp_ctx

114 	tsp_context_t *tsp_ctx;
118 tsp_ctx = &tspd_sp_context[linear_id];
158 tsp_ctx->preempted_by_sel1_intr = false;
167 tsp_ctx->preempted_by_sel1_intr = true;
180 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE));
192 if (get_yield_smc_active_flag(tsp_ctx->state)) {
193 tsp_ctx->saved_spsr_el3 = (uint32_t)SMC_GET_EL3(&tsp_ctx->cpu_ctx,
195 tsp_ctx->saved_elr_el3 = SMC_GET_EL3(&tsp_ctx->cpu_ctx,
198 memcpy(&tsp_ctx->sp_ctx, &tsp_ctx->cpu_ctx, TSPD_SP_CTX_SIZE);
215 SMC_RET2(&tsp_ctx->cpu_ctx, TSP_HANDLE_SEL1_INTR_AND_RETURN, read_elr_el3());
309 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id];
326 rc = tspd_synchronous_sp_entry(tsp_ctx);
352 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id];
390 if (get_yield_smc_active_flag(tsp_ctx->state)) {
391 SMC_SET_EL3(&tsp_ctx->cpu_ctx,
393 tsp_ctx->saved_spsr_el3);
394 SMC_SET_EL3(&tsp_ctx->cpu_ctx,
396 tsp_ctx->saved_elr_el3);
402 memcpy(&tsp_ctx->cpu_ctx, &tsp_ctx->sp_ctx,
421 if (tsp_ctx->preempted_by_sel1_intr) {
423 tsp_ctx->preempted_by_sel1_intr = false;
450 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_ON);
496 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx);
515 tspd_synchronous_sp_exit(tsp_ctx, x1);
556 tspd_synchronous_sp_exit(tsp_ctx, x1);
588 if (get_yield_smc_active_flag(tsp_ctx->state))
594 store_tsp_args(tsp_ctx, x1, x2);
608 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE));
618 set_yield_smc_active_flag(tsp_ctx->state);
646 SMC_RET3(&tsp_ctx->cpu_ctx, smc_fid, x1, x2);
665 clr_yield_smc_active_flag(tsp_ctx->state);
695 if (!tspd_abort_preempted_smc(tsp_ctx)) {
731 if (!get_yield_smc_active_flag(tsp_ctx->state))
762 SMC_RET0(&tsp_ctx->cpu_ctx);
774 get_tsp_args(tsp_ctx, x1, x2);