Lines Matching refs:iommu_domain

49 struct iommu_domain;
56 typedef int (*iommu_fault_handler_t)(struct iommu_domain *,
89 struct iommu_domain { struct
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);
210 int (*domain_get_attr)(struct iommu_domain *domain,
212 int (*domain_set_attr)(struct iommu_domain *domain,
219 struct iommu_domain *domain,
223 int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr,
225 void (*domain_window_disable)(struct iommu_domain *domain, u32 wnd_nr);
227 int (*domain_set_windows)(struct iommu_domain *domain, u32 w_count);
229 u32 (*domain_get_windows)(struct iommu_domain *domain);
232 bool (*is_attach_deferred)(struct iommu_domain *domain, struct device *dev);
288 extern struct iommu_domain *iommu_domain_alloc(struct bus_type *bus);
290 extern void iommu_domain_free(struct iommu_domain *domain);
291 extern int iommu_attach_device(struct iommu_domain *domain,
293 extern void iommu_detach_device(struct iommu_domain *domain,
295 extern struct iommu_domain *iommu_get_domain_for_dev(struct device *dev);
296 extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
298 extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova,
300 extern size_t iommu_unmap_fast(struct iommu_domain *domain,
302 extern size_t iommu_map_sg(struct iommu_domain *domain, unsigned long iova,
304 extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova);
305 extern void iommu_set_fault_handler(struct iommu_domain *domain,
317 extern int iommu_attach_group(struct iommu_domain *domain,
319 extern void iommu_detach_group(struct iommu_domain *domain,
341 extern struct iommu_domain *iommu_group_default_domain(struct iommu_group *);
343 extern int iommu_domain_get_attr(struct iommu_domain *domain, enum iommu_attr,
345 extern int iommu_domain_set_attr(struct iommu_domain *domain, enum iommu_attr,
349 extern int iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr,
352 extern void iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr);
354 extern int report_iommu_fault(struct iommu_domain *domain, struct device *dev,
357 static inline void iommu_flush_tlb_all(struct iommu_domain *domain) in iommu_flush_tlb_all()
363 static inline void iommu_tlb_range_add(struct iommu_domain *domain, in iommu_tlb_range_add()
370 static inline void iommu_tlb_sync(struct iommu_domain *domain) in iommu_tlb_sync()
420 static inline struct iommu_domain *iommu_domain_alloc(struct bus_type *bus) in iommu_domain_alloc()
430 static inline void iommu_domain_free(struct iommu_domain *domain) in iommu_domain_free()
434 static inline int iommu_attach_device(struct iommu_domain *domain, in iommu_attach_device()
440 static inline void iommu_detach_device(struct iommu_domain *domain, in iommu_detach_device()
445 static inline struct iommu_domain *iommu_get_domain_for_dev(struct device *dev) in iommu_get_domain_for_dev()
450 static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, in iommu_map()
456 static inline size_t iommu_unmap(struct iommu_domain *domain, in iommu_unmap()
462 static inline size_t iommu_unmap_fast(struct iommu_domain *domain, in iommu_unmap_fast()
468 static inline size_t iommu_map_sg(struct iommu_domain *domain, in iommu_map_sg()
475 static inline void iommu_flush_tlb_all(struct iommu_domain *domain) in iommu_flush_tlb_all()
479 static inline void iommu_tlb_range_add(struct iommu_domain *domain, in iommu_tlb_range_add()
484 static inline void iommu_tlb_sync(struct iommu_domain *domain) in iommu_tlb_sync()
488 static inline int iommu_domain_window_enable(struct iommu_domain *domain, in iommu_domain_window_enable()
495 static inline void iommu_domain_window_disable(struct iommu_domain *domain, in iommu_domain_window_disable()
500 static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) in iommu_iova_to_phys()
505 static inline void iommu_set_fault_handler(struct iommu_domain *domain, in iommu_set_fault_handler()
531 static inline int iommu_attach_group(struct iommu_domain *domain, in iommu_attach_group()
537 static inline void iommu_detach_group(struct iommu_domain *domain, in iommu_detach_group()
607 static inline int iommu_domain_get_attr(struct iommu_domain *domain, in iommu_domain_get_attr()
613 static inline int iommu_domain_set_attr(struct iommu_domain *domain, in iommu_domain_set_attr()