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
55 __generic_dma_ops(hwdev)->map_page(hwdev, page, offset, size, dir, attrs); in xen_dma_map_page()
57 __xen_dma_map_page(hwdev, page, dev_addr, offset, size, dir, attrs); in xen_dma_map_page()
60 static inline void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, in xen_dma_unmap_page() argument
74 if (__generic_dma_ops(hwdev)->unmap_page) in xen_dma_unmap_page()
75 __generic_dma_ops(hwdev)->unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page()
77 __xen_dma_unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page()
80 static inline void xen_dma_sync_single_for_cpu(struct device *hwdev, in xen_dma_sync_single_for_cpu() argument
85 if (__generic_dma_ops(hwdev)->sync_single_for_cpu) in xen_dma_sync_single_for_cpu()
86 __generic_dma_ops(hwdev)->sync_single_for_cpu(hwdev, handle, size, dir); in xen_dma_sync_single_for_cpu()
88 __xen_dma_sync_single_for_cpu(hwdev, handle, size, dir); in xen_dma_sync_single_for_cpu()
91 static inline void xen_dma_sync_single_for_device(struct device *hwdev, in xen_dma_sync_single_for_device() argument
96 if (__generic_dma_ops(hwdev)->sync_single_for_device) in xen_dma_sync_single_for_device()
97 __generic_dma_ops(hwdev)->sync_single_for_device(hwdev, handle, size, dir); in xen_dma_sync_single_for_device()
99 __xen_dma_sync_single_for_device(hwdev, handle, size, dir); in xen_dma_sync_single_for_device()