Home
last modified time | relevance | path

Searched refs:page_size_shift (Results 1 – 2 of 2) sorted by relevance

/unit/src/
H A Dnxt_mp.c107 uint8_t page_size_shift; member
246 uint32_t pages, chunk_size_shift, page_size_shift; in nxt_mp_create() local
250 page_size_shift = nxt_lg2(page_size); in nxt_mp_create()
252 pages = page_size_shift - chunk_size_shift; in nxt_mp_create()
259 mp->page_size_shift = page_size_shift; in nxt_mp_create()
515 return block->start + (page->number << mp->page_size_shift); in nxt_mp_page_addr()
673 n = mp->cluster_size >> mp->page_size_shift; in nxt_mp_alloc_cluster()
869 n = (p - cluster->start) >> mp->page_size_shift; in nxt_mp_chunk_free()
870 start = cluster->start + (n << mp->page_size_shift); in nxt_mp_chunk_free()
938 n = mp->cluster_size >> mp->page_size_shift; in nxt_mp_chunk_free()
[all …]
H A Dnxt_mem_zone.c78 uint32_t page_size_shift; member
91 (void *) (zone->start + ((page - zone->pages) << zone->page_size_shift))
95 &zone->pages[((u_char *) addr - zone->start) >> zone->page_size_shift]
277 zone->page_size_shift++; in nxt_mem_zone_pages()
635 pages = (size + zone->page_size_mask) >> zone->page_size_shift; in nxt_mem_zone_alloc_large()
675 prev_pages = prev_size >>= zone->page_size_shift; in nxt_mem_zone_alloc_pages()
756 aligned += pages << zone->page_size_shift; in nxt_mem_zone_find_free_block()
757 end = nxt_pointer_to(block, block->size << zone->page_size_shift); in nxt_mem_zone_find_free_block()