}
}
-
- if (!list_empty(&mappings) && iommu_is_dma_domain(domain))
- iommu_flush_iotlb_all(domain);
-
out:
iommu_put_resv_regions(dev, &mappings);
extern int report_iommu_fault(struct iommu_domain *domain, struct device *dev,
unsigned long iova, int flags);
-static inline void iommu_flush_iotlb_all(struct iommu_domain *domain)
-{
- if (domain->ops->flush_iotlb_all)
- domain->ops->flush_iotlb_all(domain);
-}
-
static inline void iommu_iotlb_sync(struct iommu_domain *domain,
struct iommu_iotlb_gather *iotlb_gather)
{
return -ENODEV;
}
-static inline void iommu_flush_iotlb_all(struct iommu_domain *domain)
-{
-}
-
static inline void iommu_iotlb_sync(struct iommu_domain *domain,
struct iommu_iotlb_gather *iotlb_gather)
{