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()
89 buf->dma_dir == DMA_FROM_DEVICE || in vb2_vmalloc_get_userptr()
90 buf->dma_dir == DMA_BIDIRECTIONAL); in vb2_vmalloc_get_userptr()
139 if (buf->dma_dir == DMA_FROM_DEVICE || in vb2_vmalloc_put_userptr()
140 buf->dma_dir == DMA_BIDIRECTIONAL) in vb2_vmalloc_put_userptr()
207 enum dma_data_direction dma_dir; member
244 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach()
261 if (attach->dma_dir != DMA_NONE) in vb2_vmalloc_dmabuf_ops_detach()
262 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_detach()
269 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_map() argument
276 if (attach->dma_dir == dma_dir) in vb2_vmalloc_dmabuf_ops_map()
280 if (attach->dma_dir != DMA_NONE) { in vb2_vmalloc_dmabuf_ops_map()
281 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_map()
282 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_map()
286 if (dma_map_sgtable(db_attach->dev, sgt, dma_dir, 0)) { in vb2_vmalloc_dmabuf_ops_map()
291 attach->dma_dir = dma_dir; in vb2_vmalloc_dmabuf_ops_map()
297 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_unmap() argument
415 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_attach_dmabuf()