/external/arm-trusted-firmware/services/spd/tspd/ |
D | tspd_main.c | 116 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_sel1_interrupt_handler() 129 tsp_ctx->saved_spsr_el3 = (uint32_t)SMC_GET_EL3(&tsp_ctx->cpu_ctx, in tspd_sel1_interrupt_handler() 131 tsp_ctx->saved_elr_el3 = SMC_GET_EL3(&tsp_ctx->cpu_ctx, in tspd_sel1_interrupt_handler() 135 memcpy(&tsp_ctx->sp_ctx, &tsp_ctx->cpu_ctx, TSPD_SP_CTX_SIZE); in tspd_sel1_interrupt_handler() 152 SMC_RET2(&tsp_ctx->cpu_ctx, TSP_HANDLE_SEL1_INTR_AND_RETURN, read_elr_el3()); in tspd_sel1_interrupt_handler() 328 SMC_SET_EL3(&tsp_ctx->cpu_ctx, in tspd_smc_handler() 331 SMC_SET_EL3(&tsp_ctx->cpu_ctx, in tspd_smc_handler() 339 memcpy(&tsp_ctx->cpu_ctx, &tsp_ctx->sp_ctx, in tspd_smc_handler() 420 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_smc_handler() 527 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_smc_handler() [all …]
|
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()
|
D | tspd_private.h | 187 cpu_context_t cpu_ctx; member
|
D | tspd_pm.c | 160 write_ctx_reg(get_gpregs_ctx(&tsp_ctx->cpu_ctx), in tspd_cpu_suspend_finish_handler()
|
/external/arm-trusted-firmware/services/spd/opteed/ |
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()
|
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()
|
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()
|
D | opteed_private.h | 131 cpu_context_t cpu_ctx; member
|
/external/arm-trusted-firmware/services/std_svc/spm_mm/ |
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()
|
D | spm_mm_private.h | 47 cpu_context_t cpu_ctx; member
|
D | spm_mm_setup.c | 27 cpu_context_t *ctx = &(sp_ctx->cpu_ctx); in spm_sp_setup()
|
/external/arm-trusted-firmware/services/spd/tlkd/ |
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()
|
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()
|
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()
|
D | tlkd_private.h | 105 cpu_context_t cpu_ctx; member
|
/external/arm-trusted-firmware/services/std_svc/spmd/ |
D | spmd_pm.c | 94 cm_setup_context(&ctx->cpu_ctx, spmc_ep_info); in spmd_cpu_on_finish_handler() 95 write_ctx_reg(get_gpregs_ctx(&ctx->cpu_ctx), CTX_GPREG_X0, in spmd_cpu_on_finish_handler() 132 spmd_build_spmc_message(get_gpregs_ctx(&ctx->cpu_ctx), PSCI_CPU_OFF); in spmd_cpu_off_handler()
|
D | spmd_main.c | 108 cm_set_context(&(spmc_ctx->cpu_ctx), SECURE); in spmd_spm_core_sync_entry() 139 assert(cm_get_context(SECURE) == &(ctx->cpu_ctx)); in spmd_spm_core_sync_exit() 284 cm_setup_context(&spm_ctx->cpu_ctx, spmc_ep_info); in spmd_spmc_init()
|
D | spmd_private.h | 57 cpu_context_t cpu_ctx; member
|
/external/arm-trusted-firmware/services/spd/trusty/ |
D | trusty.c | 44 cpu_context_t cpu_ctx; member 311 uint64_t reg_width = GET_RW(read_ctx_reg(get_el3state_ctx(&ctx->cpu_ctx), in trusty_init() 324 cm_set_context(&ctx->cpu_ctx, SECURE); in trusty_init()
|