Home
last modified time | relevance | path

Searched refs:hwdev (Results 1 – 16 of 16) sorted by relevance

/arch/arm/include/asm/xen/
Dpage-coherent.h8 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()
[all …]
/arch/arm/xen/
Dmm.c87 static void __xen_dma_page_dev_to_cpu(struct device *hwdev, dma_addr_t handle, in __xen_dma_page_dev_to_cpu() argument
93 static void __xen_dma_page_cpu_to_dev(struct device *hwdev, dma_addr_t handle, in __xen_dma_page_cpu_to_dev() argument
99 void __xen_dma_map_page(struct device *hwdev, struct page *page, in __xen_dma_map_page() argument
103 if (is_device_dma_coherent(hwdev)) in __xen_dma_map_page()
108 __xen_dma_page_cpu_to_dev(hwdev, dev_addr, size, dir); in __xen_dma_map_page()
111 void __xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, in __xen_dma_unmap_page() argument
116 if (is_device_dma_coherent(hwdev)) in __xen_dma_unmap_page()
121 __xen_dma_page_dev_to_cpu(hwdev, handle, size, dir); in __xen_dma_unmap_page()
124 void __xen_dma_sync_single_for_cpu(struct device *hwdev, in __xen_dma_sync_single_for_cpu() argument
127 if (is_device_dma_coherent(hwdev)) in __xen_dma_sync_single_for_cpu()
[all …]
/arch/x86/include/asm/xen/
Dpage-coherent.h8 static inline void *xen_alloc_coherent_pages(struct device *hwdev, size_t size, in xen_alloc_coherent_pages() argument
17 static inline void xen_free_coherent_pages(struct device *hwdev, size_t size, in xen_free_coherent_pages() argument
24 static inline void xen_dma_map_page(struct device *hwdev, struct page *page, in xen_dma_map_page() argument
28 static inline void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, in xen_dma_unmap_page() argument
32 static inline void xen_dma_sync_single_for_cpu(struct device *hwdev, in xen_dma_sync_single_for_cpu() argument
35 static inline void xen_dma_sync_single_for_device(struct device *hwdev, in xen_dma_sync_single_for_device() argument
/arch/x86/kernel/
Dpci-nommu.c15 check_addr(char *name, struct device *hwdev, dma_addr_t bus, size_t size) in check_addr() argument
17 if (hwdev && !dma_capable(hwdev, bus, size)) { in check_addr()
18 if (*hwdev->dma_mask >= DMA_BIT_MASK(32)) in check_addr()
22 (long long)*hwdev->dma_mask); in check_addr()
56 static int nommu_map_sg(struct device *hwdev, struct scatterlist *sg, in nommu_map_sg() argument
68 if (!check_addr("map_sg", hwdev, s->dma_address, s->length)) in nommu_map_sg()
Dpci-swiotlb.c17 void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size, in x86_swiotlb_alloc_coherent() argument
30 vaddr = dma_generic_alloc_coherent(hwdev, size, dma_handle, flags, in x86_swiotlb_alloc_coherent()
35 return swiotlb_alloc_coherent(hwdev, size, dma_handle, flags); in x86_swiotlb_alloc_coherent()
/arch/hexagon/kernel/
Ddma.c92 static int check_addr(const char *name, struct device *hwdev, in check_addr() argument
95 if (hwdev && hwdev->dma_mask && !dma_capable(hwdev, bus, size)) { in check_addr()
96 if (*hwdev->dma_mask >= DMA_BIT_MASK(32)) in check_addr()
100 (long long)*hwdev->dma_mask); in check_addr()
106 static int hexagon_map_sg(struct device *hwdev, struct scatterlist *sg, in hexagon_map_sg() argument
117 if (!check_addr("map_sg", hwdev, s->dma_address, s->length)) in hexagon_map_sg()
/arch/ia64/sn/pci/pcibr/
Dpcibr_dma.c208 pcibr_dma_unmap(struct pci_dev *hwdev, dma_addr_t dma_handle, int direction) in pcibr_dma_unmap() argument
210 struct pcidev_info *pcidev_info = SN_PCIDEV_INFO(hwdev); in pcibr_dma_unmap()
357 pcibr_dma_map(struct pci_dev * hwdev, unsigned long phys_addr, size_t size, int dma_flags) in pcibr_dma_map() argument
360 struct pcidev_info *pcidev_info = SN_PCIDEV_INFO(hwdev); in pcibr_dma_map()
363 if (hwdev->dma_mask < 0x7fffffff) { in pcibr_dma_map()
367 if (hwdev->dma_mask == ~0UL) { in pcibr_dma_map()
395 pcibr_dma_map_consistent(struct pci_dev * hwdev, unsigned long phys_addr, in pcibr_dma_map_consistent() argument
399 struct pcidev_info *pcidev_info = SN_PCIDEV_INFO(hwdev); in pcibr_dma_map_consistent()
401 if (hwdev->dev.coherent_dma_mask == ~0UL) { in pcibr_dma_map_consistent()
/arch/frv/include/asm/
Dpci.h35 extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
38 extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
/arch/ia64/kernel/
Dmachvec.c77 machvec_dma_sync_single(struct device *hwdev, dma_addr_t dma_handle, size_t size, in machvec_dma_sync_single() argument
85 machvec_dma_sync_sg(struct device *hwdev, struct scatterlist *sg, int n, in machvec_dma_sync_sg() argument
/arch/frv/mb93090-mb00/
Dpci-dma.c21 void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_coherent() argument
34 void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) in dma_free_coherent() argument
Dpci-dma-nommu.c37 void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_coherent() argument
89 void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) in dma_free_coherent() argument
/arch/x86/include/asm/
Dswiotlb.h32 extern void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
Ddma-mapping.h47 extern int dma_supported(struct device *hwdev, u64 mask);
/arch/mips/include/asm/mach-pmcs-msp71xx/
Dmsp_usb.h51 u32 hwdev; /* 0xc: Device HW params */ member
/arch/xtensa/kernel/
Dpci-dma.c173 static void xtensa_dma_free(struct device *hwdev, size_t size, void *vaddr, in xtensa_dma_free() argument
/arch/arm64/mm/
Ddma-mapping.c487 static int __dummy_mapping_error(struct device *hwdev, dma_addr_t dma_addr) in __dummy_mapping_error() argument
492 static int __dummy_dma_supported(struct device *hwdev, u64 mask) in __dummy_dma_supported() argument