/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 66 pgcnt_t pages = btopr(delta); in tmp_resv() 119 tm->tm_anonmem -= btopr(delta); in tmp_unresv() 133 pgcnt_t np = btopr(newsize); in tmpnode_growmap() 143 np = btopr((u_offset_t)MAXOFF_T); in tmpnode_growmap() 272 (btopr(newsize) != btopr(oldsize)))) { in tmpnode_trunc() 282 if (btopr(newsize) != btopr(oldsize)) { in tmpnode_trunc() 286 freed = anon_pages(tp->tn_anon, btopr(newsize), in tmpnode_trunc() 287 btopr(delta)); in tmpnode_trunc() 289 anon_free(tp->tn_anon, btopr(newsize), delta); in tmpnode_trunc()
|
H A D | tmp_subr.c | 258 if ((*maxpg = (pgcnt_t)btopr(num)) == 0 && num != 0) in tmp_convnum()
|
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_vm.c | 116 npages = btopr(size + pgoffset); in gfxp_map_kernel_space() 149 npages = btopr(size + pgoffset); in gfxp_unmap_kernel_space() 273 npages = btopr(size); in gfxp_alloc_kernel_space() 295 npages = btopr(size + pgoffset); in gfxp_free_kernel_space() 336 npages = btopr(size + pgoffset); in gfxp_load_kernel_space() 365 npages = btopr(size + pgoffset); in gfxp_unload_kernel_space()
|
/illumos-gate/usr/src/uts/common/fs/swapfs/ |
H A D | swap_subr.c | 106 new_swapfs_desfree = btopr(7 * 512 * 1024); /* 3-1/2Mb */; in swapfs_recalc() 113 new_swapfs_minfree = MIN(btopr(512 * 1024 * 1024), pgs >> 3); in swapfs_recalc() 131 new_swapfs_reserve = MIN(btopr(128 * 1024 * 1024), in swapfs_recalc() 132 MAX(btopr(4 * 1024 * 1024), pgs >> 7)); in swapfs_recalc()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ddi.h | 128 #undef btopr 132 extern unsigned long btopr(unsigned long);
|
H A D | param.h | 452 #define btopr(x) ((((x) + PAGEOFFSET) >> PAGESHIFT)) macro
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_kmem.c | 428 size = ptob(btopr(size)); in boot_alloc() 474 npages = btopr(size); in segkmem_fault() 711 npages = btopr(len); in segkmem_pagelock() 875 pgcnt_t npages = btopr(size); in segkmem_xalloc() 1000 pgcnt_t npages = btopr(size); in segkmem_xfree() 1141 pgcnt_t npages = btopr(size); in segkmem_xalloc_lp() 1230 pgcnt_t pgs_left = btopr(size); in segkmem_free_one_lp() 1432 pgcnt_t npages = btopr(size); in segkmem_free_lpi() 1564 size_t ppaquantum = btopr(segkmem_lpsize) * sizeof (page_t *); in segkmem_alloc_ppa() 1585 size_t ppaquantum = btopr(segkmem_lpsize) * sizeof (page_t *); in segkmem_free_ppa() [all …]
|
H A D | seg_spt.c | 400 * btopr(sptd->spt_amp->size)); in segspt_free() 458 npages = btopr(len); in segspt_shmincore() 459 if (anon_index + npages > btopr(shmd->shm_amp->size)) { in segspt_shmincore() 528 pgcnt_t npages = btopr(amp->size); in segspt_create() 1002 npages = btopr(len); in segspt_dismpagelock() 1008 if (pg_idx + npages > btopr(sptd->spt_amp->size)) { in segspt_dismpagelock() 1136 tot_npages = btopr(sptd->spt_amp->size); in segspt_dismpagelock() 1362 npages = btopr(len); in segspt_shmpagelock() 1368 if (page_index + npages > btopr(sptd->spt_amp->size)) { in segspt_shmpagelock() 1466 * btopr(sptd->spt_amp->size), KM_SLEEP); in segspt_shmpagelock() [all …]
|
H A D | seg_dev.c | 1361 btopr(mlen)); in segdev_softunlock() 1369 btopr(mlen), F_SOFTLOCK); in segdev_softunlock() 1379 ASSERT(sdp->softlockcnt >= btopr(len)); in segdev_softunlock() 1380 sdp->softlockcnt -= btopr(len); in segdev_softunlock() 1745 slpage += btopr(llen); in segdev_fault() 1857 ASSERT(slpage >= btopr(done)); in segdev_fault() 1859 slpage - btopr(done), type); in segdev_fault() 1949 if (err = acquire_kpmem_lock(kpmem_cookie, btopr(len))) in segdev_faultpages() 1981 release_kpmem_lock(kpmem_cookie, btopr(len)); in segdev_faultpages() 2004 sdp->softlockcnt += btopr(len); in segdev_faultpages() [all …]
|
H A D | vm_anon.c | 784 pgcnt_t npages = btopr(size); in anon_resvmem() 924 pgcnt_t npages = btopr(size); in anon_unresvmem() 1349 npages = btopr(size); in anon_dup() 1406 npages = btopr(size); in anon_dup_fill_holes() 1515 npages = btopr(size); in anon_fill_cow_holes() 1596 npages = btopr(size); in anon_free() 1632 npages = btopr(size); in anon_free_pages() 1675 spgcnt_t npages = btopr(size); in anon_disclaim() 2866 npgs = btopr(len); in anon_map_createpages() 3283 ulong_t eidx = sidx + btopr(len); in anon_shmap_free_pages() [all …]
|
H A D | vm_pvn.c | 122 if (pagesavail < (spgcnt_t)btopr(vp_len)) { in pvn_read_kluster() 130 if (pagesavail < btopr(vp_len)) { in pvn_read_kluster()
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | memseg.c | 91 metapgs = btopr(npgs * sizeof (page_t)); in memseg_alloc_meta() 231 metapgs = btopr(MSEG_NPAGES(seg) * sizeof (page_t)); in memseg_remap_meta()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | bio.c | 1307 CPU_STATS_ADDQ(cpup, vm, pgpgin, btopr(len)); in pageio_setup() 1309 atomic_add_64(&curzone->zone_pgpgin, btopr(len)); in pageio_setup() 1322 CPU_STATS_ADDQ(cpup, vm, anonpgin, btopr(len)); in pageio_setup() 1324 btopr(len)); in pageio_setup() 1328 btopr(len)); in pageio_setup() 1330 btopr(len)); in pageio_setup() 1333 btopr(len)); in pageio_setup() 1335 btopr(len)); in pageio_setup() 1964 npf = btopr(bp->b_bcount + ((uintptr_t)bp->b_un.b_addr & PAGEOFFSET)); in biomodified()
|
H A D | sched.c | 569 stack_pages = btopr(stack_size); in swapin() 701 stack_pages = btopr(stack_size); in swapout() 869 stack_pages = btopr(stack_size); in process_swap_queue()
|
H A D | fbio.c | 137 zlen = (caddr_t)ptob(btopr((uintptr_t)(len + addr))) - addr; in fbzero()
|
H A D | shm.c | 604 rsize = ptob(btopr(sp->shm_segsz)); in shm_dtor() 852 size_t npages = btopr(size); in shmget() 1164 size_t npages = btopr(amp->size); in shmem_lock()
|
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | elf.c | 349 *execsz = btopr(SINCR) + btopr(SSIZE) + btopr(NCARGS32-1); in elfexec() 356 *execsz = btopr(SINCR) + btopr(SSIZE) + btopr(NCARGS64-1); in elfexec() 360 *execsz = btopr(SINCR) + btopr(SSIZE) + btopr(NCARGS-1); in elfexec() 972 roundlimit = btopr(p->p_vmem_ctl); in elfexec() 1515 memsz = btopr(phdr->p_memsz); in mapelfexec()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | graphics.c | 162 videomem_size = ptob(btopr(38400)); /* 640 x 480 / 8 bytes */ in progressbar_start()
|
H A D | pmem.c | 182 dhp->dh_len = ptob(btopr(len)); in devmap_pmem_setup() 261 dhp->dh_len = ptob(btopr(len)); in devmap_pmem_remap() 288 pgcnt_t npages = btopr(size); in devmap_pmem_alloc()
|
/illumos-gate/usr/src/ucbhead/sys/ |
H A D | param.h | 238 #define btopr(x) ((((unsigned)(x) + PAGEOFFSET) / PAGESIZE)) macro
|
/illumos-gate/usr/src/uts/sun4v/vm/ |
H A D | mach_vm_dep.c | 429 pgcnt_t npages = btopr(size); in contig_mem_span_alloc() 565 pgcnt_t npages = btopr(size); in contig_mem_span_free()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | ramdisk.c | 444 lastpi = pi + btopr(rsp->rd_window_size); in rd_map_window() 680 rsp->rd_npages = btopr(size); in rd_alloc_resources() 1199 size = ptob(btopr(size));
|
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_isoch_chan.c | 395 if (btopr(totalsz) > physmem / AV1394_MEM_MAX_PERCENT) { in av1394_ic_alloc_pool() 422 seg->is_umem_size = ptob(btopr(segsz)); in av1394_ic_alloc_pool()
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_umap.c | 257 size = ptob(btopr(cq->cq_cqinfo.qa_size)); in tavor_umap_cqmem() 300 size = ptob(btopr(qp->qp_wqinfo.qa_size)); in tavor_umap_qpmem() 343 size = ptob(btopr(srq->srq_wqinfo.qa_size)); in tavor_umap_srqmem()
|
/illumos-gate/usr/src/uts/i86xpv/vm/ |
H A D | seg_mf.c | 309 ASSERT(data->softlockcnt >= btopr(len)); in segmf_softunlock() 310 data->softlockcnt -= btopr(len); in segmf_softunlock()
|