/linux-6.6.21/arch/riscv/kvm/ |
D | main.c | 34 csr_write(CSR_HEDELEG, hedeleg); in kvm_arch_hardware_enable() 40 csr_write(CSR_HIDELEG, hideleg); in kvm_arch_hardware_enable() 43 csr_write(CSR_HCOUNTEREN, 0x02); in kvm_arch_hardware_enable() 45 csr_write(CSR_HVIP, 0); in kvm_arch_hardware_enable() 62 csr_write(CSR_VSIE, 0); in kvm_arch_hardware_disable() 63 csr_write(CSR_HVIP, 0); in kvm_arch_hardware_disable() 64 csr_write(CSR_HEDELEG, 0); in kvm_arch_hardware_disable() 65 csr_write(CSR_HIDELEG, 0); in kvm_arch_hardware_disable()
|
D | aia.c | 65 csr_write(CSR_HVICTL, hvictl); in aia_set_hvictl() 131 csr_write(CSR_HVIPH, vcpu->arch.aia_context.guest_csr.hviph); in kvm_riscv_vcpu_aia_update_hvip() 143 csr_write(CSR_VSISELECT, csr->vsiselect); in kvm_riscv_vcpu_aia_load() 144 csr_write(CSR_HVIPRIO1, csr->hviprio1); in kvm_riscv_vcpu_aia_load() 145 csr_write(CSR_HVIPRIO2, csr->hviprio2); in kvm_riscv_vcpu_aia_load() 147 csr_write(CSR_VSIEH, csr->vsieh); in kvm_riscv_vcpu_aia_load() 148 csr_write(CSR_HVIPH, csr->hviph); in kvm_riscv_vcpu_aia_load() 149 csr_write(CSR_HVIPRIO1H, csr->hviprio1h); in kvm_riscv_vcpu_aia_load() 150 csr_write(CSR_HVIPRIO2H, csr->hviprio2h); in kvm_riscv_vcpu_aia_load() 311 csr_write(CSR_HVIPRIO1, hviprio); in aia_set_iprio8() [all …]
|
D | vcpu_exit.c | 121 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()
|
D | vcpu_timer.c | 75 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() 292 csr_write(CSR_HTIMEDELTA, (u32)(gt->time_delta)); in kvm_riscv_vcpu_update_timedelta() 293 csr_write(CSR_HTIMEDELTAH, (u32)(gt->time_delta >> 32)); in kvm_riscv_vcpu_update_timedelta() 295 csr_write(CSR_HTIMEDELTA, gt->time_delta); in kvm_riscv_vcpu_update_timedelta() 309 csr_write(CSR_VSTIMECMP, (u32)t->next_cycles); in kvm_riscv_vcpu_timer_restore() 310 csr_write(CSR_VSTIMECMPH, (u32)(t->next_cycles >> 32)); in kvm_riscv_vcpu_timer_restore() 312 csr_write(CSR_VSTIMECMP, t->next_cycles); in kvm_riscv_vcpu_timer_restore()
|
D | vcpu.c | 490 csr_write(CSR_HENVCFG, henvcfg); in kvm_riscv_vcpu_update_config() 492 csr_write(CSR_HENVCFGH, henvcfg >> 32); in kvm_riscv_vcpu_update_config() 500 csr_write(CSR_VSSTATUS, csr->vsstatus); in kvm_arch_vcpu_load() 501 csr_write(CSR_VSIE, csr->vsie); in kvm_arch_vcpu_load() 502 csr_write(CSR_VSTVEC, csr->vstvec); in kvm_arch_vcpu_load() 503 csr_write(CSR_VSSCRATCH, csr->vsscratch); in kvm_arch_vcpu_load() 504 csr_write(CSR_VSEPC, csr->vsepc); in kvm_arch_vcpu_load() 505 csr_write(CSR_VSCAUSE, csr->vscause); in kvm_arch_vcpu_load() 506 csr_write(CSR_VSTVAL, csr->vstval); in kvm_arch_vcpu_load() 507 csr_write(CSR_HVIP, csr->hvip); in kvm_arch_vcpu_load() [all …]
|
D | aia_imsic.c | 64 csr_write(CSR_VSISELECT, __c); \ 104 csr_write(CSR_VSISELECT, __c); \ 143 csr_write(CSR_VSISELECT, __c); \ 144 csr_write(CSR_VSIREG, __v); \ 180 csr_write(CSR_VSISELECT, __c); \ 383 csr_write(CSR_HSTATUS, new_hstatus); in imsic_vsfile_local_read() 417 csr_write(CSR_HSTATUS, old_hstatus); in imsic_vsfile_local_read() 418 csr_write(CSR_VSISELECT, old_vsiselect); in imsic_vsfile_local_read() 455 csr_write(CSR_HSTATUS, new_hstatus); in imsic_vsfile_local_rw() 485 csr_write(CSR_HSTATUS, old_hstatus); in imsic_vsfile_local_rw() [all …]
|
D | vmid.c | 29 csr_write(CSR_HGATP, old | HGATP_VMID); in kvm_riscv_gstage_vmid_detect() 33 csr_write(CSR_HGATP, old); in kvm_riscv_gstage_vmid_detect()
|
D | tlb.c | 104 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_gva() 116 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_all() 144 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_gva() 155 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_all()
|
D | mmu.c | 755 csr_write(CSR_HGATP, hgatp); in kvm_riscv_gstage_update_hgatp() 765 csr_write(CSR_HGATP, HGATP_MODE_SV57X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect() 773 csr_write(CSR_HGATP, HGATP_MODE_SV48X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect() 780 csr_write(CSR_HGATP, 0); in kvm_riscv_gstage_mode_detect()
|
/linux-6.6.21/arch/riscv/kernel/ |
D | suspend.c | 34 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()
|
D | process.c | 100 csr_write(CSR_STATUS, (tmp & ~SR_UXL) | SR_UXL_32); in compat_mode_detect() 104 csr_write(CSR_STATUS, tmp); in compat_mode_detect()
|
/linux-6.6.21/arch/riscv/mm/ |
D | context.c | 193 csr_write(CSR_SATP, virt_to_pfn(mm->pgd) | in set_mm_asid() 204 csr_write(CSR_SATP, virt_to_pfn(mm->pgd) | satp_mode); in set_mm_noasid() 235 csr_write(CSR_SATP, asid_bits); in asids_init() 238 csr_write(CSR_SATP, old); in asids_init()
|
D | kasan_init.c | 478 csr_write(CSR_SATP, PFN_DOWN(__pa(tmp_pg_dir)) | satp_mode); in kasan_init() 523 csr_write(CSR_SATP, PFN_DOWN(__pa(swapper_pg_dir)) | satp_mode); in kasan_init()
|
D | init.c | 812 csr_write(CSR_SATP, identity_satp); in set_satp_mode() 1327 csr_write(CSR_SATP, PFN_DOWN(__pa_symbol(swapper_pg_dir)) | satp_mode); in setup_vm_final()
|
/linux-6.6.21/drivers/clocksource/ |
D | timer-riscv.c | 42 csr_write(CSR_STIMECMP, next_tval & 0xFFFFFFFF); in riscv_clock_next_event() 43 csr_write(CSR_STIMECMPH, next_tval >> 32); in riscv_clock_next_event() 45 csr_write(CSR_STIMECMP, next_tval); in riscv_clock_next_event()
|
/linux-6.6.21/drivers/cache/ |
D | ax45mp_cache.c | 74 csr_write(AX45MP_CCTL_REG_UCCTLBEGINADDR_NUM, start); in ax45mp_cpu_cache_operation() 75 csr_write(AX45MP_CCTL_REG_UCCTLCOMMAND_NUM, l1_op); in ax45mp_cpu_cache_operation()
|
/linux-6.6.21/drivers/perf/ |
D | riscv_pmu_sbi.c | 514 csr_write(CSR_SCOUNTEREN, in pmu_sbi_set_scounteren() 523 csr_write(CSR_SCOUNTEREN, in pmu_sbi_reset_scounteren() 774 csr_write(CSR_SCOUNTEREN, 0x7); in pmu_sbi_starting_cpu() 776 csr_write(CSR_SCOUNTEREN, 0x2); in pmu_sbi_starting_cpu() 799 csr_write(CSR_SCOUNTEREN, 0x0); in pmu_sbi_dying_cpu() 984 csr_write(CSR_SCOUNTEREN, 0x7); in riscv_pmu_update_counter_access() 986 csr_write(CSR_SCOUNTEREN, 0x2); in riscv_pmu_update_counter_access()
|
/linux-6.6.21/drivers/firmware/efi/libstub/ |
D | riscv.c | 96 csr_write(CSR_SATP, 0); in efi_enter_kernel()
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | csr.h | 474 #define csr_write(csr, val) \ macro
|