Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 96) sorted by relevance

1234

/arch/metag/include/asm/
Ddma-mapping.h31 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/
Ddma-mapping.h40 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/
Dpci-dma.c101 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/
Ddma-mapping.h36 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/
Ddma-mapping.h14 …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/
Ddma.c72 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/
Ddma-mapping.h12 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/
Ddma-mapping.h25 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 …]
Dpci.h32 extern void consistent_sync(void *vaddr, size_t size, int direction);
34 size_t size, int direction);
/arch/cris/include/asm/
Ddma-mapping.h42 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/
Ddma-default.c173 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/
Dpci-dma.c42 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()
Dpci-dma-nommu.c111 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/
Ddma-iommu.c42 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()
Ddma.c88 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/
Ddma-ops.c50 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/
Ddma-isa.c63 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/
Dpci-dma.c453 …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/
Dgpio.c21 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/
Diommu.h104 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/
Ddma-alloc.c151 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/
Ddma-mapping.h99 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/
Ddma-mapping.c117 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/
Ddma-octeon.c127 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/
Ddma-ops.h26 enum dma_transfer_direction direction; member
35 enum dma_transfer_direction direction; member

1234