Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/media/common/videobuf2/
Dvideobuf2-dma-sg.c53 struct dma_buf_attachment *db_attach; member
202 if (buf->db_attach) in vb2_dma_sg_prepare()
215 if (buf->db_attach) in vb2_dma_sg_finish()
310 if (buf->db_attach) in vb2_dma_sg_vaddr()
311 buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); in vb2_dma_sg_vaddr()
413 struct dma_buf_attachment *db_attach) in vb2_dma_sg_dmabuf_ops_detach() argument
415 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_detach()
425 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_dmabuf_ops_detach()
429 db_attach->priv = NULL; in vb2_dma_sg_dmabuf_ops_detach()
433 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_dma_sg_dmabuf_ops_map() argument
[all …]
Dvideobuf2-dma-contig.c42 struct dma_buf_attachment *db_attach; member
80 if (!buf->vaddr && buf->db_attach) in vb2_dc_vaddr()
81 buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); in vb2_dc_vaddr()
99 if (!sgt || buf->db_attach) in vb2_dc_prepare()
112 if (!sgt || buf->db_attach) in vb2_dc_finish()
264 struct dma_buf_attachment *db_attach) in vb2_dc_dmabuf_ops_detach() argument
266 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_detach()
276 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dc_dmabuf_ops_detach()
280 db_attach->priv = NULL; 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
[all …]
Dvideobuf2-vmalloc.c252 struct dma_buf_attachment *db_attach) in vb2_vmalloc_dmabuf_ops_detach() argument
254 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach()
264 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_detach()
268 db_attach->priv = NULL; in vb2_vmalloc_dmabuf_ops_detach()
272 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_map() argument
274 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_map()
276 struct mutex *lock = &db_attach->dmabuf->lock; in vb2_vmalloc_dmabuf_ops_map()
290 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
296 sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
311 static void vb2_vmalloc_dmabuf_ops_unmap(struct dma_buf_attachment *db_attach, in vb2_vmalloc_dmabuf_ops_unmap() argument