Lines Matching refs:dma_handle
92 dma_addr_t *dma_handle, gfp_t flags, in __dma_alloc_coherent() argument
112 *dma_handle = phys_to_dma(dev, page_to_phys(page)); in __dma_alloc_coherent()
117 return swiotlb_alloc_coherent(dev, size, dma_handle, flags); in __dma_alloc_coherent()
122 void *vaddr, dma_addr_t dma_handle, in __dma_free_coherent() argument
126 phys_addr_t paddr = dma_to_phys(dev, dma_handle); in __dma_free_coherent()
137 swiotlb_free_coherent(dev, size, vaddr, dma_handle); in __dma_free_coherent()
141 dma_addr_t *dma_handle, gfp_t flags, in __dma_alloc() argument
155 *dma_handle = phys_to_dma(dev, page_to_phys(page)); in __dma_alloc()
160 ptr = __dma_alloc_coherent(dev, size, dma_handle, flags, attrs); in __dma_alloc()
183 __dma_free_coherent(dev, size, ptr, *dma_handle, attrs); in __dma_alloc()
185 *dma_handle = DMA_ERROR_CODE; in __dma_alloc()
190 void *vaddr, dma_addr_t dma_handle, in __dma_free() argument
193 void *swiotlb_addr = phys_to_virt(dma_to_phys(dev, dma_handle)); in __dma_free()
202 __dma_free_coherent(dev, size, swiotlb_addr, dma_handle, attrs); in __dma_free()