Lines Matching refs:head
155 rtl_arena_segment_type *first, *last, *head; in rtl_arena_segment_populate() local
166 head = &(arena->m_segment_reserve_head); in rtl_arena_segment_populate()
169 QUEUE_INSERT_TAIL_NAMED(head, first, s); in rtl_arena_segment_populate()
191 rtl_arena_segment_type * head; in rtl_arena_segment_get() local
195 head = &(arena->m_segment_reserve_head); in rtl_arena_segment_get()
196 if ((head->m_snext != head) || rtl_arena_segment_populate (arena)) in rtl_arena_segment_get()
198 (*ppSegment) = head->m_snext; in rtl_arena_segment_get()
219 rtl_arena_segment_type * head; in rtl_arena_segment_put() local
231 head = &(arena->m_segment_reserve_head); in rtl_arena_segment_put()
232 QUEUE_INSERT_HEAD_NAMED(head, (*ppSegment), s); in rtl_arena_segment_put()
254 rtl_arena_segment_type * head; in rtl_arena_freelist_insert() local
256 head = &(arena->m_freelist_head[highbit(segment->m_size) - 1]); in rtl_arena_freelist_insert()
257 QUEUE_INSERT_TAIL_NAMED(head, segment, f); in rtl_arena_freelist_insert()
259 arena->m_freelist_bitmap |= head->m_size; in rtl_arena_freelist_insert()
280 rtl_arena_segment_type * head; in rtl_arena_freelist_remove() local
282 head = segment->m_fprev; in rtl_arena_freelist_remove()
283 OSL_ASSERT(arena->m_freelist_bitmap & head->m_size); in rtl_arena_freelist_remove()
284 arena->m_freelist_bitmap ^= head->m_size; in rtl_arena_freelist_remove()
367 rtl_arena_segment_type ** head; in rtl_arena_hash_rescale() local
369 head = &(arena->m_hash_table[RTL_ARENA_HASH_INDEX(arena, curr->m_addr)]); in rtl_arena_hash_rescale()
370 curr->m_fnext = (*head); in rtl_arena_hash_rescale()
371 (*head) = curr; in rtl_arena_hash_rescale()
500 rtl_arena_segment_type *head, *segment; in rtl_arena_segment_alloc() local
502 head = &(arena->m_freelist_head[msb - 1]); in rtl_arena_segment_alloc()
503 for (segment = head->m_fnext; segment != head; segment = segment->m_fnext) in rtl_arena_segment_alloc()
523 rtl_arena_segment_type *head; in rtl_arena_segment_alloc() local
525 head = &(arena->m_freelist_head[index - 1]); in rtl_arena_segment_alloc()
526 (*ppSegment) = head->m_fnext; in rtl_arena_segment_alloc()
527 OSL_ASSERT((*ppSegment) != head); in rtl_arena_segment_alloc()
657 rtl_arena_segment_type * head; in rtl_arena_constructor() local
666 head = &(arena->m_segment_reserve_span_head); in rtl_arena_constructor()
667 rtl_arena_segment_constructor (head); in rtl_arena_constructor()
668 head->m_type = RTL_ARENA_SEGMENT_TYPE_HEAD; in rtl_arena_constructor()
670 head = &(arena->m_segment_reserve_head); in rtl_arena_constructor()
671 rtl_arena_segment_constructor (head); in rtl_arena_constructor()
672 head->m_type = RTL_ARENA_SEGMENT_TYPE_HEAD; in rtl_arena_constructor()
674 head = &(arena->m_segment_head); in rtl_arena_constructor()
675 rtl_arena_segment_constructor (head); in rtl_arena_constructor()
676 head->m_type = RTL_ARENA_SEGMENT_TYPE_HEAD; in rtl_arena_constructor()
680 head = &(arena->m_freelist_head[i]); in rtl_arena_constructor()
681 rtl_arena_segment_constructor (head); in rtl_arena_constructor()
683 head->m_size = (1UL << i); in rtl_arena_constructor()
684 head->m_type = RTL_ARENA_SEGMENT_TYPE_HEAD; in rtl_arena_constructor()
699 rtl_arena_segment_type * head; in rtl_arena_destructor() local
706 head = &(arena->m_segment_reserve_span_head); in rtl_arena_destructor()
707 OSL_ASSERT(head->m_type == RTL_ARENA_SEGMENT_TYPE_HEAD); in rtl_arena_destructor()
708 rtl_arena_segment_destructor (head); in rtl_arena_destructor()
710 head = &(arena->m_segment_reserve_head); in rtl_arena_destructor()
711 OSL_ASSERT(head->m_type == RTL_ARENA_SEGMENT_TYPE_HEAD); in rtl_arena_destructor()
712 rtl_arena_segment_destructor (head); in rtl_arena_destructor()
714 head = &(arena->m_segment_head); in rtl_arena_destructor()
715 OSL_ASSERT(head->m_type == RTL_ARENA_SEGMENT_TYPE_HEAD); in rtl_arena_destructor()
716 rtl_arena_segment_destructor (head); in rtl_arena_destructor()
720 head = &(arena->m_freelist_head[i]); in rtl_arena_destructor()
722 OSL_ASSERT(head->m_size == (1UL << i)); in rtl_arena_destructor()
723 OSL_ASSERT(head->m_type == RTL_ARENA_SEGMENT_TYPE_HEAD); in rtl_arena_destructor()
725 rtl_arena_segment_destructor (head); in rtl_arena_destructor()
805 rtl_arena_segment_type * head, * segment; in rtl_arena_deactivate() local
883 head = &(arena->m_segment_head); in rtl_arena_deactivate()
884 for (segment = head->m_snext; segment != head; segment = head->m_snext) in rtl_arena_deactivate()
905 head = &(arena->m_segment_reserve_head); in rtl_arena_deactivate()
906 for (segment = head->m_snext; segment != head; segment = head->m_snext) in rtl_arena_deactivate()
913 head = &(arena->m_segment_reserve_span_head); in rtl_arena_deactivate()
914 for (segment = head->m_snext; segment != head; segment = head->m_snext) in rtl_arena_deactivate()
1382 rtl_arena_type * arena, * head; in rtl_arena_fini() local
1385 head = &(g_arena_list.m_arena_head); in rtl_arena_fini()
1387 for (arena = head->m_arena_next; arena != head; arena = arena->m_arena_next) in rtl_arena_fini()