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

12

/illumos-gate/usr/src/uts/sun4/os/
H A Dmem_config_arch.c37 arch_kphysm_del_span_ok(pfn_t base, pgcnt_t npgs) argument
39 ASSERT(npgs != 0);
45 arch_kphysm_relocate(pfn_t base, pgcnt_t npgs) argument
47 ASSERT(npgs != 0);
H A Dlgrpplat.c201 pgcnt_t npgs = (pgcnt_t)0; local
215 npgs = MNODE_PGCNT(mnode);
218 npgs = mem_node_memlist_pages(mnode,
222 npgs = mem_node_memlist_pages(mnode,
230 return (npgs);
276 pgcnt_t npgs = 0; local
284 npgs += btop(mlist->ml_size);
286 return (npgs);
290 npgs += btop(mlist->ml_size);
292 return (npgs);
[all...]
H A Dmemnode.c191 pgcnt_t npgs; local
204 npgs = btop(list->size);
205 mem_node_add_range(basepfn, basepfn + npgs - 1);
253 pgcnt_t npgs = 0; local
263 npgs += pages;
267 return (npgs);
280 npgs = npgs + (MIN(cur_end, end) -
286 return (npgs);
/illumos-gate/usr/src/uts/i86pc/os/
H A Dmem_config_arch.c38 arch_kphysm_del_span_ok(pfn_t base, pgcnt_t npgs) argument
40 ASSERT(npgs != 0);
46 arch_kphysm_relocate(pfn_t base, pgcnt_t npgs) argument
48 ASSERT(npgs != 0);
H A Dmemnode.c263 pgcnt_t npgs; local
268 npgs = 0;
277 npgs = npgs + (MIN(cur_end, end) -
283 return (npgs);
/illumos-gate/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 *);
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dac_stat.c70 pgcnt_t npgs; local
131 npgs = bank_size >> PAGESHIFT;
136 ret = kphysm_del_span_query(base, npgs, &memq);
146 query_checker(base, npgs, &memq);
147 if (memq.phys_pages != npgs) {
153 "memq.phys_pages != npgs (%ld != %ld)",
154 (u_long)memq.phys_pages, (u_long)npgs);
168 statp->phys_pages = npgs;
230 pgcnt_t npgs,
241 all_pop = (mqp->phys_pages == npgs);
228 query_checker( pfn_t base, pgcnt_t npgs, memquery_t *mqp) argument
[all...]
H A Dac_del.c217 pgcnt_t npgs; local
241 npgs = bank_size >> PAGESHIFT;
246 ret = kcage_range_delete(base, npgs);
257 if ((errs = kphysm_del_span(handle, base, npgs)) != KPHYSM_OK) {
264 errs = kcage_range_add(base, npgs, KCAGE_DOWN);
287 pgcnt_t npgs; local
299 npgs = bank_size >> PAGESHIFT;
306 errs = kcage_range_add(base, npgs, KCAGE_DOWN);
H A Dac.c1406 pgcnt_t npgs; local
1419 npgs = bank_size >> PAGESHIFT;
1422 npgs = 0;
1429 if (npgs == 0 ||
1438 rstat.npgs = (uint_t)npgs;
1439 pglim = base + npgs;
1463 spgcnt_t npgs; local
1468 &npgs, NULL);
1470 while (npgs
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dmem_config.c68 static int kphysm_split_memseg(pfn_t base, pgcnt_t npgs);
117 * npgs: length in PAGESIZE pages.
125 kphysm_add_memory_dynamic(pfn_t base, pgcnt_t npgs) argument
133 pgcnt_t tpgs = npgs;
151 npgs << (PAGESHIFT - 10), (uint64_t)base << PAGESHIFT);
156 if (!delspan_reserve(base, npgs)) {
193 rv = memseg_alloc_meta(base, npgs, &metabase, &metapgs);
196 ASSERT(btopr(npgs * sizeof (page_t)) <= metapgs);
212 metapgs = npgs - (((uint64_t)(npgs) << PAGESHIF
875 span_to_install(pfn_t base, pgcnt_t npgs) argument
1002 delspan_remove( struct transit_list *my_tlp, pfn_t base, pgcnt_t npgs) argument
1054 delspan_reserve(pfn_t base, pgcnt_t npgs) argument
1069 delspan_unreserve(pfn_t base, pgcnt_t npgs) argument
1084 kphysm_del_span( memhandle_t handle, pfn_t base, pgcnt_t npgs) argument
1269 kphysm_del_span_query( pfn_t base, pgcnt_t npgs, memquery_t *mqp) argument
1548 can_remove_pgs(pgcnt_t npgs) argument
1563 get_availrmem(pgcnt_t npgs) argument
1576 put_availrmem(pgcnt_t npgs) argument
2650 pgcnt_t npgs; local
3103 kphysm_split_memseg( pfn_t base, pgcnt_t npgs) argument
[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) argument
421 ASSERT(npgs != 0);
422 if (npgs == 0)
425 lim = base + npgs;
466 kcage_range_add(pfn_t base, pgcnt_t npgs, kcage_dir_t d) argument
471 ret = kcage_range_add_internal(base, npgs, d);
480 kcage_range_delete_internal(pfn_t base, pgcnt_t npgs) argument
487 ASSERT(npgs !
530 kcage_range_delete(pfn_t base, pgcnt_t npgs) argument
546 kcage_range_delete_post_mem_del_internal(pfn_t base, pgcnt_t npgs) argument
566 kcage_range_delete_post_mem_del(pfn_t base, pgcnt_t npgs) argument
1311 pgcnt_t npgs, i; local
1562 spgcnt_t npgs; local
[all...]
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmemseg.c75 memseg_alloc_meta(pfn_t base, pgcnt_t npgs, void **ptp, pgcnt_t *metap) argument
86 if ((base + npgs) * sizeof (page_t) > ppvm_size)
90 epp = pp + npgs;
91 metapgs = btopr(npgs * sizeof (page_t));
/illumos-gate/usr/src/uts/sun4v/promif/
H A Dpromif_emul.c237 int npgs, nunmapped, nfreed, nskipped, nskipped_io; local
273 npgs = mmu_btopr(COMBINE(promt->size_hi, promt->size_lo));
275 if (npgs > 1) {
276 PMFREE_DEBUG("large trans vaddr=0x%lx, npgs=%d\n",
277 vaddr, npgs);
279 for (j = 0; j < npgs; j++) {
/illumos-gate/usr/src/uts/sun4v/io/
H A Ddr_mem.c1107 mem_add(pfn_t base, pgcnt_t npgs) argument
1111 DR_DBG_MEM("%s: begin base=0x%lx npgs=0x%lx\n", __func__, base, npgs);
1113 if (npgs == 0)
1116 rv = kphysm_add_memory_dynamic(base, npgs);
1117 DR_DBG_MEM("%s: kphysm_add(0x%lx, 0x%lx) = %d", __func__, base, npgs,
1120 if (rc = kcage_range_add(base, npgs, KCAGE_DOWN))
1140 mem_del(pfn_t base, pgcnt_t npgs) argument
1150 DR_DBG_MEM("%s: begin base=0x%lx npgs=0x%lx\n", __func__, base, npgs);
[all...]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_reloc.c196 size_t npgs; local
202 npgs = IOMMU_BTOPR(length);
209 iommu_remap_pages(iommu_p, mp, dvma_pg, npgs, idx);
228 DEBUG3(DBG_FAST_DVMA, dip, "fast remap index=%x: %p, npgs=%x", index,
349 size_t npgs = fdvma_p->pagecnt[index]; local
353 ASSERT(index + npgs <= mp->dmai_ndvmapages);
356 for (i = 0; i < npgs && pci_dvma_remap_enabled;
/illumos-gate/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];
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_pagelist.c942 pgcnt_t npgs; local
973 npgs = roundup(physmax, PC_BASE_ALIGN) - newbase;
996 pcsz = npgs >> PAGE_BSZS_SHIFT(r);
1091 pcsz = npgs >> PAGE_COUNTERS_SHIFT(mnode, r);
1096 (newbase + npgs > oldbase)) {
1319 spgcnt_t npgs = page_get_pagecnt(pp->p_szc); local
1322 if (npgs == 1) {
1332 ASSERT(IS_P2ALIGNED(pp->p_pagenum, npgs));
1334 ASSERT(pp->p_prev->p_pagenum == (pp->p_pagenum + (npgs - 1)));
1335 ASSERT(pp->p_prev == (pp + (npgs
1969 pgcnt_t new_npgs, npgs; local
2154 pgcnt_t npgs, n; local
2437 pgcnt_t npgs; local
2652 pgcnt_t npgs; local
3218 spgcnt_t pgcnt, npgs, i; local
4143 spgcnt_t npgs, pg_cnt; local
[all...]
H A Dvm_page.c1988 pgcnt_t npgs, curnpgs, totpgs; local
2029 totpgs = curnpgs = npgs = pgsz >> PAGESHIFT;
2033 (void) page_create_wait(npgs, PG_WAIT);
2035 while (npgs && szc) {
2051 ASSERT(npgs >= curnpgs);
2052 npgs -= curnpgs;
2060 ASSERT(npgs == totpgs);
2061 page_create_putback(npgs);
2067 ASSERT(npgs != 0);
2068 page_create_putback(npgs);
4671 pgcnt_t npgs, i, j; local
4719 pgcnt_t npgs, i; local
4758 spgcnt_t npgs, i; local
4987 pgcnt_t npgs = page_get_pagecnt(szc); local
5052 spgcnt_t pgcnt, npgs; local
5136 spgcnt_t npgs; local
5187 spgcnt_t i, npgs; local
[all...]
H A Dvm_anon.c2228 * skip npgs - 1 iterations and continue which will
2231 spgcnt_t npgs = nreloc; local
2237 ASSERT(pg_idx + npgs <= pgcnt);
2239 anon_share(amp->ahp, an_idx, npgs)) {
2242 pg_idx += npgs;
2243 an_idx += npgs;
2244 vaddr += PAGESIZE * npgs;
2860 pgcnt_t npgs, pg_cnt; local
2875 npgs = btopr(len);
2887 while (npgs) {
3085 pgcnt_t npgs; local
[all...]
/illumos-gate/usr/src/uts/sun4u/cherrystone/os/
H A Dcherrystone.c443 pgcnt_t npgs; local
447 npgs = 1ull << PFN_SLICE_SHIFT;
453 mem_node_add_slice(basepfn, basepfn + npgs - 1);
/illumos-gate/usr/src/uts/sun4u/daktari/os/
H A Ddaktari.c436 pgcnt_t npgs; local
440 npgs = 1ull << PFN_SLICE_SHIFT;
446 mem_node_add_slice(basepfn, basepfn + npgs - 1);
/illumos-gate/usr/src/uts/sun4u/os/
H A Dmemscrub.c763 uint_t *npgs)
897 *npgs += pages;
1359 uint_t npgs; local
1365 npgs = 0;
1369 (pgcnt_t)(src->ml_size >> PAGESHIFT), &list, &npgs)) {
1384 memscrub_phys_pages = npgs;
759 memscrub_add_span_gen( pfn_t pfn, pgcnt_t pages, struct memlist **list, uint_t *npgs) argument
/illumos-gate/usr/src/uts/sun4u/io/
H A Dsbd_mem.c496 pgcnt_t npgs; local
500 npgs = _b64top(ml->ml_size);
504 umb.u_len = (uint64_t)npgs << MMU_PAGESHIFT;
507 rv = kphysm_add_memory_dynamic(base, npgs);
516 f, rv, base, npgs);
520 rv = kcage_range_add(base, npgs, KCAGE_DOWN);
1478 PR_MEM("%s: board %d (basepfn = 0x%lx, npgs = 0x%lx interleave %d)\n",
1492 pgcnt_t npgs; local
1505 npgs = _b64top(mc->ml_size);
1507 err = kphysm_del_span(*mhp, base, npgs);
2321 pgcnt_t npgs; local
[all...]
/illumos-gate/usr/src/uts/sun4u/starcat/os/
H A Dstarcat.c323 pgcnt_t npgs; local
338 npgs = btop(list->size);
339 mem_node_add_slice(basepfn, basepfn + npgs - 1);
/illumos-gate/usr/src/uts/sun4u/starfire/io/
H A Didn_smr.c2135 pgcnt_t p, npgs; local
2145 npgs = btopr(blen);
2146 ASSERT(npgs != 0);
2148 PR_REMAP("%s: va = 0x%p, pfn = 0x%lx, npgs = %ld, mb = %d MB (%ld)\n",
2149 proc, (void *)vaddr, new_pfn, npgs, mblen, blen);
2166 for (p = 0; p < npgs; p++) {
2176 proc, npgs, btopr(MB2B(mblen)));

Completed in 156 milliseconds

12