Lines Matching defs:dbuf
32 struct dma_buf *dbuf;
210 static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf,
214 struct vb2_vmalloc_buf *buf = dbuf->priv;
249 static void vb2_vmalloc_dmabuf_ops_detach(struct dma_buf *dbuf,
302 static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf)
305 vb2_vmalloc_put(dbuf->priv);
308 static int vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf,
311 struct vb2_vmalloc_buf *buf = dbuf->priv;
318 static int vb2_vmalloc_dmabuf_ops_mmap(struct dma_buf *dbuf,
321 return vb2_vmalloc_mmap(dbuf->priv, vma);
339 struct dma_buf *dbuf;
350 dbuf = dma_buf_export(&exp_info);
351 if (IS_ERR(dbuf))
357 return dbuf;
372 ret = dma_buf_vmap_unlocked(buf->dbuf, &map);
385 dma_buf_vunmap_unlocked(buf->dbuf, &map);
395 dma_buf_vunmap_unlocked(buf->dbuf, &map);
402 struct dma_buf *dbuf,
407 if (dbuf->size < size)
414 buf->dbuf = dbuf;