Lines Matching refs:npgs
2009 pgcnt_t npgs, curnpgs, totpgs; in page_alloc_pages() local
2050 totpgs = curnpgs = npgs = pgsz >> PAGESHIFT; in page_alloc_pages()
2054 (void) page_create_wait(npgs, PG_WAIT); in page_alloc_pages()
2056 while (npgs && szc) { in page_alloc_pages()
2072 ASSERT(npgs >= curnpgs); in page_alloc_pages()
2073 npgs -= curnpgs; in page_alloc_pages()
2081 ASSERT(npgs == totpgs); in page_alloc_pages()
2082 page_create_putback(npgs); in page_alloc_pages()
2088 ASSERT(npgs != 0); in page_alloc_pages()
2089 page_create_putback(npgs); in page_alloc_pages()
2092 ASSERT(npgs == 0); in page_alloc_pages()
2097 npgs = totpgs - npgs; in page_alloc_pages()
2105 while (npgs != 0) { in page_alloc_pages()
2115 npgs--; in page_alloc_pages()
2123 ASSERT(npgs >= curnpgs); in page_alloc_pages()
2124 npgs -= curnpgs; in page_alloc_pages()
2132 npgs--; in page_alloc_pages()
4712 pgcnt_t npgs, i, j; in group_page_trylock() local
4731 npgs = page_get_pagecnt(pszc); in group_page_trylock()
4733 for (i = 1; i < npgs; i++, tpp++) { in group_page_trylock()
4747 for (i = 1; i < npgs; i++, tpp++) { in group_page_trylock()
4760 pgcnt_t npgs, i; in group_page_unlock() local
4765 npgs = page_get_pagecnt(pp->p_szc); in group_page_unlock()
4766 for (i = 1, tpp = pp + 1; i < npgs; i++, tpp++) { in group_page_unlock()
4799 spgcnt_t npgs, i; in do_page_relocate() local
4860 npgs = page_get_pagecnt(targ->p_szc); in do_page_relocate()
4863 dofree = npgs; /* Size of target page in MMU pages */ in do_page_relocate()
4918 for (i = 0; i < npgs; i++) { in do_page_relocate()
4961 for (i = 0; i < npgs; i++) { in do_page_relocate()
4995 *nrelocp = npgs; in do_page_relocate()
5024 pgcnt_t npgs = page_get_pagecnt(szc); in page_relocate() local
5025 ASSERT(npgs > 1); in page_relocate()
5033 npgs--; in page_relocate()
5035 ASSERT(npgs == 0); in page_relocate()
5037 npgs = page_get_pagecnt(szc); in page_relocate()
5038 page_create_putback(npgs); in page_relocate()
5089 spgcnt_t pgcnt, npgs; in page_relocate_cage() local
5110 result = page_relocate(&tpp, &rpp, 0, 1, &npgs, NULL); in page_relocate_cage()
5114 if (pgcnt != npgs) in page_relocate_cage()
5173 spgcnt_t npgs; in page_try_demote_free_pages() local
5183 npgs = page_get_pagecnt(pp->p_szc); in page_try_demote_free_pages()
5184 if (npgs == 1) { in page_try_demote_free_pages()
5188 if (!IS_P2ALIGNED(pfn, npgs)) { in page_try_demote_free_pages()
5189 pfn = P2ALIGN(pfn, npgs); in page_try_demote_free_pages()
5224 spgcnt_t i, npgs; in page_try_demote_pages() local
5248 npgs = page_get_pagecnt(pp->p_szc); in page_try_demote_pages()
5249 ASSERT(npgs > 1); in page_try_demote_pages()
5250 if (!IS_P2ALIGNED(pfn, npgs)) { in page_try_demote_pages()
5251 pfn = P2ALIGN(pfn, npgs); in page_try_demote_pages()
5269 for (tpp = rootpp, i = 0; i < npgs; i++, tpp++) { in page_try_demote_pages()
5283 if (i < npgs) { in page_try_demote_pages()
5294 for (tpp = rootpp, i = 0; i < npgs; i++, tpp++) { in page_try_demote_pages()
5304 for (tpp = rootpp, i = 0; i < npgs; i++, tpp++) { in page_try_demote_pages()