Searched defs:npgs (Results 1 - 25 of 35) 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 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);
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...]
/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/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/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/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/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/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)));
/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/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/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/
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/ngdr/io/
H A Ddr_mem.c1075 pgcnt_t npgs; local
1080 npgs = _b64top(ml->ml_size);
1082 rv = kphysm_add_memory_dynamic(base, npgs);
1097 f, rv, base, npgs);
2005 PR_MEM("%s: %s (basepfn = 0x%lx, npgs = %ld)\n",
2014 pgcnt_t npgs; local
2027 npgs = _b64top(mc->ml_size);
2029 err = kphysm_del_span(*mhp, base, npgs);
2034 f, err, base, npgs);
/illumos-gate/usr/src/uts/sun4u/opl/io/
H A Ddr_mem.c1077 pgcnt_t npgs; local
1082 npgs = _b64top(ml->ml_size);
1084 rv = kphysm_add_memory_dynamic(base, npgs);
1099 f, rv, base, npgs);
2077 PR_MEM("%s: %s (basepfn = 0x%lx, npgs = %ld)\n",
2086 pgcnt_t npgs; local
2099 npgs = _b64top(mc->ml_size);
2101 err = kphysm_del_span(*mhp, base, npgs);
2106 f, err, base, npgs);
/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/i86xpv/os/
H A Dxen_machdep.c1154 pgcnt_t npgs; local
1165 npgs = mmu_btop(lsize);
1166 while (npgs--) {
/illumos-gate/usr/src/uts/common/os/
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/sun4u/serengeti/os/
H A Dserengeti.c413 pgcnt_t npgs; local
422 npgs = 1ull << PFN_SLICE_SHIFT;
423 mem_node_add_slice(basepfn, basepfn + npgs - 1);
/illumos-gate/usr/src/uts/sun4u/sunfire/sys/
H A Dac.h379 uint_t npgs; member in struct:ac_memx_relocate_stats
/illumos-gate/usr/src/uts/sun4u/lw8/os/
H A Dlw8_platmod.c420 pgcnt_t npgs; local
429 npgs = 1ull << PFN_SLICE_SHIFT;
430 mem_node_add_slice(basepfn, basepfn + npgs - 1);

Completed in 204 milliseconds

12