Lines Matching defs:iommu
17 #include <linux/amd-iommu.h>
20 #include "iommu.h"
22 /* iommu pmu conf masks */
28 /* iommu pmu conf1 masks */
38 struct amd_iommu *iommu;
225 /* update the hw_perf_event struct with the iommu config data */
234 return (container_of(ev->pmu, struct perf_amd_iommu, pmu))->iommu;
239 struct amd_iommu *iommu = perf_event_2_iommu(ev);
246 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_COUNTER_SRC_REG, ®);
252 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_DEVID_MATCH_REG, ®);
258 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_PASID_MATCH_REG, ®);
264 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_DOMID_MATCH_REG, ®);
269 struct amd_iommu *iommu = perf_event_2_iommu(event);
273 amd_iommu_pc_set_reg(iommu, hwc->iommu_bank, hwc->iommu_cntr,
296 struct amd_iommu *iommu = perf_event_2_iommu(event);
302 amd_iommu_pc_set_reg(iommu, hwc->iommu_bank, hwc->iommu_cntr,
313 struct amd_iommu *iommu = perf_event_2_iommu(event);
315 if (amd_iommu_pc_get_reg(iommu, hwc->iommu_bank, hwc->iommu_cntr,
354 /* request an iommu bank/counter */
373 /* clear the assigned iommu bank/counter */
430 perf_iommu->iommu = get_amd_iommu(idx);
434 if (!perf_iommu->iommu ||