Lines Matching refs:mapelm
1866 arena_chunk_map_t *mapelm; in arena_run_alloc() local
1874 mapelm = &chunk->map[i]; in arena_run_alloc()
1875 if (mapelm->pos == POS_FREE) { in arena_run_alloc()
1876 if (mapelm->npages >= need_npages) { in arena_run_alloc()
1885 if (mapelm->npages > in arena_run_alloc()
1888 mapelm->npages; in arena_run_alloc()
1896 i += mapelm->npages; in arena_run_alloc()
2354 arena_chunk_map_t *mapelm; in arena_salloc() local
2367 mapelm = &chunk->map[pageind]; in arena_salloc()
2368 if (mapelm->pos != 0 || ptr != (char *)((uintptr_t)chunk) + (pageind << in arena_salloc()
2372 pageind -= mapelm->pos; in arena_salloc()
2379 ret = mapelm->npages << pagesize_2pow; in arena_salloc()
2437 arena_chunk_map_t *mapelm; in arena_dalloc() local
2448 mapelm = &chunk->map[pageind]; in arena_dalloc()
2449 if (mapelm->pos != 0 || ptr != (char *)((uintptr_t)chunk) + (pageind << in arena_dalloc()
2456 pageind -= mapelm->pos; in arena_dalloc()
2516 size = mapelm->npages << pagesize_2pow; in arena_dalloc()