Lines Matching defs:iommu
13 #include "iommu.h"
18 bool dmar_latency_enabled(struct intel_iommu *iommu, enum latency_type type)
20 struct latency_statistic *lstat = iommu->perf_statistic;
25 int dmar_latency_enable(struct intel_iommu *iommu, enum latency_type type)
31 if (dmar_latency_enabled(iommu, type))
35 if (!iommu->perf_statistic) {
36 iommu->perf_statistic = kcalloc(DMAR_LATENCY_NUM, sizeof(*lstat),
38 if (!iommu->perf_statistic) {
44 lstat = iommu->perf_statistic;
57 void dmar_latency_disable(struct intel_iommu *iommu, enum latency_type type)
59 struct latency_statistic *lstat = iommu->perf_statistic;
62 if (!dmar_latency_enabled(iommu, type))
70 void dmar_latency_update(struct intel_iommu *iommu, enum latency_type type, u64 latency)
72 struct latency_statistic *lstat = iommu->perf_statistic;
76 if (!dmar_latency_enabled(iommu, type))
116 int dmar_latency_snapshot(struct intel_iommu *iommu, char *str, size_t size)
118 struct latency_statistic *lstat = iommu->perf_statistic;
130 if (!dmar_latency_enabled(iommu, i))