Lines Matching defs:iommu
19 #include "iommu.h"
21 /* iommu pmu conf masks */
27 /* iommu pmu conf1 masks */
37 struct amd_iommu *iommu;
224 /* update the hw_perf_event struct with the iommu config data */
233 return (container_of(ev->pmu, struct perf_amd_iommu, pmu))->iommu;
238 struct amd_iommu *iommu = perf_event_2_iommu(ev);
245 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_COUNTER_SRC_REG, ®);
251 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_DEVID_MATCH_REG, ®);
257 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_PASID_MATCH_REG, ®);
263 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_DOMID_MATCH_REG, ®);
268 struct amd_iommu *iommu = perf_event_2_iommu(event);
272 amd_iommu_pc_set_reg(iommu, hwc->iommu_bank, hwc->iommu_cntr,
295 struct amd_iommu *iommu = perf_event_2_iommu(event);
301 amd_iommu_pc_set_reg(iommu, hwc->iommu_bank, hwc->iommu_cntr,
312 struct amd_iommu *iommu = perf_event_2_iommu(event);
314 if (amd_iommu_pc_get_reg(iommu, hwc->iommu_bank, hwc->iommu_cntr,
353 /* request an iommu bank/counter */
372 /* clear the assigned iommu bank/counter */
429 perf_iommu->iommu = get_amd_iommu(idx);
433 if (!perf_iommu->iommu ||