Lines Matching refs:tsp_ctx

34 	tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id];  in tspd_cpu_off_handler()  local
37 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_ON); in tspd_cpu_off_handler()
43 tspd_abort_preempted_smc(tsp_ctx); in tspd_cpu_off_handler()
47 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_cpu_off_handler()
60 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_OFF); in tspd_cpu_off_handler()
73 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_cpu_suspend_handler() local
76 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_ON); in tspd_cpu_suspend_handler()
82 tspd_abort_preempted_smc(tsp_ctx); in tspd_cpu_suspend_handler()
90 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_cpu_suspend_handler()
100 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_SUSPEND); in tspd_cpu_suspend_handler()
113 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_cpu_on_finish_handler() local
117 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_OFF); in tspd_cpu_on_finish_handler()
122 tsp_ctx); in tspd_cpu_on_finish_handler()
136 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_cpu_on_finish_handler()
146 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_ON); in tspd_cpu_on_finish_handler()
158 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_cpu_suspend_finish_handler() local
161 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_SUSPEND); in tspd_cpu_suspend_finish_handler()
164 write_ctx_reg(get_gpregs_ctx(&tsp_ctx->cpu_ctx), in tspd_cpu_suspend_finish_handler()
168 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_cpu_suspend_finish_handler()
183 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_ON); in tspd_cpu_suspend_finish_handler()
202 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_system_off() local
205 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_ON); in tspd_system_off()
211 tspd_abort_preempted_smc(tsp_ctx); in tspd_system_off()
218 tspd_synchronous_sp_entry(tsp_ctx); in tspd_system_off()
228 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_system_reset() local
231 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_ON); in tspd_system_reset()
237 tspd_abort_preempted_smc(tsp_ctx); in tspd_system_reset()
246 tspd_synchronous_sp_entry(tsp_ctx); in tspd_system_reset()