Home
last modified time | relevance | path

Searched refs:npgs (Results 1 – 25 of 38) sorted by relevance

12

/titanic_50/usr/src/uts/sun4/os/
H A Dlgrpplat.c201 pgcnt_t npgs = (pgcnt_t)0; in lgrp_plat_mem_size() local
215 npgs = MNODE_PGCNT(mnode); in lgrp_plat_mem_size()
218 npgs = mem_node_memlist_pages(mnode, in lgrp_plat_mem_size()
222 npgs = mem_node_memlist_pages(mnode, in lgrp_plat_mem_size()
230 return (npgs); in lgrp_plat_mem_size()
276 pgcnt_t npgs = 0; in lgrp_plat_mem_size_default() local
284 npgs += btop(mlist->ml_size); in lgrp_plat_mem_size_default()
286 return (npgs); in lgrp_plat_mem_size_default()
290 npgs += btop(mlist->ml_size); in lgrp_plat_mem_size_default()
292 return (npgs); in lgrp_plat_mem_size_default()
H A Dmem_config_arch.c37 arch_kphysm_del_span_ok(pfn_t base, pgcnt_t npgs) in arch_kphysm_del_span_ok() argument
39 ASSERT(npgs != 0); in arch_kphysm_del_span_ok()
45 arch_kphysm_relocate(pfn_t base, pgcnt_t npgs) in arch_kphysm_relocate() argument
47 ASSERT(npgs != 0); in arch_kphysm_relocate()
H A Dmemnode.c191 pgcnt_t npgs; in startup_build_mem_nodes() local
204 npgs = btop(list->size); in startup_build_mem_nodes()
205 mem_node_add_range(basepfn, basepfn + npgs - 1); in startup_build_mem_nodes()
253 pgcnt_t npgs = 0; in mem_node_memlist_pages() local
263 npgs += pages; in mem_node_memlist_pages()
267 return (npgs); in mem_node_memlist_pages()
280 npgs = npgs + (MIN(cur_end, end) - in mem_node_memlist_pages()
286 return (npgs); in mem_node_memlist_pages()
/titanic_50/usr/src/uts/i86pc/os/
H A Dmem_config_arch.c38 arch_kphysm_del_span_ok(pfn_t base, pgcnt_t npgs) in arch_kphysm_del_span_ok() argument
40 ASSERT(npgs != 0); in arch_kphysm_del_span_ok()
46 arch_kphysm_relocate(pfn_t base, pgcnt_t npgs) in arch_kphysm_relocate() argument
48 ASSERT(npgs != 0); in arch_kphysm_relocate()
H A Dmemnode.c263 pgcnt_t npgs; in mem_node_memlist_pages() local
268 npgs = 0; in mem_node_memlist_pages()
277 npgs = npgs + (MIN(cur_end, end) - in mem_node_memlist_pages()
283 return (npgs); in mem_node_memlist_pages()
/titanic_50/usr/src/uts/sun4u/sunfire/io/
H A Dac_stat.c70 pgcnt_t npgs; in ac_mem_stat() local
131 npgs = bank_size >> PAGESHIFT; in ac_mem_stat()
136 ret = kphysm_del_span_query(base, npgs, &memq); in ac_mem_stat()
146 query_checker(base, npgs, &memq); in ac_mem_stat()
147 if (memq.phys_pages != npgs) { in ac_mem_stat()
154 (u_long)memq.phys_pages, (u_long)npgs); in ac_mem_stat()
168 statp->phys_pages = npgs; in ac_mem_stat()
230 pgcnt_t npgs, in query_checker() argument
241 all_pop = (mqp->phys_pages == npgs); in query_checker()
248 for (abase = base, n = npgs; n != 0; abase++, n--) { in query_checker()
H A Dac_del.c217 pgcnt_t npgs; in ac_del_bank_add_span() local
241 npgs = bank_size >> PAGESHIFT; in ac_del_bank_add_span()
246 ret = kcage_range_delete(base, npgs); in ac_del_bank_add_span()
257 if ((errs = kphysm_del_span(handle, base, npgs)) != KPHYSM_OK) { in ac_del_bank_add_span()
264 errs = kcage_range_add(base, npgs, KCAGE_DOWN); in ac_del_bank_add_span()
287 pgcnt_t npgs; in ac_del_bank_add_cage() local
299 npgs = bank_size >> PAGESHIFT; in ac_del_bank_add_cage()
306 errs = kcage_range_add(base, npgs, KCAGE_DOWN); in ac_del_bank_add_cage()
H A Dac.c1406 pgcnt_t npgs; in ac_mem_exercise() local
1419 npgs = bank_size >> PAGESHIFT; in ac_mem_exercise()
1422 npgs = 0; in ac_mem_exercise()
1429 if (npgs == 0 || in ac_mem_exercise()
1438 rstat.npgs = (uint_t)npgs; in ac_mem_exercise()
1439 pglim = base + npgs; in ac_mem_exercise()
1463 spgcnt_t npgs; in ac_mem_exercise() local
1468 &npgs, NULL); in ac_mem_exercise()
1470 while (npgs-- > 0) { in ac_mem_exercise()
/titanic_50/usr/src/uts/common/os/
H A Dmem_config.c68 static int kphysm_split_memseg(pfn_t base, pgcnt_t npgs);
125 kphysm_add_memory_dynamic(pfn_t base, pgcnt_t npgs) in kphysm_add_memory_dynamic() argument
133 pgcnt_t tpgs = npgs; in kphysm_add_memory_dynamic()
151 npgs << (PAGESHIFT - 10), (uint64_t)base << PAGESHIFT); in kphysm_add_memory_dynamic()
156 if (!delspan_reserve(base, npgs)) { in kphysm_add_memory_dynamic()
193 rv = memseg_alloc_meta(base, npgs, &metabase, &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()
218 ASSERT(btopr(npgs * sizeof (page_t)) <= metapgs); in kphysm_add_memory_dynamic()
[all …]
H A Dmem_cage.c239 static int kcage_range_add_internal(pfn_t base, pgcnt_t npgs, kcage_dir_t);
241 static int kcage_range_delete_internal(pfn_t base, pgcnt_t npgs);
414 kcage_range_add_internal(pfn_t base, pgcnt_t npgs, kcage_dir_t d) in kcage_range_add_internal() argument
421 ASSERT(npgs != 0); in kcage_range_add_internal()
422 if (npgs == 0) in kcage_range_add_internal()
425 lim = base + npgs; in kcage_range_add_internal()
466 kcage_range_add(pfn_t base, pgcnt_t npgs, kcage_dir_t d) in kcage_range_add() argument
471 ret = kcage_range_add_internal(base, npgs, d); in kcage_range_add()
480 kcage_range_delete_internal(pfn_t base, pgcnt_t npgs) in kcage_range_delete_internal() argument
487 ASSERT(npgs != 0); in kcage_range_delete_internal()
[all …]
/titanic_50/usr/src/uts/common/sys/
H A Dmem_config.h45 extern int kphysm_add_memory_dynamic(pfn_t base, pgcnt_t npgs);
71 extern int kphysm_del_span(memhandle_t, pfn_t base, pgcnt_t npgs);
73 extern int kphysm_del_span_query(pfn_t base, pgcnt_t npgs, memquery_t *);
/titanic_50/usr/src/uts/sun4v/io/
H A Ddr_mem.c1107 mem_add(pfn_t base, pgcnt_t npgs) in mem_add() argument
1111 DR_DBG_MEM("%s: begin base=0x%lx npgs=0x%lx\n", __func__, base, npgs); in mem_add()
1113 if (npgs == 0) in mem_add()
1116 rv = kphysm_add_memory_dynamic(base, npgs); in mem_add()
1117 DR_DBG_MEM("%s: kphysm_add(0x%lx, 0x%lx) = %d", __func__, base, npgs, in mem_add()
1120 if (rc = kcage_range_add(base, npgs, KCAGE_DOWN)) in mem_add()
1140 mem_del(pfn_t base, pgcnt_t npgs) in mem_del() argument
1150 DR_DBG_MEM("%s: begin base=0x%lx npgs=0x%lx\n", __func__, base, npgs); in mem_del()
1152 if (npgs == 0) in mem_del()
1160 if ((rv = kphysm_del_span_query(base, npgs, &mq)) in mem_del()
[all …]
/titanic_50/usr/src/uts/sun4v/os/
H A Dmemseg.c75 memseg_alloc_meta(pfn_t base, pgcnt_t npgs, void **ptp, pgcnt_t *metap) in memseg_alloc_meta() argument
86 if ((base + npgs) * sizeof (page_t) > ppvm_size) in memseg_alloc_meta()
90 epp = pp + npgs; in memseg_alloc_meta()
91 metapgs = btopr(npgs * sizeof (page_t)); in memseg_alloc_meta()
/titanic_50/usr/src/uts/common/vm/
H A Dvm_pagelist.c942 pgcnt_t npgs; in page_ctrs_adjust() local
973 npgs = roundup(physmax, PC_BASE_ALIGN) - newbase; in page_ctrs_adjust()
996 pcsz = npgs >> PAGE_BSZS_SHIFT(r); in page_ctrs_adjust()
1091 pcsz = npgs >> PAGE_COUNTERS_SHIFT(mnode, r); in page_ctrs_adjust()
1096 (newbase + npgs > oldbase)) { in page_ctrs_adjust()
1319 spgcnt_t npgs = page_get_pagecnt(pp->p_szc); in chk_lpg() local
1322 if (npgs == 1) { in chk_lpg()
1332 ASSERT(IS_P2ALIGNED(pp->p_pagenum, npgs)); in chk_lpg()
1334 ASSERT(pp->p_prev->p_pagenum == (pp->p_pagenum + (npgs - 1))); in chk_lpg()
1335 ASSERT(pp->p_prev == (pp + (npgs - 1))); in chk_lpg()
[all …]
H A Dvm_page.c1988 pgcnt_t npgs, curnpgs, totpgs; in page_alloc_pages() local
2029 totpgs = curnpgs = npgs = pgsz >> PAGESHIFT; in page_alloc_pages()
2033 (void) page_create_wait(npgs, PG_WAIT); in page_alloc_pages()
2035 while (npgs && szc) { in page_alloc_pages()
2051 ASSERT(npgs >= curnpgs); in page_alloc_pages()
2052 npgs -= curnpgs; in page_alloc_pages()
2060 ASSERT(npgs == totpgs); in page_alloc_pages()
2061 page_create_putback(npgs); in page_alloc_pages()
2067 ASSERT(npgs != 0); in page_alloc_pages()
2068 page_create_putback(npgs); in page_alloc_pages()
[all …]
H A Dvm_anon.c2223 spgcnt_t npgs = nreloc; in anon_map_getpages() local
2229 ASSERT(pg_idx + npgs <= pgcnt); in anon_map_getpages()
2231 anon_share(amp->ahp, an_idx, npgs)) { in anon_map_getpages()
2234 pg_idx += npgs; in anon_map_getpages()
2235 an_idx += npgs; in anon_map_getpages()
2236 vaddr += PAGESIZE * npgs; in anon_map_getpages()
2852 pgcnt_t npgs, pg_cnt; in anon_map_createpages() local
2867 npgs = btopr(len); in anon_map_createpages()
2879 while (npgs) { in anon_map_createpages()
2925 npgs--; in anon_map_createpages()
[all …]
/titanic_50/usr/src/uts/sun4v/promif/
H A Dpromif_emul.c237 int npgs, nunmapped, nfreed, nskipped, nskipped_io; in unmap_prom_mappings() local
273 npgs = mmu_btopr(COMBINE(promt->size_hi, promt->size_lo)); in unmap_prom_mappings()
275 if (npgs > 1) { in unmap_prom_mappings()
277 vaddr, npgs); in unmap_prom_mappings()
279 for (j = 0; j < npgs; j++) { in unmap_prom_mappings()
/titanic_50/usr/src/uts/sun4u/io/pci/
H A Dpci_reloc.c196 size_t npgs; in pci_dvma_remap() local
202 npgs = IOMMU_BTOPR(length); in pci_dvma_remap()
209 iommu_remap_pages(iommu_p, mp, dvma_pg, npgs, idx); in pci_dvma_remap()
349 size_t npgs = fdvma_p->pagecnt[index]; in pci_fdvma_unregister_callbacks() local
353 ASSERT(index + npgs <= mp->dmai_ndvmapages); in pci_fdvma_unregister_callbacks()
356 for (i = 0; i < npgs && pci_dvma_remap_enabled; in pci_fdvma_unregister_callbacks()
/titanic_50/usr/src/cmd/pgstat/
H A Dpgstat.pl550 my $npgs = scalar @pgs;
557 $npgs = $show_top if $show_top < $npgs;
558 @sorted_pgs = @sorted_pgs[0..$npgs - 1];
677 my $npgs = scalar @pgs;
720 $npgs = $show_top if $show_top < $npgs;
721 @sorted_pgs = @sorted_pgs[0..$npgs - 1];
/titanic_50/usr/src/uts/sun4u/daktari/os/
H A Ddaktari.c436 pgcnt_t npgs; in plat_build_mem_nodes() local
440 npgs = 1ull << PFN_SLICE_SHIFT; in plat_build_mem_nodes()
446 mem_node_add_slice(basepfn, basepfn + npgs - 1); in plat_build_mem_nodes()
/titanic_50/usr/src/uts/sun4u/cherrystone/os/
H A Dcherrystone.c443 pgcnt_t npgs; in plat_build_mem_nodes() local
447 npgs = 1ull << PFN_SLICE_SHIFT; in plat_build_mem_nodes()
453 mem_node_add_slice(basepfn, basepfn + npgs - 1); in plat_build_mem_nodes()
/titanic_50/usr/src/uts/sun4u/os/
H A Dmemscrub.c763 uint_t *npgs) in memscrub_add_span_gen() argument
897 *npgs += pages; in memscrub_add_span_gen()
1359 uint_t npgs; in new_memscrub() local
1365 npgs = 0; in new_memscrub()
1369 (pgcnt_t)(src->ml_size >> PAGESHIFT), &list, &npgs)) { in new_memscrub()
1384 memscrub_phys_pages = npgs; in new_memscrub()
/titanic_50/usr/src/uts/sun4u/io/
H A Dsbd_mem.c496 pgcnt_t npgs; in sbd_add_memory_spans() local
500 npgs = _b64top(ml->ml_size); in sbd_add_memory_spans()
504 umb.u_len = (uint64_t)npgs << MMU_PAGESHIFT; in sbd_add_memory_spans()
507 rv = kphysm_add_memory_dynamic(base, npgs); in sbd_add_memory_spans()
516 f, rv, base, npgs); in sbd_add_memory_spans()
520 rv = kcage_range_add(base, npgs, KCAGE_DOWN); in sbd_add_memory_spans()
1492 pgcnt_t npgs; in sbd_reserve_mem_spans() local
1505 npgs = _b64top(mc->ml_size); in sbd_reserve_mem_spans()
1507 err = kphysm_del_span(*mhp, base, npgs); in sbd_reserve_mem_spans()
1512 f, err, base, npgs); in sbd_reserve_mem_spans()
[all …]
/titanic_50/usr/src/uts/sun4u/starcat/os/
H A Dstarcat.c323 pgcnt_t npgs; in plat_build_mem_nodes() local
338 npgs = btop(list->size); in plat_build_mem_nodes()
339 mem_node_add_slice(basepfn, basepfn + npgs - 1); in plat_build_mem_nodes()
/titanic_50/usr/src/uts/sun4u/starfire/io/
H A Didn_smr.c2135 pgcnt_t p, npgs; in smr_remap() local
2145 npgs = btopr(blen); in smr_remap()
2146 ASSERT(npgs != 0); in smr_remap()
2149 proc, (void *)vaddr, new_pfn, npgs, mblen, blen); in smr_remap()
2166 for (p = 0; p < npgs; p++) { in smr_remap()
2176 proc, npgs, btopr(MB2B(mblen))); in smr_remap()

12