Lines Matching refs:next_free

63     memory_header   *next_free;  member
106 (size_t) hdr->prev_free, (size_t) hdr->next_free ); in debug_header()
133 cur = cur->next_free; in debug_chain()
172 if( hdr->prev_free != NULL && hdr->prev_free == hdr->next_free ) in verify_header()
264 cur = cur->next_free; in buffer_alloc_calloc()
293 cur->prev_free->next_free = cur->next_free; in buffer_alloc_calloc()
295 heap.first_free = cur->next_free; in buffer_alloc_calloc()
297 if( cur->next_free != NULL ) in buffer_alloc_calloc()
298 cur->next_free->prev_free = cur->prev_free; in buffer_alloc_calloc()
301 cur->next_free = NULL; in buffer_alloc_calloc()
343 new->next_free = cur->next_free; in buffer_alloc_calloc()
345 new->prev_free->next_free = new; in buffer_alloc_calloc()
349 if( new->next_free != NULL ) in buffer_alloc_calloc()
350 new->next_free->prev_free = new; in buffer_alloc_calloc()
356 cur->next_free = NULL; in buffer_alloc_calloc()
455 if( hdr->prev_free != NULL || hdr->next_free != NULL ) in buffer_alloc_free()
458 hdr->prev_free->next_free = hdr->next_free; in buffer_alloc_free()
460 heap.first_free = hdr->next_free; in buffer_alloc_free()
462 if( hdr->next_free != NULL ) in buffer_alloc_free()
463 hdr->next_free->prev_free = hdr->prev_free; in buffer_alloc_free()
467 hdr->next_free = old->next_free; in buffer_alloc_free()
470 hdr->prev_free->next_free = hdr; in buffer_alloc_free()
474 if( hdr->next_free != NULL ) in buffer_alloc_free()
475 hdr->next_free->prev_free = hdr; in buffer_alloc_free()
488 hdr->next_free = heap.first_free; in buffer_alloc_free()