Home
last modified time | relevance | path

Searched refs:csr_write (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/arch/riscv/kvm/
Dmain.c44 csr_write(CSR_HEDELEG, hedeleg); in kvm_arch_hardware_enable()
50 csr_write(CSR_HIDELEG, hideleg); in kvm_arch_hardware_enable()
52 csr_write(CSR_HCOUNTEREN, -1UL); in kvm_arch_hardware_enable()
54 csr_write(CSR_HVIP, 0); in kvm_arch_hardware_enable()
67 csr_write(CSR_VSIE, 0); in kvm_arch_hardware_disable()
68 csr_write(CSR_HVIP, 0); in kvm_arch_hardware_disable()
69 csr_write(CSR_HEDELEG, 0); in kvm_arch_hardware_disable()
70 csr_write(CSR_HIDELEG, 0); in kvm_arch_hardware_disable()
Dvcpu_exit.c121 csr_write(CSR_STVEC, old_stvec); in kvm_riscv_vcpu_unpriv_read()
122 csr_write(CSR_HSTATUS, old_hstatus); in kvm_riscv_vcpu_unpriv_read()
154 csr_write(CSR_VSSTATUS, vsstatus); in kvm_riscv_vcpu_trap_redirect()
157 csr_write(CSR_VSCAUSE, trap->scause); in kvm_riscv_vcpu_trap_redirect()
158 csr_write(CSR_VSTVAL, trap->stval); in kvm_riscv_vcpu_trap_redirect()
159 csr_write(CSR_VSEPC, trap->sepc); in kvm_riscv_vcpu_trap_redirect()
Dvcpu_timer.c75 csr_write(CSR_VSTIMECMP, ncycles & 0xFFFFFFFF); in kvm_riscv_vcpu_update_vstimecmp()
76 csr_write(CSR_VSTIMECMPH, ncycles >> 32); in kvm_riscv_vcpu_update_vstimecmp()
78 csr_write(CSR_VSTIMECMP, ncycles); in kvm_riscv_vcpu_update_vstimecmp()
293 csr_write(CSR_HTIMEDELTA, (u32)(gt->time_delta)); in kvm_riscv_vcpu_update_timedelta()
294 csr_write(CSR_HTIMEDELTAH, (u32)(gt->time_delta >> 32)); in kvm_riscv_vcpu_update_timedelta()
296 csr_write(CSR_HTIMEDELTA, gt->time_delta); in kvm_riscv_vcpu_update_timedelta()
310 csr_write(CSR_VSTIMECMP, (u32)t->next_cycles); in kvm_riscv_vcpu_timer_restore()
311 csr_write(CSR_VSTIMECMPH, (u32)(t->next_cycles >> 32)); in kvm_riscv_vcpu_timer_restore()
313 csr_write(CSR_VSTIMECMP, t->next_cycles); in kvm_riscv_vcpu_timer_restore()
Dvcpu.c820 csr_write(CSR_HENVCFG, henvcfg); in kvm_riscv_vcpu_update_config()
822 csr_write(CSR_HENVCFGH, henvcfg >> 32); in kvm_riscv_vcpu_update_config()
830 csr_write(CSR_VSSTATUS, csr->vsstatus); in kvm_arch_vcpu_load()
831 csr_write(CSR_VSIE, csr->vsie); in kvm_arch_vcpu_load()
832 csr_write(CSR_VSTVEC, csr->vstvec); in kvm_arch_vcpu_load()
833 csr_write(CSR_VSSCRATCH, csr->vsscratch); in kvm_arch_vcpu_load()
834 csr_write(CSR_VSEPC, csr->vsepc); in kvm_arch_vcpu_load()
835 csr_write(CSR_VSCAUSE, csr->vscause); in kvm_arch_vcpu_load()
836 csr_write(CSR_VSTVAL, csr->vstval); in kvm_arch_vcpu_load()
837 csr_write(CSR_HVIP, csr->hvip); in kvm_arch_vcpu_load()
[all …]
Dvmid.c29 csr_write(CSR_HGATP, old | HGATP_VMID_MASK); in kvm_riscv_gstage_vmid_detect()
33 csr_write(CSR_HGATP, old); in kvm_riscv_gstage_vmid_detect()
Dtlb.c105 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_gva()
117 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_all()
145 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_gva()
156 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_all()
Dmmu.c757 csr_write(CSR_HGATP, hgatp); in kvm_riscv_gstage_update_hgatp()
767 csr_write(CSR_HGATP, HGATP_MODE_SV57X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect()
775 csr_write(CSR_HGATP, HGATP_MODE_SV48X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect()
782 csr_write(CSR_HGATP, 0); in kvm_riscv_gstage_mode_detect()
/linux-6.1.9/arch/riscv/kernel/
Dsuspend.c34 csr_write(CSR_SCRATCH, context->scratch); in suspend_restore_csrs()
35 csr_write(CSR_TVEC, context->tvec); in suspend_restore_csrs()
36 csr_write(CSR_IE, context->ie); in suspend_restore_csrs()
39 csr_write(CSR_SATP, context->satp); in suspend_restore_csrs()
Dprocess.c101 csr_write(CSR_STATUS, (tmp & ~SR_UXL) | SR_UXL_32); in compat_mode_detect()
105 csr_write(CSR_STATUS, tmp); in compat_mode_detect()
/linux-6.1.9/arch/riscv/mm/
Dcontext.c193 csr_write(CSR_SATP, virt_to_pfn(mm->pgd) | in set_mm_asid()
214 csr_write(CSR_SATP, virt_to_pfn(mm->pgd) | satp_mode); in set_mm_noasid()
233 csr_write(CSR_SATP, asid_bits); in asids_init()
236 csr_write(CSR_SATP, old); in asids_init()
Dinit.c783 csr_write(CSR_SATP, identity_satp); in set_satp_mode()
1137 csr_write(CSR_SATP, PFN_DOWN(__pa_symbol(swapper_pg_dir)) | satp_mode); in setup_vm_final()
/linux-6.1.9/drivers/clocksource/
Dtimer-riscv.c40 csr_write(CSR_STIMECMP, next_tval & 0xFFFFFFFF); in riscv_clock_next_event()
41 csr_write(CSR_STIMECMPH, next_tval >> 32); in riscv_clock_next_event()
43 csr_write(CSR_STIMECMP, next_tval); in riscv_clock_next_event()
/linux-6.1.9/drivers/firmware/efi/libstub/
Driscv-stub.c99 csr_write(CSR_SATP, 0); in efi_enter_kernel()
/linux-6.1.9/arch/riscv/include/asm/
Dcsr.h364 #define csr_write(csr, val) \ macro
/linux-6.1.9/drivers/perf/
Driscv_pmu_sbi.c659 csr_write(CSR_SCOUNTEREN, 0x7); in pmu_sbi_starting_cpu()
682 csr_write(CSR_SCOUNTEREN, 0x0); in pmu_sbi_dying_cpu()