Searched refs:db_attach (Results 1 – 3 of 3) sorted by relevance
/drivers/media/common/videobuf2/ |
D | videobuf2-dma-contig.c | 42 struct dma_buf_attachment *db_attach; member 84 if (!buf->vaddr && buf->db_attach) { in vb2_dc_vaddr() 85 ret = dma_buf_vmap(buf->db_attach->dmabuf, &map); in vb2_dc_vaddr() 262 struct dma_buf_attachment *db_attach) in vb2_dc_dmabuf_ops_detach() argument 264 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_detach() 280 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, in vb2_dc_dmabuf_ops_detach() 284 db_attach->priv = NULL; in vb2_dc_dmabuf_ops_detach() 288 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_dc_dmabuf_ops_map() argument 290 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_map() 292 struct mutex *lock = &db_attach->dmabuf->lock; in vb2_dc_dmabuf_ops_map() [all …]
|
D | videobuf2-dma-sg.c | 53 struct dma_buf_attachment *db_attach; member 306 if (buf->db_attach) { in vb2_dma_sg_vaddr() 307 ret = dma_buf_vmap(buf->db_attach->dmabuf, &map); in vb2_dma_sg_vaddr() 400 struct dma_buf_attachment *db_attach) in vb2_dma_sg_dmabuf_ops_detach() argument 402 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_detach() 412 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_dma_sg_dmabuf_ops_detach() 415 db_attach->priv = NULL; in vb2_dma_sg_dmabuf_ops_detach() 419 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_dma_sg_dmabuf_ops_map() argument 421 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_map() 423 struct mutex *lock = &db_attach->dmabuf->lock; in vb2_dma_sg_dmabuf_ops_map() [all …]
|
D | videobuf2-vmalloc.c | 248 struct dma_buf_attachment *db_attach) in vb2_vmalloc_dmabuf_ops_detach() argument 250 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach() 260 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_detach() 263 db_attach->priv = NULL; 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 269 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_map() 271 struct mutex *lock = &db_attach->dmabuf->lock; in vb2_vmalloc_dmabuf_ops_map() 285 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_map() 290 if (dma_map_sgtable(db_attach->dev, sgt, dma_dir, 0)) { in vb2_vmalloc_dmabuf_ops_map() 303 static void vb2_vmalloc_dmabuf_ops_unmap(struct dma_buf_attachment *db_attach, in vb2_vmalloc_dmabuf_ops_unmap() argument
|