Home
last modified time | relevance | path

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

123

/linux-6.6.21/arch/arm64/include/asm/
Darm_pmuv3.h15 return read_sysreg(pmevcntr##n##_el0)
43 u64 dfr0 = read_sysreg(id_aa64dfr0_el1); in read_pmuver()
56 return read_sysreg(pmcr_el0); in read_pmcr()
71 return read_sysreg(pmccntr_el0); in read_pmccntr()
106 return read_sysreg(pmovsclr_el0); in read_pmovsclr()
116 return read_sysreg(pmceid0_el0); in read_pmceid0()
121 return read_sysreg(pmceid1_el0); in read_pmceid1()
Darch_timer.h137 return read_sysreg(cntp_ctl_el0); in arch_timer_reg_read_cp15()
144 return read_sysreg(cntv_ctl_el0); in arch_timer_reg_read_cp15()
156 return read_sysreg(cntfrq_el0); in arch_timer_get_cntfrq()
161 return read_sysreg(cntkctl_el1); in arch_timer_get_cntkctl()
Ddcc.h20 return read_sysreg(mdccsr_el0); in __dcc_getstatus()
25 char c = read_sysreg(dbgdtrrx_el0); in __dcc_getchar()
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()
Dcpuidle.h19 c->daif_bits = read_sysreg(daif); \
/linux-6.6.21/tools/testing/selftests/kvm/include/aarch64/
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.6.21/arch/arm64/kvm/hyp/include/hyp/
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()
63 ctxt_sys_reg(ctxt, TPIDR_EL1) = read_sysreg(tpidr_el1); in __sysreg_save_el1_state()
70 ctxt_sys_reg(ctxt, SP_EL1) = read_sysreg(sp_el1); in __sysreg_save_el1_state()
217 vcpu->arch.ctxt.spsr_abt = read_sysreg(spsr_abt); in __sysreg32_save_state()
218 vcpu->arch.ctxt.spsr_und = read_sysreg(spsr_und); in __sysreg32_save_state()
219 vcpu->arch.ctxt.spsr_irq = read_sysreg(spsr_irq); in __sysreg32_save_state()
220 vcpu->arch.ctxt.spsr_fiq = read_sysreg(spsr_fiq); in __sysreg32_save_state()
222 __vcpu_sys_reg(vcpu, DACR32_EL2) = read_sysreg(dacr32_el2); in __sysreg32_save_state()
[all …]
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()
Dswitch.h53 __vcpu_sys_reg(vcpu, FPEXC32_EL2) = read_sysreg(fpexc32_el2); in __fpsimd_save_fpexc32()
192 ctxt_sys_reg(hctxt, PMUSERENR_EL0) = read_sysreg(pmuserenr_el0); in __activate_traps_common()
197 vcpu->arch.mdcr_el2_host = read_sysreg(mdcr_el2); in __activate_traps_common()
259 vcpu->arch.hcr_el2 |= read_sysreg(hcr_el2) & HCR_VSE; in ___deactivate_traps()
335 if (!(read_sysreg(hcr_el2) & HCR_RW)) in kvm_hyp_handle_fpsimd()
445 val = read_sysreg(hcr_el2); in kvm_hyp_handle_ptrauth()
705 unsigned long elr_el2 = read_sysreg(elr_el2); in __kvm_unexpected_el2_exception()
Dfault.h67 hpfar = read_sysreg(hpfar_el2); in __get_fault_info()
/linux-6.6.21/arch/arm64/kernel/
Dentry-common.c255 if (system_uses_irq_prio_masking() && read_sysreg(daif)) in arm64_preempt_schedule_irq()
305 __panic_unhandled(regs, desc, read_sysreg(esr_el1)); \
322 reg = read_sysreg(mdscr_el1); in cortex_a76_erratum_1463225_svc_handler()
394 unsigned long far = read_sysreg(far_el1); in el1_abort()
405 unsigned long far = read_sysreg(far_el1); in el1_pc()
434 unsigned long far = read_sysreg(far_el1); in el1_dbg()
453 unsigned long esr = read_sysreg(esr_el1); in el1h_64_sync_handler()
532 unsigned long esr = read_sysreg(esr_el1); in el1h_64_error_handler()
542 unsigned long far = read_sysreg(far_el1); in el0_da()
552 unsigned long far = read_sysreg(far_el1); in el0_ia()
[all …]
Dsdei.c218 u64 elr = read_sysreg(elr_el1); in do_sdei_event()
219 u32 kernel_mode = read_sysreg(CurrentEL) | 1; /* +SPSel */ in do_sdei_event()
220 unsigned long vbar = read_sysreg(vbar_el1); in do_sdei_event()
235 if (elr != read_sysreg(elr_el1)) { in do_sdei_event()
Dcrash_core.c17 return (read_sysreg(tcr_el1) & TCR_T1SZ_MASK) >> TCR_T1SZ_OFFSET; in get_tcr_el1_t1sz()
Dmte.c279 BUG_ON(read_sysreg(ttbr0_el1) & TTBR_CNP_BIT); in mte_cpu_setup()
280 BUG_ON(read_sysreg(ttbr1_el1) & TTBR_CNP_BIT); in mte_cpu_setup()
296 rgsr = (read_sysreg(CNTVCT_EL0) & SYS_RGSR_EL1_SEED_MASK) << in mte_cpu_setup()
/linux-6.6.21/arch/arm/include/asm/
Darm_pmuv3.h96 return read_sysreg(PMEVCNTR##n)
119 return read_sysreg(PMMIR); in read_pmmir()
137 return read_sysreg(PMCR); in read_pmcr()
152 return read_sysreg(PMCCNTR); in read_pmccntr()
187 return read_sysreg(PMOVSR); in read_pmovsclr()
234 u64 val = read_sysreg(PMCEID0); in read_pmceid0()
237 val |= (u64)read_sysreg(PMCEID2) << 32; in read_pmceid0()
244 u64 val = read_sysreg(PMCEID1); in read_pmceid1()
247 val |= (u64)read_sysreg(PMCEID3) << 32; in read_pmceid1()
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.6.21/tools/testing/selftests/kvm/aarch64/
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.6.21/arch/arm64/kvm/
Dfpsimd.c92 if (read_sysreg(cpacr_el1) & CPACR_EL1_ZEN_EL0EN) in kvm_arch_vcpu_load_fp()
97 if (read_sysreg(cpacr_el1) & CPACR_EL1_SMEN_EL0EN) in kvm_arch_vcpu_load_fp()
Dpmu.c67 return read_sysreg(pmevtyper##idx##_el0)
116 return read_sysreg(pmccfiltr_el0); in kvm_vcpu_pmu_read_evtype_direct()
/linux-6.6.21/tools/lib/perf/
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.6.21/arch/arm64/kvm/hyp/vhe/
Ddebug-sr.c25 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
Dswitch.c62 val = read_sysreg(cpacr_el1); in __activate_traps()
310 read_sysreg(hpfar_el2), par, vcpu); in __hyp_call_panic()
/linux-6.6.21/drivers/clocksource/
Darm_arch_timer.c279 _old = read_sysreg(reg); \
280 _new = read_sysreg(reg); \
315 _old = read_sysreg(reg); \
316 _new = read_sysreg(reg); \
363 old = read_sysreg(cntpct_el0); in arm64_858921_read_cntpct_el0()
364 new = read_sysreg(cntpct_el0); in arm64_858921_read_cntpct_el0()
372 old = read_sysreg(cntvct_el0); in arm64_858921_read_cntvct_el0()
373 new = read_sysreg(cntvct_el0); in arm64_858921_read_cntvct_el0()
391 _val = read_sysreg(reg); \
/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dtimer-sr.c31 val = read_sysreg(cnthctl_el2); in __timer_disable_traps()
/linux-6.6.21/arch/arm/include/asm/vdso/
Dcp15.h24 #define read_sysreg(...) __read_sysreg(__VA_ARGS__) macro

123