Lines Matching refs:npages
95 unsigned long npages; in usnic_uiom_get_pages() local
123 npages = PAGE_ALIGN(size + (addr & ~PAGE_MASK)) >> PAGE_SHIFT; in usnic_uiom_get_pages()
128 locked = atomic64_add_return(npages, ¤t->mm->pinned_vm); in usnic_uiom_get_pages()
143 while (npages) { in usnic_uiom_get_pages()
145 min_t(unsigned long, npages, in usnic_uiom_get_pages()
153 npages -= ret; in usnic_uiom_get_pages()
186 atomic64_sub(npages, ¤t->mm->pinned_vm); in usnic_uiom_get_pages()
218 int npages; in __usnic_uiom_reg_release() local
224 npages = PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in __usnic_uiom_reg_release()
226 vpn_last = vpn_start + npages - 1; in __usnic_uiom_reg_release()
340 unsigned long npages; in usnic_uiom_reg_get() local
355 npages = PAGE_ALIGN(size + offset) >> PAGE_SHIFT; in usnic_uiom_reg_get()
357 vpn_last = vpn_start + npages - 1; in usnic_uiom_reg_get()