Lines Matching refs:npages
109 unsigned long npages; in usnic_uiom_get_pages() local
129 npages = PAGE_ALIGN(size + (addr & ~PAGE_MASK)) >> PAGE_SHIFT; in usnic_uiom_get_pages()
133 locked = npages + current->mm->locked_vm; in usnic_uiom_get_pages()
146 while (npages) { in usnic_uiom_get_pages()
148 min_t(unsigned long, npages, in usnic_uiom_get_pages()
155 npages -= ret; in usnic_uiom_get_pages()
220 int npages; in __usnic_uiom_reg_release() local
226 npages = PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in __usnic_uiom_reg_release()
228 vpn_last = vpn_start + npages - 1; in __usnic_uiom_reg_release()
342 unsigned long npages; in usnic_uiom_reg_get() local
357 npages = PAGE_ALIGN(size + offset) >> PAGE_SHIFT; in usnic_uiom_reg_get()
359 vpn_last = vpn_start + npages - 1; in usnic_uiom_reg_get()