Lines Matching refs:npinned
167 rc = check_add_overflow(pages->npinned, npages, &pages->npinned); in iopt_pages_add_npinned()
169 WARN_ON(rc || pages->npinned > pages->npages); in iopt_pages_add_npinned()
176 rc = check_sub_overflow(pages->npinned, npages, &pages->npinned); in iopt_pages_sub_npinned()
178 WARN_ON(rc || pages->npinned > pages->npages); in iopt_pages_sub_npinned()
878 pages->last_npinned = pages->npinned; in do_update_pinned()
888 if (WARN_ON(pages->npinned > pages->last_npinned)) in update_unpinned()
890 if (pages->npinned == pages->last_npinned) in update_unpinned()
892 do_update_pinned(pages, pages->last_npinned - pages->npinned, false, in update_unpinned()
911 if (pages->npinned == pages->last_npinned) in pfn_reader_user_update_pinned()
914 if (pages->npinned < pages->last_npinned) { in pfn_reader_user_update_pinned()
915 npages = pages->last_npinned - pages->npinned; in pfn_reader_user_update_pinned()
920 npages = pages->npinned - pages->last_npinned; in pfn_reader_user_update_pinned()
1118 WARN_ON(pages->last_npinned != pages->npinned); in pfn_reader_destroy()
1187 WARN_ON(pages->npinned); in iopt_release_pages()