Home
last modified time | relevance | path

Searched refs:HGATP_MODE_SHIFT (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/arch/riscv/kvm/
Dmmu.c23 static unsigned long gstage_mode __ro_after_init = (HGATP_MODE_SV39X4 << HGATP_MODE_SHIFT);
27 static unsigned long gstage_mode __ro_after_init = (HGATP_MODE_SV32X4 << HGATP_MODE_SHIFT);
765 csr_write(CSR_HGATP, HGATP_MODE_SV57X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect()
766 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV57X4) { in kvm_riscv_gstage_mode_detect()
767 gstage_mode = (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()
774 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV48X4) { in kvm_riscv_gstage_mode_detect()
775 gstage_mode = (HGATP_MODE_SV48X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect()
787 return gstage_mode >> HGATP_MODE_SHIFT; in kvm_riscv_gstage_mode()
/linux-6.6.21/arch/riscv/include/asm/
Dcsr.h159 #define HGATP_MODE_SHIFT HGATP64_MODE_SHIFT macro
164 #define HGATP_MODE_SHIFT HGATP32_MODE_SHIFT macro