Lines Matching defs:iommu_ops
233 struct iommu_ops { struct
234 bool (*capable)(enum iommu_cap);
237 struct iommu_domain *(*domain_alloc)(unsigned iommu_domain_type);
238 void (*domain_free)(struct iommu_domain *);
240 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
241 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
242 int (*map)(struct iommu_domain *domain, unsigned long iova,
244 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
246 void (*flush_iotlb_all)(struct iommu_domain *domain);
247 void (*iotlb_sync_map)(struct iommu_domain *domain);
248 void (*iotlb_sync)(struct iommu_domain *domain,
250 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova);
251 struct iommu_device *(*probe_device)(struct device *dev);
252 void (*release_device)(struct device *dev);
253 void (*probe_finalize)(struct device *dev);
254 struct iommu_group *(*device_group)(struct device *dev);
255 int (*domain_get_attr)(struct iommu_domain *domain,
257 int (*domain_set_attr)(struct iommu_domain *domain,
261 void (*get_resv_regions)(struct device *dev, struct list_head *list);
262 void (*put_resv_regions)(struct device *dev, struct list_head *list);
263 void (*apply_resv_region)(struct device *dev,
268 int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr,
270 void (*domain_window_disable)(struct iommu_domain *domain, u32 wnd_nr);
272 int (*of_xlate)(struct device *dev, struct of_phandle_args *args);
273 bool (*is_attach_deferred)(struct iommu_domain *domain, struct device *dev);
276 bool (*dev_has_feat)(struct device *dev, enum iommu_dev_features f);
277 bool (*dev_feat_enabled)(struct device *dev, enum iommu_dev_features f);
278 int (*dev_enable_feat)(struct device *dev, enum iommu_dev_features f);
279 int (*dev_disable_feat)(struct device *dev, enum iommu_dev_features f);
282 int (*aux_attach_dev)(struct iommu_domain *domain, struct device *dev);
283 void (*aux_detach_dev)(struct iommu_domain *domain, struct device *dev);
284 int (*aux_get_pasid)(struct iommu_domain *domain, struct device *dev);
286 struct iommu_sva *(*sva_bind)(struct device *dev, struct mm_struct *mm,
288 void (*sva_unbind)(struct iommu_sva *handle);
289 u32 (*sva_get_pasid)(struct iommu_sva *handle);
291 int (*page_response)(struct device *dev,
316 const struct iommu_ops *ops; argument
644 struct iommu_ops {}; struct