Home
last modified time | relevance | path

Searched refs:write_ctx_reg (Results 1 – 22 of 22) sorted by relevance

/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t186/drivers/mce/
Dmce.c192 write_ctx_reg(gp_regs, CTX_GPREG_X4, (0ULL)); in mce_command_handler()
193 write_ctx_reg(gp_regs, CTX_GPREG_X5, (0ULL)); in mce_command_handler()
194 write_ctx_reg(gp_regs, CTX_GPREG_X6, (0ULL)); in mce_command_handler()
207 write_ctx_reg(gp_regs, CTX_GPREG_X1, (ret64)); in mce_command_handler()
208 write_ctx_reg(gp_regs, CTX_GPREG_X2, (ret64)); in mce_command_handler()
221 write_ctx_reg(gp_regs, CTX_GPREG_X1, (uint64_t)(ret)); in mce_command_handler()
229 write_ctx_reg(gp_regs, CTX_GPREG_X1, (uint64_t)(ret)); in mce_command_handler()
230 write_ctx_reg(gp_regs, CTX_GPREG_X3, (uint64_t)(ret)); in mce_command_handler()
249 write_ctx_reg(gp_regs, CTX_GPREG_X1, ((ret64 == arg0) ? in mce_command_handler()
251 write_ctx_reg(gp_regs, CTX_GPREG_X2, ((ret64 == arg0) ? in mce_command_handler()
[all …]
/external/arm-trusted-firmware/include/arch/aarch64/
Dsmccc_helpers.h23 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))
/external/arm-trusted-firmware/services/std_svc/spm_mm/
Dspm_mm_setup.c68 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_SP_EL0, in spm_sp_setup()
119 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_MAIR_EL1, in spm_sp_setup()
122 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_TCR_EL1, in spm_sp_setup()
125 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_TTBR0_EL1, in spm_sp_setup()
165 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_SCTLR_EL1, sctlr_el1); in spm_sp_setup()
173 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_VBAR_EL1, in spm_sp_setup()
176 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_CNTKCTL_EL1, in spm_sp_setup()
186 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_CPACR_EL1, in spm_sp_setup()
Dspm_mm_main.c198 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()
/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t194/
Dplat_sip_calls.c68 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()
Dplat_psci_handlers.c362 write_ctx_reg((get_el1_sysregs_ctx(ctx)), (CTX_ACTLR_EL1), (actlr_elx)); in tegra_soc_pwr_domain_on_finish()
/external/arm-trusted-firmware/services/std_svc/spmd/
Dspmd_pm.c19 write_ctx_reg(gpregs, CTX_GPREG_X0, FFA_MSG_SEND_DIRECT_REQ_SMC32); in spmd_build_spmc_message()
20 write_ctx_reg(gpregs, CTX_GPREG_X1, in spmd_build_spmc_message()
23 write_ctx_reg(gpregs, CTX_GPREG_X2, FFA_PARAM_MBZ); in spmd_build_spmc_message()
24 write_ctx_reg(gpregs, CTX_GPREG_X3, message); in spmd_build_spmc_message()
95 write_ctx_reg(get_gpregs_ctx(&ctx->cpu_ctx), CTX_GPREG_X0, in spmd_cpu_on_finish_handler()
/external/arm-trusted-firmware/lib/el3_runtime/aarch64/
Dcontext_mgmt.c282 write_ctx_reg(get_el1_sysregs_ctx(ctx), CTX_SCTLR_EL1, sctlr_elx); in cm_setup_context()
292 write_ctx_reg((get_el1_sysregs_ctx(ctx)), (CTX_ACTLR_EL1), (actlr_elx)); in cm_setup_context()
299 write_ctx_reg(state, CTX_SCR_EL3, scr_el3); in cm_setup_context()
300 write_ctx_reg(state, CTX_ELR_EL3, ep->pc); in cm_setup_context()
301 write_ctx_reg(state, CTX_SPSR_EL3, ep->spsr); in cm_setup_context()
677 write_ctx_reg(state, CTX_ELR_EL3, entrypoint); in cm_set_elr_el3()
695 write_ctx_reg(state, CTX_ELR_EL3, entrypoint); in cm_set_elr_spsr_el3()
696 write_ctx_reg(state, CTX_SPSR_EL3, spsr); in cm_set_elr_spsr_el3()
729 write_ctx_reg(state, CTX_SCR_EL3, scr_el3); in cm_write_scr_el3_bit()
/external/arm-trusted-firmware/plat/nvidia/tegra/common/
Dtegra_fiq_glue.c139 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()
/external/arm-trusted-firmware/lib/el3_runtime/aarch32/
Dcontext_mgmt.c102 write_ctx_reg(reg_ctx, CTX_NS_SCTLR, sctlr); in cm_setup_context()
117 write_ctx_reg(reg_ctx, CTX_SCR, scr); in cm_setup_context()
118 write_ctx_reg(reg_ctx, CTX_LR, ep->pc); in cm_setup_context()
119 write_ctx_reg(reg_ctx, CTX_SPSR, ep->spsr); in cm_setup_context()
/external/arm-trusted-firmware/include/lib/el3_runtime/aarch64/
Dcontext.h410 #define write_ctx_reg(ctx, offset, val) (((ctx)->ctx_regs[(offset) >> DWORD_SHIFT]) \ macro
484 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X0, x0); \
487 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X1, x1); \
491 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X2, x2); \
495 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X3, x3); \
499 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X4, x4); \
503 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X5, x5); \
507 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X6, x6); \
511 write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X7, x7); \
/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t186/
Dplat_sip_calls.c116 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()
/external/arm-trusted-firmware/services/spd/opteed/
Dopteed_main.c249 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()
Dopteed_pm.c71 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()
/external/arm-trusted-firmware/services/spd/tlkd/
Dtlkd_pm.c55 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()
Dtlkd_main.c331 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()
/external/arm-trusted-firmware/services/std_svc/sdei/
Dsdei_intr_mgmt.c192 write_ctx_reg(tgt_el3, CTX_SPSR_EL3, disp_ctx->spsr_el3); in restore_event_ctx()
193 write_ctx_reg(tgt_el3, CTX_ELR_EL3, disp_ctx->elr_el3); in restore_event_ctx()
200 write_ctx_reg(tgt_cve_2018_3639, CTX_CVE_2018_3639_DISABLE, in restore_event_ctx()
278 write_ctx_reg(tgt_cve_2018_3639, CTX_CVE_2018_3639_DISABLE, 0); in setup_ns_dispatch()
/external/arm-trusted-firmware/include/lib/el3_runtime/aarch32/
Dcontext.h51 #define write_ctx_reg(ctx, offset, val) (((ctx)->ctx_regs[offset >> WORD_SHIFT]) \ macro
/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t210/
Dplat_sip_calls.c84 write_ctx_reg(get_gpregs_ctx(handle), CTX_GPREG_X1, val); in plat_sip_handler()
/external/arm-trusted-firmware/services/spd/tspd/
Dtspd_pm.c160 write_ctx_reg(get_gpregs_ctx(&tsp_ctx->cpu_ctx), in tspd_cpu_suspend_finish_handler()
/external/arm-trusted-firmware/services/spd/trusty/
Dtrusty.c163 write_ctx_reg(get_el1_sysregs_ctx(handle), CTX_SP_EL1, ctx->fiq_handler_sp); in trusty_fiq_handler()
222 write_ctx_reg(get_el1_sysregs_ctx(handle), CTX_SP_EL1, ctx->fiq_sp_el1); in trusty_fiq_exit()
/external/arm-trusted-firmware/bl31/
Dehf.c352 write_ctx_reg(get_gpregs_ctx(ns_ctx), CTX_GPREG_X0, preempt_ret_code); in ehf_allow_ns_preemption()