Home
last modified time | relevance | path

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

/Linux-v5.4/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()
309 if (buf->db_attach) in vb2_dma_sg_vaddr()
310 buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); in vb2_dma_sg_vaddr()
402 struct dma_buf_attachment *db_attach) in vb2_dma_sg_dmabuf_ops_detach() argument
404 struct vb2_dma_sg_attachment *attach = db_attach->priv; in vb2_dma_sg_dmabuf_ops_detach()
414 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_dma_sg_dmabuf_ops_detach()
418 db_attach->priv = NULL; in vb2_dma_sg_dmabuf_ops_detach()
422 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()
258 struct dma_buf_attachment *db_attach) in vb2_dc_dmabuf_ops_detach() argument
260 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_detach()
276 dma_unmap_sg_attrs(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.c251 struct dma_buf_attachment *db_attach) in vb2_vmalloc_dmabuf_ops_detach() argument
253 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_detach()
263 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_detach()
267 db_attach->priv = NULL; in vb2_vmalloc_dmabuf_ops_detach()
271 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_map() argument
273 struct vb2_vmalloc_attachment *attach = db_attach->priv; in vb2_vmalloc_dmabuf_ops_map()
275 struct mutex *lock = &db_attach->dmabuf->lock; in vb2_vmalloc_dmabuf_ops_map()
289 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
295 sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
310 static void vb2_vmalloc_dmabuf_ops_unmap(struct dma_buf_attachment *db_attach, in vb2_vmalloc_dmabuf_ops_unmap() argument