Searched refs:num_hw_ctrs (Results 1 – 2 of 2) sorted by relevance
20 #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() local771 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()
50 int num_hw_ctrs; member