Lines Matching refs:npages
108 unsigned long npages; in usnic_uiom_get_pages() local
125 npages = PAGE_ALIGN(size + (addr & ~PAGE_MASK)) >> PAGE_SHIFT; in usnic_uiom_get_pages()
129 locked = npages + current->mm->locked_vm; in usnic_uiom_get_pages()
144 while (npages) { in usnic_uiom_get_pages()
146 min_t(unsigned long, npages, in usnic_uiom_get_pages()
153 npages -= ret; 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()