Lines Matching refs:dma_dir
33 enum dma_data_direction dma_dir; member
136 dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); in vb2_dc_prepare()
156 dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); in vb2_dc_finish()
178 buf->dma_sgt, buf->dma_dir); in vb2_dc_put()
216 buf->dma_dir, in vb2_dc_alloc_non_coherent()
246 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dc_alloc()
314 enum dma_data_direction dma_dir; member
349 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach()
367 if (attach->dma_dir != DMA_NONE) in vb2_dc_dmabuf_ops_detach()
374 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, in vb2_dc_dmabuf_ops_detach()
382 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_dc_dmabuf_ops_map() argument
393 if (attach->dma_dir == dma_dir) { in vb2_dc_dmabuf_ops_map()
399 if (attach->dma_dir != DMA_NONE) { in vb2_dc_dmabuf_ops_map()
400 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, in vb2_dc_dmabuf_ops_map()
402 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_map()
409 if (dma_map_sgtable(db_attach->dev, sgt, dma_dir, in vb2_dc_dmabuf_ops_map()
416 attach->dma_dir = dma_dir; in vb2_dc_dmabuf_ops_map()
424 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_dc_dmabuf_ops_unmap() argument
552 dma_unmap_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dc_put_userptr()
557 if (buf->dma_dir == DMA_FROM_DEVICE || in vb2_dc_put_userptr()
558 buf->dma_dir == DMA_BIDIRECTIONAL) in vb2_dc_put_userptr()
565 buf->dma_dir, 0); in vb2_dc_put_userptr()
602 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dc_get_userptr()
625 __pfn_to_phys(nums[0]), size, buf->dma_dir, 0); in vb2_dc_get_userptr()
651 if (dma_map_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dc_get_userptr()
676 dma_unmap_sgtable(buf->dev, sgt, buf->dma_dir, DMA_ATTR_SKIP_CPU_SYNC); in vb2_dc_get_userptr()
714 sgt = dma_buf_map_attachment(buf->db_attach, buf->dma_dir); in vb2_dc_map_dmabuf()
725 dma_buf_unmap_attachment(buf->db_attach, sgt, buf->dma_dir); in vb2_dc_map_dmabuf()
756 dma_buf_unmap_attachment(buf->db_attach, sgt, buf->dma_dir); in vb2_dc_unmap_dmabuf()
802 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dc_attach_dmabuf()