Home
last modified time | relevance | path

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

12

/Linux-v5.10/arch/arm64/include/asm/
Darch_timer.h70 return read_sysreg(cntp_tval_el0); in arch_timer_read_cntp_tval_el0()
75 return read_sysreg(cntv_tval_el0); in arch_timer_read_cntv_tval_el0()
80 return read_sysreg(cntpct_el0); in arch_timer_read_cntpct_el0()
85 return read_sysreg(cntvct_el0); in arch_timer_read_cntvct_el0()
136 return read_sysreg(cntp_ctl_el0); in arch_timer_reg_read_cp15()
143 return read_sysreg(cntv_ctl_el0); in arch_timer_reg_read_cp15()
154 return read_sysreg(cntfrq_el0); in arch_timer_get_cntfrq()
159 return read_sysreg(cntkctl_el1); in arch_timer_get_cntkctl()
202 cnt = read_sysreg(cntpct_el0); in __arch_counter_get_cntpct()
222 cnt = read_sysreg(cntvct_el0); in __arch_counter_get_cntvct()
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)); in local_daif_restore()
Dvirt.h83 return read_sysreg(CurrentEL) == CurrentEL_EL2; in is_kernel_in_hyp_mode()
Dhardirq.h45 ___hcr = read_sysreg(hcr_el2); \
Dcache.h115 u64 clidr = read_sysreg(clidr_el1); in read_cpuid_effective_cachetype()
/Linux-v5.10/arch/arm64/kvm/hyp/include/hyp/
Dsysreg-sr.h20 ctxt_sys_reg(ctxt, MDSCR_EL1) = read_sysreg(mdscr_el1); in __sysreg_save_common_state()
25 ctxt_sys_reg(ctxt, TPIDR_EL0) = read_sysreg(tpidr_el0); in __sysreg_save_user_state()
26 ctxt_sys_reg(ctxt, TPIDRRO_EL0) = read_sysreg(tpidrro_el0); in __sysreg_save_user_state()
31 ctxt_sys_reg(ctxt, CSSELR_EL1) = read_sysreg(csselr_el1); in __sysreg_save_el1_state()
47 ctxt_sys_reg(ctxt, TPIDR_EL1) = read_sysreg(tpidr_el1); in __sysreg_save_el1_state()
49 ctxt_sys_reg(ctxt, SP_EL1) = read_sysreg(sp_el1); in __sysreg_save_el1_state()
164 vcpu->arch.ctxt.spsr_abt = read_sysreg(spsr_abt); in __sysreg32_save_state()
165 vcpu->arch.ctxt.spsr_und = read_sysreg(spsr_und); in __sysreg32_save_state()
166 vcpu->arch.ctxt.spsr_irq = read_sysreg(spsr_irq); in __sysreg32_save_state()
167 vcpu->arch.ctxt.spsr_fiq = read_sysreg(spsr_fiq); in __sysreg32_save_state()
[all …]
Dswitch.h60 __vcpu_sys_reg(vcpu, FPEXC32_EL2) = read_sysreg(fpexc32_el2); in __fpsimd_save_fpexc32()
125 vcpu->arch.hcr_el2 |= read_sysreg(hcr_el2) & HCR_VSE; in ___deactivate_traps()
189 hpfar = read_sysreg(hpfar_el2); in __populate_fault_info()
234 u64 reg = read_sysreg(cpacr_el1) | CPACR_EL1_FPEN; in __hyp_handle_fpsimd()
241 write_sysreg(read_sysreg(cptr_el2) & ~(u64)CPTR_EL2_TFP, in __hyp_handle_fpsimd()
276 if (!(read_sysreg(hcr_el2) & HCR_RW)) in __hyp_handle_fpsimd()
395 val = read_sysreg(hcr_el2); in __hyp_handle_ptrauth()
489 unsigned long elr_el2 = read_sysreg(elr_el2); in __kvm_unexpected_el2_exception()
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()
/Linux-v5.10/arch/arm64/kernel/
Dentry-common.c114 unsigned long far = read_sysreg(far_el1); in el1_abort()
126 unsigned long far = read_sysreg(far_el1); in el1_pc()
179 unsigned long far = read_sysreg(far_el1); in el1_dbg()
205 unsigned long esr = read_sysreg(esr_el1); in el1_sync_handler()
255 unsigned long far = read_sysreg(far_el1); in el0_da()
265 unsigned long far = read_sysreg(far_el1); in el0_ia()
310 unsigned long far = read_sysreg(far_el1); in el0_pc()
351 unsigned long far = read_sysreg(far_el1); in el0_dbg()
379 unsigned long esr = read_sysreg(esr_el1); in el0_sync_handler()
449 unsigned long esr = read_sysreg(esr_el1); in el0_sync_compat_handler()
Dsdei.c169 u64 elr = read_sysreg(elr_el1); in _sdei_handler()
170 u32 kernel_mode = read_sysreg(CurrentEL) | 1; /* +SPSel */ in _sdei_handler()
171 unsigned long vbar = read_sysreg(vbar_el1); in _sdei_handler()
192 if (elr != read_sysreg(elr_el1)) { in _sdei_handler()
Dprocess.c86 daif_bits = read_sysreg(daif); in __cpu_do_idle_irqprio()
409 *task_user_tls(p) = read_sysreg(tpidr_el0); in copy_thread()
449 *task_user_tls(current) = read_sysreg(tpidr_el0); in tls_preserve_current_state()
534 val = read_sysreg(cntkctl_el1); in erratum_1418040_thread_switch()
Dcrash_core.c16 return (read_sysreg(tcr_el1) & TCR_T1SZ_MASK) >> TCR_T1SZ_OFFSET; in get_tcr_el1_t1sz()
Dirq.c66 WARN_ON(read_sysreg(daif) & PSR_A_BIT); in init_IRQ()
Dperf_event.c420 return read_sysreg(pmevcntr##n##_el0)
443 return read_sysreg(pmcr_el0); in armv8pmu_pmcr_read()
526 value = read_sysreg(pmccntr_el0); in armv8pmu_read_counter()
683 value = read_sysreg(pmovsclr_el0); in armv8pmu_getreset_flags()
1026 dfr0 = read_sysreg(id_aa64dfr0_el1); in __armv8pmu_probe_pmu()
1042 pmceid[0] = pmceid_raw[0] = read_sysreg(pmceid0_el0); in __armv8pmu_probe_pmu()
1043 pmceid[1] = pmceid_raw[1] = read_sysreg(pmceid1_el0); in __armv8pmu_probe_pmu()
/Linux-v5.10/arch/arm/include/asm/
Darch_gicv3.h48 return read_sysreg(a32); \
80 u32 irqstat = read_sysreg(ICC_IAR1); in gic_read_iar()
95 return read_sysreg(ICC_CTLR); in gic_read_ctlr()
111 return read_sysreg(ICC_SRE); in gic_read_sre()
127 return read_sysreg(ICC_PMR); in gic_read_pmr()
137 return read_sysreg(ICC_RPR); in gic_read_rpr()
/Linux-v5.10/arch/arm64/kvm/
Dregmap.c169 return read_sysreg(spsr_abt); in vcpu_read_spsr32()
171 return read_sysreg(spsr_und); in vcpu_read_spsr32()
173 return read_sysreg(spsr_irq); in vcpu_read_spsr32()
175 return read_sysreg(spsr_fiq); in vcpu_read_spsr32()
Dpmu.c61 return read_sysreg(pmevtyper##idx##_el0)
110 return read_sysreg(pmccfiltr_el0); in kvm_vcpu_pmu_read_evtype_direct()
/Linux-v5.10/arch/arm64/kvm/hyp/nvhe/
Dtimer-sr.c27 val = read_sysreg(cnthctl_el2); in __timer_disable_traps()
44 val = read_sysreg(cnthctl_el2); in __timer_enable_traps()
Ddebug-sr.c25 if (!cpuid_feature_extract_unsigned_field(read_sysreg(id_aa64dfr0_el1), in __debug_save_spe()
76 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
/Linux-v5.10/arch/arm64/kvm/hyp/vhe/
Dswitch.c42 val = read_sysreg(cpacr_el1); in __activate_traps()
98 u64 mdcr_el2 = read_sysreg(mdcr_el2); in deactivate_traps_vhe_put()
210 read_sysreg(hpfar_el2), par, vcpu); in __hyp_call_panic()
Ddebug-sr.c25 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
/Linux-v5.10/drivers/clocksource/
Darm_arch_timer.c221 _old = read_sysreg(reg); \
222 _new = read_sysreg(reg); \
267 _old = read_sysreg(reg); \
268 _new = read_sysreg(reg); \
325 old = read_sysreg(cntpct_el0); in arm64_858921_read_cntpct_el0()
326 new = read_sysreg(cntpct_el0); in arm64_858921_read_cntpct_el0()
334 old = read_sysreg(cntvct_el0); in arm64_858921_read_cntvct_el0()
335 new = read_sysreg(cntvct_el0); in arm64_858921_read_cntvct_el0()
353 _val = read_sysreg(reg); \
373 return read_sysreg(cntp_cval_el0) - sun50i_a64_read_cntpct_el0(); in sun50i_a64_read_cntp_tval_el0()
[all …]
/Linux-v5.10/arch/arm/include/asm/vdso/
Dcp15.h24 #define read_sysreg(...) __read_sysreg(__VA_ARGS__) macro
/Linux-v5.10/arch/arm64/kvm/hyp/
Dvgic-v2-cpuif-proxy.c21 return !!(read_sysreg(SCTLR_EL1) & SCTLR_ELx_EE); in __is_be()

12