Lines Matching refs:dma_dir
28 enum dma_data_direction dma_dir; member
54 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_alloc()
85 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_get_userptr()
137 if (buf->dma_dir == DMA_FROM_DEVICE || in vb2_vmalloc_put_userptr()
138 buf->dma_dir == DMA_BIDIRECTIONAL) in vb2_vmalloc_put_userptr()
205 enum dma_data_direction dma_dir; member
242 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach()
259 if (attach->dma_dir != DMA_NONE) in vb2_vmalloc_dmabuf_ops_detach()
260 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_detach()
267 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_map() argument
278 if (attach->dma_dir == dma_dir) { in vb2_vmalloc_dmabuf_ops_map()
284 if (attach->dma_dir != DMA_NONE) { in vb2_vmalloc_dmabuf_ops_map()
285 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_map()
286 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_map()
290 if (dma_map_sgtable(db_attach->dev, sgt, dma_dir, 0)) { in vb2_vmalloc_dmabuf_ops_map()
296 attach->dma_dir = dma_dir; in vb2_vmalloc_dmabuf_ops_map()
304 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_unmap() argument
421 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_attach_dmabuf()