Lines Matching refs:npages
266 static pgcnt_t npages;
726 calc_pp_sz(pgcnt_t npages)
729 return (npages * sizeof (struct page));
733 calc_kpmpp_sz(pgcnt_t npages)
750 kpm_npages = npages;
756 calc_pagehash_sz(pgcnt_t npages)
764 page_hashsz = npages / PAGE_HASHAVELEN;
801 if (mmu_btop(alignsize) > (npages >> 2))
921 * to the system and reflected in npages by the time we see it.
1044 * npages is the maximum of available physical memory possible.
1051 npages = physinstalled - btop(MMU_PAGESIZE4M);
1062 if (ndata_alloc_tsbs(&ndata, npages) != 0)
1107 alloc_base = contig_mem_prealloc(alloc_base, npages);
1130 pp_sz = calc_pp_sz(npages);
1133 kpm_pp_sz = calc_kpmpp_sz(npages);
1137 hmehash_sz = calc_hmehash_sz(npages);
1140 pagehash_sz = calc_pagehash_sz(npages);
1156 pse_shift = size_pse_array(npages, max_ncpus);
1229 npages -= kmem64_sz / (PAGESIZE + sizeof (struct page));
1231 npages -= kmem64_sz / (PAGESIZE + sizeof (struct page) +
1234 pp_sz = npages * sizeof (struct page);
1252 PRM_DEBUG(npages);
1260 kpm_npages = ptokpmpr(npages);
1318 if (physmem == 0 || physmem > npages)
1319 physmem = npages;
1887 if (physmem + ramdisk_npages < npages) {
1895 diff = npages - (physmem + ramdisk_npages);
2734 ppleft = npages;