Home
last modified time | relevance | path

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

/linux-6.12.1/arch/riscv/kvm/
Dvcpu_pmu.c20 #define kvm_pmu_num_counters(pmu) ((pmu)->num_hw_ctrs + (pmu)->num_fw_ctrs)
167 min = kvpmu->num_hw_ctrs; in kvm_pmu_get_programmable_pmc_index()
172 max = kvpmu->num_hw_ctrs; in kvm_pmu_get_programmable_pmc_index()
759 int i = 0, ret, num_hw_ctrs = 0, hpm_width = 0; in kvm_riscv_vcpu_pmu_init() local
771 ret = riscv_pmu_get_hpm_info(&hpm_width, &num_hw_ctrs); in kvm_riscv_vcpu_pmu_init()
772 if (ret < 0 || !hpm_width || !num_hw_ctrs) in kvm_riscv_vcpu_pmu_init()
778 kvpmu->num_hw_ctrs = num_hw_ctrs + 1; in kvm_riscv_vcpu_pmu_init()
783 if (kvpmu->num_hw_ctrs > RISCV_KVM_MAX_HW_CTRS) { in kvm_riscv_vcpu_pmu_init()
785 kvpmu->num_hw_ctrs = RISCV_KVM_MAX_HW_CTRS; in kvm_riscv_vcpu_pmu_init()
802 if (i < kvpmu->num_hw_ctrs) { in kvm_riscv_vcpu_pmu_init()
/linux-6.12.1/arch/riscv/include/asm/
Dkvm_vcpu_pmu.h50 int num_hw_ctrs; member