Lines Matching refs:domain

145 	int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
146 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
147 int (*map)(struct iommu_domain *domain, unsigned long iova,
149 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
151 size_t (*map_sg)(struct iommu_domain *domain, unsigned long iova,
153 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova);
157 int (*domain_get_attr)(struct iommu_domain *domain,
159 int (*domain_set_attr)(struct iommu_domain *domain,
163 int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr,
165 void (*domain_window_disable)(struct iommu_domain *domain, u32 wnd_nr);
167 int (*domain_set_windows)(struct iommu_domain *domain, u32 w_count);
169 u32 (*domain_get_windows)(struct iommu_domain *domain);
191 extern void iommu_domain_free(struct iommu_domain *domain);
192 extern int iommu_attach_device(struct iommu_domain *domain,
194 extern void iommu_detach_device(struct iommu_domain *domain,
196 extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
198 extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova,
200 extern size_t default_iommu_map_sg(struct iommu_domain *domain, unsigned long iova,
203 extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova);
204 extern void iommu_set_fault_handler(struct iommu_domain *domain,
207 extern int iommu_attach_group(struct iommu_domain *domain,
209 extern void iommu_detach_group(struct iommu_domain *domain,
231 extern int iommu_domain_get_attr(struct iommu_domain *domain, enum iommu_attr,
233 extern int iommu_domain_set_attr(struct iommu_domain *domain, enum iommu_attr,
243 extern int iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr,
246 extern void iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr);
271 static inline int report_iommu_fault(struct iommu_domain *domain, in report_iommu_fault() argument
280 if (domain->handler) in report_iommu_fault()
281 ret = domain->handler(domain, dev, iova, flags, in report_iommu_fault()
282 domain->handler_token); in report_iommu_fault()
288 static inline size_t iommu_map_sg(struct iommu_domain *domain, in iommu_map_sg() argument
292 return domain->ops->map_sg(domain, iova, sg, nents, prot); in iommu_map_sg()
320 static inline void iommu_domain_free(struct iommu_domain *domain) in iommu_domain_free() argument
324 static inline int iommu_attach_device(struct iommu_domain *domain, in iommu_attach_device() argument
330 static inline void iommu_detach_device(struct iommu_domain *domain, in iommu_detach_device() argument
335 static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, in iommu_map() argument
341 static inline int iommu_unmap(struct iommu_domain *domain, unsigned long iova, in iommu_unmap() argument
347 static inline size_t iommu_map_sg(struct iommu_domain *domain, in iommu_map_sg() argument
354 static inline int iommu_domain_window_enable(struct iommu_domain *domain, in iommu_domain_window_enable() argument
361 static inline void iommu_domain_window_disable(struct iommu_domain *domain, in iommu_domain_window_disable() argument
366 static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) in iommu_iova_to_phys() argument
371 static inline void iommu_set_fault_handler(struct iommu_domain *domain, in iommu_set_fault_handler() argument
376 static inline int iommu_attach_group(struct iommu_domain *domain, in iommu_attach_group() argument
382 static inline void iommu_detach_group(struct iommu_domain *domain, in iommu_detach_group() argument
452 static inline int iommu_domain_get_attr(struct iommu_domain *domain, in iommu_domain_get_attr() argument
458 static inline int iommu_domain_set_attr(struct iommu_domain *domain, in iommu_domain_set_attr() argument