Lines Matching refs:dbuf

32 	struct dma_buf			*dbuf;  member
210 static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_attach() argument
214 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_attach()
249 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_vmap(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_vmap() argument
319 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_vmap()
324 static int vb2_vmalloc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_mmap() argument
327 return vb2_vmalloc_mmap(dbuf->priv, vma); in vb2_vmalloc_dmabuf_ops_mmap()
343 struct dma_buf *dbuf; in vb2_vmalloc_get_dmabuf() local
354 dbuf = dma_buf_export(&exp_info); in vb2_vmalloc_get_dmabuf()
355 if (IS_ERR(dbuf)) in vb2_vmalloc_get_dmabuf()
361 return dbuf; in vb2_vmalloc_get_dmabuf()
374 buf->vaddr = dma_buf_vmap(buf->dbuf); in vb2_vmalloc_map_dmabuf()
383 dma_buf_vunmap(buf->dbuf, buf->vaddr); in vb2_vmalloc_unmap_dmabuf()
392 dma_buf_vunmap(buf->dbuf, buf->vaddr); in vb2_vmalloc_detach_dmabuf()
397 static void *vb2_vmalloc_attach_dmabuf(struct device *dev, struct dma_buf *dbuf, in vb2_vmalloc_attach_dmabuf() argument
402 if (dbuf->size < size) in vb2_vmalloc_attach_dmabuf()
409 buf->dbuf = dbuf; in vb2_vmalloc_attach_dmabuf()