Lines Matching refs:npages
75 unsigned long npages, in ib_umem_add_sg_table() argument
91 while (i != npages) { in ib_umem_add_sg_table()
100 for (len = 0; i != npages && in ib_umem_add_sg_table()
200 unsigned long npages; in ib_umem_get() local
247 npages = ib_umem_num_pages(umem); in ib_umem_get()
248 if (npages == 0 || npages > UINT_MAX) { in ib_umem_get()
255 new_pinned = atomic64_add_return(npages, &mm->pinned_vm); in ib_umem_get()
257 atomic64_sub(npages, &mm->pinned_vm); in ib_umem_get()
264 ret = sg_alloc_table(&umem->sg_head, npages, GFP_KERNEL); in ib_umem_get()
273 while (npages) { in ib_umem_get()
276 min_t(unsigned long, npages, in ib_umem_get()
286 npages -= ret; in ib_umem_get()