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()
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()
500 void *cpu_addr; in dma_alloc_attrs() local
504 if (dma_alloc_from_dev_coherent(dev, size, dma_handle, &cpu_addr)) in dma_alloc_attrs()
505 return cpu_addr; in dma_alloc_attrs()
511 cpu_addr = dma_direct_alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
513 cpu_addr = ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
517 debug_dma_alloc_coherent(dev, size, *dma_handle, cpu_addr, attrs); in dma_alloc_attrs()
518 return cpu_addr; in dma_alloc_attrs()
522 void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, in dma_free_attrs() argument
527 if (dma_release_from_dev_coherent(dev, get_order(size), cpu_addr)) in dma_free_attrs()
538 if (!cpu_addr) in dma_free_attrs()
541 debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); in dma_free_attrs()
543 dma_direct_free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
545 ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()