Lines Matching refs:prev_free
39 memory_header *prev_free; member
82 (size_t) hdr->prev_free, (size_t) hdr->next_free); in debug_header()
143 if (hdr->prev_free != NULL && hdr->prev_free == hdr->next_free) { in verify_header()
261 if (cur->prev_free != NULL) { in buffer_alloc_calloc()
262 cur->prev_free->next_free = cur->next_free; in buffer_alloc_calloc()
268 cur->next_free->prev_free = cur->prev_free; in buffer_alloc_calloc()
271 cur->prev_free = NULL; in buffer_alloc_calloc()
316 new->prev_free = cur->prev_free; in buffer_alloc_calloc()
318 if (new->prev_free != NULL) { in buffer_alloc_calloc()
319 new->prev_free->next_free = new; in buffer_alloc_calloc()
325 new->next_free->prev_free = new; in buffer_alloc_calloc()
331 cur->prev_free = NULL; in buffer_alloc_calloc()
433 if (hdr->prev_free != NULL || hdr->next_free != NULL) { in buffer_alloc_free()
434 if (hdr->prev_free != NULL) { in buffer_alloc_free()
435 hdr->prev_free->next_free = hdr->next_free; in buffer_alloc_free()
441 hdr->next_free->prev_free = hdr->prev_free; in buffer_alloc_free()
445 hdr->prev_free = old->prev_free; in buffer_alloc_free()
448 if (hdr->prev_free != NULL) { in buffer_alloc_free()
449 hdr->prev_free->next_free = hdr; in buffer_alloc_free()
455 hdr->next_free->prev_free = hdr; in buffer_alloc_free()
471 heap.first_free->prev_free = hdr; in buffer_alloc_free()