/arch/metag/include/asm/ |
D | dma-mapping.h | 31 enum dma_data_direction direction) in dma_map_single() argument 33 BUG_ON(!valid_dma_direction(direction)); in dma_map_single() 35 dma_sync_for_device(ptr, size, direction); in dma_map_single() 41 enum dma_data_direction direction) in dma_unmap_single() argument 43 BUG_ON(!valid_dma_direction(direction)); in dma_unmap_single() 44 dma_sync_for_cpu(phys_to_virt(dma_addr), size, direction); in dma_unmap_single() 49 enum dma_data_direction direction) in dma_map_sg() argument 54 BUG_ON(!valid_dma_direction(direction)); in dma_map_sg() 61 dma_sync_for_device(sg_virt(sg), sg->length, direction); in dma_map_sg() 69 size_t size, enum dma_data_direction direction) in dma_map_page() argument [all …]
|
/arch/xtensa/include/asm/ |
D | dma-mapping.h | 40 enum dma_data_direction direction) in dma_map_single() argument 42 BUG_ON(direction == DMA_NONE); in dma_map_single() 43 consistent_sync(ptr, size, direction); in dma_map_single() 49 enum dma_data_direction direction) in dma_unmap_single() argument 51 BUG_ON(direction == DMA_NONE); in dma_unmap_single() 56 enum dma_data_direction direction) in dma_map_sg() argument 60 BUG_ON(direction == DMA_NONE); in dma_map_sg() 66 consistent_sync(sg_virt(sg), sg->length, direction); in dma_map_sg() 74 size_t size, enum dma_data_direction direction) in dma_map_page() argument 76 BUG_ON(direction == DMA_NONE); in dma_map_page() [all …]
|
/arch/tile/kernel/ |
D | pci-dma.c | 101 size_t size, enum dma_data_direction direction) in __dma_prep_page() argument 127 BUG_ON(direction == DMA_FROM_DEVICE || in __dma_prep_page() 128 direction == DMA_BIDIRECTIONAL); in __dma_prep_page() 149 size_t size, enum dma_data_direction direction) in __dma_complete_page() argument 171 enum dma_data_direction direction) in __dma_prep_pa_range() argument 178 __dma_prep_page(page, offset, bytes, direction); in __dma_prep_pa_range() 187 enum dma_data_direction direction) in __dma_complete_pa_range() argument 194 __dma_complete_page(page, offset, bytes, direction); in __dma_complete_pa_range() 203 int nents, enum dma_data_direction direction, in tile_dma_map_sg() argument 209 BUG_ON(!valid_dma_direction(direction)); in tile_dma_map_sg() [all …]
|
/arch/mn10300/include/asm/ |
D | dma-mapping.h | 36 enum dma_data_direction direction) in dma_map_single() argument 38 BUG_ON(direction == DMA_NONE); in dma_map_single() 45 enum dma_data_direction direction) in dma_unmap_single() argument 47 BUG_ON(direction == DMA_NONE); in dma_unmap_single() 52 enum dma_data_direction direction) in dma_map_sg() argument 57 BUG_ON(!valid_dma_direction(direction)); in dma_map_sg() 72 enum dma_data_direction direction) in dma_unmap_sg() argument 74 BUG_ON(!valid_dma_direction(direction)); in dma_unmap_sg() 80 enum dma_data_direction direction) in dma_map_page() argument 82 BUG_ON(direction == DMA_NONE); in dma_map_page() [all …]
|
/arch/parisc/include/asm/ |
D | dma-mapping.h | 14 …dr_t (*map_single)(struct device *dev, void *addr, size_t size, enum dma_data_direction direction); 15 …unmap_single)(struct device *dev, dma_addr_t iova, size_t size, enum dma_data_direction direction); 16 …*map_sg)(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction); 17 …ap_sg)(struct device *dev, struct scatterlist *sg, int nhwents, enum dma_data_direction direction); 18 …evice *dev, dma_addr_t iova, unsigned long offset, size_t size, enum dma_data_direction direction); 19 …evice *dev, dma_addr_t iova, unsigned long offset, size_t size, enum dma_data_direction direction); 20 …or_cpu)(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction); 21 …device)(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction); 82 enum dma_data_direction direction) in dma_map_single() argument 84 return hppa_dma_ops->map_single(dev, ptr, size, direction); in dma_map_single() [all …]
|
/arch/microblaze/kernel/ |
D | dma.c | 72 int nents, enum dma_data_direction direction, in dma_direct_map_sg() argument 82 sg->length, direction); in dma_direct_map_sg() 89 int nents, enum dma_data_direction direction, in dma_direct_unmap_sg() argument 103 enum dma_data_direction direction, in dma_direct_map_page() argument 106 __dma_sync(page_to_phys(page) + offset, size, direction); in dma_direct_map_page() 113 enum dma_data_direction direction, in dma_direct_unmap_page() argument 121 __dma_sync(dma_address, size, direction); in dma_direct_unmap_page() 127 enum dma_data_direction direction) in dma_direct_sync_single_for_cpu() argument 134 if (direction == DMA_FROM_DEVICE) in dma_direct_sync_single_for_cpu() 135 __dma_sync(dma_handle, size, direction); in dma_direct_sync_single_for_cpu() [all …]
|
/arch/avr32/include/asm/ |
D | dma-mapping.h | 12 int direction); 118 enum dma_data_direction direction) in dma_map_single() argument 120 dma_cache_sync(dev, cpu_addr, size, direction); in dma_map_single() 140 enum dma_data_direction direction) in dma_unmap_single() argument 162 enum dma_data_direction direction) in dma_map_page() argument 165 size, direction); in dma_map_page() 184 enum dma_data_direction direction) in dma_unmap_page() argument 186 dma_unmap_single(dev, dma_address, size, direction); in dma_unmap_page() 213 enum dma_data_direction direction) in dma_map_sg() argument 222 dma_cache_sync(dev, virt, sg[i].length, direction); in dma_map_sg() [all …]
|
/arch/frv/include/asm/ |
D | dma-mapping.h | 25 enum dma_data_direction direction); 29 enum dma_data_direction direction) in dma_unmap_single() argument 31 BUG_ON(direction == DMA_NONE); in dma_unmap_single() 35 enum dma_data_direction direction); 39 enum dma_data_direction direction) in dma_unmap_sg() argument 41 BUG_ON(direction == DMA_NONE); in dma_unmap_sg() 46 size_t size, enum dma_data_direction direction); 50 enum dma_data_direction direction) in dma_unmap_page() argument 52 BUG_ON(direction == DMA_NONE); in dma_unmap_page() 58 enum dma_data_direction direction) in dma_sync_single_for_cpu() argument [all …]
|
D | pci.h | 32 extern void consistent_sync(void *vaddr, size_t size, int direction); 34 size_t size, int direction);
|
/arch/cris/include/asm/ |
D | dma-mapping.h | 42 enum dma_data_direction direction) in dma_map_single() argument 44 BUG_ON(direction == DMA_NONE); in dma_map_single() 50 enum dma_data_direction direction) in dma_unmap_single() argument 52 BUG_ON(direction == DMA_NONE); in dma_unmap_single() 57 enum dma_data_direction direction) in dma_map_sg() argument 65 size_t size, enum dma_data_direction direction) in dma_map_page() argument 67 BUG_ON(direction == DMA_NONE); in dma_map_page() 73 enum dma_data_direction direction) in dma_unmap_page() argument 75 BUG_ON(direction == DMA_NONE); in dma_unmap_page() 81 enum dma_data_direction direction) in dma_unmap_sg() argument [all …]
|
/arch/mips/mm/ |
D | dma-default.c | 173 enum dma_data_direction direction) in __dma_sync_virtual() argument 175 switch (direction) { in __dma_sync_virtual() 200 unsigned long offset, size_t size, enum dma_data_direction direction) in __dma_sync() argument 219 __dma_sync_virtual(addr + offset, len, direction); in __dma_sync() 223 size, direction); in __dma_sync() 231 size_t size, enum dma_data_direction direction, struct dma_attrs *attrs) in mips_dma_unmap_page() argument 235 dma_addr & ~PAGE_MASK, size, direction); in mips_dma_unmap_page() 237 plat_unmap_dma_mem(dev, dma_addr, size, direction); in mips_dma_unmap_page() 241 int nents, enum dma_data_direction direction, struct dma_attrs *attrs) in mips_dma_map_sg() argument 248 direction); in mips_dma_map_sg() [all …]
|
/arch/frv/mb93090-mb00/ |
D | pci-dma.c | 42 enum dma_data_direction direction) in dma_map_single() argument 44 BUG_ON(direction == DMA_NONE); in dma_map_single() 54 enum dma_data_direction direction) in dma_map_sg() argument 60 BUG_ON(direction == DMA_NONE); in dma_map_sg() 84 size_t size, enum dma_data_direction direction) in dma_map_page() argument 86 BUG_ON(direction == DMA_NONE); in dma_map_page()
|
D | pci-dma-nommu.c | 111 enum dma_data_direction direction) in dma_map_single() argument 113 BUG_ON(direction == DMA_NONE); in dma_map_single() 123 enum dma_data_direction direction) in dma_map_sg() argument 131 BUG_ON(direction == DMA_NONE); in dma_map_sg() 139 size_t size, enum dma_data_direction direction) in dma_map_page() argument 141 BUG_ON(direction == DMA_NONE); in dma_map_page()
|
/arch/powerpc/kernel/ |
D | dma-iommu.c | 42 enum dma_data_direction direction, in dma_iommu_map_page() argument 46 size, device_to_mask(dev), direction, attrs); in dma_iommu_map_page() 51 size_t size, enum dma_data_direction direction, in dma_iommu_unmap_page() argument 54 iommu_unmap_page(get_iommu_table_base(dev), dma_handle, size, direction, in dma_iommu_unmap_page() 60 int nelems, enum dma_data_direction direction, in dma_iommu_map_sg() argument 64 device_to_mask(dev), direction, attrs); in dma_iommu_map_sg() 68 int nelems, enum dma_data_direction direction, in dma_iommu_unmap_sg() argument 71 iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, direction, in dma_iommu_unmap_sg()
|
D | dma.c | 88 int nents, enum dma_data_direction direction, in dma_direct_map_sg() argument 97 __dma_sync_page(sg_page(sg), sg->offset, sg->length, direction); in dma_direct_map_sg() 104 int nents, enum dma_data_direction direction, in dma_direct_unmap_sg() argument 148 enum dma_data_direction direction, in dma_direct_unmap_page() argument 156 enum dma_data_direction direction) in dma_direct_sync_sg() argument 162 __dma_sync_page(sg_page(sg), sg->offset, sg->length, direction); in dma_direct_sync_sg() 167 enum dma_data_direction direction) in dma_direct_sync_single() argument 169 __dma_sync(bus_to_virt(dma_handle), size, direction); in dma_direct_sync_single()
|
/arch/arm/plat-samsung/ |
D | dma-ops.c | 50 if (param->direction == DMA_DEV_TO_MEM) { in samsung_dmadev_config() 52 slave_config.direction = param->direction; in samsung_dmadev_config() 57 } else if (param->direction == DMA_MEM_TO_DEV) { in samsung_dmadev_config() 59 slave_config.direction = param->direction; in samsung_dmadev_config() 88 &sg, 1, param->direction, DMA_PREP_INTERRUPT); in samsung_dmadev_prepare() 92 param->len, param->period, param->direction, in samsung_dmadev_prepare()
|
/arch/arm/kernel/ |
D | dma-isa.c | 63 enum dma_data_direction direction; in isa_enable_dma() local 68 direction = DMA_FROM_DEVICE; in isa_enable_dma() 72 direction = DMA_TO_DEVICE; in isa_enable_dma() 76 direction = DMA_BIDIRECTIONAL; in isa_enable_dma() 80 direction = DMA_NONE; in isa_enable_dma() 94 direction); in isa_enable_dma()
|
/arch/parisc/kernel/ |
D | pci-dma.c | 453 …pa11_dma_map_single(struct device *dev, void *addr, size_t size, enum dma_data_direction direction) in pa11_dma_map_single() argument 455 BUG_ON(direction == DMA_NONE); in pa11_dma_map_single() 461 …p_single(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) in pa11_dma_unmap_single() argument 463 BUG_ON(direction == DMA_NONE); in pa11_dma_unmap_single() 465 if (direction == DMA_TO_DEVICE) in pa11_dma_unmap_single() 478 …ap_sg(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction) in pa11_dma_map_sg() argument 482 BUG_ON(direction == DMA_NONE); in pa11_dma_map_sg() 493 …ap_sg(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction) in pa11_dma_unmap_sg() argument 497 BUG_ON(direction == DMA_NONE); in pa11_dma_unmap_sg() 499 if (direction == DMA_TO_DEVICE) in pa11_dma_unmap_sg() [all …]
|
/arch/arm/plat-iop/ |
D | gpio.c | 21 void gpio_line_config(int line, int direction) in gpio_line_config() argument 26 if (direction == GPIO_IN) { in gpio_line_config() 28 } else if (direction == GPIO_OUT) { in gpio_line_config()
|
/arch/powerpc/include/asm/ |
D | iommu.h | 104 unsigned long mask, enum dma_data_direction direction, 107 int nelems, enum dma_data_direction direction, 118 enum dma_data_direction direction, 121 size_t size, enum dma_data_direction direction,
|
/arch/frv/mm/ |
D | dma-alloc.c | 151 void consistent_sync(void *vaddr, size_t size, int direction) in consistent_sync() argument 156 switch (direction) { in consistent_sync() 177 size_t size, int direction) in consistent_sync_page() argument 182 consistent_sync(start, size, direction); in consistent_sync_page()
|
/arch/microblaze/include/asm/ |
D | dma-mapping.h | 99 size_t size, enum dma_data_direction direction) in __dma_sync() argument 101 switch (direction) { in __dma_sync() 159 enum dma_data_direction direction) in dma_cache_sync() argument 161 BUG_ON(direction == DMA_NONE); in dma_cache_sync() 162 __dma_sync(virt_to_phys(vaddr), size, (int)direction); in dma_cache_sync()
|
/arch/blackfin/kernel/ |
D | dma-mapping.c | 117 enum dma_data_direction direction) in dma_map_sg() argument 124 __dma_sync(sg_dma_address(sg), sg_dma_len(sg), direction); in dma_map_sg() 132 int nelems, enum dma_data_direction direction) in dma_sync_sg_for_device() argument 139 __dma_sync(sg_dma_address(sg), sg_dma_len(sg), direction); in dma_sync_sg_for_device()
|
/arch/mips/cavium-octeon/ |
D | dma-octeon.c | 127 unsigned long offset, size_t size, enum dma_data_direction direction, in octeon_dma_map_page() argument 131 direction, attrs); in octeon_dma_map_page() 138 int nents, enum dma_data_direction direction, struct dma_attrs *attrs) in octeon_dma_map_sg() argument 140 int r = swiotlb_map_sg_attrs(dev, sg, nents, direction, attrs); in octeon_dma_map_sg() 146 dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) in octeon_dma_sync_single_for_device() argument 148 swiotlb_sync_single_for_device(dev, dma_handle, size, direction); in octeon_dma_sync_single_for_device() 153 struct scatterlist *sg, int nelems, enum dma_data_direction direction) in octeon_dma_sync_sg_for_device() argument 155 swiotlb_sync_sg_for_device(dev, sg, nelems, direction); in octeon_dma_sync_sg_for_device()
|
/arch/arm/plat-samsung/include/plat/ |
D | dma-ops.h | 26 enum dma_transfer_direction direction; member 35 enum dma_transfer_direction direction; member
|