/trusted-firmware-a/services/spd/tspd/ |
A D | tspd_main.c | 180 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_sel1_interrupt_handler() 193 tsp_ctx->saved_spsr_el3 = (uint32_t)SMC_GET_EL3(&tsp_ctx->cpu_ctx, in tspd_sel1_interrupt_handler() 195 tsp_ctx->saved_elr_el3 = SMC_GET_EL3(&tsp_ctx->cpu_ctx, in tspd_sel1_interrupt_handler() 198 memcpy(&tsp_ctx->sp_ctx, &tsp_ctx->cpu_ctx, TSPD_SP_CTX_SIZE); in tspd_sel1_interrupt_handler() 391 SMC_SET_EL3(&tsp_ctx->cpu_ctx, in tspd_smc_handler() 394 SMC_SET_EL3(&tsp_ctx->cpu_ctx, in tspd_smc_handler() 402 memcpy(&tsp_ctx->cpu_ctx, &tsp_ctx->sp_ctx, in tspd_smc_handler() 496 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_smc_handler() 603 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_smc_handler() 641 SMC_RET3(&tsp_ctx->cpu_ctx, smc_fid, x1, x2); in tspd_smc_handler() [all …]
|
A D | tspd_common.c | 48 cm_set_context(&tsp_ctx->cpu_ctx, SECURE); in tspd_init_tsp_ep_state() 79 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_entry() 104 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_exit()
|
A D | tspd_private.h | 187 cpu_context_t cpu_ctx; member
|
A D | tspd_pm.c | 160 write_ctx_reg(get_gpregs_ctx(&tsp_ctx->cpu_ctx), in tspd_cpu_suspend_finish_handler()
|
/trusted-firmware-a/services/spd/opteed/ |
A D | opteed_main.c | 73 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_sel1_interrupt_handler() 86 SMC_RET1(&optee_ctx->cpu_ctx, read_elr_el3()); in opteed_sel1_interrupt_handler() 232 assert(&optee_ctx->cpu_ctx == cm_get_context(SECURE)); in opteed_smc_handler() 249 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx), in opteed_smc_handler() 253 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx), in opteed_smc_handler() 257 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx), in opteed_smc_handler() 262 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx), in opteed_smc_handler() 267 SMC_RET4(&optee_ctx->cpu_ctx, smc_fid, x1, x2, x3); in opteed_smc_handler()
|
A D | opteed_common.c | 39 cm_set_context(&optee_ctx->cpu_ctx, SECURE); in opteed_init_optee_ep_state() 78 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_entry() 103 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_exit()
|
A D | opteed_pm.c | 71 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx), CTX_GPREG_X0, in opteed_cpu_suspend_handler() 141 write_ctx_reg(get_gpregs_ctx(&optee_ctx->cpu_ctx), in opteed_cpu_suspend_finish_handler()
|
A D | opteed_private.h | 131 cpu_context_t cpu_ctx; member
|
/trusted-firmware-a/services/std_svc/spm_mm/ |
A D | spm_mm_main.c | 95 cm_set_context(&(ctx->cpu_ctx), SECURE); in spm_sp_synchronous_entry() 196 cpu_context_t *cpu_ctx = &(sp_ptr->cpu_ctx); in spm_mm_sp_call() local 198 write_ctx_reg(get_gpregs_ctx(cpu_ctx), CTX_GPREG_X0, smc_fid); in spm_mm_sp_call() 199 write_ctx_reg(get_gpregs_ctx(cpu_ctx), CTX_GPREG_X1, x1); in spm_mm_sp_call() 200 write_ctx_reg(get_gpregs_ctx(cpu_ctx), CTX_GPREG_X2, x2); in spm_mm_sp_call() 201 write_ctx_reg(get_gpregs_ctx(cpu_ctx), CTX_GPREG_X3, x3); in spm_mm_sp_call()
|
A D | spm_mm_private.h | 47 cpu_context_t cpu_ctx; member
|
A D | spm_mm_setup.c | 28 cpu_context_t *ctx = &(sp_ctx->cpu_ctx); in spm_sp_setup()
|
/trusted-firmware-a/services/std_svc/rmmd/ |
A D | rmmd_main.c | 66 cm_set_context(&(rmm_ctx->cpu_ctx), REALM); in rmmd_rmm_sync_entry() 100 assert(cm_get_context(REALM) == &(ctx->cpu_ctx)); in rmmd_rmm_sync_exit() 132 rmm_el2_context_init(&ctx->cpu_ctx.el2_sysregs_ctx); in rmm_init() 181 cm_setup_context(&rmm_ctx->cpu_ctx, rmm_ep_info); in rmmd_setup() 276 cm_setup_context(&ctx->cpu_ctx, rmm_ep_info); in rmmd_cpu_on_finish_handler() 279 rmm_el2_context_init(&ctx->cpu_ctx.el2_sysregs_ctx); in rmmd_cpu_on_finish_handler()
|
A D | rmmd_private.h | 47 cpu_context_t cpu_ctx; member
|
/trusted-firmware-a/services/spd/tlkd/ |
A D | tlkd_common.c | 95 cm_set_context(&tlk_ctx->cpu_ctx, SECURE); in tlkd_init_tlk_ep_state() 131 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx); in tlkd_synchronous_sp_entry() 157 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx); in tlkd_synchronous_sp_exit()
|
A D | tlkd_pm.c | 54 gp_regs = get_gpregs_ctx(&tlk_ctx.cpu_ctx); in cpu_suspend_handler() 87 gp_regs = get_gpregs_ctx(&tlk_ctx.cpu_ctx); in cpu_resume_handler()
|
A D | tlkd_main.c | 308 assert(&tlk_ctx.cpu_ctx == cm_get_context(SECURE)); in tlkd_smc_handler() 330 gp_regs = get_gpregs_ctx(&tlk_ctx.cpu_ctx); in tlkd_smc_handler() 335 SMC_RET4(&tlk_ctx.cpu_ctx, smc_fid, 0, (uint32_t)x1, in tlkd_smc_handler()
|
A D | tlkd_private.h | 105 cpu_context_t cpu_ctx; member
|
/trusted-firmware-a/services/std_svc/spmd/ |
A D | spmd_pm.c | 105 el3_state = get_el3state_ctx(&ctx->cpu_ctx); in spmd_cpu_on_finish_handler() 140 spmd_build_spmc_message(get_gpregs_ctx(&ctx->cpu_ctx), PSCI_CPU_OFF); in spmd_cpu_off_handler() 148 u_register_t ffa_resp_func = read_ctx_reg(get_gpregs_ctx(&ctx->cpu_ctx), in spmd_cpu_off_handler()
|
A D | spmd_main.c | 103 cm_set_context(&(spmc_ctx->cpu_ctx), SECURE); in spmd_spm_core_sync_entry() 135 assert(cm_get_context(SECURE) == &(ctx->cpu_ctx)); in spmd_spm_core_sync_exit() 184 gp_regs_t *gpregs = get_gpregs_ctx(&ctx->cpu_ctx); in spmd_secure_interrupt_handler() 226 SMC_RET0(&ctx->cpu_ctx); in spmd_secure_interrupt_handler() 234 cpu_context_t *cpu_ctx; in spmd_spmc_init() local 333 cpu_ctx = &spm_core_context[core_id].cpu_ctx; in spmd_spmc_init() 334 cm_setup_context(cpu_ctx, spmc_ep_info); in spmd_spmc_init() 341 write_ctx_reg(get_gpregs_ctx(cpu_ctx), CTX_GPREG_X4, core_id); in spmd_spmc_init()
|
A D | spmd_private.h | 51 cpu_context_t cpu_ctx; member
|
/trusted-firmware-a/services/spd/trusty/ |
A D | trusty.c | 46 cpu_context_t cpu_ctx; member 313 uint64_t reg_width = GET_RW(read_ctx_reg(get_el3state_ctx(&ctx->cpu_ctx), in trusty_init() 326 cm_set_context(&ctx->cpu_ctx, SECURE); in trusty_init()
|