Home
last modified time | relevance | path

Searched refs:dma_handle (Results 1 – 25 of 77) sorted by relevance

1234

/arch/arc/mm/
Ddma.c30 dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_noncoherent() argument
40 *dma_handle = plat_kernel_addr_to_dma(dev, paddr); in dma_alloc_noncoherent()
47 dma_addr_t dma_handle) in dma_free_noncoherent() argument
49 free_pages_exact((void *)plat_dma_addr_to_kernel(dev, dma_handle), in dma_free_noncoherent()
55 dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_coherent() argument
70 *dma_handle = plat_kernel_addr_to_dma(dev, paddr); in dma_alloc_coherent()
77 dma_addr_t dma_handle) in dma_free_coherent() argument
81 free_pages_exact((void *)plat_dma_addr_to_kernel(dev, dma_handle), in dma_free_coherent()
/arch/openrisc/include/asm/
Ddma-mapping.h44 dma_addr_t *dma_handle, gfp_t gfp, in dma_alloc_attrs() argument
50 memory = ops->alloc(dev, size, dma_handle, gfp, attrs); in dma_alloc_attrs()
52 debug_dma_alloc_coherent(dev, size, *dma_handle, memory); in dma_alloc_attrs()
60 void *cpu_addr, dma_addr_t dma_handle, in dma_free_attrs() argument
65 debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); in dma_free_attrs()
67 ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
71 dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_noncoherent() argument
77 return dma_alloc_attrs(dev, size, dma_handle, gfp, &attrs); in dma_alloc_noncoherent()
81 void *cpu_addr, dma_addr_t dma_handle) in dma_free_noncoherent() argument
87 dma_free_attrs(dev, size, cpu_addr, dma_handle, &attrs); in dma_free_noncoherent()
/arch/arc/include/asm/
Ddma-mapping.h35 dma_addr_t *dma_handle, gfp_t gfp);
38 dma_addr_t dma_handle);
41 dma_addr_t *dma_handle, gfp_t gfp);
44 dma_addr_t dma_handle);
116 dma_unmap_page(struct device *dev, dma_addr_t dma_handle, in dma_unmap_page() argument
147 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_cpu() argument
150 _dma_cache_sync(plat_dma_addr_to_kernel(dev, dma_handle), size, in dma_sync_single_for_cpu()
155 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device() argument
158 _dma_cache_sync(plat_dma_addr_to_kernel(dev, dma_handle), size, in dma_sync_single_for_device()
163 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() argument
[all …]
/arch/mips/include/asm/
Ddma-mapping.h71 dma_addr_t *dma_handle, gfp_t gfp, in dma_alloc_attrs() argument
77 ret = ops->alloc(dev, size, dma_handle, gfp, attrs); in dma_alloc_attrs()
79 debug_dma_alloc_coherent(dev, size, *dma_handle, ret); in dma_alloc_attrs()
87 void *vaddr, dma_addr_t dma_handle, in dma_free_attrs() argument
92 ops->free(dev, size, vaddr, dma_handle, attrs); in dma_free_attrs()
94 debug_dma_free_coherent(dev, size, vaddr, dma_handle); in dma_free_attrs()
99 dma_addr_t *dma_handle, gfp_t flag);
102 void *vaddr, dma_addr_t dma_handle);
/arch/parisc/include/asm/
Ddma-mapping.h55 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_coherent() argument
58 return hppa_dma_ops->alloc_consistent(dev, size, dma_handle, flag); in dma_alloc_coherent()
62 dma_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_noncoherent() argument
65 return hppa_dma_ops->alloc_noncoherent(dev, size, dma_handle, flag); in dma_alloc_noncoherent()
70 void *vaddr, dma_addr_t dma_handle) in dma_free_coherent() argument
72 hppa_dma_ops->free_consistent(dev, size, vaddr, dma_handle); in dma_free_coherent()
77 void *vaddr, dma_addr_t dma_handle) in dma_free_noncoherent() argument
79 hppa_dma_ops->free_consistent(dev, size, vaddr, dma_handle); in dma_free_noncoherent()
126 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu() argument
130 hppa_dma_ops->dma_sync_single_for_cpu(dev, dma_handle, 0, size, direction); in dma_sync_single_for_cpu()
[all …]
/arch/sh/include/asm/
Ddma-mapping.h59 dma_addr_t *dma_handle, gfp_t gfp, in dma_alloc_attrs() argument
65 if (dma_alloc_from_coherent(dev, size, dma_handle, &memory)) in dma_alloc_attrs()
70 memory = ops->alloc(dev, size, dma_handle, gfp, attrs); in dma_alloc_attrs()
71 debug_dma_alloc_coherent(dev, size, *dma_handle, memory); in dma_alloc_attrs()
79 void *vaddr, dma_addr_t dma_handle, in dma_free_attrs() argument
87 debug_dma_free_coherent(dev, size, vaddr, dma_handle); in dma_free_attrs()
89 ops->free(dev, size, vaddr, dma_handle, attrs); in dma_free_attrs()
97 void *vaddr, dma_addr_t dma_handle,
/arch/xtensa/include/asm/
Ddma-mapping.h33 dma_addr_t *dma_handle, gfp_t flag);
36 void *vaddr, dma_addr_t dma_handle);
96 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu() argument
99 consistent_sync((void *)bus_to_virt(dma_handle), size, direction); in dma_sync_single_for_cpu()
103 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device() argument
106 consistent_sync((void *)bus_to_virt(dma_handle), size, direction); in dma_sync_single_for_device()
110 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() argument
115 consistent_sync((void *)bus_to_virt(dma_handle)+offset,size,direction); in dma_sync_single_range_for_cpu()
119 dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_device() argument
124 consistent_sync((void *)bus_to_virt(dma_handle)+offset,size,direction); in dma_sync_single_range_for_device()
/arch/hexagon/include/asm/
Ddma-mapping.h50 extern int dma_is_consistent(struct device *dev, dma_addr_t dma_handle);
76 dma_addr_t *dma_handle, gfp_t flag, in dma_alloc_attrs() argument
84 ret = ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
86 debug_dma_alloc_coherent(dev, size, *dma_handle, ret); in dma_alloc_attrs()
94 void *cpu_addr, dma_addr_t dma_handle, in dma_free_attrs() argument
101 dma_ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
103 debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); in dma_free_attrs()
/arch/cris/arch-v32/drivers/pci/
Ddma.c20 dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_coherent() argument
27 if (dma_alloc_from_coherent(dev, size, dma_handle, &ret)) in dma_alloc_coherent()
37 *dma_handle = virt_to_phys(ret); in dma_alloc_coherent()
43 void *vaddr, dma_addr_t dma_handle) in dma_free_coherent() argument
/arch/mips/netlogic/common/
Dnlm-dma.c48 dma_addr_t *dma_handle, gfp_t gfp, struct dma_attrs *attrs) in nlm_dma_alloc_coherent() argument
52 if (dma_alloc_from_coherent(dev, size, dma_handle, &ret)) in nlm_dma_alloc_coherent()
66 return swiotlb_alloc_coherent(dev, size, dma_handle, gfp); in nlm_dma_alloc_coherent()
70 void *vaddr, dma_addr_t dma_handle, struct dma_attrs *attrs) in nlm_dma_free_coherent() argument
77 swiotlb_free_coherent(dev, size, vaddr, dma_handle); in nlm_dma_free_coherent()
/arch/m68k/include/asm/
Ddma-mapping.h24 dma_addr_t *dma_handle, gfp_t flag, in dma_alloc_attrs() argument
28 return dma_alloc_coherent(dev, size, dma_handle, flag); in dma_alloc_attrs()
32 void *cpu_addr, dma_addr_t dma_handle, in dma_free_attrs() argument
36 dma_free_coherent(dev, size, cpu_addr, dma_handle); in dma_free_attrs()
83 dma_addr_t dma_handle, unsigned long offset, size_t size, in dma_sync_single_range_for_device() argument
87 dma_sync_single_for_device(dev, dma_handle, offset + size, direction); in dma_sync_single_range_for_device()
101 dma_addr_t dma_handle, unsigned long offset, size_t size, in dma_sync_single_range_for_cpu() argument
105 dma_sync_single_for_cpu(dev, dma_handle, offset + size, direction); in dma_sync_single_range_for_cpu()
/arch/microblaze/kernel/
Ddma.c19 dma_addr_t *dma_handle, gfp_t flag, in dma_direct_alloc_coherent() argument
23 return consistent_alloc(flag, size, dma_handle); in dma_direct_alloc_coherent()
37 *dma_handle = virt_to_phys(ret); in dma_direct_alloc_coherent()
44 void *vaddr, dma_addr_t dma_handle, in dma_direct_free_coherent() argument
103 dma_addr_t dma_handle, size_t size, in dma_direct_sync_single_for_cpu() argument
112 __dma_sync(dma_handle, size, direction); in dma_direct_sync_single_for_cpu()
117 dma_addr_t dma_handle, size_t size, in dma_direct_sync_single_for_device() argument
126 __dma_sync(dma_handle, size, direction); in dma_direct_sync_single_for_device()
/arch/sparc/include/asm/
Ddma-mapping.h47 dma_addr_t *dma_handle, gfp_t flag, in dma_alloc_attrs() argument
53 cpu_addr = ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
54 debug_dma_alloc_coherent(dev, size, *dma_handle, cpu_addr); in dma_alloc_attrs()
61 void *cpu_addr, dma_addr_t dma_handle, in dma_free_attrs() argument
66 debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); in dma_free_attrs()
67 ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
/arch/sh/mm/
Dconsistent.c36 dma_addr_t *dma_handle, gfp_t gfp, in dma_generic_alloc_coherent() argument
62 *dma_handle = virt_to_phys(ret); in dma_generic_alloc_coherent()
68 void *vaddr, dma_addr_t dma_handle, in dma_generic_free_coherent() argument
72 unsigned long pfn = dma_handle >> PAGE_SHIFT; in dma_generic_free_coherent()
132 dma_addr_t dma_handle; in platform_resource_setup_memory() local
146 buf = dma_alloc_coherent(NULL, memsize, &dma_handle, GFP_KERNEL); in platform_resource_setup_memory()
155 r->start = dma_handle; in platform_resource_setup_memory()
/arch/mips/loongson/common/
Ddma-swiotlb.c13 dma_addr_t *dma_handle, gfp_t gfp, struct dma_attrs *attrs) in loongson_dma_alloc_coherent() argument
17 if (dma_alloc_from_coherent(dev, size, dma_handle, &ret)) in loongson_dma_alloc_coherent()
41 ret = swiotlb_alloc_coherent(dev, size, dma_handle, gfp); in loongson_dma_alloc_coherent()
47 void *vaddr, dma_addr_t dma_handle, struct dma_attrs *attrs) in loongson_dma_free_coherent() argument
54 swiotlb_free_coherent(dev, size, vaddr, dma_handle); in loongson_dma_free_coherent()
79 dma_addr_t dma_handle, size_t size, in loongson_dma_sync_single_for_device() argument
82 swiotlb_sync_single_for_device(dev, dma_handle, size, dir); in loongson_dma_sync_single_for_device()
/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
214 if (IS_PCI32_MAPPED(dma_handle)) { in pcibr_dma_unmap()
218 IOPG((ATE_SWAP_OFF(dma_handle) - PCI32_MAPPED_BASE)); in pcibr_dma_unmap()
359 dma_addr_t dma_handle; in pcibr_dma_map() local
373 dma_handle = pcibr_dmatrans_direct64(pcidev_info, phys_addr, in pcibr_dma_map()
377 dma_handle = pcibr_dmatrans_direct32(pcidev_info, phys_addr, in pcibr_dma_map()
379 if (!dma_handle) { in pcibr_dma_map()
385 dma_handle = pcibr_dmamap_ate32(pcidev_info, phys_addr, in pcibr_dma_map()
391 return dma_handle; in pcibr_dma_map()
398 dma_addr_t dma_handle; in pcibr_dma_map_consistent() local
[all …]
/arch/metag/include/asm/
Ddma-mapping.h15 dma_addr_t *dma_handle, gfp_t flag);
18 void *vaddr, dma_addr_t dma_handle);
105 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu() argument
108 dma_sync_for_cpu(phys_to_virt(dma_handle), size, direction); in dma_sync_single_for_cpu()
112 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device() argument
115 dma_sync_for_device(phys_to_virt(dma_handle), size, direction); in dma_sync_single_for_device()
119 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() argument
123 dma_sync_for_cpu(phys_to_virt(dma_handle)+offset, size, in dma_sync_single_range_for_cpu()
128 dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_device() argument
132 dma_sync_for_device(phys_to_virt(dma_handle)+offset, size, in dma_sync_single_range_for_device()
/arch/s390/include/asm/
Ddma-mapping.h62 dma_addr_t *dma_handle, gfp_t flags, in dma_alloc_attrs() argument
70 cpu_addr = ops->alloc(dev, size, dma_handle, flags, attrs); in dma_alloc_attrs()
71 debug_dma_alloc_coherent(dev, size, *dma_handle, cpu_addr); in dma_alloc_attrs()
79 void *cpu_addr, dma_addr_t dma_handle, in dma_free_attrs() argument
86 debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); in dma_free_attrs()
87 ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
/arch/cris/include/asm/
Ddma-mapping.h20 dma_addr_t *dma_handle, gfp_t flag);
23 void *vaddr, dma_addr_t dma_handle);
26 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_coherent() argument
35 dma_addr_t dma_handle) in dma_free_coherent() argument
87 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu() argument
93 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_device() argument
99 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() argument
106 dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_device() argument
/arch/arm64/include/asm/xen/
Dpage-coherent.h9 dma_addr_t *dma_handle, gfp_t flags, in xen_alloc_coherent_pages() argument
12 return __generic_dma_ops(hwdev)->alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages()
16 void *cpu_addr, dma_addr_t dma_handle, in xen_free_coherent_pages() argument
19 __generic_dma_ops(hwdev)->free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages()
/arch/mn10300/mm/
Ddma-alloc.c24 dma_addr_t *dma_handle, int gfp) in dma_alloc_coherent() argument
60 *dma_handle = virt_to_bus((void *) addr); in dma_alloc_coherent()
61 printk("dma_alloc_coherent() = %p [%x]\n", ret, *dma_handle); in dma_alloc_coherent()
67 dma_addr_t dma_handle) in dma_free_coherent() argument
/arch/mips/mm/
Ddma-default.c116 dma_addr_t * dma_handle, gfp_t gfp) in dma_alloc_noncoherent() argument
126 *dma_handle = plat_map_dma_mem(dev, ret, size); in dma_alloc_noncoherent()
134 dma_addr_t * dma_handle, gfp_t gfp, struct dma_attrs *attrs) in mips_dma_alloc_coherent() argument
140 if (dma_alloc_from_coherent(dev, size, dma_handle, &ret)) in mips_dma_alloc_coherent()
156 *dma_handle = plat_map_dma_mem(dev, ret, size); in mips_dma_alloc_coherent()
168 dma_addr_t dma_handle) in dma_free_noncoherent() argument
170 plat_unmap_dma_mem(dev, dma_handle, size, DMA_BIDIRECTIONAL); in dma_free_noncoherent()
176 dma_addr_t dma_handle, struct dma_attrs *attrs) in mips_dma_free_coherent() argument
186 plat_unmap_dma_mem(dev, dma_handle, size, DMA_BIDIRECTIONAL); in mips_dma_free_coherent()
310 dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) in mips_dma_sync_single_for_cpu() argument
[all …]
/arch/openrisc/kernel/
Ddma.c85 dma_addr_t *dma_handle, gfp_t gfp, in or1k_dma_alloc() argument
100 *dma_handle = __pa(page); in or1k_dma_alloc()
120 dma_addr_t dma_handle, struct dma_attrs *attrs) in or1k_dma_free() argument
171 or1k_unmap_page(struct device *dev, dma_addr_t dma_handle, in or1k_unmap_page() argument
209 dma_addr_t dma_handle, size_t size, in or1k_sync_single_for_cpu() argument
213 dma_addr_t addr = dma_handle; in or1k_sync_single_for_cpu()
222 dma_addr_t dma_handle, size_t size, in or1k_sync_single_for_device() argument
226 dma_addr_t addr = dma_handle; in or1k_sync_single_for_device()
/arch/powerpc/kernel/
Ddma-iommu.c20 dma_addr_t *dma_handle, gfp_t flag, in dma_iommu_alloc_coherent() argument
24 dma_handle, dev->coherent_dma_mask, flag, in dma_iommu_alloc_coherent()
29 void *vaddr, dma_addr_t dma_handle, in dma_iommu_free_coherent() argument
32 iommu_free_coherent(get_iommu_table_base(dev), size, vaddr, dma_handle); in dma_iommu_free_coherent()
50 static void dma_iommu_unmap_page(struct device *dev, dma_addr_t dma_handle, in dma_iommu_unmap_page() argument
54 iommu_unmap_page(get_iommu_table_base(dev), dma_handle, size, direction, in dma_iommu_unmap_page()
/arch/arm/include/asm/xen/
Dpage-coherent.h9 dma_addr_t *dma_handle, gfp_t flags, in xen_alloc_coherent_pages() argument
12 return __generic_dma_ops(hwdev)->alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages()
16 void *cpu_addr, dma_addr_t dma_handle, in xen_free_coherent_pages() argument
19 __generic_dma_ops(hwdev)->free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages()

1234