/arch/arc/mm/ |
D | dma.c | 29 dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_noncoherent() argument 39 *dma_handle = (dma_addr_t)paddr; in dma_alloc_noncoherent() 46 dma_addr_t dma_handle) in dma_free_noncoherent() argument 48 free_pages_exact((void *)dma_handle, size); in dma_free_noncoherent() 53 dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_coherent() argument 69 return dma_alloc_noncoherent(dev, size, dma_handle, gfp); in dma_alloc_coherent() 82 *dma_handle = (dma_addr_t)paddr; in dma_alloc_coherent() 101 dma_addr_t dma_handle) in dma_free_coherent() argument 104 return dma_free_noncoherent(dev, size, kvaddr, dma_handle); in dma_free_coherent() 108 free_pages_exact((void *)dma_handle, size); in dma_free_coherent()
|
/arch/xtensa/kernel/ |
D | pci-dma.c | 51 static void do_cache_op(dma_addr_t dma_handle, size_t size, in do_cache_op() argument 54 unsigned long off = dma_handle & (PAGE_SIZE - 1); in do_cache_op() 55 unsigned long pfn = PFN_DOWN(dma_handle); in do_cache_op() 59 fn((unsigned long)bus_to_virt(dma_handle), size); in do_cache_op() 74 dma_addr_t dma_handle, size_t size, in xtensa_sync_single_for_cpu() argument 80 do_cache_op(dma_handle, size, __invalidate_dcache_range); in xtensa_sync_single_for_cpu() 93 dma_addr_t dma_handle, size_t size, in xtensa_sync_single_for_device() argument 100 do_cache_op(dma_handle, size, __flush_dcache_range); in xtensa_sync_single_for_device() 174 dma_addr_t dma_handle, struct dma_attrs *attrs) in xtensa_dma_free() argument 190 dma_addr_t dma_handle = page_to_phys(page) + offset; in xtensa_map_page() local [all …]
|
/arch/arc/include/asm/ |
D | dma-mapping.h | 18 dma_addr_t *dma_handle, gfp_t gfp); 21 dma_addr_t dma_handle); 24 dma_addr_t *dma_handle, gfp_t gfp); 27 dma_addr_t dma_handle); 99 dma_unmap_page(struct device *dev, dma_addr_t dma_handle, in dma_unmap_page() argument 130 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_cpu() argument 133 _dma_cache_sync(dma_handle, size, DMA_FROM_DEVICE); in dma_sync_single_for_cpu() 137 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device() argument 140 _dma_cache_sync(dma_handle, size, DMA_TO_DEVICE); in dma_sync_single_for_device() 144 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() argument [all …]
|
/arch/nios2/mm/ |
D | dma-mapping.c | 25 dma_addr_t *dma_handle, gfp_t gfp) in dma_alloc_coherent() argument 40 *dma_handle = virt_to_phys(ret); in dma_alloc_coherent() 51 dma_addr_t dma_handle) in dma_free_coherent() argument 123 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_cpu() argument 128 __dma_sync_for_cpu(phys_to_virt(dma_handle), size, direction); in dma_sync_single_for_cpu() 132 void dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device() argument 137 __dma_sync_for_device(phys_to_virt(dma_handle), size, direction); in dma_sync_single_for_device() 141 void dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() argument 147 __dma_sync_for_cpu(phys_to_virt(dma_handle), size, direction); in dma_sync_single_range_for_cpu() 151 void dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_device() argument [all …]
|
/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/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/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/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/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/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/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 | 117 dma_addr_t * dma_handle, gfp_t gfp) in mips_dma_alloc_noncoherent() argument 127 *dma_handle = plat_map_dma_mem(dev, ret, size); in mips_dma_alloc_noncoherent() 134 dma_addr_t * dma_handle, gfp_t gfp, struct dma_attrs *attrs) in mips_dma_alloc_coherent() argument 145 return mips_dma_alloc_noncoherent(dev, size, dma_handle, gfp); in mips_dma_alloc_coherent() 160 *dma_handle = plat_map_dma_mem(dev, ret, size); in mips_dma_alloc_coherent() 171 void *vaddr, dma_addr_t dma_handle) in mips_dma_free_noncoherent() argument 173 plat_unmap_dma_mem(dev, dma_handle, size, DMA_BIDIRECTIONAL); in mips_dma_free_noncoherent() 178 dma_addr_t dma_handle, struct dma_attrs *attrs) in mips_dma_free_coherent() argument 185 mips_dma_free_noncoherent(dev, size, vaddr, dma_handle); in mips_dma_free_coherent() 189 plat_unmap_dma_mem(dev, dma_handle, size, DMA_BIDIRECTIONAL); in mips_dma_free_coherent() [all …]
|
/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/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()
|
D | dma.c | 66 dma_addr_t *dma_handle, gfp_t flag, in __dma_direct_alloc_coherent() argument 71 ret = __dma_alloc_coherent(dev, size, dma_handle, flag); in __dma_direct_alloc_coherent() 74 *dma_handle += get_dma_offset(dev); in __dma_direct_alloc_coherent() 116 *dma_handle = __pa(ret) + get_dma_offset(dev); in __dma_direct_alloc_coherent() 123 void *vaddr, dma_addr_t dma_handle, in __dma_direct_free_coherent() argument 134 dma_addr_t *dma_handle, gfp_t flag, in dma_direct_alloc_coherent() argument 143 return __dma_direct_alloc_coherent(dev, size, dma_handle, in dma_direct_alloc_coherent() 152 return iommu_alloc_coherent(dev, iommu, size, dma_handle, in dma_direct_alloc_coherent() 158 void *vaddr, dma_addr_t dma_handle, in dma_direct_free_coherent() argument 165 return __dma_direct_free_coherent(dev, size, vaddr, dma_handle, in dma_direct_free_coherent() [all …]
|
/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 61 return swiotlb_alloc_coherent(dev, size, dma_handle, gfp); in nlm_dma_alloc_coherent() 65 void *vaddr, dma_addr_t dma_handle, struct dma_attrs *attrs) in nlm_dma_free_coherent() argument 67 swiotlb_free_coherent(dev, size, vaddr, dma_handle); in nlm_dma_free_coherent()
|
/arch/frv/include/asm/ |
D | pci.h | 28 extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle); 36 dma_addr_t *dma_handle); 39 void *vaddr, dma_addr_t dma_handle);
|
D | dma-mapping.h | 21 void *dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp); 22 void dma_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle); 57 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu() argument 63 void dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_device() argument 70 void dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() argument 77 void dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_device() argument
|
/arch/mips/loongson64/common/ |
D | dma-swiotlb.c | 13 dma_addr_t *dma_handle, gfp_t gfp, struct dma_attrs *attrs) in loongson_dma_alloc_coherent() argument 38 ret = swiotlb_alloc_coherent(dev, size, dma_handle, gfp); in loongson_dma_alloc_coherent() 44 void *vaddr, dma_addr_t dma_handle, struct dma_attrs *attrs) in loongson_dma_free_coherent() argument 46 swiotlb_free_coherent(dev, size, vaddr, dma_handle); in loongson_dma_free_coherent() 71 dma_addr_t dma_handle, size_t size, in loongson_dma_sync_single_for_device() argument 74 swiotlb_sync_single_for_device(dev, dma_handle, size, dir); in loongson_dma_sync_single_for_device()
|
/arch/tile/kernel/ |
D | pci-dma.c | 36 dma_addr_t *dma_handle, gfp_t gfp, in tile_dma_alloc_coherent() argument 71 *dma_handle = addr; in tile_dma_alloc_coherent() 80 void *vaddr, dma_addr_t dma_handle, in tile_dma_free_coherent() argument 264 dma_addr_t dma_handle, in tile_dma_sync_single_for_cpu() argument 270 __dma_complete_pa_range(dma_handle, size, direction); in tile_dma_sync_single_for_cpu() 274 dma_addr_t dma_handle, size_t size, in tile_dma_sync_single_for_device() argument 277 __dma_prep_pa_range(dma_handle, size, direction); in tile_dma_sync_single_for_device() 345 dma_addr_t *dma_handle, gfp_t gfp, in tile_pci_dma_alloc_coherent() argument 361 *dma_handle = addr + get_dma_offset(dev); in tile_pci_dma_alloc_coherent() 370 void *vaddr, dma_addr_t dma_handle, in tile_pci_dma_free_coherent() argument [all …]
|
/arch/mn10300/include/asm/ |
D | dma-mapping.h | 26 dma_addr_t *dma_handle, int flag); 29 void *vaddr, dma_addr_t dma_handle); 94 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_cpu() argument 100 void dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device() argument 107 void dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() argument 114 dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_device() argument
|
/arch/avr32/include/asm/ |
D | dma-mapping.h | 265 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_cpu() argument 276 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device() argument 279 dma_cache_sync(dev, bus_to_virt(dma_handle), size, direction); in dma_sync_single_for_device() 283 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_cpu() argument 288 dma_sync_single_for_cpu(dev, dma_handle, offset+size, direction); in dma_sync_single_range_for_cpu() 292 dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_range_for_device() argument 297 dma_sync_single_for_device(dev, dma_handle, offset+size, direction); in dma_sync_single_range_for_device()
|
/arch/x86/include/asm/xen/ |
D | page-coherent.h | 9 dma_addr_t *dma_handle, gfp_t flags, in xen_alloc_coherent_pages() argument 13 *dma_handle = virt_to_phys(vstart); in xen_alloc_coherent_pages() 18 void *cpu_addr, dma_addr_t dma_handle, in xen_free_coherent_pages() argument
|