Lines Matching refs:iommu_domain

39 struct iommu_domain;
50 typedef int (*iommu_fault_handler_t)(struct iommu_domain *,
90 struct iommu_domain { struct
100 static inline bool iommu_is_dma_domain(struct iommu_domain *domain) in iommu_is_dma_domain() argument
233 struct iommu_domain *(*domain_alloc)(unsigned iommu_domain_type);
288 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
289 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
291 int (*map)(struct iommu_domain *domain, unsigned long iova,
293 int (*map_pages)(struct iommu_domain *domain, unsigned long iova,
296 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
298 size_t (*unmap_pages)(struct iommu_domain *domain, unsigned long iova,
302 void (*flush_iotlb_all)(struct iommu_domain *domain);
303 void (*iotlb_sync_map)(struct iommu_domain *domain, unsigned long iova,
305 void (*iotlb_sync)(struct iommu_domain *domain,
308 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain,
311 bool (*enforce_cache_coherency)(struct iommu_domain *domain);
312 int (*enable_nesting)(struct iommu_domain *domain);
313 int (*set_pgtable_quirks)(struct iommu_domain *domain,
316 void (*free)(struct iommu_domain *domain);
393 int iommu_deferred_attach(struct device *dev, struct iommu_domain *domain);
422 extern struct iommu_domain *iommu_domain_alloc(struct bus_type *bus);
424 extern void iommu_domain_free(struct iommu_domain *domain);
425 extern int iommu_attach_device(struct iommu_domain *domain,
427 extern void iommu_detach_device(struct iommu_domain *domain,
429 extern int iommu_sva_unbind_gpasid(struct iommu_domain *domain,
431 extern struct iommu_domain *iommu_get_domain_for_dev(struct device *dev);
432 extern struct iommu_domain *iommu_get_dma_domain(struct device *dev);
433 extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
435 extern int iommu_map_atomic(struct iommu_domain *domain, unsigned long iova,
437 extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova,
439 extern size_t iommu_unmap_fast(struct iommu_domain *domain,
442 extern ssize_t iommu_map_sg(struct iommu_domain *domain, unsigned long iova,
444 extern ssize_t iommu_map_sg_atomic(struct iommu_domain *domain,
447 extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova);
448 extern void iommu_set_fault_handler(struct iommu_domain *domain,
462 extern int iommu_attach_group(struct iommu_domain *domain,
464 extern void iommu_detach_group(struct iommu_domain *domain,
492 extern struct iommu_domain *iommu_group_default_domain(struct iommu_group *);
494 int iommu_enable_nesting(struct iommu_domain *domain);
495 int iommu_set_pgtable_quirks(struct iommu_domain *domain,
500 extern int report_iommu_fault(struct iommu_domain *domain, struct device *dev,
503 static inline void iommu_flush_iotlb_all(struct iommu_domain *domain) in iommu_flush_iotlb_all()
509 static inline void iommu_iotlb_sync(struct iommu_domain *domain, in iommu_iotlb_sync()
572 static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain, in iommu_iotlb_gather_add_page()
698 static inline struct iommu_domain *iommu_domain_alloc(struct bus_type *bus) in iommu_domain_alloc()
708 static inline void iommu_domain_free(struct iommu_domain *domain) in iommu_domain_free()
712 static inline int iommu_attach_device(struct iommu_domain *domain, in iommu_attach_device()
718 static inline void iommu_detach_device(struct iommu_domain *domain, in iommu_detach_device()
723 static inline struct iommu_domain *iommu_get_domain_for_dev(struct device *dev) in iommu_get_domain_for_dev()
728 static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, in iommu_map()
734 static inline int iommu_map_atomic(struct iommu_domain *domain, in iommu_map_atomic()
741 static inline size_t iommu_unmap(struct iommu_domain *domain, in iommu_unmap()
747 static inline size_t iommu_unmap_fast(struct iommu_domain *domain, in iommu_unmap_fast()
754 static inline ssize_t iommu_map_sg(struct iommu_domain *domain, in iommu_map_sg()
761 static inline ssize_t iommu_map_sg_atomic(struct iommu_domain *domain, in iommu_map_sg_atomic()
768 static inline void iommu_flush_iotlb_all(struct iommu_domain *domain) in iommu_flush_iotlb_all()
772 static inline void iommu_iotlb_sync(struct iommu_domain *domain, in iommu_iotlb_sync()
777 static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) in iommu_iova_to_phys()
782 static inline void iommu_set_fault_handler(struct iommu_domain *domain, in iommu_set_fault_handler()
816 static inline int iommu_attach_group(struct iommu_domain *domain, in iommu_attach_group()
822 static inline void iommu_detach_group(struct iommu_domain *domain, in iommu_detach_group()
905 static inline int iommu_set_pgtable_quirks(struct iommu_domain *domain, in iommu_set_pgtable_quirks()
927 static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain, in iommu_iotlb_gather_add_page()
1053 static inline size_t iommu_map_sgtable(struct iommu_domain *domain, in iommu_map_sgtable()
1072 int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base);
1086 static inline int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base) in iommu_get_msi_cookie()