Lines Matching refs:next_free
40 memory_header *next_free; member
82 (size_t) hdr->prev_free, (size_t) hdr->next_free); in debug_header()
108 cur = cur->next_free; in debug_chain()
143 if (hdr->prev_free != NULL && hdr->prev_free == hdr->next_free) { in verify_header()
234 cur = cur->next_free; in buffer_alloc_calloc()
262 cur->prev_free->next_free = cur->next_free; in buffer_alloc_calloc()
264 heap.first_free = cur->next_free; in buffer_alloc_calloc()
267 if (cur->next_free != NULL) { in buffer_alloc_calloc()
268 cur->next_free->prev_free = cur->prev_free; in buffer_alloc_calloc()
272 cur->next_free = NULL; in buffer_alloc_calloc()
317 new->next_free = cur->next_free; in buffer_alloc_calloc()
319 new->prev_free->next_free = new; in buffer_alloc_calloc()
324 if (new->next_free != NULL) { in buffer_alloc_calloc()
325 new->next_free->prev_free = new; in buffer_alloc_calloc()
332 cur->next_free = NULL; in buffer_alloc_calloc()
433 if (hdr->prev_free != NULL || hdr->next_free != NULL) { in buffer_alloc_free()
435 hdr->prev_free->next_free = hdr->next_free; in buffer_alloc_free()
437 heap.first_free = hdr->next_free; in buffer_alloc_free()
440 if (hdr->next_free != NULL) { in buffer_alloc_free()
441 hdr->next_free->prev_free = hdr->prev_free; in buffer_alloc_free()
446 hdr->next_free = old->next_free; in buffer_alloc_free()
449 hdr->prev_free->next_free = hdr; in buffer_alloc_free()
454 if (hdr->next_free != NULL) { in buffer_alloc_free()
455 hdr->next_free->prev_free = hdr; in buffer_alloc_free()
469 hdr->next_free = heap.first_free; in buffer_alloc_free()