Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iommu/intel/
H A Dperfmon.c402 if (!(iommu_pmu->cntr_evcap[idx][event_group] & select)) in iommu_pmu_validate_per_cntr_event()
643 iommu_pmu->cntr_evcap = kcalloc(iommu_pmu->num_cntr, sizeof(u32 *), GFP_KERNEL); in alloc_iommu_pmu()
644 if (!iommu_pmu->cntr_evcap) { in alloc_iommu_pmu()
650 if (!iommu_pmu->cntr_evcap[i]) { in alloc_iommu_pmu()
659 iommu_pmu->cntr_evcap[i][j] = (u32)iommu_pmu->evcap[j]; in alloc_iommu_pmu()
692 iommu_pmu->cntr_evcap[i][j] = 0; in alloc_iommu_pmu()
699 iommu_pmu->cntr_evcap[i][iommu_event_group(cap)] = iommu_event_select(cap); in alloc_iommu_pmu()
715 kfree(iommu_pmu->cntr_evcap[i]); in alloc_iommu_pmu()
716 kfree(iommu_pmu->cntr_evcap); in alloc_iommu_pmu()
736 kfree(iommu_pmu->cntr_evcap[i]); in free_iommu_pmu()
[all …]
H A Diommu.h640 u32 **cntr_evcap; /* Supported events of each counter. */ member