Lines Matching refs:npages
445 pgcnt_t npages; in segkmem_fault() local
466 npages = btopr(size); in segkmem_fault()
470 for (pg = 0; pg < npages; pg++) { in segkmem_fault()
496 while (npages--) { in segkmem_fault()
683 pgcnt_t npages; in segkmem_pagelock() local
697 npages = btopr(len); in segkmem_pagelock()
698 nb = sizeof (page_t *) * npages; in segkmem_pagelock()
704 for (pg = 0; pg < npages; pg++) { in segkmem_pagelock()
720 for (pg = 0; pg < npages; pg++) { in segkmem_pagelock()
865 pgcnt_t npages = btopr(size); in segkmem_xalloc() local
873 if (page_resv(npages, vmflag & VM_KMFLAGS) == 0) { in segkmem_xalloc()
883 page_unresv(npages); in segkmem_xalloc()
990 pgcnt_t npages = btopr(size); in segkmem_free_vn() local
1033 page_unresv(npages); in segkmem_free_vn()
1088 kmem_getpages(pgcnt_t npages, int kmflag) in kmem_getpages() argument
1090 return (kmem_alloc(ptob(npages), kmflag)); in kmem_getpages()
1094 kmem_freepages(void *addr, pgcnt_t npages) in kmem_freepages() argument
1096 kmem_free(addr, ptob(npages)); in kmem_freepages()
1136 pgcnt_t npages = btopr(size); in segkmem_xalloc_lp() local
1145 if (page_resv(npages, vmflag & VM_KMFLAGS) == 0) { in segkmem_xalloc_lp()
1216 page_unresv(npages); in segkmem_xalloc_lp()
1425 pgcnt_t npages = btopr(size); in segkmem_free_lpi() local
1437 page_unresv(npages); in segkmem_free_lpi()