Lines Matching refs:dma_handle
28 dma_addr_t dma_handle; member
36 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release()
46 this->dma_handle != match->dma_handle); in dmam_match()
62 dma_addr_t dma_handle) in dmam_free_coherent() argument
64 struct dma_devres match_data = { size, vaddr, dma_handle }; in dmam_free_coherent()
66 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent()
85 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs() argument
95 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs()
102 dr->dma_handle = *dma_handle; in dmam_alloc_attrs()
496 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_attrs() argument
504 if (dma_alloc_from_dev_coherent(dev, size, dma_handle, &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()
523 dma_addr_t dma_handle, unsigned long attrs) in dma_free_attrs() argument
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()
550 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in __dma_alloc_pages() argument
561 return dma_direct_alloc_pages(dev, size, dma_handle, dir, gfp); in __dma_alloc_pages()
564 return ops->alloc_pages(dev, size, dma_handle, dir, gfp); in __dma_alloc_pages()
568 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) in dma_alloc_pages() argument
570 struct page *page = __dma_alloc_pages(dev, size, dma_handle, dir, gfp); in dma_alloc_pages()
573 debug_dma_map_page(dev, page, 0, size, dir, *dma_handle, 0); in dma_alloc_pages()
579 dma_addr_t dma_handle, enum dma_data_direction dir) in __dma_free_pages() argument
585 dma_direct_free_pages(dev, size, page, dma_handle, dir); in __dma_free_pages()
587 ops->free_pages(dev, size, page, dma_handle, dir); in __dma_free_pages()
591 dma_addr_t dma_handle, enum dma_data_direction dir) in dma_free_pages() argument
593 debug_dma_unmap_page(dev, dma_handle, size, dir); in dma_free_pages()
594 __dma_free_pages(dev, size, page, dma_handle, dir); in dma_free_pages()