Lines Matching refs:vaddr
36 void *vaddr; member
115 buf->vaddr = NULL; in vb2_dma_sg_alloc()
185 if (buf->vaddr) in vb2_dma_sg_put()
186 vm_unmap_ram(buf->vaddr, buf->num_pages); in vb2_dma_sg_put()
221 static void *vb2_dma_sg_get_userptr(struct device *dev, unsigned long vaddr, in vb2_dma_sg_get_userptr() argument
236 buf->vaddr = NULL; in vb2_dma_sg_get_userptr()
239 buf->offset = vaddr & ~PAGE_MASK; in vb2_dma_sg_get_userptr()
242 vec = vb2_create_framevec(vaddr, size); in vb2_dma_sg_get_userptr()
291 if (buf->vaddr) in vb2_dma_sg_put_userptr()
292 vm_unmap_ram(buf->vaddr, buf->num_pages); in vb2_dma_sg_put_userptr()
308 if (!buf->vaddr) { in vb2_dma_sg_vaddr()
310 buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); in vb2_dma_sg_vaddr()
312 buf->vaddr = vm_map_ram(buf->pages, in vb2_dma_sg_vaddr()
317 return buf->vaddr ? buf->vaddr + buf->offset : NULL; in vb2_dma_sg_vaddr()
477 return buf->vaddr ? buf->vaddr + pgnum * PAGE_SIZE : NULL; in vb2_dma_sg_dmabuf_ops_kmap()
555 buf->vaddr = NULL; in vb2_dma_sg_map_dmabuf()
575 if (buf->vaddr) { in vb2_dma_sg_unmap_dmabuf()
576 dma_buf_vunmap(buf->db_attach->dmabuf, buf->vaddr); in vb2_dma_sg_unmap_dmabuf()
577 buf->vaddr = NULL; in vb2_dma_sg_unmap_dmabuf()
643 .vaddr = vb2_dma_sg_vaddr,