Home
last modified time | relevance | path

Searched refs:kvm_read_sw_gcsr (Results 1 – 4 of 4) sorted by relevance

/linux/arch/loongarch/kvm/
H A Dtimer.c64 cfg = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_TCFG); in kvm_restore_timer()
90 ticks = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_TVAL); in kvm_restore_timer()
91 estat = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_ESTAT); in kvm_restore_timer()
144 cfg = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_TCFG); in _kvm_save_timer()
145 ticks = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_TVAL); in _kvm_save_timer()
185 if (kvm_read_sw_gcsr(csr, LOONGARCH_CSR_TCFG) & CSR_TCFG_EN) in kvm_save_timer()
H A Dvcpu.c131 val = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_PERFCTRL0); in kvm_lose_pmu()
132 val |= kvm_read_sw_gcsr(csr, LOONGARCH_CSR_PERFCTRL1); in kvm_lose_pmu()
133 val |= kvm_read_sw_gcsr(csr, LOONGARCH_CSR_PERFCTRL2); in kvm_lose_pmu()
134 val |= kvm_read_sw_gcsr(csr, LOONGARCH_CSR_PERFCTRL3); in kvm_lose_pmu()
460 cpuid = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_CPUID); in kvm_set_cpuid()
508 cpuid = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_CPUID); in kvm_drop_cpuid()
557 gintc = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_GINTC) & 0xff; in _kvm_getcsr()
558 *val = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_ESTAT) | (gintc << 2); in _kvm_getcsr()
566 *val = kvm_read_sw_gcsr(csr, id); in _kvm_getcsr()
602 val = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_PERFCTRL0) | in _kvm_setcsr()
[all …]
H A Dexit.c75 val = kvm_read_sw_gcsr(csr, csrid); in kvm_emu_read_csr()
88 old = kvm_read_sw_gcsr(csr, csrid); in kvm_emu_write_csr()
103 old = kvm_read_sw_gcsr(csr, csrid); in kvm_emu_xchg_csr()
/linux/arch/loongarch/include/asm/
H A Dkvm_csr.h189 static __always_inline unsigned long kvm_read_sw_gcsr(struct loongarch_csrs *csr, int gid) in kvm_read_sw_gcsr() function