Lines Matching refs:locked
738 int *locked, bool notify_drop, in __get_user_pages_locked() argument
744 if (locked) { in __get_user_pages_locked()
748 BUG_ON(*locked != 1); in __get_user_pages_locked()
758 vmas, locked); in __get_user_pages_locked()
759 if (!locked) in __get_user_pages_locked()
764 if (!*locked) { in __get_user_pages_locked()
779 if (*locked) { in __get_user_pages_locked()
794 *locked = 1; in __get_user_pages_locked()
812 if (notify_drop && lock_dropped && *locked) { in __get_user_pages_locked()
818 *locked = 0; in __get_user_pages_locked()
846 int *locked) in get_user_pages_locked() argument
849 pages, NULL, locked, true, in get_user_pages_locked()
869 int locked = 1; in __get_user_pages_unlocked() local
873 &locked, false, gup_flags); in __get_user_pages_unlocked()
874 if (locked) in __get_user_pages_unlocked()
1119 int locked = 0; in __mm_populate() local
1131 if (!locked) { in __mm_populate()
1132 locked = 1; in __mm_populate()
1153 ret = populate_vma_page_range(vma, nstart, nend, &locked); in __mm_populate()
1164 if (locked) in __mm_populate()