Home | History | Annotate | Download | only in util

Lines Matching full:heap

34 u_mmDumpMemInfo(const struct mem_block *heap)
36 debug_printf("Memory heap %p:\n", (void *) heap);
37 if (heap == 0) {
38 debug_printf(" heap == 0\n");
44 for (p = heap->next; p != heap; p = p->next) {
58 for (p = heap->next_free; p != heap; p = p->next_free) {
72 struct mem_block *heap, *block;
77 heap = CALLOC_STRUCT(mem_block);
78 if (!heap)
83 FREE(heap);
87 heap->next = block;
88 heap->prev = block;
89 heap->next_free = block;
90 heap->prev_free = block;
92 block->heap = heap;
93 block->next = heap;
94 block->prev = heap;
95 block->next_free = heap;
96 block->prev_free = heap;
102 return heap;
121 newblock->heap = p->heap;
145 newblock->heap = p->heap;
177 u_mmAllocMem(struct mem_block *heap, int size, int align2, int startSearch)
188 if (!heap || align2 < 0 || size <= 0)
191 for (p = heap->next_free; p != heap; p = p->next_free) {
203 if (p == heap)
214 u_mmFindBlock(struct mem_block *heap, int start)
218 for (p = heap->next; p != heap; p = p->next) {
232 /* NOTE: heap->free == 0 */
268 b->next_free = b->heap->next_free;
269 b->prev_free = b->heap;
274 if (b->prev != b->heap)
282 u_mmDestroy(struct mem_block *heap)
286 if (!heap)
289 for (p = heap->next; p != heap; ) {
295 FREE(heap);