Lines Matching defs:npages
37 int npages = region->length >> PAGE_SHIFT;
41 ret = account_locked_vm(current->mm, npages, true);
45 region->pages = kcalloc(npages, sizeof(struct page *), GFP_KERNEL);
51 pinned = pin_user_pages_fast(region->user_addr, npages, FOLL_WRITE,
56 } else if (pinned != npages) {
70 account_locked_vm(current->mm, npages, false);
85 long npages = region->length >> PAGE_SHIFT;
88 unpin_user_pages(region->pages, npages);
90 account_locked_vm(current->mm, npages, false);
92 dev_dbg(dev, "%ld pages unpinned\n", npages);
104 int npages = region->length >> PAGE_SHIFT;
107 for (i = 0; i < npages - 1; i++)