Lines Matching defs:cpu_addr
311 void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs)
317 /* cpu_addr is a struct page cookie, not a kernel address */
318 dma_free_contiguous(dev, cpu_addr, size);
325 arch_dma_free(dev, size, cpu_addr, dma_addr, attrs);
331 if (!dma_release_from_global_coherent(page_order, cpu_addr))
336 /* If cpu_addr is not from an atomic pool, dma_free_from_pool() fails */
338 dma_free_from_pool(dev, cpu_addr, PAGE_ALIGN(size)))
341 if (is_vmalloc_addr(cpu_addr)) {
342 vunmap(cpu_addr);
345 arch_dma_clear_uncached(cpu_addr, size);
346 if (dma_set_encrypted(dev, cpu_addr, size))
382 /* If cpu_addr is not from an atomic pool, dma_free_from_pool() fails */
501 void *cpu_addr, dma_addr_t dma_addr, size_t size,
520 void *cpu_addr, dma_addr_t dma_addr, size_t size,
532 if (dma_mmap_from_dev_coherent(dev, vma, cpu_addr, size, &ret))
534 if (dma_mmap_from_global_coherent(vma, cpu_addr, size, &ret))