Home
last modified time | relevance | path

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

/linux-6.12.1/arch/loongarch/kvm/
Dvcpu.c74 kvm_read_clear_hw_gcsr(csr, LOONGARCH_CSR_PERFCTRL0); in kvm_save_guest_pmu()
88 kvm_restore_hw_gcsr(csr, LOONGARCH_CSR_PERFCTRL0); in kvm_restore_guest_pmu()
131 val = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_PERFCTRL0); in kvm_lose_pmu()
599 if (id >= LOONGARCH_CSR_PERFCTRL0 && id <= LOONGARCH_CSR_PERFCNTR3) { in _kvm_setcsr()
602 val = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_PERFCTRL0) | in _kvm_setcsr()
831 LOONGARCH_CSR_PERFCTRL0 + 2 * kvm_get_pmu_num(&vcpu->arch) + 1; in kvm_set_one_reg()
Dmain.c185 set_gcsr_sw_flag(LOONGARCH_CSR_PERFCTRL0); in kvm_init_gcsr_flag()
Dexit.c128 if (csrid >= LOONGARCH_CSR_PERFCTRL0 && csrid <= vcpu->arch.max_pmu_csrid) { in kvm_handle_csr()
/linux-6.12.1/arch/loongarch/include/asm/
Dloongarch.h903 #define LOONGARCH_CSR_PERFCTRL0 0x200 /* 32 perf event 0 config */ macro
1217 #define read_csr_perfctrl0() csr_read64(LOONGARCH_CSR_PERFCTRL0)
1225 #define write_csr_perfctrl0(val) csr_write64(val, LOONGARCH_CSR_PERFCTRL0)