Lines Matching refs:cpu_addr
323 void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs) in dma_direct_free() argument
330 dma_free_contiguous(dev, cpu_addr, size); in dma_direct_free()
339 arch_dma_free(dev, size, cpu_addr, dma_addr, attrs); in dma_direct_free()
345 if (!dma_release_from_global_coherent(page_order, cpu_addr)) in dma_direct_free()
352 dma_free_from_pool(dev, cpu_addr, PAGE_ALIGN(size))) in dma_direct_free()
355 if (is_vmalloc_addr(cpu_addr)) { in dma_direct_free()
356 vunmap(cpu_addr); in dma_direct_free()
359 arch_dma_clear_uncached(cpu_addr, size); in dma_direct_free()
360 if (dma_set_encrypted(dev, cpu_addr, size)) in dma_direct_free()
537 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_direct_get_sgtable() argument
556 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_direct_mmap() argument
568 if (dma_mmap_from_dev_coherent(dev, vma, cpu_addr, size, &ret)) in dma_direct_mmap()
570 if (dma_mmap_from_global_coherent(vma, cpu_addr, size, &ret)) in dma_direct_mmap()