• Home
  • Raw
  • Download

Lines Matching +full:close +full:- +full:range

2  * videobuf2-memops.c - generic memory handling routines for videobuf2
16 #include <linux/dma-mapping.h>
22 #include <media/videobuf2-v4l2.h>
23 #include <media/videobuf2-memops.h>
26 * vb2_create_framevec() - map virtual addresses to pfns
28 * @length: Length of a range to map
31 * virtual address range passed in arguments. If pfns have corresponding pages,
46 last = (start + length - 1) >> PAGE_SHIFT; in vb2_create_framevec()
47 nr = last - first + 1; in vb2_create_framevec()
50 return ERR_PTR(-ENOMEM); in vb2_create_framevec()
56 ret = -EFAULT; in vb2_create_framevec()
69 * vb2_destroy_framevec() - release vector of mapped pfns
83 * vb2_common_vm_open() - increase refcount of the vma
87 * struct vb2_vmarea_handler pointer in vma->vm_private_data.
91 struct vb2_vmarea_handler *h = vma->vm_private_data; in vb2_common_vm_open()
93 pr_debug("%s: %p, refcount: %d, vma: %08lx-%08lx\n", in vb2_common_vm_open()
94 __func__, h, refcount_read(h->refcount), vma->vm_start, in vb2_common_vm_open()
95 vma->vm_end); in vb2_common_vm_open()
97 refcount_inc(h->refcount); in vb2_common_vm_open()
101 * vb2_common_vm_close() - decrease refcount of the vma
105 * struct vb2_vmarea_handler pointer in vma->vm_private_data.
109 struct vb2_vmarea_handler *h = vma->vm_private_data; in vb2_common_vm_close()
111 pr_debug("%s: %p, refcount: %d, vma: %08lx-%08lx\n", in vb2_common_vm_close()
112 __func__, h, refcount_read(h->refcount), vma->vm_start, in vb2_common_vm_close()
113 vma->vm_end); in vb2_common_vm_close()
115 h->put(h->arg); in vb2_common_vm_close()
119 * vb2_common_vm_ops - common vm_ops used for tracking refcount of mmapped
124 .close = vb2_common_vm_close,