Lines Matching defs:iommu_ops
189 struct iommu_ops { struct
190 bool (*capable)(enum iommu_cap);
193 struct iommu_domain *(*domain_alloc)(unsigned iommu_domain_type);
194 void (*domain_free)(struct iommu_domain *);
196 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
197 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
198 int (*map)(struct iommu_domain *domain, unsigned long iova,
200 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
202 void (*flush_iotlb_all)(struct iommu_domain *domain);
203 void (*iotlb_range_add)(struct iommu_domain *domain,
205 void (*iotlb_sync)(struct iommu_domain *domain);
206 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova);
207 int (*add_device)(struct device *dev);
208 void (*remove_device)(struct device *dev);
209 struct iommu_group *(*device_group)(struct device *dev);
210 int (*domain_get_attr)(struct iommu_domain *domain,
212 int (*domain_set_attr)(struct iommu_domain *domain,
216 void (*get_resv_regions)(struct device *dev, struct list_head *list);
217 void (*put_resv_regions)(struct device *dev, struct list_head *list);
218 void (*apply_resv_region)(struct device *dev,
246 const struct iommu_ops *ops; argument
405 struct iommu_ops {}; struct