Lines Matching refs:domain
256 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
257 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
258 int (*map)(struct iommu_domain *domain, unsigned long iova,
260 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
262 void (*flush_iotlb_all)(struct iommu_domain *domain);
263 void (*iotlb_sync_map)(struct iommu_domain *domain);
264 void (*iotlb_sync)(struct iommu_domain *domain,
266 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova);
270 int (*domain_get_attr)(struct iommu_domain *domain,
272 int (*domain_set_attr)(struct iommu_domain *domain,
279 struct iommu_domain *domain,
283 int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr,
285 void (*domain_window_disable)(struct iommu_domain *domain, u32 wnd_nr);
288 bool (*is_attach_deferred)(struct iommu_domain *domain, struct device *dev);
297 int (*aux_attach_dev)(struct iommu_domain *domain, struct device *dev);
298 void (*aux_detach_dev)(struct iommu_domain *domain, struct device *dev);
299 int (*aux_get_pasid)(struct iommu_domain *domain, struct device *dev);
415 extern void iommu_domain_free(struct iommu_domain *domain);
416 extern int iommu_attach_device(struct iommu_domain *domain,
418 extern void iommu_detach_device(struct iommu_domain *domain,
422 extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
424 extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova,
426 extern size_t iommu_unmap_fast(struct iommu_domain *domain,
429 extern size_t iommu_map_sg(struct iommu_domain *domain, unsigned long iova,
431 extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova);
432 extern void iommu_set_fault_handler(struct iommu_domain *domain,
448 extern int iommu_attach_group(struct iommu_domain *domain,
450 extern void iommu_detach_group(struct iommu_domain *domain,
485 extern int iommu_domain_get_attr(struct iommu_domain *domain, enum iommu_attr,
487 extern int iommu_domain_set_attr(struct iommu_domain *domain, enum iommu_attr,
491 extern int iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr,
494 extern void iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr);
496 extern int report_iommu_fault(struct iommu_domain *domain, struct device *dev,
499 static inline void iommu_flush_tlb_all(struct iommu_domain *domain) in iommu_flush_tlb_all() argument
501 if (domain->ops->flush_iotlb_all) in iommu_flush_tlb_all()
502 domain->ops->flush_iotlb_all(domain); in iommu_flush_tlb_all()
505 static inline void iommu_tlb_sync(struct iommu_domain *domain, in iommu_tlb_sync() argument
508 if (domain->ops->iotlb_sync) in iommu_tlb_sync()
509 domain->ops->iotlb_sync(domain, iotlb_gather); in iommu_tlb_sync()
514 static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain, in iommu_iotlb_gather_add_page() argument
528 iommu_tlb_sync(domain, gather); in iommu_iotlb_gather_add_page()
598 int iommu_aux_attach_device(struct iommu_domain *domain, struct device *dev);
599 void iommu_aux_detach_device(struct iommu_domain *domain, struct device *dev);
600 int iommu_aux_get_pasid(struct iommu_domain *domain, struct device *dev);
639 static inline void iommu_domain_free(struct iommu_domain *domain) in iommu_domain_free() argument
643 static inline int iommu_attach_device(struct iommu_domain *domain, in iommu_attach_device() argument
649 static inline void iommu_detach_device(struct iommu_domain *domain, in iommu_detach_device() argument
659 static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, in iommu_map() argument
665 static inline size_t iommu_unmap(struct iommu_domain *domain, in iommu_unmap() argument
671 static inline size_t iommu_unmap_fast(struct iommu_domain *domain, in iommu_unmap_fast() argument
678 static inline size_t iommu_map_sg(struct iommu_domain *domain, in iommu_map_sg() argument
685 static inline void iommu_flush_tlb_all(struct iommu_domain *domain) in iommu_flush_tlb_all() argument
689 static inline void iommu_tlb_sync(struct iommu_domain *domain, in iommu_tlb_sync() argument
694 static inline int iommu_domain_window_enable(struct iommu_domain *domain, in iommu_domain_window_enable() argument
701 static inline void iommu_domain_window_disable(struct iommu_domain *domain, in iommu_domain_window_disable() argument
706 static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) in iommu_iova_to_phys() argument
711 static inline void iommu_set_fault_handler(struct iommu_domain *domain, in iommu_set_fault_handler() argument
755 static inline int iommu_attach_group(struct iommu_domain *domain, in iommu_attach_group() argument
761 static inline void iommu_detach_group(struct iommu_domain *domain, in iommu_detach_group() argument
856 static inline int iommu_domain_get_attr(struct iommu_domain *domain, in iommu_domain_get_attr() argument
862 static inline int iommu_domain_set_attr(struct iommu_domain *domain, in iommu_domain_set_attr() argument
892 static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain, in iommu_iotlb_gather_add_page() argument
971 iommu_aux_attach_device(struct iommu_domain *domain, struct device *dev) in iommu_aux_attach_device() argument
977 iommu_aux_detach_device(struct iommu_domain *domain, struct device *dev) in iommu_aux_detach_device() argument
982 iommu_aux_get_pasid(struct iommu_domain *domain, struct device *dev) in iommu_aux_get_pasid() argument