Lines Matching refs:npgs
1999 pgcnt_t npgs, curnpgs, totpgs; in page_alloc_pages() local
2040 totpgs = curnpgs = npgs = pgsz >> PAGESHIFT; in page_alloc_pages()
2044 (void) page_create_wait(npgs, PG_WAIT); in page_alloc_pages()
2046 while (npgs && szc) { in page_alloc_pages()
2062 ASSERT(npgs >= curnpgs); in page_alloc_pages()
2063 npgs -= curnpgs; in page_alloc_pages()
2071 ASSERT(npgs == totpgs); in page_alloc_pages()
2072 page_create_putback(npgs); in page_alloc_pages()
2078 ASSERT(npgs != 0); in page_alloc_pages()
2079 page_create_putback(npgs); in page_alloc_pages()
2082 ASSERT(npgs == 0); in page_alloc_pages()
2087 npgs = totpgs - npgs; in page_alloc_pages()
2095 while (npgs != 0) { in page_alloc_pages()
2105 npgs--; in page_alloc_pages()
2113 ASSERT(npgs >= curnpgs); in page_alloc_pages()
2114 npgs -= curnpgs; in page_alloc_pages()
2122 npgs--; in page_alloc_pages()
4682 pgcnt_t npgs, i, j; in group_page_trylock() local
4701 npgs = page_get_pagecnt(pszc); in group_page_trylock()
4703 for (i = 1; i < npgs; i++, tpp++) { in group_page_trylock()
4717 for (i = 1; i < npgs; i++, tpp++) { in group_page_trylock()
4730 pgcnt_t npgs, i; in group_page_unlock() local
4735 npgs = page_get_pagecnt(pp->p_szc); in group_page_unlock()
4736 for (i = 1, tpp = pp + 1; i < npgs; i++, tpp++) { in group_page_unlock()
4769 spgcnt_t npgs, i; in do_page_relocate() local
4830 npgs = page_get_pagecnt(targ->p_szc); in do_page_relocate()
4833 dofree = npgs; /* Size of target page in MMU pages */ in do_page_relocate()
4892 for (i = 0; i < npgs; i++) { in do_page_relocate()
4935 for (i = 0; i < npgs; i++) { in do_page_relocate()
4969 *nrelocp = npgs; in do_page_relocate()
4998 pgcnt_t npgs = page_get_pagecnt(szc); in page_relocate() local
4999 ASSERT(npgs > 1); in page_relocate()
5007 npgs--; in page_relocate()
5009 ASSERT(npgs == 0); in page_relocate()
5011 npgs = page_get_pagecnt(szc); in page_relocate()
5012 page_create_putback(npgs); in page_relocate()
5063 spgcnt_t pgcnt, npgs; in page_relocate_cage() local
5084 result = page_relocate(&tpp, &rpp, 0, 1, &npgs, NULL); in page_relocate_cage()
5088 if (pgcnt != npgs) in page_relocate_cage()
5147 spgcnt_t npgs; in page_try_demote_free_pages() local
5157 npgs = page_get_pagecnt(pp->p_szc); in page_try_demote_free_pages()
5158 if (npgs == 1) { in page_try_demote_free_pages()
5162 if (!IS_P2ALIGNED(pfn, npgs)) { in page_try_demote_free_pages()
5163 pfn = P2ALIGN(pfn, npgs); in page_try_demote_free_pages()
5198 spgcnt_t i, npgs; in page_try_demote_pages() local
5222 npgs = page_get_pagecnt(pp->p_szc); in page_try_demote_pages()
5223 ASSERT(npgs > 1); in page_try_demote_pages()
5224 if (!IS_P2ALIGNED(pfn, npgs)) { in page_try_demote_pages()
5225 pfn = P2ALIGN(pfn, npgs); in page_try_demote_pages()
5243 for (tpp = rootpp, i = 0; i < npgs; i++, tpp++) { in page_try_demote_pages()
5257 if (i < npgs) { in page_try_demote_pages()
5268 for (tpp = rootpp, i = 0; i < npgs; i++, tpp++) { in page_try_demote_pages()
5278 for (tpp = rootpp, i = 0; i < npgs; i++, tpp++) { in page_try_demote_pages()