Lines Matching refs:gup_flags
223 unsigned int gup_flags, struct vm_area_struct **vma, in get_gate_page() argument
233 if (gup_flags & FOLL_WRITE) in get_gate_page()
254 if ((gup_flags & FOLL_DUMP) || !is_zero_pfn(pte_pfn(*pte))) in get_gate_page()
327 static int check_vma_flags(struct vm_area_struct *vma, unsigned long gup_flags) in check_vma_flags() argument
334 if (gup_flags & FOLL_WRITE) { in check_vma_flags()
336 if (!(gup_flags & FOLL_FORCE)) in check_vma_flags()
353 if (!(gup_flags & FOLL_FORCE)) in check_vma_flags()
423 unsigned int gup_flags, struct page **pages, in __get_user_pages() argument
433 VM_BUG_ON(!!pages != !!(gup_flags & FOLL_GET)); in __get_user_pages()
440 if (!(gup_flags & FOLL_FORCE)) in __get_user_pages()
441 gup_flags |= FOLL_NUMA; in __get_user_pages()
445 unsigned int foll_flags = gup_flags; in __get_user_pages()
454 gup_flags, &vma, in __get_user_pages()
462 if (!vma || check_vma_flags(vma, gup_flags)) in __get_user_pages()
467 gup_flags); in __get_user_pages()