Lines Matching refs:elem_size
135 i < zone->elem_size/sizeof(uint32_t); \
141 if ((zone)->elem_size >= (2 * sizeof(vm_offset_t))) \
142 ((vm_offset_t *)(element))[((zone)->elem_size/sizeof(vm_offset_t))-1] = \
155 ((zone)->elem_size >= (2 * sizeof(vm_offset_t)) && \
156 ((vm_offset_t *)(ret))[((zone)->elem_size/sizeof(vm_offset_t))-1] != \
162 ii < zone->elem_size/sizeof(uint32_t) - sizeof(vm_offset_t) / sizeof(uint32_t); \
528 z->elem_size = size;
605 register vm_size_t elem_size;
613 elem_size = zone->elem_size;
616 while (size >= elem_size) {
618 if (from_zone_map(newmem, elem_size))
619 zone_page_alloc(newmem, elem_size);
621 size -= elem_size;
622 newmem += elem_size;
623 zone->cur_size += elem_size;
745 size = nelem * zone->elem_size;
753 nalloc = size / zone->elem_size;
906 if ((zone->cur_size + zone->elem_size) >
940 round_page(zone->elem_size);
988 retval = zget_space(zone->elem_size, &space);
998 zone->cur_size += zone->elem_size;
1005 zone_page_alloc(space, zone->elem_size);
1115 TRACE_MACHLEAKS(ZALLOC_CODE, ZALLOC_CODE_2, zone->elem_size, addr);
1214 TRACE_MACHLEAKS(ZFREE_CODE, ZFREE_CODE_2, zone->elem_size, (int)addr);
1217 !from_zone_map(elem, zone->elem_size)) {
1319 if (zone->elem_size >= PAGE_SIZE &&
1373 free_count = zone->cur_size/zone->elem_size - zone->count;
1582 if ((zone)->elem_size >= (2 * sizeof(vm_offset_t))) \
1583 ((vm_offset_t *)(tail))[((zone)->elem_size/sizeof(vm_offset_t))-1] = \
1597 if ((zone)->elem_size >= (2 * sizeof(vm_offset_t))) \
1598 ((vm_offset_t *)(prev))[((zone)->elem_size/sizeof(vm_offset_t))-1] = \
1652 elt_size = z->elem_size;
2015 zi->zi_elem_size = zcopy.elem_size;
2106 zcopy.max_size, zcopy.elem_size,
2352 z->alloc_size < (z->elem_size + ZONE_DEBUG_OFFSET))
2355 z->elem_size += ZONE_DEBUG_OFFSET;
2364 z->elem_size -= ZONE_DEBUG_OFFSET;