Lines Matching refs:dma_dir

32 	enum dma_data_direction		dma_dir;  member
105 dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); in vb2_dc_prepare()
116 dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); in vb2_dc_finish()
141 unsigned long size, enum dma_data_direction dma_dir, in vb2_dc_alloc() argument
168 buf->dma_dir = dma_dir; in vb2_dc_alloc()
216 enum dma_data_direction dma_dir; member
251 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach()
269 if (attach->dma_dir != DMA_NONE) in vb2_dc_dmabuf_ops_detach()
276 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, in vb2_dc_dmabuf_ops_detach()
284 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_dc_dmabuf_ops_map() argument
295 if (attach->dma_dir == dma_dir) { in vb2_dc_dmabuf_ops_map()
301 if (attach->dma_dir != DMA_NONE) { in vb2_dc_dmabuf_ops_map()
302 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, in vb2_dc_dmabuf_ops_map()
304 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_map()
311 if (dma_map_sgtable(db_attach->dev, sgt, dma_dir, in vb2_dc_dmabuf_ops_map()
318 attach->dma_dir = dma_dir; in vb2_dc_dmabuf_ops_map()
326 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_dc_dmabuf_ops_unmap() argument
443 dma_unmap_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dc_put_userptr()
448 if (buf->dma_dir == DMA_FROM_DEVICE || in vb2_dc_put_userptr()
449 buf->dma_dir == DMA_BIDIRECTIONAL) in vb2_dc_put_userptr()
456 buf->dma_dir, 0); in vb2_dc_put_userptr()
463 unsigned long size, enum dma_data_direction dma_dir) in vb2_dc_get_userptr() argument
493 buf->dma_dir = dma_dir; in vb2_dc_get_userptr()
515 __pfn_to_phys(nums[0]), size, buf->dma_dir, 0); in vb2_dc_get_userptr()
541 if (dma_map_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dc_get_userptr()
564 dma_unmap_sgtable(buf->dev, sgt, buf->dma_dir, DMA_ATTR_SKIP_CPU_SYNC); in vb2_dc_get_userptr()
602 sgt = dma_buf_map_attachment(buf->db_attach, buf->dma_dir); in vb2_dc_map_dmabuf()
613 dma_buf_unmap_attachment(buf->db_attach, sgt, buf->dma_dir); in vb2_dc_map_dmabuf()
644 dma_buf_unmap_attachment(buf->db_attach, sgt, buf->dma_dir); in vb2_dc_unmap_dmabuf()
664 unsigned long size, enum dma_data_direction dma_dir) in vb2_dc_attach_dmabuf() argument
688 buf->dma_dir = dma_dir; in vb2_dc_attach_dmabuf()