Lines Matching refs:dma_handle
116 dma_addr_t * dma_handle, gfp_t gfp) in dma_alloc_noncoherent() argument
126 *dma_handle = plat_map_dma_mem(dev, ret, size); in dma_alloc_noncoherent()
134 dma_addr_t * dma_handle, gfp_t gfp, struct dma_attrs *attrs) in mips_dma_alloc_coherent() argument
140 if (dma_alloc_from_coherent(dev, size, dma_handle, &ret)) in mips_dma_alloc_coherent()
156 *dma_handle = plat_map_dma_mem(dev, ret, size); in mips_dma_alloc_coherent()
168 dma_addr_t dma_handle) in dma_free_noncoherent() argument
170 plat_unmap_dma_mem(dev, dma_handle, size, DMA_BIDIRECTIONAL); in dma_free_noncoherent()
176 dma_addr_t dma_handle, struct dma_attrs *attrs) in mips_dma_free_coherent() argument
186 plat_unmap_dma_mem(dev, dma_handle, size, DMA_BIDIRECTIONAL); in mips_dma_free_coherent()
310 dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) in mips_dma_sync_single_for_cpu() argument
313 __dma_sync(dma_addr_to_page(dev, dma_handle), in mips_dma_sync_single_for_cpu()
314 dma_handle & ~PAGE_MASK, size, direction); in mips_dma_sync_single_for_cpu()
319 dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) in mips_dma_sync_single_for_device() argument
322 __dma_sync(dma_addr_to_page(dev, dma_handle), in mips_dma_sync_single_for_device()
323 dma_handle & ~PAGE_MASK, size, direction); in mips_dma_sync_single_for_device()