Lines Matching refs:cpu_addr
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()
458 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_mmap_attrs() argument
464 return dma_direct_mmap(dev, vma, cpu_addr, dma_addr, size, in dma_mmap_attrs()
468 return ops->mmap(dev, vma, cpu_addr, dma_addr, size, attrs); in dma_mmap_attrs()
497 void *cpu_addr; in dma_alloc_attrs() local
501 if (dma_alloc_from_dev_coherent(dev, size, dma_handle, &cpu_addr)) in dma_alloc_attrs()
502 return cpu_addr; in dma_alloc_attrs()
508 cpu_addr = dma_direct_alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
510 cpu_addr = ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
514 debug_dma_alloc_coherent(dev, size, *dma_handle, cpu_addr, attrs); in dma_alloc_attrs()
515 return cpu_addr; in dma_alloc_attrs()
519 void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, in dma_free_attrs() argument
524 if (dma_release_from_dev_coherent(dev, get_order(size), cpu_addr)) in dma_free_attrs()
535 if (!cpu_addr) in dma_free_attrs()
538 debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); in dma_free_attrs()
540 dma_direct_free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
542 ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()