Lines Matching refs:dma_addr
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()
70 dma_addr_t dma_addr = phys_to_dma_direct(dev, phys); in dma_coherent_ok() local
72 if (dma_addr == DMA_MAPPING_ERROR) in dma_coherent_ok()
74 return dma_addr + size - 1 <= in dma_coherent_ok()
245 void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs) in dma_direct_free() argument
259 arch_dma_free(dev, size, cpu_addr, dma_addr, attrs); in dma_direct_free()
276 dma_free_contiguous(dev, dma_direct_to_page(dev, dma_addr), size); in dma_direct_free()
318 struct page *page, dma_addr_t dma_addr, in dma_direct_free_pages() argument
420 dma_addr_t dma_addr = paddr; in dma_direct_map_resource() local
422 if (unlikely(!dma_capable(dev, dma_addr, size, false))) { in dma_direct_map_resource()
425 &dma_addr, size, *dev->dma_mask, dev->bus_dma_limit); in dma_direct_map_resource()
430 return dma_addr; in dma_direct_map_resource()
434 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_direct_get_sgtable() argument
437 struct page *page = dma_direct_to_page(dev, dma_addr); in dma_direct_get_sgtable()
453 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_direct_mmap() argument
458 unsigned long pfn = PHYS_PFN(dma_to_phys(dev, dma_addr)); in dma_direct_mmap()
504 bool dma_direct_need_sync(struct device *dev, dma_addr_t dma_addr) in dma_direct_need_sync() argument
507 is_swiotlb_buffer(dma_to_phys(dev, dma_addr)); in dma_direct_need_sync()