Lines Matching refs:start

60     uint32_t               start;  member
83 u_char *start; member
91 (void *) (zone->start + ((page - zone->pages) << zone->page_size_shift))
95 &zone->pages[((u_char *) addr - zone->start) >> zone->page_size_shift]
126 static uint32_t nxt_mem_zone_pages(u_char *start, size_t zone_size,
158 nxt_mem_zone_init(u_char *start, size_t zone_size, nxt_uint_t page_size) in nxt_mem_zone_init() argument
171 pages = nxt_mem_zone_pages(start, zone_size, page_size); in nxt_mem_zone_init()
176 zone = (nxt_mem_zone_t *) start; in nxt_mem_zone_init()
200 block = (nxt_mem_zone_free_block_t *) zone->start; in nxt_mem_zone_init()
210 nxt_mem_zone_pages(u_char *start, size_t zone_size, nxt_uint_t page_size) in nxt_mem_zone_pages() argument
243 end = nxt_trunc_ptr(start + zone_size, page_size); in nxt_mem_zone_pages()
244 zone_size = end - start; in nxt_mem_zone_pages()
254 nxt_memzero(start, reserved); in nxt_mem_zone_pages()
256 zone = (nxt_mem_zone_t *) start; in nxt_mem_zone_pages()
258 zone->start = nxt_align_ptr(start + reserved, page_size); in nxt_mem_zone_pages()
262 end - (zone->start + pages * page_size)); in nxt_mem_zone_pages()
309 slot[n].start, slot[n].map_size); in nxt_mem_zone_slots_init()
337 slot->start = page_size - slot->chunks * slot->size; in nxt_mem_zone_slot_init()
345 if (slot->start < slot->map_size) { in nxt_mem_zone_slot_init()
353 slot->start = nxt_align_size(slot->map_size, 16); in nxt_mem_zone_slot_init()
358 slot->start = slot->size; in nxt_mem_zone_slot_init()
528 p += nxt_mem_zone_alloc_chunk(map, slot->start, slot->size); in nxt_mem_zone_alloc_small()
572 return p + slot->start; in nxt_mem_zone_alloc_small()
779 if (nxt_fast_path(zone->start <= (u_char *) p in nxt_mem_zone_free()
836 offset -= slot->start; in nxt_mem_zone_free_chunk()