Lines Matching refs:dbuf

31 	struct dma_buf			*dbuf;  member
206 static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf, struct device *dev, in vb2_vmalloc_dmabuf_ops_attach() argument
210 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_attach()
245 static void vb2_vmalloc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_detach() argument
311 static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_release() argument
314 vb2_vmalloc_put(dbuf->priv); in vb2_vmalloc_dmabuf_ops_release()
317 static void *vb2_vmalloc_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_vmalloc_dmabuf_ops_kmap() argument
319 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_kmap()
324 static void *vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_vmap() argument
326 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_vmap()
331 static int vb2_vmalloc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_mmap() argument
334 return vb2_vmalloc_mmap(dbuf->priv, vma); in vb2_vmalloc_dmabuf_ops_mmap()
352 struct dma_buf *dbuf; in vb2_vmalloc_get_dmabuf() local
363 dbuf = dma_buf_export(&exp_info); in vb2_vmalloc_get_dmabuf()
364 if (IS_ERR(dbuf)) in vb2_vmalloc_get_dmabuf()
370 return dbuf; in vb2_vmalloc_get_dmabuf()
383 buf->vaddr = dma_buf_vmap(buf->dbuf); in vb2_vmalloc_map_dmabuf()
392 dma_buf_vunmap(buf->dbuf, buf->vaddr); in vb2_vmalloc_unmap_dmabuf()
401 dma_buf_vunmap(buf->dbuf, buf->vaddr); in vb2_vmalloc_detach_dmabuf()
406 static void *vb2_vmalloc_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf, in vb2_vmalloc_attach_dmabuf() argument
411 if (dbuf->size < size) in vb2_vmalloc_attach_dmabuf()
418 buf->dbuf = dbuf; in vb2_vmalloc_attach_dmabuf()