Lines Matching refs:hwdev
8 void __xen_dma_map_page(struct device *hwdev, struct page *page,
11 void __xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle,
14 void __xen_dma_sync_single_for_cpu(struct device *hwdev,
17 void __xen_dma_sync_single_for_device(struct device *hwdev,
20 static inline void *xen_alloc_coherent_pages(struct device *hwdev, size_t size, in xen_alloc_coherent_pages() argument
24 return __generic_dma_ops(hwdev)->alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages()
27 static inline void xen_free_coherent_pages(struct device *hwdev, size_t size, in xen_free_coherent_pages() argument
31 __generic_dma_ops(hwdev)->free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages()
34 static inline void xen_dma_map_page(struct device *hwdev, struct page *page, in xen_dma_map_page() argument
44 __generic_dma_ops(hwdev)->map_page(hwdev, page, offset, size, dir, attrs); in xen_dma_map_page()
46 __xen_dma_map_page(hwdev, page, dev_addr, offset, size, dir, attrs); in xen_dma_map_page()
49 static inline void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, in xen_dma_unmap_page() argument
59 if (__generic_dma_ops(hwdev)->unmap_page) in xen_dma_unmap_page()
60 __generic_dma_ops(hwdev)->unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page()
62 __xen_dma_unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page()
65 static inline void xen_dma_sync_single_for_cpu(struct device *hwdev, in xen_dma_sync_single_for_cpu() argument
70 if (__generic_dma_ops(hwdev)->sync_single_for_cpu) in xen_dma_sync_single_for_cpu()
71 __generic_dma_ops(hwdev)->sync_single_for_cpu(hwdev, handle, size, dir); in xen_dma_sync_single_for_cpu()
73 __xen_dma_sync_single_for_cpu(hwdev, handle, size, dir); in xen_dma_sync_single_for_cpu()
76 static inline void xen_dma_sync_single_for_device(struct device *hwdev, in xen_dma_sync_single_for_device() argument
81 if (__generic_dma_ops(hwdev)->sync_single_for_device) in xen_dma_sync_single_for_device()
82 __generic_dma_ops(hwdev)->sync_single_for_device(hwdev, handle, size, dir); in xen_dma_sync_single_for_device()
84 __xen_dma_sync_single_for_device(hwdev, handle, size, dir); in xen_dma_sync_single_for_device()