Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iommu/intel/
Dperfmon.c383 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()
[all …]
Diommu.h697 u32 **cntr_evcap; /* Supported events of each counter. */ member