Lines Matching refs:next
64 struct block *next; member
70 struct page *next; member
118 for (page = memstart; page; page = page->next) { in malloc_unlocked()
119 for (block = page->block; block; block = block->next) { in malloc_unlocked()
138 page->next = memstart; in malloc_unlocked()
142 block->next = 0; in malloc_unlocked()
174 if (block->next && block->next->status == FREE) { in realloc()
175 block->size += block->next->size + HDR_BLOCK; in realloc()
176 block->next = block->next->next; in realloc()
228 newblock->next = block->next; in split()
229 block->next = newblock; in split()
245 for (block = page->block; block; block = block->next) { in defrag()
250 for (block2 = block->next; block2 && block2->status == FREE; in defrag()
251 block2 = block2->next) { in defrag()
252 block->next = block2->next; in defrag()
262 memstart = page->next; in defrag()
265 for (page2 = memstart; page2->next; in defrag()
266 page2 = page2->next) { in defrag()
267 if (page2->next == page) { in defrag()
268 page2->next = page->next; in defrag()