Home
last modified time | relevance | path

Searched refs:csr_swap (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/arch/riscv/kvm/
Dtlb.c90 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_asid_gva()
112 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_asid_all()
130 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_gva()
151 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_all()
Dvcpu_exit.c70 old_hstatus = csr_swap(CSR_HSTATUS, vcpu->arch.guest_context.hstatus); in kvm_riscv_vcpu_unpriv_read()
71 old_stvec = csr_swap(CSR_STVEC, (ulong)&__kvm_riscv_unpriv_trap); in kvm_riscv_vcpu_unpriv_read()
Dvcpu.c694 vcpu->arch.host_senvcfg = csr_swap(CSR_SENVCFG, csr->senvcfg); in kvm_riscv_vcpu_swap_in_guest_state()
697 vcpu->arch.host_sstateen0 = csr_swap(CSR_SSTATEEN0, in kvm_riscv_vcpu_swap_in_guest_state()
707 csr->senvcfg = csr_swap(CSR_SENVCFG, vcpu->arch.host_senvcfg); in kvm_riscv_vcpu_swap_in_host_state()
710 smcsr->sstateen0 = csr_swap(CSR_SSTATEEN0, in kvm_riscv_vcpu_swap_in_host_state()
Daia_imsic.c105 __r = csr_swap(CSR_VSIREG, __v); \
/linux-6.12.1/arch/riscv/include/asm/
Darchrandom.h27 unsigned long csr_seed = csr_swap(CSR_SEED, 0); in csr_seed_long()
Dcsr.h486 #define csr_swap(csr, val) \ macro
/linux-6.12.1/drivers/irqchip/
Dirq-riscv-imsic-early.c82 while ((local_id = csr_swap(CSR_TOPEI, 0))) { in imsic_handle_irq()
/linux-6.12.1/tools/arch/riscv/include/asm/
Dcsr.h479 #define csr_swap(csr, val) \ macro
/linux-6.12.1/arch/riscv/mm/
Dinit.c843 hw_satp = csr_swap(CSR_SATP, 0ULL); in set_satp_mode()