Home
last modified time | relevance | path

Searched refs:db_attach (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-dma-sg.c53 struct dma_buf_attachment *db_attach; member
313 if (buf->db_attach) { in vb2_dma_sg_vaddr()
407 struct dma_buf_attachment *db_attach) in vb2_dma_sg_dmabuf_ops_detach() argument
409 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_detach()
422 db_attach->priv = NULL; in vb2_dma_sg_dmabuf_ops_detach()
428 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_map()
443 if (dma_map_sgtable(db_attach->dev, sgt, dma_dir, 0)) { in vb2_dma_sg_dmabuf_ops_map()
556 if (WARN_ON(!buf->db_attach)) { in vb2_dma_sg_map_dmabuf()
585 if (WARN_ON(!buf->db_attach)) { in vb2_dma_sg_unmap_dmabuf()
613 dma_buf_detach(buf->db_attach->dmabuf, buf->db_attach); in vb2_dma_sg_detach_dmabuf()
[all …]
H A Dvideobuf2-dma-contig.c43 struct dma_buf_attachment *db_attach; member
101 if (buf->db_attach) { in vb2_dc_vaddr()
356 struct dma_buf_attachment *db_attach) in vb2_dc_dmabuf_ops_detach() argument
358 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_detach()
378 db_attach->priv = NULL; in vb2_dc_dmabuf_ops_detach()
384 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_map()
403 if (dma_map_sgtable(db_attach->dev, sgt, dma_dir, in vb2_dc_dmabuf_ops_map()
695 if (WARN_ON(!buf->db_attach)) { in vb2_dc_map_dmabuf()
735 if (WARN_ON(!buf->db_attach)) { in vb2_dc_unmap_dmabuf()
764 dma_buf_detach(buf->db_attach->dmabuf, buf->db_attach); in vb2_dc_detach_dmabuf()
[all …]
H A Dvideobuf2-vmalloc.c250 struct dma_buf_attachment *db_attach) in vb2_vmalloc_dmabuf_ops_detach() argument
252 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach()
262 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_detach()
265 db_attach->priv = NULL; 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
271 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_map()
281 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_map()
286 if (dma_map_sgtable(db_attach->dev, sgt, dma_dir, 0)) { in vb2_vmalloc_dmabuf_ops_map()
296 static void vb2_vmalloc_dmabuf_ops_unmap(struct dma_buf_attachment *db_attach, in vb2_vmalloc_dmabuf_ops_unmap() argument