Lines Matching refs:dma_handle

36 	dma_addr_t	dma_handle;  member
44 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release()
54 this->dma_handle != match->dma_handle); in dmam_match()
70 dma_addr_t dma_handle) in dmam_free_coherent() argument
72 struct dma_devres match_data = { size, vaddr, dma_handle }; in dmam_free_coherent()
75 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent()
93 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs() argument
103 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs()
110 dr->dma_handle = *dma_handle; in dmam_alloc_attrs()
591 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_attrs() argument
607 if (dma_alloc_from_dev_coherent(dev, size, dma_handle, &cpu_addr)) in dma_alloc_attrs()
614 cpu_addr = dma_direct_alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
616 cpu_addr = iommu_dma_alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
618 cpu_addr = ops->alloc(dev, size, dma_handle, flag, attrs); in dma_alloc_attrs()
622 trace_dma_alloc(dev, cpu_addr, *dma_handle, size, flag, attrs); in dma_alloc_attrs()
623 debug_dma_alloc_coherent(dev, size, *dma_handle, cpu_addr, attrs); in dma_alloc_attrs()
629 dma_addr_t dma_handle, unsigned long attrs) in dma_free_attrs() argument
647 trace_dma_free(dev, cpu_addr, dma_handle, size, attrs); in dma_free_attrs()
648 debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); in dma_free_attrs()
650 dma_direct_free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
652 iommu_dma_free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
654 ops->free(dev, size, cpu_addr, dma_handle, attrs); in dma_free_attrs()
659 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in __dma_alloc_pages() argument
672 return dma_direct_alloc_pages(dev, size, dma_handle, dir, gfp); in __dma_alloc_pages()
674 return dma_common_alloc_pages(dev, size, dma_handle, dir, gfp); in __dma_alloc_pages()
677 return ops->alloc_pages_op(dev, size, dma_handle, dir, gfp); in __dma_alloc_pages()
681 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_alloc_pages() argument
683 struct page *page = __dma_alloc_pages(dev, size, dma_handle, dir, gfp); in dma_alloc_pages()
686 trace_dma_map_page(dev, page_to_phys(page), *dma_handle, size, in dma_alloc_pages()
688 debug_dma_map_page(dev, page, 0, size, dir, *dma_handle, 0); in dma_alloc_pages()
695 dma_addr_t dma_handle, enum dma_data_direction dir) in __dma_free_pages() argument
701 dma_direct_free_pages(dev, size, page, dma_handle, dir); in __dma_free_pages()
703 dma_common_free_pages(dev, size, page, dma_handle, dir); in __dma_free_pages()
705 ops->free_pages(dev, size, page, dma_handle, dir); in __dma_free_pages()
709 dma_addr_t dma_handle, enum dma_data_direction dir) in dma_free_pages() argument
711 trace_dma_unmap_page(dev, dma_handle, size, dir, 0); in dma_free_pages()
712 debug_dma_unmap_page(dev, dma_handle, size, dir); in dma_free_pages()
713 __dma_free_pages(dev, size, page, dma_handle, dir); in dma_free_pages()