Lines Matching refs:dbuf

33 	struct dma_buf			*dbuf;  member
224 static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf, struct device *dev, in vb2_vmalloc_dmabuf_ops_attach() argument
228 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_attach()
263 static void vb2_vmalloc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_detach() argument
329 static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_release() argument
332 vb2_vmalloc_put(dbuf->priv); in vb2_vmalloc_dmabuf_ops_release()
335 static void *vb2_vmalloc_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_vmalloc_dmabuf_ops_kmap() argument
337 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_kmap()
342 static void *vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_vmap() argument
344 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_vmap()
349 static int vb2_vmalloc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_mmap() argument
352 return vb2_vmalloc_mmap(dbuf->priv, vma); in vb2_vmalloc_dmabuf_ops_mmap()
370 struct dma_buf *dbuf; in vb2_vmalloc_get_dmabuf() local
381 dbuf = dma_buf_export(&exp_info); in vb2_vmalloc_get_dmabuf()
382 if (IS_ERR(dbuf)) in vb2_vmalloc_get_dmabuf()
388 return dbuf; in vb2_vmalloc_get_dmabuf()
401 buf->vaddr = dma_buf_vmap(buf->dbuf); in vb2_vmalloc_map_dmabuf()
410 dma_buf_vunmap(buf->dbuf, buf->vaddr); in vb2_vmalloc_unmap_dmabuf()
419 dma_buf_vunmap(buf->dbuf, buf->vaddr); in vb2_vmalloc_detach_dmabuf()
424 static void *vb2_vmalloc_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf, in vb2_vmalloc_attach_dmabuf() argument
429 if (dbuf->size < size) in vb2_vmalloc_attach_dmabuf()
436 buf->dbuf = dbuf; in vb2_vmalloc_attach_dmabuf()