Lines Matching refs:vec
29 unsigned char *vec = walk->private; in mincore_hugetlb() local
36 for (; addr != end; vec++, addr += PAGE_SIZE) in mincore_hugetlb()
37 *vec = present; in mincore_hugetlb()
38 walk->private = vec; in mincore_hugetlb()
72 struct vm_area_struct *vma, unsigned char *vec) in __mincore_unmapped_range() argument
82 vec[i] = mincore_page(vma->vm_file->f_mapping, pgoff); in __mincore_unmapped_range()
85 vec[i] = 0; in __mincore_unmapped_range()
105 unsigned char *vec = walk->private; in mincore_pte_range() local
110 memset(vec, 1, nr); in mincore_pte_range()
116 __mincore_unmapped_range(addr, end, vma, vec); in mincore_pte_range()
126 vma, vec); in mincore_pte_range()
128 *vec = 1; in mincore_pte_range()
137 *vec = 1; in mincore_pte_range()
140 *vec = mincore_page(swap_address_space(entry), in mincore_pte_range()
144 *vec = 1; in mincore_pte_range()
148 vec++; in mincore_pte_range()
185 static long do_mincore(unsigned long addr, unsigned long pages, unsigned char *vec) in do_mincore() argument
197 memset(vec, 1, pages); in do_mincore()
200 err = walk_page_range(vma->vm_mm, addr, end, &mincore_walk_ops, vec); in do_mincore()
231 unsigned char __user *, vec) in SYSCALL_DEFINE3() argument
251 if (!access_ok(vec, pages)) in SYSCALL_DEFINE3()
270 if (copy_to_user(vec, tmp, retval)) { in SYSCALL_DEFINE3()
275 vec += retval; in SYSCALL_DEFINE3()