Home
last modified time | relevance | path

Searched refs:npages (Results 1 – 25 of 97) sorted by last modified time

1234

/illumos-gate/usr/src/uts/common/io/mlxcx/
H A Dmlxcx.c1321 if (npages <= 0) { in mlxcx_give_pages()
1326 npages = MIN(npages, MLXCX_MANAGE_PAGES_MAX_PAGES); in mlxcx_give_pages()
1333 for (i = 0; i < npages; i++) { in mlxcx_give_pages()
1340 npages); in mlxcx_give_pages()
1354 for (i = 0; i < npages; i++) { in mlxcx_give_pages()
1361 "pages!", npages); in mlxcx_give_pages()
1372 mlxp->mlx_npages += npages; in mlxcx_give_pages()
1378 *ngiven = npages; in mlxcx_give_pages()
1395 int32_t npages, given; in mlxcx_init_pages() local
1402 while (npages > 0) { in mlxcx_init_pages()
[all …]
H A Dmlxcx_cmd.c1267 if (npages != 0) { in mlxcx_cmd_give_pages()
1275 if (npages <= 0) { in mlxcx_cmd_give_pages()
1299 for (i = 0; i < npages; i++) { in mlxcx_cmd_give_pages()
2134 uint64_t pa, npages; in mlxcx_cmd_create_eq() local
2154 npages = 0; in mlxcx_cmd_create_eq()
2298 uint64_t pa, npages; in mlxcx_cmd_create_cq() local
2322 npages = 0; in mlxcx_cmd_create_cq()
2510 uint64_t pa, npages; in mlxcx_cmd_create_rq() local
2541 npages = 0; in mlxcx_cmd_create_rq()
3387 uint64_t pa, npages; in mlxcx_cmd_create_sq() local
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dexec.c1281 spgcnt_t prefltmem, availm, npages; in execmap() local
1307 npages = (spgcnt_t)btopr(len); in execmap()
1310 (npages < prefltmem && len < PGTHRESH) ? 1 : 0; in execmap()
1319 if (preread == 0 && npages > availm && in execmap()
1321 deficit += MIN((pgcnt_t)(npages - availm), in execmap()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprsubr.c4814 uint64_t npages; in prgetxmap() local
4908 npages = ((uintptr_t)(naddr - saddr)) >> in prgetxmap()
4910 parr = kmem_zalloc(npages, KM_SLEEP); in prgetxmap()
4914 for (pagenum = 0; pagenum < npages; pagenum++) { in prgetxmap()
4922 kmem_free(parr, npages); in prgetxmap()
5014 uint64_t npages; in prgetxmap32() local
5110 npages = ((uintptr_t)(naddr - saddr)) >> in prgetxmap32()
5112 parr = kmem_zalloc(npages, KM_SLEEP); in prgetxmap32()
5116 for (pagenum = 0; pagenum < npages; pagenum++) { in prgetxmap32()
5124 kmem_free(parr, npages); in prgetxmap32()
/illumos-gate/usr/src/uts/i86pc/vm/
H A Dvm_machdep.c2905 npages = *npagesp; in page_get_contigpages()
2916 if (npages == -1) { in page_get_contigpages()
2917 npages = 1; in page_get_contigpages()
2923 if (npages == 1) { in page_get_contigpages()
2945 minctg = npages; in page_get_contigpages()
3001 npages -= minctg; in page_get_contigpages()
3002 *npagesp = npages; in page_get_contigpages()
3091 while (npages--) { in page_create_io()
3514 pgcnt_t npages; in page_create_io() local
3575 if (!npages) { in page_create_io()
[all …]
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_page.c532 freemem += npages; in page_free_large_ctr()
542 npages -= lump; in page_free_large_ctr()
545 npages = 0; in page_free_large_ctr()
1656 freemem += npages; in page_create_putback()
1669 npages -= lump; in page_create_putback()
1672 npages = 0; in page_create_putback()
2150 pgcnt_t npages; in page_create_va_large() local
2253 while (npages--) { in page_create_va_large()
2276 pgcnt_t npages; in page_create_va() local
5590 pgcnt_t npages) in page_migrate() argument
[all …]
H A Dvm_as.c2206 size_t end_pos = npages + position; in as_segunlock()
2276 size_t npages, idx; in as_ctl() local
2328 npages = seg_pages(seg); in as_ctl()
2330 idx, npages); in as_ctl()
2331 idx += npages; in as_ctl()
2577 pgcnt_t npages = btop(size); in as_pagelock_segs() local
2650 pl = &plist[npages + cnt]; in as_pagelock_segs()
2656 ASSERT(plist[npages + cnt] != NULL); in as_pagelock_segs()
2692 pl = &plist[npages + cnt]; in as_pagelock_segs()
2807 pgcnt_t npages = btop(size); in as_pageunlock_segs() local
[all …]
H A Dvm_anon.c522 ASSERT((npages <= sahp->size) && (npages <= dahp->size)); in anon_copy_ptr()
1343 spgcnt_t npages; in anon_dup() local
1357 npages -= off; in anon_dup()
1371 npages--; in anon_dup()
1395 spgcnt_t npages; in anon_dup_fill_holes() local
1429 npages -= off; in anon_dup_fill_holes()
1506 spgcnt_t npages; in anon_fill_cow_holes() local
1537 npages -= off; in anon_fill_cow_holes()
1592 spgcnt_t npages; in anon_free() local
1614 npages--; in anon_free()
[all …]
H A Dseg_spt.c424 pgcnt_t npages; in segspt_shmincore() local
458 npages = btopr(len); in segspt_shmincore()
633 npages = new_npgs; in segspt_create()
764 pgcnt_t npages; in segspt_free_pages() local
782 npages = btop(len); in segspt_free_pages()
1002 npages = btopr(len); in segspt_dismpagelock()
1362 npages = btopr(len); in segspt_shmpagelock()
1599 ASSERT(npages); in segspt_reclaim()
1735 pgcnt_t npages; in segspt_softunlock() local
1977 pgcnt_t npages; in segspt_dismfault() local
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_vnops.c4668 int npages = btopr(zp->z_size - off); in zfs_putapage() local
4671 page_list_break(&pp, &trunc, npages); in zfs_putapage()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/
H A Dmpool.c88 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);
H A Dmpool.h79 db_pgno_t npages; /* number of pages in the file */ member
/illumos-gate/usr/src/cmd/prtconf/
H A Dprtconf.c99 long pagesize, npages; in main() local
294 npages = sysconf(_SC_PHYS_PAGES); in main()
295 if (pagesize == -1 || npages == -1) { in main()
304 int64_t ii = (int64_t)pagesize * npages; in main()
/illumos-gate/usr/src/uts/sun4u/opl/io/
H A Ddrmach.c2282 pgcnt_t npages = (pgcnt_t)(size >> PAGESHIFT); in drmach_mem_add_span() local
2290 rv = kcage_range_add(basepfn, npages, KCAGE_DOWN); in drmach_mem_add_span()
2313 pgcnt_t npages = (pgcnt_t)(size >> PAGESHIFT); in drmach_mem_del_span() local
2320 rv = kcage_range_delete_post_mem_del(basepfn, npages); in drmach_mem_del_span()
/illumos-gate/usr/src/uts/intel/io/viona/
H A Dviona_ring.c443 const uint_t npages = LEGACY_VQ_PAGES(qsz); in viona_ring_map() local
444 ring->vr_map_pages = kmem_zalloc(npages * sizeof (void *), KM_SLEEP); in viona_ring_map()
467 for (uint_t i = 0; i < npages; i++, pa += PAGESIZE) { in viona_ring_map()
512 const uint_t npages = LEGACY_VQ_PAGES(ring->vr_size); in viona_ring_unmap() local
513 kmem_free(map, npages * sizeof (void *)); in viona_ring_unmap()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dstartup.c537 pgcnt_t npages; variable
1113 PRM_DEBUG(npages); in startup_memlist()
1121 physmem = npages; in startup_memlist()
1123 orig_npages = npages; in startup_memlist()
1124 npages = physmem; in startup_memlist()
1175 PRM_DEBUG(npages); in startup_memlist()
1332 npages = kphysm_init(pp_base, npages); in startup_memlist()
1334 PRM_DEBUG(npages); in startup_memlist()
2504 if (num > npages) in kphysm_init()
2505 num = npages; in kphysm_init()
[all …]
H A Dpmem.c288 pgcnt_t npages = btopr(size); in devmap_pmem_alloc() local
301 if (npages == 0 || npages >= total_pages / 2) in devmap_pmem_alloc()
311 pcp->dp_npages = npages; in devmap_pmem_alloc()
317 if (pmem_lock(npages, curproc) == DDI_FAILURE) in devmap_pmem_alloc()
325 tpages = mpool_break(&tlist, npages); in devmap_pmem_alloc()
331 if (tpages == npages) in devmap_pmem_alloc()
334 rpages = npages - tpages; in devmap_pmem_alloc()
377 for (pp = tlist, i = 0; i < npages; i++) { in devmap_pmem_alloc()
407 kmem_free(pcp->dp_pparray, npages * sizeof (page_t *)); in devmap_pmem_alloc()
510 if (pcp == NULL || start + npages > pcp->dp_npages) in devmap_pmem_getpfns()
[all …]
H A Dmachdep.c1222 pgcnt_t npages = 0; in num_phys_pages() local
1231 npages += mp->ml_size >> PAGESHIFT; in num_phys_pages()
1233 return (npages); in num_phys_pages()
H A Dddi_impl.c1606 pgcnt_t npages; in i_ddi_mem_alloc() local
1649 npages = btopr(length + attr->dma_attr_align); in i_ddi_mem_alloc()
1650 minctg = howmany(npages, attr->dma_attr_sgllen); in i_ddi_mem_alloc()
1660 npages = btopr(length); in i_ddi_mem_alloc()
1661 minctg = howmany(npages, attr->dma_attr_sgllen); in i_ddi_mem_alloc()
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_vm.c89 pgcnt_t npages; in gfxp_map_kernel_space() local
116 npages = btopr(size + pgoffset); in gfxp_map_kernel_space()
142 pgcnt_t npages; in gfxp_unmap_kernel_space() local
149 npages = btopr(size + pgoffset); in gfxp_unmap_kernel_space()
271 pgcnt_t npages; in gfxp_alloc_kernel_space() local
273 npages = btopr(size); in gfxp_alloc_kernel_space()
288 pgcnt_t npages; in gfxp_free_kernel_space() local
295 npages = btopr(size + pgoffset); in gfxp_free_kernel_space()
309 pgcnt_t npages; in gfxp_load_kernel_space() local
336 npages = btopr(size + pgoffset); in gfxp_load_kernel_space()
[all …]
/illumos-gate/usr/src/uts/common/xen/sys/
H A Dprivcmd.h65 unsigned long npages; member
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_debug.c122 for (i = P_ROOT; i < t->bt_mp->npages &&
320 for (i = P_ROOT; i < t->bt_mp->npages &&
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_test.c136 long npages, pageno; in memory_test_normal() local
171 ((pageno + 1) * 100) / npages); in memory_test_normal()
212 ((npages - pageno) * 100) / npages); in memory_test_normal()
291 long npages, pageno; in memory_test_quick() local
326 ((pageno + 1) * 100) / npages); in memory_test_quick()
368 ((npages - pageno) * 100) / npages); in memory_test_quick()
400 ((pageno + 1) * 100) / npages); in memory_test_quick()
419 long npages, pageno; in memory_test_extended() local
458 ((pageno + 1) * 100) / npages); in memory_test_extended()
563 ml_rd_cmp_msg, ((npages - pageno) * 100) / npages); in memory_test_extended()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dhash_auto.h115 u_int32_t npages; member
/illumos-gate/usr/src/uts/i86pc/io/
H A Drootnex.c1026 uint64_t npages, pgoffset; in rootnex_map_regspec() local
1172 npages = mmu_btopr(rp->regspec_size + pgoffset); in rootnex_map_regspec()
1176 "physical %llx", npages, pbase); in rootnex_map_regspec()
1179 cvaddr = device_arena_alloc(ptob(npages), VM_NOSLEEP); in rootnex_map_regspec()
1186 hat_devload(kas.a_hat, cvaddr, mmu_ptob(npages), in rootnex_map_regspec()
1195 hp->ah_pnum = npages; in rootnex_map_regspec()
1210 uint64_t npages, pgoffset; in rootnex_unmap_regspec() local
1246 npages = mmu_btopr(rp->regspec_size + pgoffset); in rootnex_unmap_regspec()
1247 hat_unload(kas.a_hat, addr - pgoffset, ptob(npages), HAT_UNLOAD_UNLOCK); in rootnex_unmap_regspec()
1248 device_arena_free(addr - pgoffset, ptob(npages)); in rootnex_unmap_regspec()

1234