Lines Matching refs:dir
109 size_t size, enum dma_data_direction dir) in alloc_safe_buffer() argument
117 __func__, ptr, size, dir); in alloc_safe_buffer()
135 buf->direction = dir; in alloc_safe_buffer()
247 enum dma_data_direction dir, in map_single() argument
256 buf = alloc_safe_buffer(device_info, ptr, size, dir); in map_single()
267 if ((dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL) && in map_single()
278 size_t size, enum dma_data_direction dir, in unmap_single() argument
282 BUG_ON(buf->direction != dir); in unmap_single()
290 if ((dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) && in unmap_single()
317 unsigned long offset, size_t size, enum dma_data_direction dir, in dmabounce_map_page() argument
324 __func__, page, offset, size, dir); in dmabounce_map_page()
333 arm_dma_ops.sync_single_for_device(dev, dma_addr, size, dir); in dmabounce_map_page()
342 return map_single(dev, page_address(page) + offset, size, dir, attrs); in dmabounce_map_page()
352 enum dma_data_direction dir, unsigned long attrs) in dmabounce_unmap_page() argument
357 __func__, dma_addr, size, dir); in dmabounce_unmap_page()
361 arm_dma_ops.sync_single_for_cpu(dev, dma_addr, size, dir); in dmabounce_unmap_page()
365 unmap_single(dev, buf, size, dir, attrs); in dmabounce_unmap_page()
369 size_t sz, enum dma_data_direction dir) in __dmabounce_sync_for_cpu() argument
375 __func__, addr, sz, dir); in __dmabounce_sync_for_cpu()
383 BUG_ON(buf->direction != dir); in __dmabounce_sync_for_cpu()
391 if (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) { in __dmabounce_sync_for_cpu()
400 dma_addr_t handle, size_t size, enum dma_data_direction dir) in dmabounce_sync_for_cpu() argument
402 if (!__dmabounce_sync_for_cpu(dev, handle, size, dir)) in dmabounce_sync_for_cpu()
405 arm_dma_ops.sync_single_for_cpu(dev, handle, size, dir); in dmabounce_sync_for_cpu()
409 size_t sz, enum dma_data_direction dir) in __dmabounce_sync_for_device() argument
415 __func__, addr, sz, dir); in __dmabounce_sync_for_device()
423 BUG_ON(buf->direction != dir); in __dmabounce_sync_for_device()
431 if (dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL) { in __dmabounce_sync_for_device()
440 dma_addr_t handle, size_t size, enum dma_data_direction dir) in dmabounce_sync_for_device() argument
442 if (!__dmabounce_sync_for_device(dev, handle, size, dir)) in dmabounce_sync_for_device()
445 arm_dma_ops.sync_single_for_device(dev, handle, size, dir); in dmabounce_sync_for_device()