Searched refs:num_ctrs (Results 1 – 3 of 3) sorted by relevance
330 unsigned int cur_idx, num_ctrs = smmu_pmu->num_counters; in smmu_pmu_apply_event_filter() local338 cur_idx = find_first_bit(smmu_pmu->used_counters, num_ctrs); in smmu_pmu_apply_event_filter()343 if (!smmu_pmu->global_filter || cur_idx == num_ctrs) { in smmu_pmu_apply_event_filter()361 unsigned int num_ctrs = smmu_pmu->num_counters; in smmu_pmu_get_event_idx() local363 idx = find_first_zero_bit(smmu_pmu->used_counters, num_ctrs); in smmu_pmu_get_event_idx()364 if (idx == num_ctrs) in smmu_pmu_get_event_idx()
344 int num_ctrs = cluster->l2cache_pmu->num_counters - 1; in l2_cache_get_event_idx() local354 idx = find_first_zero_bit(cluster->used_counters, num_ctrs); in l2_cache_get_event_idx()355 if (idx == num_ctrs) in l2_cache_get_event_idx()
287 unsigned long num_ctrs = kvm_pmu_num_counters(kvpmu); in kvm_pmu_validate_counter_mask() 290 if (!ctr_mask || ctr_base >= num_ctrs || (ctr_base + __fls(ctr_mask) >= num_ctrs)) in kvm_pmu_validate_counter_mask() 286 unsigned long num_ctrs = kvm_pmu_num_counters(kvpmu); kvm_pmu_validate_counter_mask() local