Home
last modified time | relevance | path

Searched refs:dma_addr (Results 1 – 9 of 9) sorted by relevance

/kernel/dma/
Ddebug.h14 int direction, dma_addr_t dma_addr,
28 dma_addr_t dma_addr, void *virt,
36 dma_addr_t dma_addr,
39 extern void debug_dma_unmap_resource(struct device *dev, dma_addr_t dma_addr,
60 int direction, dma_addr_t dma_addr, in debug_dma_map_page() argument
83 dma_addr_t dma_addr, void *virt, in debug_dma_alloc_coherent() argument
95 dma_addr_t dma_addr, in debug_dma_map_resource() argument
101 dma_addr_t dma_addr, size_t size, in debug_dma_unmap_resource() argument
Ddirect.c34 dma_addr_t dma_addr) in dma_direct_to_page() argument
36 return pfn_to_page(PHYS_PFN(dma_to_phys(dev, dma_addr))); in dma_direct_to_page()
72 dma_addr_t dma_addr = phys_to_dma_direct(dev, phys); in dma_coherent_ok() local
74 if (dma_addr == DMA_MAPPING_ERROR) in dma_coherent_ok()
76 return dma_addr + size - 1 <= in dma_coherent_ok()
327 void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs) in dma_direct_free() argument
343 arch_dma_free(dev, size, cpu_addr, dma_addr, attrs); in dma_direct_free()
368 __dma_direct_free_pages(dev, dma_direct_to_page(dev, dma_addr), size); in dma_direct_free()
397 struct page *page, dma_addr_t dma_addr, in dma_direct_free_pages() argument
528 dma_addr_t dma_addr = paddr; in dma_direct_map_resource() local
[all …]
Ddirect.h14 void *cpu_addr, dma_addr_t dma_addr, size_t size,
18 void *cpu_addr, dma_addr_t dma_addr, size_t size,
20 bool dma_direct_need_sync(struct device *dev, dma_addr_t dma_addr);
89 dma_addr_t dma_addr = phys_to_dma(dev, phys); in dma_direct_map_page() local
97 if (unlikely(!dma_capable(dev, dma_addr, size, true))) { in dma_direct_map_page()
105 &dma_addr, size, *dev->dma_mask, dev->bus_dma_limit); in dma_direct_map_page()
111 return dma_addr; in dma_direct_map_page()
Dmap_benchmark.c37 dma_addr_t dma_addr; in map_benchmark_thread() local
62 dma_addr = dma_map_single(map->dev, buf, size, map->dir); in map_benchmark_thread()
63 if (unlikely(dma_mapping_error(map->dev, dma_addr))) { in map_benchmark_thread()
76 dma_unmap_single(map->dev, dma_addr, size, map->dir); in map_benchmark_thread()
Ddebug.c1203 size_t size, int direction, dma_addr_t dma_addr, in debug_dma_map_page() argument
1211 if (dma_mapping_error(dev, dma_addr)) in debug_dma_map_page()
1222 entry->dev_addr = dma_addr; in debug_dma_map_page()
1238 void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in debug_dma_mapping_error() argument
1249 ref.dev_addr = dma_addr; in debug_dma_mapping_error()
1382 dma_addr_t dma_addr, void *virt, in debug_dma_alloc_coherent() argument
1405 entry->dev_addr = dma_addr; in debug_dma_alloc_coherent()
1444 int direction, dma_addr_t dma_addr, in debug_dma_map_resource() argument
1461 entry->dev_addr = dma_addr; in debug_dma_map_resource()
1468 void debug_dma_unmap_resource(struct device *dev, dma_addr_t dma_addr, in debug_dma_unmap_resource() argument
[all …]
Dmapping.c396 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_get_sgtable_attrs() argument
402 return dma_direct_get_sgtable(dev, sgt, cpu_addr, dma_addr, in dma_get_sgtable_attrs()
406 return ops->get_sgtable(dev, sgt, cpu_addr, dma_addr, size, attrs); in dma_get_sgtable_attrs()
461 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_mmap_attrs() argument
467 return dma_direct_mmap(dev, vma, cpu_addr, dma_addr, size, in dma_mmap_attrs()
471 return ops->mmap(dev, vma, cpu_addr, dma_addr, size, attrs); in dma_mmap_attrs()
815 bool dma_need_sync(struct device *dev, dma_addr_t dma_addr) in dma_need_sync() argument
820 return dma_direct_need_sync(dev, dma_addr); in dma_need_sync()
Dops_helpers.c19 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_common_get_sgtable() argument
36 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_common_mmap() argument
Dswiotlb.c911 dma_addr_t dma_addr; in swiotlb_map() local
921 dma_addr = phys_to_dma_unencrypted(dev, swiotlb_addr); in swiotlb_map()
922 if (unlikely(!dma_capable(dev, dma_addr, size, true))) { in swiotlb_map()
927 &dma_addr, size, *dev->dma_mask, dev->bus_dma_limit); in swiotlb_map()
933 return dma_addr; in swiotlb_map()
Ddummy.c8 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_dummy_mmap() argument