Lines Matching refs:iommu_domain

38 struct iommu_domain;
45 typedef int (*iommu_fault_handler_t)(struct iommu_domain *,
78 struct iommu_domain { struct
142 struct iommu_domain *(*domain_alloc)(unsigned iommu_domain_type);
143 void (*domain_free)(struct iommu_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);
189 extern struct iommu_domain *iommu_domain_alloc(struct bus_type *bus);
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()
288 static inline size_t iommu_map_sg(struct iommu_domain *domain, in iommu_map_sg()
310 static inline struct iommu_domain *iommu_domain_alloc(struct bus_type *bus) in iommu_domain_alloc()
320 static inline void iommu_domain_free(struct iommu_domain *domain) in iommu_domain_free()
324 static inline int iommu_attach_device(struct iommu_domain *domain, in iommu_attach_device()
330 static inline void iommu_detach_device(struct iommu_domain *domain, in iommu_detach_device()
335 static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, in iommu_map()
341 static inline int iommu_unmap(struct iommu_domain *domain, unsigned long iova, in iommu_unmap()
347 static inline size_t iommu_map_sg(struct iommu_domain *domain, in iommu_map_sg()
354 static inline int iommu_domain_window_enable(struct iommu_domain *domain, in iommu_domain_window_enable()
361 static inline void iommu_domain_window_disable(struct iommu_domain *domain, in iommu_domain_window_disable()
366 static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) in iommu_iova_to_phys()
371 static inline void iommu_set_fault_handler(struct iommu_domain *domain, in iommu_set_fault_handler()
376 static inline int iommu_attach_group(struct iommu_domain *domain, in iommu_attach_group()
382 static inline void iommu_detach_group(struct iommu_domain *domain, in iommu_detach_group()
452 static inline int iommu_domain_get_attr(struct iommu_domain *domain, in iommu_domain_get_attr()
458 static inline int iommu_domain_set_attr(struct iommu_domain *domain, in iommu_domain_set_attr()