Lines Matching refs:locked
866 int *locked, bool notify_drop, in __get_user_pages_locked() argument
872 if (locked) { in __get_user_pages_locked()
876 BUG_ON(*locked != 1); in __get_user_pages_locked()
886 vmas, locked); in __get_user_pages_locked()
887 if (!locked) in __get_user_pages_locked()
892 if (!*locked) { in __get_user_pages_locked()
907 if (*locked) { in __get_user_pages_locked()
922 *locked = 1; in __get_user_pages_locked()
940 if (notify_drop && lock_dropped && *locked) { in __get_user_pages_locked()
946 *locked = 0; in __get_user_pages_locked()
974 int *locked) in get_user_pages_locked() argument
977 pages, NULL, locked, true, in get_user_pages_locked()
996 int locked = 1; in __get_user_pages_unlocked() local
1000 &locked, false, gup_flags); in __get_user_pages_unlocked()
1001 if (locked) in __get_user_pages_unlocked()
1088 struct vm_area_struct **vmas, int *locked) in get_user_pages_remote() argument
1091 locked, true, in get_user_pages_remote()
1247 int locked = 0; in __mm_populate() local
1257 if (!locked) { in __mm_populate()
1258 locked = 1; in __mm_populate()
1279 ret = populate_vma_page_range(vma, nstart, nend, &locked); in __mm_populate()
1290 if (locked) in __mm_populate()