Lines Matching full:iommu
14 #include <linux/iommu.h>
18 #include "iommu.h"
26 struct intel_iommu *iommu = info->iommu; in intel_nested_attach_dev() local
35 * to ensure the s2_domain is compatible with this IOMMU. in intel_nested_attach_dev()
43 ret = domain_attach_iommu(dmar_domain, iommu); in intel_nested_attach_dev()
45 dev_err_ratelimited(dev, "Failed to attach domain to iommu\n"); in intel_nested_attach_dev()
57 ret = intel_pasid_setup_nested(iommu, dev, in intel_nested_attach_dev()
74 domain_detach_iommu(dmar_domain, iommu); in intel_nested_attach_dev()
134 static int domain_setup_nested(struct intel_iommu *iommu, in domain_setup_nested() argument
140 intel_pasid_tear_down_entry(iommu, dev, pasid, false); in domain_setup_nested()
142 return intel_pasid_setup_nested(iommu, dev, pasid, domain); in domain_setup_nested()
151 struct intel_iommu *iommu = info->iommu; in intel_nested_set_dev_pasid() local
155 if (!pasid_supported(iommu) || dev_is_real_dma_subdevice(dev)) in intel_nested_set_dev_pasid()
158 if (context_copied(iommu, info->bus, info->devfn)) in intel_nested_set_dev_pasid()
173 ret = domain_setup_nested(iommu, dmar_domain, dev, pasid, old); in intel_nested_set_dev_pasid()
202 struct intel_iommu *iommu = info->iommu; in intel_iommu_domain_alloc_nested() local
207 if (!nested_supported(iommu) || flags & ~IOMMU_HWPT_ALLOC_PASID) in intel_iommu_domain_alloc_nested()