/arch/arc/mm/ |
D | dma.c | 30 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/ |
D | dma-mapping.h | 44 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/ |
D | dma-mapping.h | 35 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/ |
D | dma-mapping.h | 71 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/ |
D | dma-mapping.h | 55 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/ |
D | dma-mapping.h | 59 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/ |
D | dma-mapping.h | 33 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/ |
D | dma-mapping.h | 50 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/ |
D | dma.c | 20 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/ |
D | nlm-dma.c | 48 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/ |
D | dma-mapping.h | 24 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/ |
D | dma.c | 19 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/ |
D | dma-mapping.h | 47 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/ |
D | consistent.c | 36 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/ |
D | dma-swiotlb.c | 13 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/ |
D | pcibr_dma.c | 208 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/ |
D | dma-mapping.h | 15 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/ |
D | dma-mapping.h | 62 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/ |
D | dma-mapping.h | 20 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/ |
D | page-coherent.h | 9 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/ |
D | dma-alloc.c | 24 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/ |
D | dma-default.c | 116 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/ |
D | dma.c | 85 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/ |
D | dma-iommu.c | 20 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/ |
D | page-coherent.h | 9 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()
|