Home
last modified time | relevance | path

Searched refs:read_sysreg (Results 1 – 25 of 59) sorted by relevance

123

/linux-6.3-rc2/tools/testing/selftests/kvm/include/aarch64/
A Darch_timer.h31 return read_sysreg(cntfrq_el0); in timer_get_cntfrq()
40 return read_sysreg(cntvct_el0); in timer_get_cntct()
42 return read_sysreg(cntpct_el0); in timer_get_cntct()
71 return read_sysreg(cntv_cval_el0); in timer_get_cval()
73 return read_sysreg(cntp_cval_el0); in timer_get_cval()
118 return read_sysreg(cntv_ctl_el0); in timer_get_ctl()
120 return read_sysreg(cntp_ctl_el0); in timer_get_ctl()
/linux-6.3-rc2/arch/arm64/kvm/hyp/include/hyp/
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()
57 ctxt_sys_reg(ctxt, TPIDR_EL1) = read_sysreg(tpidr_el1); in __sysreg_save_el1_state()
64 ctxt_sys_reg(ctxt, SP_EL1) = read_sysreg(sp_el1); in __sysreg_save_el1_state()
205 vcpu->arch.ctxt.spsr_abt = read_sysreg(spsr_abt); in __sysreg32_save_state()
206 vcpu->arch.ctxt.spsr_und = read_sysreg(spsr_und); in __sysreg32_save_state()
207 vcpu->arch.ctxt.spsr_irq = read_sysreg(spsr_irq); in __sysreg32_save_state()
208 vcpu->arch.ctxt.spsr_fiq = read_sysreg(spsr_fiq); in __sysreg32_save_state()
210 __vcpu_sys_reg(vcpu, DACR32_EL2) = read_sysreg(dacr32_el2); in __sysreg32_save_state()
[all …]
A Dswitch.h52 __vcpu_sys_reg(vcpu, FPEXC32_EL2) = read_sysreg(fpexc32_el2); in __fpsimd_save_fpexc32()
88 vcpu->arch.mdcr_el2_host = read_sysreg(mdcr_el2); in __activate_traps_common()
144 vcpu->arch.hcr_el2 |= read_sysreg(hcr_el2) & HCR_VSE; in ___deactivate_traps()
212 if (!(read_sysreg(hcr_el2) & HCR_RW)) in kvm_hyp_handle_fpsimd()
322 val = read_sysreg(hcr_el2); in kvm_hyp_handle_ptrauth()
498 unsigned long elr_el2 = read_sysreg(elr_el2); in __kvm_unexpected_el2_exception()
A Ddebug-sr.h18 #define read_debug(r,n) read_sysreg(r##n##_el1)
97 aa64dfr0 = read_sysreg(id_aa64dfr0_el1); in __debug_save_state()
106 ctxt_sys_reg(ctxt, MDCCINT_EL1) = read_sysreg(mdccint_el1); in __debug_save_state()
115 aa64dfr0 = read_sysreg(id_aa64dfr0_el1); in __debug_restore_state()
A Dfault.h67 hpfar = read_sysreg(hpfar_el2); in __get_fault_info()
/linux-6.3-rc2/arch/arm64/kernel/
A Dentry-common.c320 reg = read_sysreg(mdscr_el1); in cortex_a76_erratum_1463225_svc_handler()
363 unsigned long far = read_sysreg(far_el1); in el1_abort()
374 unsigned long far = read_sysreg(far_el1); in el1_pc()
403 unsigned long far = read_sysreg(far_el1); in el1_dbg()
422 unsigned long esr = read_sysreg(esr_el1); in el1h_64_sync_handler()
501 unsigned long esr = read_sysreg(esr_el1); in el1h_64_error_handler()
511 unsigned long far = read_sysreg(far_el1); in el0_da()
521 unsigned long far = read_sysreg(far_el1); in el0_ia()
579 unsigned long far = read_sysreg(far_el1); in el0_pc()
625 unsigned long far = read_sysreg(far_el1); in el0_dbg()
[all …]
A Dsdei.c215 u64 elr = read_sysreg(elr_el1); in do_sdei_event()
216 u32 kernel_mode = read_sysreg(CurrentEL) | 1; /* +SPSel */ in do_sdei_event()
217 unsigned long vbar = read_sysreg(vbar_el1); in do_sdei_event()
232 if (elr != read_sysreg(elr_el1)) { in do_sdei_event()
A Dcrash_core.c16 return (read_sysreg(tcr_el1) & TCR_T1SZ_MASK) >> TCR_T1SZ_OFFSET; in get_tcr_el1_t1sz()
A Dmte.c305 BUG_ON(read_sysreg(ttbr0_el1) & TTBR_CNP_BIT); in mte_cpu_setup()
306 BUG_ON(read_sysreg(ttbr1_el1) & TTBR_CNP_BIT); in mte_cpu_setup()
322 rgsr = (read_sysreg(CNTVCT_EL0) & SYS_RGSR_EL1_SEED_MASK) << in mte_cpu_setup()
/linux-6.3-rc2/arch/arm/include/asm/
A Darch_gicv3.h48 return read_sysreg(a32); \
75 u32 irqstat = read_sysreg(ICC_IAR1); in gic_read_iar()
90 return read_sysreg(ICC_CTLR); in gic_read_ctlr()
106 return read_sysreg(ICC_SRE); in gic_read_sre()
122 return read_sysreg(ICC_PMR); in gic_read_pmr()
132 return read_sysreg(ICC_RPR); in gic_read_rpr()
/linux-6.3-rc2/arch/arm64/include/asm/
A Darch_timer.h143 return read_sysreg(cntp_ctl_el0); in arch_timer_reg_read_cp15()
150 return read_sysreg(cntv_ctl_el0); in arch_timer_reg_read_cp15()
162 return read_sysreg(cntfrq_el0); in arch_timer_get_cntfrq()
167 return read_sysreg(cntkctl_el1); in arch_timer_get_cntkctl()
A Ddcc.h20 return read_sysreg(mdccsr_el0); in __dcc_getstatus()
25 char c = read_sysreg(dbgdtrrx_el0); in __dcc_getchar()
A Ddaifflags.h45 flags = read_sysreg(daif); in local_daif_save_flags()
72 (read_sysreg(daif) & (PSR_I_BIT | PSR_F_BIT)) != (PSR_I_BIT | PSR_F_BIT)); in local_daif_restore()
A Dcpuidle.h19 c->daif_bits = read_sysreg(daif); \
A Dvirt.h115 return read_sysreg(CurrentEL) == CurrentEL_EL2; in is_kernel_in_hyp_mode()
A Dhardirq.h42 ___hcr = read_sysreg(hcr_el2); \
/linux-6.3-rc2/arch/arm64/kvm/hyp/nvhe/
A Dtimer-sr.c27 val = read_sysreg(cnthctl_el2); in __timer_disable_traps()
44 val = read_sysreg(cnthctl_el2); in __timer_enable_traps()
/linux-6.3-rc2/tools/testing/selftests/kvm/aarch64/
A Ddebug-exceptions.c118 dfr0 = read_sysreg(id_aa64dfr0_el1); in GEN_DEBUG_WRITE_REG()
138 GUEST_ASSERT(read_sysreg(oslsr_el1) & 2); in enable_os_lock()
147 mdscr = read_sysreg(mdscr_el1) | MDSCR_KDE | MDSCR_MDE; in enable_monitor_debug_exceptions()
230 mdscr = read_sysreg(mdscr_el1) | MDSCR_KDE | MDSCR_SS; in install_ss()
361 wp_data_addr = read_sysreg(far_el1); in guest_wp_handler()
407 bvr = read_sysreg(dbgbvr0_el1); in guest_code_ss()
408 wvr = read_sysreg(dbgwvr0_el1); in guest_code_ss()
/linux-6.3-rc2/arch/arm64/kvm/
A Dfpsimd.c87 if (read_sysreg(cpacr_el1) & CPACR_EL1_ZEN_EL0EN) in kvm_arch_vcpu_load_fp()
101 if (read_sysreg(cpacr_el1) & CPACR_EL1_SMEN_EL0EN) in kvm_arch_vcpu_load_fp()
A Dpmu.c67 return read_sysreg(pmevtyper##idx##_el0)
116 return read_sysreg(pmccfiltr_el0); in kvm_vcpu_pmu_read_evtype_direct()
/linux-6.3-rc2/tools/lib/perf/
A Dmmap.c299 #define read_sysreg(r) ({ \ macro
307 return read_sysreg(pmccntr_el0); in read_pmccntr()
312 return read_sysreg(pmevcntr##idx##_el0); \
393 static u64 read_timestamp(void) { return read_sysreg(cntvct_el0); } in read_timestamp()
/linux-6.3-rc2/arch/arm64/kvm/hyp/vhe/
A Ddebug-sr.c25 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
A Dswitch.c42 val = read_sysreg(cpacr_el1); in __activate_traps()
252 read_sysreg(hpfar_el2), par, vcpu); in __hyp_call_panic()
/linux-6.3-rc2/drivers/clocksource/
A Darm_arch_timer.c261 _old = read_sysreg(reg); \
262 _new = read_sysreg(reg); \
297 _old = read_sysreg(reg); \
298 _new = read_sysreg(reg); \
345 old = read_sysreg(cntpct_el0); in arm64_858921_read_cntpct_el0()
346 new = read_sysreg(cntpct_el0); in arm64_858921_read_cntpct_el0()
354 old = read_sysreg(cntvct_el0); in arm64_858921_read_cntvct_el0()
355 new = read_sysreg(cntvct_el0); in arm64_858921_read_cntvct_el0()
373 _val = read_sysreg(reg); \
/linux-6.3-rc2/arch/arm/include/asm/vdso/
A Dcp15.h24 #define read_sysreg(...) __read_sysreg(__VA_ARGS__) macro

Completed in 34 milliseconds

123