Home
last modified time | relevance | path

Searched refs:ctxt_sys_reg (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/arch/arm64/kvm/hyp/include/hyp/
H A Dsysreg-sr.h21 ctxt_sys_reg(ctxt, MDSCR_EL1) = read_sysreg(mdscr_el1); in __sysreg_save_common_state()
26 ctxt_sys_reg(ctxt, TPIDR_EL0) = read_sysreg(tpidr_el0); in __sysreg_save_user_state()
27 ctxt_sys_reg(ctxt, TPIDRRO_EL0) = read_sysreg(tpidrro_el0); in __sysreg_save_user_state()
42 ctxt_sys_reg(ctxt, SCTLR_EL1) = read_sysreg_el1(SYS_SCTLR); in __sysreg_save_el1_state()
43 ctxt_sys_reg(ctxt, CPACR_EL1) = read_sysreg_el1(SYS_CPACR); in __sysreg_save_el1_state()
44 ctxt_sys_reg(ctxt, TTBR0_EL1) = read_sysreg_el1(SYS_TTBR0); in __sysreg_save_el1_state()
45 ctxt_sys_reg(ctxt, TTBR1_EL1) = read_sysreg_el1(SYS_TTBR1); in __sysreg_save_el1_state()
46 ctxt_sys_reg(ctxt, TCR_EL1) = read_sysreg_el1(SYS_TCR); in __sysreg_save_el1_state()
48 ctxt_sys_reg(ctxt, TCR2_EL1) = read_sysreg_el1(SYS_TCR2); in __sysreg_save_el1_state()
49 ctxt_sys_reg(ctxt, ESR_EL1) = read_sysreg_el1(SYS_ESR); in __sysreg_save_el1_state()
[all …]
H A Dswitch.h91 ctxt_sys_reg(hctxt, HFGRTR_EL2) = read_sysreg_s(SYS_HFGRTR_EL2); in __activate_traps_hfgxtr()
92 ctxt_sys_reg(hctxt, HFGWTR_EL2) = read_sysreg_s(SYS_HFGWTR_EL2); in __activate_traps_hfgxtr()
127 ctxt_sys_reg(hctxt, HFGITR_EL2) = read_sysreg_s(SYS_HFGITR_EL2); in __activate_traps_hfgxtr()
137 ctxt_sys_reg(hctxt, HDFGRTR_EL2) = read_sysreg_s(SYS_HDFGRTR_EL2); in __activate_traps_hfgxtr()
138 ctxt_sys_reg(hctxt, HDFGWTR_EL2) = read_sysreg_s(SYS_HDFGWTR_EL2); in __activate_traps_hfgxtr()
164 write_sysreg_s(ctxt_sys_reg(hctxt, HFGRTR_EL2), SYS_HFGRTR_EL2); in __deactivate_traps_hfgxtr()
165 write_sysreg_s(ctxt_sys_reg(hctxt, HFGWTR_EL2), SYS_HFGWTR_EL2); in __deactivate_traps_hfgxtr()
170 write_sysreg_s(ctxt_sys_reg(hctxt, HFGITR_EL2), SYS_HFGITR_EL2); in __deactivate_traps_hfgxtr()
171 write_sysreg_s(ctxt_sys_reg(hctxt, HDFGRTR_EL2), SYS_HDFGRTR_EL2); in __deactivate_traps_hfgxtr()
172 write_sysreg_s(ctxt_sys_reg(hctxt, HDFGWTR_EL2), SYS_HDFGWTR_EL2); in __deactivate_traps_hfgxtr()
[all …]
H A Ddebug-sr.h106 ctxt_sys_reg(ctxt, MDCCINT_EL1) = read_sysreg(mdccint_el1); in __debug_save_state()
125 write_sysreg(ctxt_sys_reg(ctxt, MDCCINT_EL1), mdccint_el1); in __debug_restore_state()
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dswitch.c78 write_sysreg_el1(ctxt_sys_reg(ctxt, SCTLR_EL1), SYS_SCTLR); in __activate_traps()
80 write_sysreg_el1(ctxt_sys_reg(ctxt, TCR_EL1), SYS_TCR); in __activate_traps()
/openbmc/linux/arch/arm64/include/asm/
H A Dkvm_emulate.h211 return ctxt_sys_reg(ctxt, HCR_EL2) & HCR_E2H; in __vcpu_el2_e2h_is_set()
221 return ctxt_sys_reg(ctxt, HCR_EL2) & HCR_TGE; in __vcpu_el2_tge_is_set()
H A Dkvm_host.h797 #define ctxt_sys_reg(c,r) (*__ctxt_sys_reg(c,r)) macro
799 #define __vcpu_sys_reg(v,r) (ctxt_sys_reg(&(v)->arch.ctxt, (r)))
1048 ctxt_sys_reg(cpu_ctxt, MPIDR_EL1) = read_cpuid_mpidr(); in kvm_init_host_cpu_context()
/openbmc/linux/arch/arm64/kvm/
H A Dpmu.c236 ctxt_sys_reg(hctxt, PMUSERENR_EL0) = val; in kvm_set_pmuserenr()