/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_kmem.c | 444 pgcnt_t npages; local 465 npages = btopr(size); 469 for (pg = 0; pg < npages; pg++) { 495 while (npages--) { 682 pgcnt_t npages; local 696 npages = btopr(len); 697 nb = sizeof (page_t *) * npages; 703 for (pg = 0; pg < npages; pg++) { 719 for (pg = 0; pg < npages; pg++) { 864 pgcnt_t npages local 989 pgcnt_t npages = btopr(size); local 1087 kmem_getpages(pgcnt_t npages, int kmflag) argument 1093 kmem_freepages(void *addr, pgcnt_t npages) argument 1135 pgcnt_t npages = btopr(size); local 1424 pgcnt_t npages = btopr(size); local [all...] |
H A D | vm_page.c | 509 page_free_large_ctr(pgcnt_t npages) argument 514 freemem += npages; 516 lump = roundup(npages, pcf_fanout) / pcf_fanout; 518 while (npages > 0) { 522 if (lump < npages) { 524 npages -= lump; 526 p->pcf_count += (uint_t)npages; 527 npages = 0; 536 ASSERT(npages == 0); 1423 page_needfree(spgcnt_t npages) argument 1457 page_create_throttle(pgcnt_t npages, int flags) argument 1529 page_create_wait(pgcnt_t npages, uint_t flags) argument 1624 page_create_putback(spgcnt_t npages) argument 2130 pgcnt_t npages; local 2256 pgcnt_t npages; local 3676 page_list_break(page_t **oppp, page_t **nppp, pgcnt_t npages) argument 3910 page_resv(pgcnt_t npages, uint_t flags) argument 3934 page_unresv(pgcnt_t npages) argument 5546 page_migrate( struct seg *seg, caddr_t addr, page_t **ppa, pgcnt_t npages) argument 5702 page_reclaim_mem(pgcnt_t npages, pgcnt_t epages, int adjust) argument 7385 pcf_decrement_bucket(pgcnt_t npages) argument 7440 pcf_decrement_multiple(pgcnt_t *pcftotal_ret, pgcnt_t npages, int unlock) argument [all...] |
H A D | vpm.c | 168 long npages; local 241 npages = mmu_btop(vpm_cache_size); 249 vpmd_vpmap = kmem_alloc(sizeof (struct vpmap) * npages, KM_SLEEP); 250 for (vpm = &vpmd_vpmap[npages - 1]; vpm >= vpmd_vpmap; vpm--) { 1022 int npages = 0; local 1031 fetchpage, vml, MINVMAPS, &npages, rw); 1034 *newpage = npages; 1061 if (!fetchpage && npages &&
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_cpu.c | 354 pgcnt_t npages; member in struct:__anon9941 387 cpusram_map(&map.vaddr, &map.npages) != DDI_SUCCESS) { 400 cpusram_unmap(&map.vaddr, map.npages); 735 pgcnt_t npages; local 751 npages = mmu_btopr(SBDP_CPU_SRAM_SIZE + pgoffset); 753 kaddr = vmem_alloc(heap_arena, ptob(npages), VM_NOSLEEP); 761 hat_devload(kas.a_hat, kaddr, ptob(npages), pfn, mapping_attr, 765 *npp = npages; 771 cpusram_unmap(caddr_t *vaddrp, pgcnt_t npages) argument 780 hat_unload(kas.a_hat, base, ptob(npages), HAT_UNLOAD_UNLOC [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ldc_shm.c | 358 pgcnt_t npages; local 469 npages = (len+v_offset)/pg_size; 470 npages = ((len+v_offset)%pg_size == 0) ? npages : npages+1; 474 ldcp->id, vaddr, v_align, v_offset, npages); 479 if (npages > mtbl->num_avail) { 492 memseg->pages = kmem_zalloc((sizeof (ldc_page_t) * npages), KM_SLEEP); 494 kmem_zalloc((sizeof (ldc_mem_cookie_t) * npages), KM_SLEEP); 497 ldcp->id, npages); 872 pgcnt_t npages; local 1097 pgcnt_t npages; local 1268 uint64_t exp_size = 0, base_off, map_size, npages; local [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/ |
H A D | cmd_mem.c | 151 ulong_t npages = cmd_mem_get_phys_pages(hdl); local 154 fmd_hdl_debug(hdl, "thresh_check: npages is %lu\n", npages); 155 if (npages == 0) { 163 wrnpgs = npages * cmd.cmd_thresh_tpct_sysmem / 100000;
|
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | prtconf.c | 178 long pagesize, npages; local 361 npages = sysconf(_SC_PHYS_PAGES); 362 if (pagesize == -1 || npages == -1) { 371 int64_t ii = (int64_t)pagesize * npages;
|
/illumos-gate/usr/src/uts/sun4/io/ |
H A D | rootnex.c | 332 pgcnt_t npages; local 363 npages = mmu_btopr(rp->regspec_size + pgoffset); 366 "%lu pages physical %x.%lx ", npages, rp->regspec_bustype, 370 ptob(npages), VM_NOSLEEP)) == NULL) 376 hat_devload(kas.a_hat, kaddr, ptob(npages), pfn, 384 hp->ah_pnum = npages; 396 pgcnt_t npages; local 414 npages = mmu_btopr(rp->regspec_size + pgoffset); 415 hat_unload(kas.a_hat, base, ptob(npages), HAT_UNLOAD_UNLOCK); 416 vmem_free(rootnex_regspec_arena, base, ptob(npages)); [all...] |
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | immu_dvma.c | 934 uint64_t npages; local 964 npages = mp->ml_size/IMMU_PAGESIZE + 1; 967 dcookies[0].dck_npages = npages; 969 (void) dvma_map(domain, start, npages, dcookies, 982 npages = mp->ml_size/IMMU_PAGESIZE + 1; 985 dcookies[0].dck_npages = npages; 987 (void) dvma_map(domain, start, npages, 999 npages = mp->ml_size/IMMU_PAGESIZE + 1; 1002 dcookies[0].dck_npages = npages; 1004 (void) dvma_map(domain, start, npages, 1849 uint64_t npages; local 2423 dvma_alloc(domain_t *domain, ddi_dma_attr_t *dma_attr, uint_t npages, int kmf) argument 2539 dvma_free(domain_t *domain, uint64_t dvma, uint64_t npages) argument 2561 size_t npages, npgalloc; local 2736 uint64_t dvma, npages; local 2834 uint64_t npages; local [all...] |
H A D | immu_regs.c | 164 int npages; local 190 npages = npages_left; 191 for (npg_am = 0, npages >>= 1; npages; npages >>= 1, npg_am++) 198 npages = (1 << am); 199 npages_left -= npages; 200 dvma += (npages * IMMU_PAGESIZE);
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | startup.c | 266 static pgcnt_t npages; variable 726 calc_pp_sz(pgcnt_t npages) argument 729 return (npages * sizeof (struct page)); 733 calc_kpmpp_sz(pgcnt_t npages) argument 750 kpm_npages = npages; 756 calc_pagehash_sz(pgcnt_t npages) argument 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 i [all...] |
/illumos-gate/usr/src/uts/sun4v/vm/ |
H A D | mach_vm_dep.c | 429 pgcnt_t npages = btopr(size); local 446 if (page_resv(npages, vmflag & VM_KMFLAGS) == 0) { 460 page_unresv(npages); 465 ppa = kmem_zalloc(npages * sizeof (page_t *), KM_SLEEP); 495 kmem_free(ppa, npages * sizeof (page_t *)); 565 pgcnt_t npages = btopr(size); local 599 page_unresv(npages); 755 contig_mem_prealloc(caddr_t alloc_base, pgcnt_t npages) argument 761 (ptob(npages) * PREALLOC_PERCENT) / 100);
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | pmem.c | 276 * 'npages' physical memory pages for exporting to user land. The allocated 290 pgcnt_t npages = btopr(size); local 303 if (npages == 0 || npages >= total_pages / 2) 311 if (pmem_cookie_alloc(&pcp, npages, kflags) == DDI_FAILURE) 313 pcp->dp_npages = npages; 319 if (pmem_lock(npages, curproc) == DDI_FAILURE) 327 tpages = mpool_break(&tlist, npages); 333 if (tpages == npages) 336 rpages = npages 506 devmap_pmem_getpfns(devmap_pmem_cookie_t cookie, uint_t start, pgcnt_t npages, pfn_t *pfnarray) argument [all...] |
H A D | startup.c | 554 pgcnt_t npages; variable 1143 npages = physinstalled - 1; /* avail_filter() skips page 0, so "- 1" */ 1147 npages -= len >> MMU_PAGESHIFT; 1152 PRM_DEBUG(npages); 1159 if (physmem == 0 || physmem > npages) { 1160 physmem = npages; 1161 } else if (physmem < npages) { 1162 orig_npages = npages; 1163 npages = physmem; 1204 page_hashsz = npages / PAGE_HASHAVELE 2613 kphysm_init( page_t *pp, pgcnt_t npages) argument [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap_rcm.c | 52 long npages; member in union:__anon63::__anon64 194 cap = (void *)&(cp->type.npages); 886 long npages; local 897 ncpus = npages = 0; 922 npages += capinfo[i].type.npages; 929 if (npages && ((*rv = ap_rcm_cap_mem(a, rcm, hd, flags, rinfo, 930 CMD_RCM_CAP_DEL, npages)) != RCM_SUCCESS)) { 943 long npages; local 959 ncpus = npages 1044 long npages = 0; local [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/ |
H A D | mpool.h | 81 db_pgno_t npages; /* number of pages in the file */ member in struct:MPOOL
|
H A D | mpool.c | 88 mp->npages = sb.st_size / pagesize; 123 if (mp->npages == MAX_PAGE_NUMBER) { 138 mp->npages++; 141 bp->pgno = *pgnoaddr = mp->npages++; 479 (void)fprintf(stderr, "%lu pages in the file\n", mp->npages);
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | cpr_impl.c | 1163 pgcnt_t npages; local 1176 npages = mmu_btopr(sizeof (**basepp) * (pgcnt_t)chunks); 1180 npages = *pgsp + 1; 1186 descp = *basepp = kmem_alloc(mmu_ptob(npages), KM_NOSLEEP); 1192 *pgsp = npages; 1193 len = mmu_ptob(npages); 1195 CPR_DEBUG(CPR_DEBUG7, "npages 0x%lx, len 0x%lx, items 0x%lx\n\t*basepp " 1196 "%p, *endpp %p\n", npages, len, (len / (sizeof (**basepp))), 1198 i_cpr_storage_desc_init(descp, npages, end); 1203 i_cpr_storage_desc_init(csd_t *descp, pgcnt_t npages, csd_ argument 1508 pgcnt_t npages, pcnt, scnt, vcnt; local [all...] |
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_reloc.c | 216 size_t npages, size_t index, pfn_t newpfn) 229 kvaddr, npages); 230 if (index + npages > mp->dmai_ndvmapages) { 234 index, npages); 238 for (i = 0; i < npages; i++, kvaddr += IOMMU_PAGE_SIZE) { 215 pci_fdvma_remap(ddi_dma_impl_t *mp, caddr_t kvaddr, dvma_addr_t dvma_pg, size_t npages, size_t index, pfn_t newpfn) argument
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | shm.c | 852 size_t npages = btopr(size); local 853 size_t rsize = ptob(npages); 1124 lock_again(size_t npages, kshmid_t *sp, struct anon_map *amp) argument 1135 for (anon_idx = 0; npages != 0; anon_idx++, npages--) { 1164 size_t npages = btopr(amp->size); local 1173 sp->shm_lkpages = npages; 1188 lock_again(npages, sp, amp); 1204 pgcnt_t npages = sp->shm_lkpages; local 1216 for (anon_idx = 0; anon_idx < npages; anon_id [all...] |
H A D | mem_cage.c | 1184 kcage_create_throttle(pgcnt_t npages, int flags) argument 1204 if (kcage_freemem > kcage_throttlefree + npages) { 1228 while (kcage_freemem < kcage_throttlefree + npages) { 1233 kcage_needfree += npages; 1241 kcage_needfree -= npages; 1249 atomic_add_long(&kcage_needfree, npages); 1254 atomic_add_long(&kcage_needfree, -npages); 1264 if ((kcage_freemem < kcage_throttlefree + npages) && 1265 (freemem < limit + npages)) { 1276 kcage_freemem_add(pgcnt_t npages) argument 1295 kcage_freemem_sub(pgcnt_t npages) argument [all...] |
H A D | dumpsubr.c | 338 pgcnt_t npages; /* subtotal of pages dumped */ member in struct:dumpsync 1090 pgcnt_t npages = 0; local 1114 npages = num_phys_pages(); 1116 if (dumpcfg.bitmapsize != npages) { 1117 size_t rlen = CBUF_MAPP2R(P2ROUNDUP(npages, CBUF_MAPNP)); 1118 void *map = kmem_alloc(BT_SIZEOFMAP(npages), KM_SLEEP); 1128 dumpcfg.bitmapsize = npages; 2470 ds->npages += btop(cp->used); 2480 ASSERT(ds->npages <= dumphdr->dump_npages); 2481 ds->percent = ds->npages * 10 [all...] |
/illumos-gate/usr/src/uts/i86xpv/io/ |
H A D | privcmd.c | 125 * e.npages = btopr(size); 159 ulong_t, mme->npages); 174 addr + mmu_ptob(mme->npages) > seg->s_base + seg->s_size) 178 mme->mfn, mme->npages, mmc->dom);
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | hash_auto.h | 117 u_int32_t npages; member in struct:_ham_ovfl_args
|
/illumos-gate/usr/src/uts/i86pc/io/xsvc/ |
H A D | xsvc.c | 817 size_t npages; local 870 npages = btop(psize); 878 for (i = 0; i < npages; i++) { 888 npages = i; 928 for (i = 0; i < npages; i++) { 1066 size_t npages; local 1103 npages = btop(size); 1106 for (i = 0; i < npages; i++) {
|