Lines Matching refs:cntr_evcap
383 if (!(iommu_pmu->cntr_evcap[idx][event_group] & select)) in iommu_pmu_validate_per_cntr_event()
625 iommu_pmu->cntr_evcap = kcalloc(iommu_pmu->num_cntr, sizeof(u32 *), GFP_KERNEL); in alloc_iommu_pmu()
626 if (!iommu_pmu->cntr_evcap) { in alloc_iommu_pmu()
631 iommu_pmu->cntr_evcap[i] = kcalloc(iommu_pmu->num_eg, sizeof(u32), GFP_KERNEL); in alloc_iommu_pmu()
632 if (!iommu_pmu->cntr_evcap[i]) { in alloc_iommu_pmu()
641 iommu_pmu->cntr_evcap[i][j] = (u32)iommu_pmu->evcap[j]; in alloc_iommu_pmu()
674 iommu_pmu->cntr_evcap[i][j] = 0; in alloc_iommu_pmu()
681 iommu_pmu->cntr_evcap[i][iommu_event_group(cap)] = iommu_event_select(cap); in alloc_iommu_pmu()
697 kfree(iommu_pmu->cntr_evcap[i]); in alloc_iommu_pmu()
698 kfree(iommu_pmu->cntr_evcap); in alloc_iommu_pmu()
718 kfree(iommu_pmu->cntr_evcap[i]); in free_iommu_pmu()
719 kfree(iommu_pmu->cntr_evcap); in free_iommu_pmu()