Home
last modified time | relevance | path

Searched refs:write_sysreg (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.3-rc2/tools/testing/selftests/kvm/aarch64/
A Ddebug-exceptions.c45 write_sysreg(val, reg_name##0_el1); \
110 write_sysreg(0, osdlr_el1); in GEN_DEBUG_WRITE_REG()
111 write_sysreg(0, oslar_el1); in GEN_DEBUG_WRITE_REG()
114 write_sysreg(0, mdscr_el1); in GEN_DEBUG_WRITE_REG()
115 write_sysreg(0, contextidr_el1); in GEN_DEBUG_WRITE_REG()
135 write_sysreg(1, oslar_el1); in enable_os_lock()
148 write_sysreg(mdscr, mdscr_el1); in enable_monitor_debug_exceptions()
231 write_sysreg(mdscr, mdscr_el1); in install_ss()
328 write_sysreg(ctx, contextidr_el1); in guest_code()
331 write_sysreg(0, contextidr_el1); in guest_code()
[all …]
/linux-6.3-rc2/arch/arm64/kvm/hyp/include/hyp/
A Dsysreg-sr.h85 write_sysreg(ctxt_sys_reg(ctxt, MDSCR_EL1), mdscr_el1); in __sysreg_restore_common_state()
90 write_sysreg(ctxt_sys_reg(ctxt, TPIDR_EL0), tpidr_el0); in __sysreg_restore_user_state()
91 write_sysreg(ctxt_sys_reg(ctxt, TPIDRRO_EL0), tpidrro_el0); in __sysreg_restore_user_state()
96 write_sysreg(ctxt_sys_reg(ctxt, MPIDR_EL1), vmpidr_el2); in __sysreg_restore_el1_state()
126 write_sysreg(ctxt_sys_reg(ctxt, PAR_EL1), par_el1); in __sysreg_restore_el1_state()
127 write_sysreg(ctxt_sys_reg(ctxt, TPIDR_EL1), tpidr_el1); in __sysreg_restore_el1_state()
152 write_sysreg(ctxt_sys_reg(ctxt, SP_EL1), sp_el1); in __sysreg_restore_el1_state()
222 write_sysreg(vcpu->arch.ctxt.spsr_abt, spsr_abt); in __sysreg32_restore_state()
223 write_sysreg(vcpu->arch.ctxt.spsr_und, spsr_und); in __sysreg32_restore_state()
224 write_sysreg(vcpu->arch.ctxt.spsr_irq, spsr_irq); in __sysreg32_restore_state()
[all …]
A Dswitch.h67 write_sysreg(1 << 30, fpexc32_el2); in __activate_traps_fpsimd32()
75 write_sysreg(1 << 15, hstr_el2); in __activate_traps_common()
84 write_sysreg(0, pmselr_el0); in __activate_traps_common()
89 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in __activate_traps_common()
105 write_sysreg(vcpu->arch.mdcr_el2_host, mdcr_el2); in __deactivate_traps_common()
107 write_sysreg(0, hstr_el2); in __deactivate_traps_common()
109 write_sysreg(0, pmuserenr_el0); in __deactivate_traps_common()
128 write_sysreg(hcr, hcr_el2); in ___activate_traps()
324 write_sysreg(val, hcr_el2); in kvm_hyp_handle_ptrauth()
512 write_sysreg(fixup, elr_el2); in __kvm_unexpected_el2_exception()
[all …]
A Ddebug-sr.h19 #define write_debug(v,r,n) write_sysreg(v, r##n##_el1)
125 write_sysreg(ctxt_sys_reg(ctxt, MDCCINT_EL1), mdccint_el1); in __debug_restore_state()
/linux-6.3-rc2/tools/testing/selftests/kvm/include/aarch64/
A Darch_timer.h55 write_sysreg(cval, cntv_cval_el0); in timer_set_cval()
58 write_sysreg(cval, cntp_cval_el0); in timer_set_cval()
86 write_sysreg(tval, cntv_tval_el0); in timer_set_tval()
89 write_sysreg(tval, cntp_tval_el0); in timer_set_tval()
102 write_sysreg(ctl, cntv_ctl_el0); in timer_set_ctl()
105 write_sysreg(ctl, cntp_ctl_el0); in timer_set_ctl()
/linux-6.3-rc2/arch/arm/include/asm/
A Darch_gicv3.h44 write_sysreg(val, a32); \
69 write_sysreg(val, ICC_DIR); in CPUIF_MAP()
84 write_sysreg(val, ICC_CTLR); in gic_write_ctlr()
95 write_sysreg(val, ICC_IGRPEN1); in gic_write_grpen1()
101 write_sysreg(val, ICC_SGI1R); in gic_write_sgi1r()
111 write_sysreg(val, ICC_SRE); in gic_write_sre()
117 write_sysreg(val, ICC_BPR1); in gic_write_bpr1()
127 write_sysreg(val, ICC_PMR); in gic_write_pmr()
/linux-6.3-rc2/arch/arm64/kvm/hyp/nvhe/
A Dswitch.c55 write_sysreg(val, cptr_el2); in __activate_traps()
56 write_sysreg(__this_cpu_read(kvm_hyp_vector), vbar_el2); in __activate_traps()
99 write_sysreg(this_cpu_ptr(&kvm_init_params)->hcr_el2, hcr_el2); in __deactivate_traps()
107 write_sysreg(cptr, cptr_el2); in __deactivate_traps()
108 write_sysreg(__kvm_hyp_host_vector, vbar_el2); in __deactivate_traps()
138 write_sysreg(pmu->events_host, pmcntenclr_el0); in __pmu_switch_to_guest()
141 write_sysreg(pmu->events_guest, pmcntenset_el0); in __pmu_switch_to_guest()
154 write_sysreg(pmu->events_guest, pmcntenclr_el0); in __pmu_switch_to_host()
157 write_sysreg(pmu->events_host, pmcntenset_el0); in __pmu_switch_to_host()
A Dtimer-sr.c15 write_sysreg(cntvoff, cntvoff_el2); in __kvm_timer_set_cntvoff()
29 write_sysreg(val, cnthctl_el2); in __timer_disable_traps()
47 write_sysreg(val, cnthctl_el2); in __timer_enable_traps()
/linux-6.3-rc2/arch/arm64/include/asm/
A Darch_timer.h111 write_sysreg(val, cntp_ctl_el0); in arch_timer_reg_write_cp15()
115 write_sysreg(val, cntp_cval_el0); in arch_timer_reg_write_cp15()
123 write_sysreg(val, cntv_ctl_el0); in arch_timer_reg_write_cp15()
127 write_sysreg(val, cntv_cval_el0); in arch_timer_reg_write_cp15()
172 write_sysreg(cntkctl, cntkctl_el1); in arch_timer_set_cntkctl()
A Dmmu_context.h35 write_sysreg(task_pid_nr(next), contextidr_el1); in contextidr_thread_switch()
46 write_sysreg(ttbr, ttbr0_el1); in cpu_set_reserved_ttbr0()
78 write_sysreg(tcr, tcr_el1); in __cpu_set_tcr_t0sz()
143 write_sysreg(ttbr0, ttbr0_el1); in cpu_install_ttbr0()
A Dcpuidle.h20 write_sysreg(c->daif_bits | PSR_I_BIT | PSR_F_BIT, \
32 write_sysreg(c->daif_bits, daif); \
A Dhardirq.h44 write_sysreg(___hcr | HCR_TGE, hcr_el2); \
85 write_sysreg(___hcr, hcr_el2); \
A Ddaifflags.h117 write_sysreg(flags, daif); in local_daif_restore()
142 write_sysreg(flags, daif); in local_daif_inherit()
A Duaccess.h67 write_sysreg(ttbr - RESERVED_SWAPPER_OFFSET, ttbr0_el1); in __uaccess_ttbr0_disable()
70 write_sysreg(ttbr, ttbr1_el1); in __uaccess_ttbr0_disable()
91 write_sysreg(ttbr1, ttbr1_el1); in __uaccess_ttbr0_enable()
95 write_sysreg(ttbr0, ttbr0_el1); in __uaccess_ttbr0_enable()
A Ddcc.h37 write_sysreg((unsigned char)c, dbgdtrtx_el0); in __dcc_putchar()
/linux-6.3-rc2/arch/arm64/kvm/hyp/vhe/
A Dswitch.c66 write_sysreg(val, cpacr_el1); in __activate_traps()
68 write_sysreg(__this_cpu_read(kvm_hyp_vector), vbar_el1); in __activate_traps()
78 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps()
87 write_sysreg(CPACR_EL1_DEFAULT, cpacr_el1); in __deactivate_traps()
91 write_sysreg(host_vectors, vbar_el1); in __deactivate_traps()
A Dtlb.c59 write_sysreg(val, hcr_el2); in __tlb_switch_to_guest()
69 write_sysreg(0, vttbr_el2); in __tlb_switch_to_host()
70 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __tlb_switch_to_host()
A Dtimer-sr.c11 write_sysreg(cntvoff, cntvoff_el2); in __kvm_timer_set_cntvoff()
/linux-6.3-rc2/arch/arm/mm/
A Dpmsa-v7.c49 write_sysreg(v, RNGNR); in rgnr_write()
57 write_sysreg(v, DRACR); in dracr_write()
63 write_sysreg(v, DRSR); in drsr_write()
69 write_sysreg(v, DRBAR); in drbar_write()
81 write_sysreg(v, IRACR); in iracr_write()
87 write_sysreg(v, IRSR); in irsr_write()
93 write_sysreg(v, IRBAR); in irbar_write()
A Dpmsa-v8.c37 write_sysreg(v, PRSEL); in prsel_write()
42 write_sysreg(v, PRBAR); in prbar_write()
47 write_sysreg(v, PRLAR); in prlar_write()
A Dproc-v7-bugs.c48 write_sysreg(0, BPIALL); in harden_branch_predictor_bpiall()
53 write_sysreg(0, ICIALLU); in harden_branch_predictor_iciallu()
/linux-6.3-rc2/arch/arm64/kernel/
A Dperf_event.c503 write_sysreg(val, pmcr_el0); in armv8pmu_pmcr_write()
613 write_sysreg(value, pmccntr_el0); in armv8pmu_write_counter()
667 write_sysreg(mask, pmcntenset_el0); in armv8pmu_enable_counter()
684 write_sysreg(mask, pmcntenclr_el0); in armv8pmu_disable_counter()
706 write_sysreg(mask, pmintenset_el1); in armv8pmu_enable_intens()
717 write_sysreg(mask, pmintenclr_el1); in armv8pmu_disable_intens()
720 write_sysreg(mask, pmovsclr_el0); in armv8pmu_disable_intens()
739 write_sysreg(value, pmovsclr_el0); in armv8pmu_getreset_flags()
746 write_sysreg(0, pmuserenr_el0); in armv8pmu_disable_user_access()
757 write_sysreg(0, pmccntr_el0); in armv8pmu_enable_user_access()
[all …]
A Dprocess.c251 write_sysreg(0, tpidr_el0); in tls_thread_flush()
264 write_sysreg(0, tpidrro_el0); in tls_thread_flush()
431 write_sysreg(next->thread.uw.tp_value, tpidrro_el0); in tls_thread_switch()
433 write_sysreg(0, tpidrro_el0); in tls_thread_switch()
435 write_sysreg(*task_user_tls(next), tpidr_el0); in tls_thread_switch()
A Ddebug-monitors.c41 write_sysreg(mdscr, mdscr_el1); in mdscr_write()
127 write_sysreg(0, osdlr_el1); in clear_os_lock()
128 write_sysreg(0, oslar_el1); in clear_os_lock()
/linux-6.3-rc2/arch/arm64/kvm/
A Dpmu.c71 write_sysreg(val, pmevtyper##idx##_el0); \
133 write_sysreg(val, pmccfiltr_el0); in kvm_vcpu_pmu_write_evtype_direct()

Completed in 45 milliseconds

12