Home
last modified time | relevance | path

Searched refs:tsp_ctx (Results 1 – 4 of 4) sorted by relevance

/device/linaro/bootloader/arm-trusted-firmware/services/spd/tspd/
Dtspd_common.c25 tsp_context_t *tsp_ctx) in tspd_init_tsp_ep_state() argument
30 assert(tsp_ctx); in tspd_init_tsp_ep_state()
41 tsp_ctx->mpidr = read_mpidr_el1(); in tspd_init_tsp_ep_state()
42 tsp_ctx->state = 0; in tspd_init_tsp_ep_state()
43 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_OFF); in tspd_init_tsp_ep_state()
44 clr_yield_smc_active_flag(tsp_ctx->state); in tspd_init_tsp_ep_state()
46 cm_set_context(&tsp_ctx->cpu_ctx, SECURE); in tspd_init_tsp_ep_state()
69 uint64_t tspd_synchronous_sp_entry(tsp_context_t *tsp_ctx) in tspd_synchronous_sp_entry() argument
73 assert(tsp_ctx != NULL); in tspd_synchronous_sp_entry()
74 assert(tsp_ctx->c_rt_ctx == 0); in tspd_synchronous_sp_entry()
[all …]
Dtspd_pm.c32 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_cpu_off_handler() local
35 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_ON); in tspd_cpu_off_handler()
41 tspd_abort_preempted_smc(tsp_ctx); in tspd_cpu_off_handler()
45 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_cpu_off_handler()
58 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_OFF); in tspd_cpu_off_handler()
71 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_cpu_suspend_handler() local
74 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_ON); in tspd_cpu_suspend_handler()
80 tspd_abort_preempted_smc(tsp_ctx); in tspd_cpu_suspend_handler()
84 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_cpu_suspend_handler()
94 set_tsp_pstate(tsp_ctx->state, TSP_PSTATE_SUSPEND); in tspd_cpu_suspend_handler()
[all …]
Dtspd_main.c99 tsp_context_t *tsp_ctx; in tspd_sel1_interrupt_handler() local
112 tsp_ctx = &tspd_sp_context[linear_id]; in tspd_sel1_interrupt_handler()
113 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_sel1_interrupt_handler()
125 if (get_yield_smc_active_flag(tsp_ctx->state)) { in tspd_sel1_interrupt_handler()
126 tsp_ctx->saved_spsr_el3 = SMC_GET_EL3(&tsp_ctx->cpu_ctx, in tspd_sel1_interrupt_handler()
128 tsp_ctx->saved_elr_el3 = SMC_GET_EL3(&tsp_ctx->cpu_ctx, in tspd_sel1_interrupt_handler()
132 memcpy(&tsp_ctx->sp_ctx, &tsp_ctx->cpu_ctx, TSPD_SP_CTX_SIZE); in tspd_sel1_interrupt_handler()
149 SMC_RET2(&tsp_ctx->cpu_ctx, TSP_HANDLE_SEL1_INTR_AND_RETURN, read_elr_el3()); in tspd_sel1_interrupt_handler()
243 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_init() local
260 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_init()
[all …]
Dtspd_private.h193 #define store_tsp_args(tsp_ctx, x1, x2) do {\ argument
194 tsp_ctx->saved_tsp_args[0] = x1;\
195 tsp_ctx->saved_tsp_args[1] = x2;\
198 #define get_tsp_args(tsp_ctx, x1, x2) do {\ argument
199 x1 = tsp_ctx->saved_tsp_args[0];\
200 x2 = tsp_ctx->saved_tsp_args[1];\
216 uint64_t tspd_synchronous_sp_entry(tsp_context_t *tsp_ctx);
217 void __dead2 tspd_synchronous_sp_exit(tsp_context_t *tsp_ctx, uint64_t ret);
221 tsp_context_t *tsp_ctx);
222 int tspd_abort_preempted_smc(tsp_context_t *tsp_ctx);