Home
last modified time | relevance | path

Searched refs:metapgs (Results 1 – 3 of 3) sorted by relevance

/titanic_50/usr/src/uts/sun4v/os/
H A Dmemseg.c78 pgcnt_t metapgs; in memseg_alloc_meta() local
91 metapgs = btopr(npgs * sizeof (page_t)); in memseg_alloc_meta()
115 metapgs--; in memseg_alloc_meta()
131 metapgs--; in memseg_alloc_meta()
142 for (i = 0; i < metapgs; i++) in memseg_alloc_meta()
151 if ((page_create_va(&mpvp, (u_offset_t)pp, ptob(metapgs), in memseg_alloc_meta()
154 metapgs); in memseg_alloc_meta()
162 *metap = metapgs; in memseg_alloc_meta()
168 memseg_free_meta(void *ptp, pgcnt_t metapgs) in memseg_free_meta() argument
174 if (!metapgs) in memseg_free_meta()
[all …]
/titanic_50/usr/src/uts/i86xpv/os/
H A Dballoon.c204 pgcnt_t metapgs, totalpgs, num_pages; in balloon_init_new_pages() local
221 metapgs = totalpgs - (((uint64_t)(totalpgs) << PAGESHIFT) / in balloon_init_new_pages()
229 if ((metapgs << PAGESHIFT) < (totalpgs * sizeof (page_t) + in balloon_init_new_pages()
231 metapgs++; in balloon_init_new_pages()
239 if (metapgs > count) in balloon_init_new_pages()
240 metapgs = count; in balloon_init_new_pages()
248 metasz = pfn_to_pa(metapgs); in balloon_init_new_pages()
252 num_pages, pgcnt_t, metapgs); in balloon_init_new_pages()
277 locked = balloon_lock_contig_pfnlist(metapgs); in balloon_init_new_pages()
278 for (i = 0; i < metapgs; i++) { in balloon_init_new_pages()
[all …]
/titanic_50/usr/src/uts/common/os/
H A Dmem_config.c134 pgcnt_t metapgs = 0; in kphysm_add_memory_dynamic() local
193 rv = memseg_alloc_meta(base, npgs, &metabase, &metapgs); in kphysm_add_memory_dynamic()
195 ASSERT(metapgs); in kphysm_add_memory_dynamic()
196 ASSERT(btopr(npgs * sizeof (page_t)) <= metapgs); in kphysm_add_memory_dynamic()
212 metapgs = npgs - (((uint64_t)(npgs) << PAGESHIFT) / in kphysm_add_memory_dynamic()
215 npgs -= metapgs; in kphysm_add_memory_dynamic()
216 base += metapgs; in kphysm_add_memory_dynamic()
218 ASSERT(btopr(npgs * sizeof (page_t)) <= metapgs); in kphysm_add_memory_dynamic()
220 exhausted = (metapgs == 0 || npgs == 0); in kphysm_add_memory_dynamic()
248 metapgs = btopr(ptsz + nkpmpgs_prelim * KPMPAGE_T_SZ); in kphysm_add_memory_dynamic()
[all …]