Lines Matching refs:domain

65 	int (*domain_init)(struct iommu_domain *domain);
66 void (*domain_destroy)(struct iommu_domain *domain);
67 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
68 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
69 int (*map)(struct iommu_domain *domain, unsigned long iova,
71 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
73 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain,
75 int (*domain_has_cap)(struct iommu_domain *domain,
84 extern void iommu_domain_free(struct iommu_domain *domain);
85 extern int iommu_attach_device(struct iommu_domain *domain,
87 extern void iommu_detach_device(struct iommu_domain *domain,
89 extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
91 extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova,
93 extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain,
95 extern int iommu_domain_has_cap(struct iommu_domain *domain,
97 extern void iommu_set_fault_handler(struct iommu_domain *domain,
125 static inline int report_iommu_fault(struct iommu_domain *domain, in report_iommu_fault() argument
134 if (domain->handler) in report_iommu_fault()
135 ret = domain->handler(domain, dev, iova, flags); in report_iommu_fault()
154 static inline void iommu_domain_free(struct iommu_domain *domain) in iommu_domain_free() argument
158 static inline int iommu_attach_device(struct iommu_domain *domain, in iommu_attach_device() argument
164 static inline void iommu_detach_device(struct iommu_domain *domain, in iommu_detach_device() argument
169 static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, in iommu_map() argument
175 static inline int iommu_unmap(struct iommu_domain *domain, unsigned long iova, in iommu_unmap() argument
181 static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, in iommu_iova_to_phys() argument
187 static inline int domain_has_cap(struct iommu_domain *domain, in domain_has_cap() argument
193 static inline void iommu_set_fault_handler(struct iommu_domain *domain, in iommu_set_fault_handler() argument