/trusted-firmware-a/include/arch/aarch64/ |
A D | smccc_helpers.h | 23 write_ctx_reg((get_gpregs_ctx(_h)), (CTX_GPREG_X0), (_x0)); \ 27 write_ctx_reg((get_gpregs_ctx(_h)), (CTX_GPREG_X1), (_x1)); \ 31 write_ctx_reg((get_gpregs_ctx(_h)), (CTX_GPREG_X2), (_x2)); \ 35 write_ctx_reg((get_gpregs_ctx(_h)), (CTX_GPREG_X3), (_x3)); \ 39 write_ctx_reg((get_gpregs_ctx(_h)), (CTX_GPREG_X4), (_x4)); \ 43 write_ctx_reg((get_gpregs_ctx(_h)), (CTX_GPREG_X5), (_x5)); \ 47 write_ctx_reg((get_gpregs_ctx(_h)), (CTX_GPREG_X6), (_x6)); \ 51 write_ctx_reg((get_gpregs_ctx(_h)), (CTX_GPREG_X7), (_x7)); \ 62 write_ctx_reg((get_gpregs_ctx(_h)), (_g), (_v)) 71 write_ctx_reg((get_el3state_ctx(_h)), (_e), (_v))
|
/trusted-firmware-a/plat/nvidia/tegra/soc/t186/drivers/mce/ |
A D | mce.c | 194 write_ctx_reg(gp_regs, CTX_GPREG_X4, (0ULL)); in mce_command_handler() 195 write_ctx_reg(gp_regs, CTX_GPREG_X5, (0ULL)); in mce_command_handler() 196 write_ctx_reg(gp_regs, CTX_GPREG_X6, (0ULL)); in mce_command_handler() 209 write_ctx_reg(gp_regs, CTX_GPREG_X1, (ret64)); in mce_command_handler() 210 write_ctx_reg(gp_regs, CTX_GPREG_X2, (ret64)); in mce_command_handler() 266 write_ctx_reg(gp_regs, CTX_GPREG_X1, (ret64)); in mce_command_handler() 276 write_ctx_reg(gp_regs, CTX_GPREG_X1, (ret64)); in mce_command_handler() 299 write_ctx_reg(gp_regs, CTX_GPREG_X1, (ret64)); in mce_command_handler() 300 write_ctx_reg(gp_regs, CTX_GPREG_X2, (arg1)); in mce_command_handler() 301 write_ctx_reg(gp_regs, CTX_GPREG_X3, (ret64)); in mce_command_handler() [all …]
|
/trusted-firmware-a/services/std_svc/spm_mm/ |
A D | spm_mm_setup.c | 73 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_SP_EL0, in spm_sp_setup() 124 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_MAIR_EL1, in spm_sp_setup() 127 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_TCR_EL1, in spm_sp_setup() 130 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_TTBR0_EL1, in spm_sp_setup() 170 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_SCTLR_EL1, sctlr_el1); in spm_sp_setup() 178 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_VBAR_EL1, in spm_sp_setup() 181 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_CNTKCTL_EL1, in spm_sp_setup() 191 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_CPACR_EL1, in spm_sp_setup()
|
A D | spm_mm_main.c | 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()
|
/trusted-firmware-a/plat/nvidia/tegra/soc/t194/ |
A D | plat_sip_calls.c | 68 write_ctx_reg(get_gpregs_ctx(handle), CTX_GPREG_X1, per[0]); in plat_sip_handler() 69 write_ctx_reg(get_gpregs_ctx(handle), CTX_GPREG_X2, per[1]); in plat_sip_handler() 70 write_ctx_reg(get_gpregs_ctx(handle), CTX_GPREG_X3, per[2]); in plat_sip_handler() 91 write_ctx_reg(get_gpregs_ctx(handle), CTX_GPREG_X1, local_x1); in plat_sip_handler()
|
/trusted-firmware-a/lib/extensions/sme/ |
A D | sme.c | 49 write_ctx_reg(state, CTX_CPTR_EL3, reg); in sme_enable() 54 write_ctx_reg(state, CTX_SCR_EL3, reg); in sme_enable() 97 write_ctx_reg(state, CTX_CPTR_EL3, reg); in sme_disable() 102 write_ctx_reg(state, CTX_SCR_EL3, reg); in sme_disable()
|
/trusted-firmware-a/services/std_svc/spmd/ |
A D | spmd_pm.c | 29 write_ctx_reg(gpregs, CTX_GPREG_X0, FFA_MSG_SEND_DIRECT_REQ_SMC32); in spmd_build_spmc_message() 30 write_ctx_reg(gpregs, CTX_GPREG_X1, in spmd_build_spmc_message() 33 write_ctx_reg(gpregs, CTX_GPREG_X2, FFA_PARAM_MBZ); in spmd_build_spmc_message() 34 write_ctx_reg(gpregs, CTX_GPREG_X3, message); in spmd_build_spmc_message() 106 write_ctx_reg(el3_state, CTX_ELR_EL3, entry_point); in spmd_cpu_on_finish_handler()
|
A D | spmd_main.c | 201 write_ctx_reg(gpregs, CTX_GPREG_X0, FFA_INTERRUPT); in spmd_secure_interrupt_handler() 202 write_ctx_reg(gpregs, CTX_GPREG_X1, 0); in spmd_secure_interrupt_handler() 203 write_ctx_reg(gpregs, CTX_GPREG_X2, 0); in spmd_secure_interrupt_handler() 204 write_ctx_reg(gpregs, CTX_GPREG_X3, 0); in spmd_secure_interrupt_handler() 205 write_ctx_reg(gpregs, CTX_GPREG_X4, 0); in spmd_secure_interrupt_handler() 206 write_ctx_reg(gpregs, CTX_GPREG_X5, 0); in spmd_secure_interrupt_handler() 207 write_ctx_reg(gpregs, CTX_GPREG_X6, 0); in spmd_secure_interrupt_handler() 208 write_ctx_reg(gpregs, CTX_GPREG_X7, 0); in spmd_secure_interrupt_handler() 341 write_ctx_reg(get_gpregs_ctx(cpu_ctx), CTX_GPREG_X4, core_id); in spmd_spmc_init()
|
/trusted-firmware-a/plat/nvidia/tegra/common/ |
A D | tegra_fiq_glue.c | 139 write_ctx_reg((gpregs_ctx), (uint32_t)(CTX_GPREG_X0), (fiq_state[cpu].elr_el3)); in tegra_fiq_get_intr_context() 140 write_ctx_reg((gpregs_ctx), (uint32_t)(CTX_GPREG_X1), (fiq_state[cpu].spsr_el3)); in tegra_fiq_get_intr_context() 143 write_ctx_reg((gpregs_ctx), (uint32_t)(CTX_GPREG_X2), (val)); in tegra_fiq_get_intr_context() 146 write_ctx_reg((gpregs_ctx), (uint32_t)(CTX_GPREG_X3), (val)); in tegra_fiq_get_intr_context()
|
/trusted-firmware-a/lib/extensions/sve/ |
A D | sve.c | 40 write_ctx_reg(get_el3state_ctx(context), CTX_CPTR_EL3, cptr_el3); in sve_enable() 43 write_ctx_reg(get_el3state_ctx(context), CTX_ZCR_EL3, in sve_enable() 64 write_ctx_reg(state, CTX_CPTR_EL3, reg); in sve_disable()
|
/trusted-firmware-a/lib/el3_runtime/aarch64/ |
A D | context_mgmt.c | 221 write_ctx_reg(get_el3state_ctx(ctx), CTX_CPTR_EL3, read_cptr_el3()); in cm_setup_context() 335 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_SCTLR_EL1, sctlr_elx); in cm_setup_context() 345 write_ctx_reg((get_el1_sysregs_ctx(ctx)), (CTX_ACTLR_EL1), (actlr_elx)); in cm_setup_context() 352 write_ctx_reg(state, CTX_SCR_EL3, scr_el3); in cm_setup_context() 353 write_ctx_reg(state, CTX_ELR_EL3, ep->pc); in cm_setup_context() 354 write_ctx_reg(state, CTX_SPSR_EL3, ep->spsr); in cm_setup_context() 793 write_ctx_reg(state, CTX_ELR_EL3, entrypoint); in cm_set_elr_el3() 811 write_ctx_reg(state, CTX_ELR_EL3, entrypoint); in cm_set_elr_spsr_el3() 812 write_ctx_reg(state, CTX_SPSR_EL3, spsr); in cm_set_elr_spsr_el3() 845 write_ctx_reg(state, CTX_SCR_EL3, scr_el3); in cm_write_scr_el3_bit()
|
/trusted-firmware-a/lib/el3_runtime/aarch32/ |
A D | context_mgmt.c | 104 write_ctx_reg(reg_ctx, CTX_NS_SCTLR, sctlr); in cm_setup_context() 119 write_ctx_reg(reg_ctx, CTX_SCR, scr); in cm_setup_context() 120 write_ctx_reg(reg_ctx, CTX_LR, ep->pc); in cm_setup_context() 121 write_ctx_reg(reg_ctx, CTX_SPSR, ep->spsr); in cm_setup_context()
|
/trusted-firmware-a/plat/nvidia/tegra/soc/t186/ |
A D | plat_sip_calls.c | 116 write_ctx_reg(get_gpregs_ctx(handle), in plat_sip_handler() 145 write_ctx_reg(get_gpregs_ctx(handle), in plat_sip_handler() 147 write_ctx_reg(get_gpregs_ctx(handle), in plat_sip_handler()
|
/trusted-firmware-a/include/lib/el3_runtime/aarch64/ |
A D | context.h | 404 #define write_ctx_reg(ctx, offset, val) (((ctx)->ctx_regs[(offset) >> DWORD_SHIFT]) \ macro 477 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X0, x0); \ 480 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X1, x1); \ 484 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X2, x2); \ 488 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X3, x3); \ 492 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X4, x4); \ 496 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X5, x5); \ 500 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X6, x6); \ 504 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X7, x7); \
|
/trusted-firmware-a/services/spd/tlkd/ |
A D | tlkd_pm.c | 55 write_ctx_reg(gp_regs, CTX_GPREG_X0, TLK_SYSTEM_SUSPEND); in cpu_suspend_handler() 88 write_ctx_reg(gp_regs, CTX_GPREG_X0, TLK_SYSTEM_RESUME); in cpu_resume_handler()
|
A D | tlkd_main.c | 331 write_ctx_reg(gp_regs, CTX_GPREG_X4, (uint32_t)x2); in tlkd_smc_handler() 332 write_ctx_reg(gp_regs, CTX_GPREG_X5, (uint32_t)(x2 >> 32)); in tlkd_smc_handler() 333 write_ctx_reg(gp_regs, CTX_GPREG_X6, (uint32_t)x3); in tlkd_smc_handler() 334 write_ctx_reg(gp_regs, CTX_GPREG_X7, (uint32_t)(x3 >> 32)); in tlkd_smc_handler()
|
/trusted-firmware-a/services/spd/opteed/ |
A D | opteed_main.c | 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()
|
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()
|
/trusted-firmware-a/lib/extensions/sys_reg_trace/aarch64/ |
A D | sys_reg_trace.c | 35 write_ctx_reg(get_el3state_ctx(ctx), CTX_CPTR_EL3, val); in sys_reg_trace_enable()
|
/trusted-firmware-a/include/lib/el3_runtime/aarch32/ |
A D | context.h | 51 #define write_ctx_reg(ctx, offset, val) (((ctx)->ctx_regs[offset >> WORD_SHIFT]) \ macro
|
/trusted-firmware-a/plat/nvidia/tegra/soc/t210/ |
A D | plat_sip_calls.c | 87 write_ctx_reg(get_gpregs_ctx(handle), CTX_GPREG_X1, val); in plat_sip_handler()
|
/trusted-firmware-a/services/std_svc/sdei/ |
A D | sdei_intr_mgmt.c | 195 write_ctx_reg(tgt_el3, CTX_SPSR_EL3, disp_ctx->spsr_el3); in restore_event_ctx() 196 write_ctx_reg(tgt_el3, CTX_ELR_EL3, disp_ctx->elr_el3); in restore_event_ctx() 203 write_ctx_reg(tgt_cve_2018_3639, CTX_CVE_2018_3639_DISABLE, in restore_event_ctx() 345 write_ctx_reg(tgt_cve_2018_3639, CTX_CVE_2018_3639_DISABLE, 0); in setup_ns_dispatch()
|
/trusted-firmware-a/services/spd/tspd/ |
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/trusty/ |
A D | trusty.c | 165 write_ctx_reg(get_el1_sysregs_ctx(handle), CTX_SP_EL1, ctx->fiq_handler_sp); in trusty_fiq_handler() 224 write_ctx_reg(get_el1_sysregs_ctx(handle), CTX_SP_EL1, ctx->fiq_sp_el1); in trusty_fiq_exit()
|
/trusted-firmware-a/bl31/ |
A D | ehf.c | 352 write_ctx_reg(get_gpregs_ctx(ns_ctx), CTX_GPREG_X0, preempt_ret_code); in ehf_allow_ns_preemption()
|