Lines Matching defs:iommu_ops

242 struct iommu_ops {  struct
243 bool (*capable)(enum iommu_cap);
246 struct iommu_domain *(*domain_alloc)(unsigned iommu_domain_type);
247 void (*domain_free)(struct iommu_domain *);
249 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
250 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
251 int (*map)(struct iommu_domain *domain, unsigned long iova,
253 int (*map_pages)(struct iommu_domain *domain, unsigned long iova,
256 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
258 size_t (*unmap_pages)(struct iommu_domain *domain, unsigned long iova,
261 void (*flush_iotlb_all)(struct iommu_domain *domain);
262 void (*iotlb_sync_map)(struct iommu_domain *domain, unsigned long iova,
264 void (*iotlb_sync)(struct iommu_domain *domain,
266 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova);
267 struct iommu_device *(*probe_device)(struct device *dev);
268 void (*release_device)(struct device *dev);
269 void (*probe_finalize)(struct device *dev);
270 struct iommu_group *(*device_group)(struct device *dev);
271 int (*enable_nesting)(struct iommu_domain *domain);
272 int (*set_pgtable_quirks)(struct iommu_domain *domain,
276 void (*get_resv_regions)(struct device *dev, struct list_head *list);
277 void (*put_resv_regions)(struct device *dev, struct list_head *list);
278 void (*apply_resv_region)(struct device *dev,
282 int (*of_xlate)(struct device *dev, struct of_phandle_args *args);
283 bool (*is_attach_deferred)(struct iommu_domain *domain, struct device *dev);
286 bool (*dev_has_feat)(struct device *dev, enum iommu_dev_features f);
287 bool (*dev_feat_enabled)(struct device *dev, enum iommu_dev_features f);
288 int (*dev_enable_feat)(struct device *dev, enum iommu_dev_features f);
289 int (*dev_disable_feat)(struct device *dev, enum iommu_dev_features f);
292 int (*aux_attach_dev)(struct iommu_domain *domain, struct device *dev);
293 void (*aux_detach_dev)(struct iommu_domain *domain, struct device *dev);
294 int (*aux_get_pasid)(struct iommu_domain *domain, struct device *dev);
296 struct iommu_sva *(*sva_bind)(struct device *dev, struct mm_struct *mm,
298 void (*sva_unbind)(struct iommu_sva *handle);
299 u32 (*sva_get_pasid)(struct iommu_sva *handle);
301 int (*page_response)(struct device *dev,
326 const struct iommu_ops *ops; argument
686 struct iommu_ops {}; struct