• Home
  • Raw
  • Download

Lines Matching refs:npages

214     size_t npages)  in arena_avail_insert()  argument
218 assert(npages == (arena_mapbits_unallocated_size_get(chunk, pageind) >> in arena_avail_insert()
226 size_t npages) in arena_avail_remove() argument
230 assert(npages == (arena_mapbits_unallocated_size_get(chunk, pageind) >> in arena_avail_remove()
238 size_t npages) in arena_run_dirty_insert() argument
242 assert(npages == (arena_mapbits_unallocated_size_get(chunk, pageind) >> in arena_run_dirty_insert()
245 assert(arena_mapbits_dirty_get(chunk, pageind+npages-1) == in arena_run_dirty_insert()
250 arena->ndirty += npages; in arena_run_dirty_insert()
255 size_t npages) in arena_run_dirty_remove() argument
259 assert(npages == (arena_mapbits_unallocated_size_get(chunk, pageind) >> in arena_run_dirty_remove()
262 assert(arena_mapbits_dirty_get(chunk, pageind+npages-1) == in arena_run_dirty_remove()
266 assert(arena->ndirty >= npages); in arena_run_dirty_remove()
267 arena->ndirty -= npages; in arena_run_dirty_remove()
347 arena_run_zero(arena_chunk_t *chunk, size_t run_ind, size_t npages) in arena_run_zero() argument
351 (run_ind << LG_PAGE)), (npages << LG_PAGE)); in arena_run_zero()
353 (npages << LG_PAGE)); in arena_run_zero()
1480 size_t npages; in arena_dirty_count() local
1483 npages = extent_node_size_get(chunkselm) >> LG_PAGE; in arena_dirty_count()
1495 npages = arena_mapbits_unallocated_size_get(chunk, in arena_dirty_count()
1498 ndirty += npages; in arena_dirty_count()
1517 size_t npages; in arena_stash_dirty() local
1525 npages = extent_node_size_get(chunkselm) >> LG_PAGE; in arena_stash_dirty()
1527 (nstashed + npages) < ndirty_limit) in arena_stash_dirty()
1544 assert(npages == (extent_node_size_get(chunkselm) >> in arena_stash_dirty()
1557 npages = run_size >> LG_PAGE; in arena_stash_dirty()
1559 (nstashed + npages) < ndirty_limit) in arena_stash_dirty()
1562 assert(pageind + npages <= chunk_npages); in arena_stash_dirty()
1564 arena_mapbits_dirty_get(chunk, pageind+npages-1)); in arena_stash_dirty()
1585 nstashed += npages; in arena_stash_dirty()
1611 size_t npages; in arena_purge_stashed() local
1623 npages = size >> LG_PAGE; in arena_purge_stashed()
1634 npages = run_size >> LG_PAGE; in arena_purge_stashed()
1636 assert(pageind + npages <= chunk_npages); in arena_purge_stashed()
1639 pageind+npages-1)); in arena_purge_stashed()
1641 pageind << LG_PAGE, npages << LG_PAGE, arena->ind); in arena_purge_stashed()
1651 arena_mapbits_large_set(chunk, pageind+npages-1, 0, in arena_purge_stashed()
1667 for (i = 1; i < npages-1; i++) { in arena_purge_stashed()
1673 npurged += npages; in arena_purge_stashed()
2885 size_t npages = (oldsize + large_pad) >> LG_PAGE; in arena_ralloc_large_grow() local
2893 if (pageind+npages >= chunk_npages || arena_mapbits_allocated_get(chunk, in arena_ralloc_large_grow()
2894 pageind+npages) != 0) in arena_ralloc_large_grow()
2896 followsize = arena_mapbits_unallocated_size_get(chunk, pageind+npages); in arena_ralloc_large_grow()
2915 run = &arena_miscelm_get(chunk, pageind+npages)->run; in arena_ralloc_large_grow()
2936 npages = (size + large_pad) >> LG_PAGE; in arena_ralloc_large_grow()
2947 arena_mapbits_dirty_get(chunk, pageind+npages-1); in arena_ralloc_large_grow()
2952 arena_mapbits_large_set(chunk, pageind+npages-1, 0, flag_dirty | in arena_ralloc_large_grow()
2954 pageind+npages-1))); in arena_ralloc_large_grow()