/linux-6.12.1/arch/riscv/kvm/ |
D | main.c | 25 csr_write(CSR_HEDELEG, KVM_HEDELEG_DEFAULT); in kvm_arch_enable_virtualization_cpu() 26 csr_write(CSR_HIDELEG, KVM_HIDELEG_DEFAULT); in kvm_arch_enable_virtualization_cpu() 29 csr_write(CSR_HCOUNTEREN, 0x02); in kvm_arch_enable_virtualization_cpu() 31 csr_write(CSR_HVIP, 0); in kvm_arch_enable_virtualization_cpu() 48 csr_write(CSR_VSIE, 0); in kvm_arch_disable_virtualization_cpu() 49 csr_write(CSR_HVIP, 0); in kvm_arch_disable_virtualization_cpu() 50 csr_write(CSR_HEDELEG, 0); in kvm_arch_disable_virtualization_cpu() 51 csr_write(CSR_HIDELEG, 0); in kvm_arch_disable_virtualization_cpu()
|
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 | 567 csr_write(CSR_VSSTATUS, csr->vsstatus); in kvm_arch_vcpu_load() 568 csr_write(CSR_VSIE, csr->vsie); in kvm_arch_vcpu_load() 569 csr_write(CSR_VSTVEC, csr->vstvec); in kvm_arch_vcpu_load() 570 csr_write(CSR_VSSCRATCH, csr->vsscratch); in kvm_arch_vcpu_load() 571 csr_write(CSR_VSEPC, csr->vsepc); in kvm_arch_vcpu_load() 572 csr_write(CSR_VSCAUSE, csr->vscause); in kvm_arch_vcpu_load() 573 csr_write(CSR_VSTVAL, csr->vstval); in kvm_arch_vcpu_load() 574 csr_write(CSR_HEDELEG, cfg->hedeleg); in kvm_arch_vcpu_load() 575 csr_write(CSR_HVIP, csr->hvip); in kvm_arch_vcpu_load() 576 csr_write(CSR_VSATP, csr->vsatp); 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 | 735 csr_write(CSR_HGATP, hgatp); in kvm_riscv_gstage_update_hgatp() 745 csr_write(CSR_HGATP, HGATP_MODE_SV57X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect() 753 csr_write(CSR_HGATP, HGATP_MODE_SV48X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect() 760 csr_write(CSR_HGATP, 0); in kvm_riscv_gstage_mode_detect()
|
/linux-6.12.1/arch/riscv/kernel/ |
D | suspend.c | 39 csr_write(CSR_SCRATCH, 0); in suspend_restore_csrs() 41 csr_write(CSR_ENVCFG, context->envcfg); in suspend_restore_csrs() 42 csr_write(CSR_TVEC, context->tvec); in suspend_restore_csrs() 43 csr_write(CSR_IE, context->ie); in suspend_restore_csrs() 46 csr_write(CSR_SATP, context->satp); in suspend_restore_csrs()
|
D | process.c | 125 csr_write(CSR_STATUS, (tmp & ~SR_UXL) | SR_UXL_32); in compat_mode_detect() 129 csr_write(CSR_STATUS, tmp); in compat_mode_detect()
|
/linux-6.12.1/drivers/clocksource/ |
D | timer-riscv.c | 38 csr_write(CSR_STIMECMP, ULONG_MAX); in riscv_clock_event_stop() 40 csr_write(CSR_STIMECMPH, ULONG_MAX); in riscv_clock_event_stop() 53 csr_write(CSR_STIMECMP, next_tval & 0xFFFFFFFF); in riscv_clock_next_event() 54 csr_write(CSR_STIMECMPH, next_tval >> 32); in riscv_clock_next_event() 56 csr_write(CSR_STIMECMP, next_tval); in riscv_clock_next_event()
|
/linux-6.12.1/arch/riscv/mm/ |
D | context.c | 192 csr_write(CSR_SATP, virt_to_pfn(mm->pgd) | in set_mm_asid() 203 csr_write(CSR_SATP, virt_to_pfn(mm->pgd) | satp_mode); in set_mm_noasid() 234 csr_write(CSR_SATP, asid_bits); in asids_init() 237 csr_write(CSR_SATP, old); in asids_init()
|
D | kasan_init.c | 489 csr_write(CSR_SATP, PFN_DOWN(__pa(tmp_pg_dir)) | satp_mode); in kasan_init() 534 csr_write(CSR_SATP, PFN_DOWN(__pa(swapper_pg_dir)) | satp_mode); in kasan_init()
|
D | init.c | 842 csr_write(CSR_SATP, identity_satp); in set_satp_mode() 1352 csr_write(CSR_SATP, PFN_DOWN(__pa_symbol(swapper_pg_dir)) | satp_mode); in setup_vm_final()
|
/linux-6.12.1/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.12.1/drivers/irqchip/ |
D | irq-riscv-imsic-state.c | 31 csr_write(CSR_ISELECT, reg); in imsic_csr_write() 32 csr_write(CSR_IREG, val); in imsic_csr_write() 37 csr_write(CSR_ISELECT, reg); in imsic_csr_read() 43 csr_write(CSR_ISELECT, reg); in imsic_csr_read_clear() 49 csr_write(CSR_ISELECT, reg); in imsic_csr_set() 55 csr_write(CSR_ISELECT, reg); in imsic_csr_clear()
|
/linux-6.12.1/tools/testing/selftests/kvm/include/riscv/ |
D | arch_timer.h | 32 csr_write(CSR_STIMECMP, cval); in timer_set_cmp()
|
/linux-6.12.1/drivers/firmware/efi/libstub/ |
D | riscv.c | 96 csr_write(CSR_SATP, 0); in efi_enter_kernel()
|
/linux-6.12.1/drivers/perf/ |
D | riscv_pmu_sbi.c | 696 csr_write(CSR_SCOUNTEREN, in pmu_sbi_set_scounteren() 705 csr_write(CSR_SCOUNTEREN, in pmu_sbi_reset_scounteren() 1066 csr_write(CSR_SCOUNTEREN, 0x7); in pmu_sbi_starting_cpu() 1068 csr_write(CSR_SCOUNTEREN, 0x2); in pmu_sbi_starting_cpu() 1092 csr_write(CSR_SCOUNTEREN, 0x0); in pmu_sbi_dying_cpu() 1293 csr_write(CSR_SCOUNTEREN, 0x7); in riscv_pmu_update_counter_access() 1295 csr_write(CSR_SCOUNTEREN, 0x2); in riscv_pmu_update_counter_access()
|
/linux-6.12.1/tools/arch/riscv/include/asm/ |
D | csr.h | 497 #define csr_write(csr, val) \ macro
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | csr.h | 504 #define csr_write(csr, val) \ macro
|