Lines Matching refs:domain

116 static inline bool iommu_is_dma_domain(struct iommu_domain *domain)  in iommu_is_dma_domain()  argument
118 return domain->type & __IOMMU_DOMAIN_DMA_API; in iommu_is_dma_domain()
333 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
334 int (*set_dev_pasid)(struct iommu_domain *domain, struct device *dev,
337 int (*map)(struct iommu_domain *domain, unsigned long iova,
339 int (*map_pages)(struct iommu_domain *domain, unsigned long iova,
342 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
344 size_t (*unmap_pages)(struct iommu_domain *domain, unsigned long iova,
348 void (*flush_iotlb_all)(struct iommu_domain *domain);
349 void (*iotlb_sync_map)(struct iommu_domain *domain, unsigned long iova,
351 void (*iotlb_sync)(struct iommu_domain *domain,
354 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain,
357 bool (*enforce_cache_coherency)(struct iommu_domain *domain);
358 int (*enable_nesting)(struct iommu_domain *domain);
359 int (*set_pgtable_quirks)(struct iommu_domain *domain,
362 void (*free)(struct iommu_domain *domain);
449 int iommu_deferred_attach(struct device *dev, struct iommu_domain *domain);
469 extern void iommu_domain_free(struct iommu_domain *domain);
470 extern int iommu_attach_device(struct iommu_domain *domain,
472 extern void iommu_detach_device(struct iommu_domain *domain,
474 extern int iommu_sva_unbind_gpasid(struct iommu_domain *domain,
478 extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
480 extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova,
482 extern size_t iommu_unmap_fast(struct iommu_domain *domain,
485 extern ssize_t iommu_map_sg(struct iommu_domain *domain, unsigned long iova,
488 extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova);
489 extern void iommu_set_fault_handler(struct iommu_domain *domain,
503 extern int iommu_attach_group(struct iommu_domain *domain,
505 extern void iommu_detach_group(struct iommu_domain *domain,
535 int iommu_enable_nesting(struct iommu_domain *domain);
536 int iommu_set_pgtable_quirks(struct iommu_domain *domain,
541 extern int report_iommu_fault(struct iommu_domain *domain, struct device *dev,
544 static inline void iommu_flush_iotlb_all(struct iommu_domain *domain) in iommu_flush_iotlb_all() argument
546 if (domain->ops->flush_iotlb_all) in iommu_flush_iotlb_all()
547 domain->ops->flush_iotlb_all(domain); in iommu_flush_iotlb_all()
550 static inline void iommu_iotlb_sync(struct iommu_domain *domain, in iommu_iotlb_sync() argument
553 if (domain->ops->iotlb_sync) in iommu_iotlb_sync()
554 domain->ops->iotlb_sync(domain, iotlb_gather); in iommu_iotlb_sync()
613 static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain, in iommu_iotlb_gather_add_page() argument
624 iommu_iotlb_sync(domain, gather); in iommu_iotlb_gather_add_page()
670 struct iommu_domain *domain; member
723 int iommu_attach_device_pasid(struct iommu_domain *domain,
725 void iommu_detach_device_pasid(struct iommu_domain *domain,
756 static inline void iommu_domain_free(struct iommu_domain *domain) in iommu_domain_free() argument
760 static inline int iommu_attach_device(struct iommu_domain *domain, in iommu_attach_device() argument
766 static inline void iommu_detach_device(struct iommu_domain *domain, in iommu_detach_device() argument
776 static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, in iommu_map() argument
782 static inline size_t iommu_unmap(struct iommu_domain *domain, in iommu_unmap() argument
788 static inline size_t iommu_unmap_fast(struct iommu_domain *domain, in iommu_unmap_fast() argument
795 static inline ssize_t iommu_map_sg(struct iommu_domain *domain, in iommu_map_sg() argument
802 static inline void iommu_flush_iotlb_all(struct iommu_domain *domain) in iommu_flush_iotlb_all() argument
806 static inline void iommu_iotlb_sync(struct iommu_domain *domain, in iommu_iotlb_sync() argument
811 static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) in iommu_iova_to_phys() argument
816 static inline void iommu_set_fault_handler(struct iommu_domain *domain, in iommu_set_fault_handler() argument
850 static inline int iommu_attach_group(struct iommu_domain *domain, in iommu_attach_group() argument
856 static inline void iommu_detach_group(struct iommu_domain *domain, in iommu_detach_group() argument
939 static inline int iommu_set_pgtable_quirks(struct iommu_domain *domain, in iommu_set_pgtable_quirks() argument
961 static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain, in iommu_iotlb_gather_add_page() argument
1076 static inline int iommu_attach_device_pasid(struct iommu_domain *domain, in iommu_attach_device_pasid() argument
1082 static inline void iommu_detach_device_pasid(struct iommu_domain *domain, in iommu_detach_device_pasid() argument
1112 static inline size_t iommu_map_sgtable(struct iommu_domain *domain, in iommu_map_sgtable() argument
1115 return iommu_map_sg(domain, iova, sgt->sgl, sgt->orig_nents, prot, in iommu_map_sgtable()
1132 int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base);
1146 static inline int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base) in iommu_get_msi_cookie() argument