Lines Matching refs:dma_handle
116 dma_addr_t * dma_handle, gfp_t gfp) in mips_dma_alloc_noncoherent() argument
126 *dma_handle = plat_map_dma_mem(dev, ret, size); in mips_dma_alloc_noncoherent()
133 dma_addr_t * dma_handle, gfp_t gfp, struct dma_attrs *attrs) in mips_dma_alloc_coherent() argument
144 return mips_dma_alloc_noncoherent(dev, size, dma_handle, gfp); in mips_dma_alloc_coherent()
159 *dma_handle = plat_map_dma_mem(dev, ret, size); in mips_dma_alloc_coherent()
171 void *vaddr, dma_addr_t dma_handle) in mips_dma_free_noncoherent() argument
173 plat_unmap_dma_mem(dev, dma_handle, size, DMA_BIDIRECTIONAL); in mips_dma_free_noncoherent()
178 dma_addr_t dma_handle, struct dma_attrs *attrs) in mips_dma_free_coherent() argument
185 mips_dma_free_noncoherent(dev, size, vaddr, dma_handle); in mips_dma_free_coherent()
189 plat_unmap_dma_mem(dev, dma_handle, size, DMA_BIDIRECTIONAL); in mips_dma_free_coherent()
349 dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) in mips_dma_sync_single_for_cpu() argument
352 __dma_sync(dma_addr_to_page(dev, dma_handle), in mips_dma_sync_single_for_cpu()
353 dma_handle & ~PAGE_MASK, size, direction); in mips_dma_sync_single_for_cpu()
358 dma_addr_t dma_handle, size_t size, enum dma_data_direction direction) in mips_dma_sync_single_for_device() argument
361 __dma_sync(dma_addr_to_page(dev, dma_handle), in mips_dma_sync_single_for_device()
362 dma_handle & ~PAGE_MASK, size, direction); in mips_dma_sync_single_for_device()