Lines Matching refs:metapgs

134 	pgcnt_t		metapgs = 0;
193 rv = memseg_alloc_meta(base, npgs, &metabase, &metapgs);
195 ASSERT(metapgs);
196 ASSERT(btopr(npgs * sizeof (page_t)) <= metapgs);
212 metapgs = npgs - (((uint64_t)(npgs) << PAGESHIFT) /
215 npgs -= metapgs;
216 base += metapgs;
218 ASSERT(btopr(npgs * sizeof (page_t)) <= metapgs);
220 exhausted = (metapgs == 0 || npgs == 0);
248 metapgs = btopr(ptsz + nkpmpgs_prelim * KPMPAGE_T_SZ);
249 exhausted = (tpgs <= metapgs);
251 npgs = tpgs - metapgs;
252 base = pt_base + metapgs;
284 mapva = vmem_alloc(heap_arena, ptob(metapgs), VM_NOSLEEP);
290 memseg_free_meta(metabase, metapgs);
306 for (pnum = 0; pnum < metapgs; pnum++) {
323 hat_unload(kas.a_hat, (caddr_t)pp, ptob(metapgs),
326 vmem_free(heap_arena, mapva, ptob(metapgs));
328 memseg_free_meta(metabase, metapgs);
361 hat_unload(kas.a_hat, (caddr_t)pp, ptob(metapgs),
364 vmem_free(heap_arena, mapva, ptob(metapgs));
366 memseg_free_meta(metabase, metapgs);
398 seg = memseg_reuse(metapgs);
445 bzero((caddr_t)pp, ptob(metapgs));
464 for (pnum = 0; pnum < metapgs; pnum++) {
475 hat_unload(kas.a_hat, (caddr_t)opp, ptob(metapgs),
478 vmem_free(heap_arena, mapva, ptob(metapgs));
608 memseg_reuse(pgcnt_t metapgs)
622 type = metapgs ? MEMSEG_META_INCL : MEMSEG_META_ALLOC;
636 if (!metapgs || btopr(end - (caddr_t)seg->pages) == metapgs) {
2565 remap_to_dummy(caddr_t va, pgcnt_t metapgs)
2581 while (metapgs != 0) {
2586 if (n > metapgs)
2587 n = metapgs;
2596 metapgs -= n;
2604 pgcnt_t metapgs;
2616 metapgs = seg->pages_base - memseg_get_start(seg);
2617 ASSERT(metapgs != 0);
2621 remap_to_dummy(pp, metapgs);