/kernel/dma/ |
D | debug.h | 14 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
|
D | direct.c | 34 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 …]
|
D | direct.h | 14 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()
|
D | map_benchmark.c | 37 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()
|
D | debug.c | 1203 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 …]
|
D | mapping.c | 396 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()
|
D | ops_helpers.c | 19 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
|
D | swiotlb.c | 911 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()
|
D | dummy.c | 8 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_dummy_mmap() argument
|