Lines Matching refs:vaddr

26 	void				*vaddr;  member
47 buf->vaddr = vmalloc_user(buf->size); in vb2_vmalloc_alloc()
48 if (!buf->vaddr) { in vb2_vmalloc_alloc()
68 vfree(buf->vaddr); in vb2_vmalloc_put()
74 unsigned long vaddr, unsigned long size) in vb2_vmalloc_get_userptr() argument
86 offset = vaddr & ~PAGE_MASK; in vb2_vmalloc_get_userptr()
88 vec = vb2_create_framevec(vaddr, size); in vb2_vmalloc_get_userptr()
105 buf->vaddr = (__force void *) in vb2_vmalloc_get_userptr()
108 buf->vaddr = vm_map_ram(frame_vector_pages(vec), n_pages, -1); in vb2_vmalloc_get_userptr()
111 if (!buf->vaddr) in vb2_vmalloc_get_userptr()
113 buf->vaddr += offset; in vb2_vmalloc_get_userptr()
127 unsigned long vaddr = (unsigned long)buf->vaddr & PAGE_MASK; in vb2_vmalloc_put_userptr() local
135 if (vaddr) in vb2_vmalloc_put_userptr()
136 vm_unmap_ram((void *)vaddr, n_pages); in vb2_vmalloc_put_userptr()
142 iounmap((__force void __iomem *)buf->vaddr); in vb2_vmalloc_put_userptr()
152 if (!buf->vaddr) { in vb2_vmalloc_vaddr()
157 return buf->vaddr; in vb2_vmalloc_vaddr()
176 ret = remap_vmalloc_range(vma, buf->vaddr, 0); in vb2_vmalloc_mmap()
216 void *vaddr = buf->vaddr; in vb2_vmalloc_dmabuf_ops_attach() local
231 struct page *page = vmalloc_to_page(vaddr); in vb2_vmalloc_dmabuf_ops_attach()
239 vaddr += PAGE_SIZE; in vb2_vmalloc_dmabuf_ops_attach()
319 dma_buf_map_set_vaddr(map, buf->vaddr); in vb2_vmalloc_dmabuf_ops_vmap()
353 if (WARN_ON(!buf->vaddr)) in vb2_vmalloc_get_dmabuf()
381 buf->vaddr = map.vaddr; in vb2_vmalloc_map_dmabuf()
389 struct dma_buf_map map = DMA_BUF_MAP_INIT_VADDR(buf->vaddr); in vb2_vmalloc_unmap_dmabuf()
392 buf->vaddr = NULL; in vb2_vmalloc_unmap_dmabuf()
398 struct dma_buf_map map = DMA_BUF_MAP_INIT_VADDR(buf->vaddr); in vb2_vmalloc_detach_dmabuf()
400 if (buf->vaddr) in vb2_vmalloc_detach_dmabuf()
440 .vaddr = vb2_vmalloc_vaddr,