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,
311 static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf)
314 vb2_vmalloc_put(dbuf->priv);
317 static void *vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf)
319 struct vb2_vmalloc_buf *buf = dbuf->priv;
324 static int vb2_vmalloc_dmabuf_ops_mmap(struct dma_buf *dbuf,
327 return vb2_vmalloc_mmap(dbuf->priv, vma);
343 struct dma_buf *dbuf;
354 dbuf = dma_buf_export(&exp_info);
355 if (IS_ERR(dbuf))
361 return dbuf;
374 buf->vaddr = dma_buf_vmap(buf->dbuf);
383 dma_buf_vunmap(buf->dbuf, buf->vaddr);
392 dma_buf_vunmap(buf->dbuf, buf->vaddr);
397 static void *vb2_vmalloc_attach_dmabuf(struct device *dev, struct dma_buf *dbuf,
402 if (dbuf->size < size)
409 buf->dbuf = dbuf;