Lines Matching refs:tsp_ctx

27 				tsp_context_t *tsp_ctx)  in tspd_init_tsp_ep_state()  argument
32 assert(tsp_ctx); in tspd_init_tsp_ep_state()
43 tsp_ctx->mpidr = read_mpidr_el1(); in tspd_init_tsp_ep_state()
44 tsp_ctx->state = 0; in tspd_init_tsp_ep_state()
45 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_OFF); in tspd_init_tsp_ep_state()
46 clr_yield_smc_active_flag(tsp_ctx->state); in tspd_init_tsp_ep_state()
48 cm_set_context(&tsp_ctx->cpu_ctx, SECURE); in tspd_init_tsp_ep_state()
71 uint64_t tspd_synchronous_sp_entry(tsp_context_t *tsp_ctx) in tspd_synchronous_sp_entry() argument
75 assert(tsp_ctx != NULL); in tspd_synchronous_sp_entry()
76 assert(tsp_ctx->c_rt_ctx == 0); in tspd_synchronous_sp_entry()
79 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_entry()
83 rc = tspd_enter_sp(&tsp_ctx->c_rt_ctx); in tspd_synchronous_sp_entry()
85 tsp_ctx->c_rt_ctx = 0; in tspd_synchronous_sp_entry()
100 void tspd_synchronous_sp_exit(tsp_context_t *tsp_ctx, uint64_t ret) in tspd_synchronous_sp_exit() argument
102 assert(tsp_ctx != NULL); in tspd_synchronous_sp_exit()
104 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_exit()
107 assert(tsp_ctx->c_rt_ctx != 0); in tspd_synchronous_sp_exit()
108 tspd_exit_sp(tsp_ctx->c_rt_ctx, ret); in tspd_synchronous_sp_exit()
119 int tspd_abort_preempted_smc(tsp_context_t *tsp_ctx) in tspd_abort_preempted_smc() argument
121 if (!get_yield_smc_active_flag(tsp_ctx->state)) in tspd_abort_preempted_smc()
125 clr_yield_smc_active_flag(tsp_ctx->state); in tspd_abort_preempted_smc()
133 uint64_t rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_abort_preempted_smc()