Lines Matching refs:next
128 Cell* next; member
173 cell->next = list; in DLAddFront()
192 for (; list; list = list->next) in DLLookup()
214 if (cell->next) in DLExtract()
215 cell->next->prev = cell->prev; in DLExtract()
217 return cell->next; in DLExtract()
220 cell->prev->next = cell->next; in DLExtract()
240 Cell* next; in DLInsert() local
242 for (next = list, prev = NULL; next; prev = next, next = next->next) in DLInsert()
244 if (cell <= next) in DLInsert()
247 cell->next = next; in DLInsert()
249 if (next) in DLInsert()
251 next->prev = cell; in DLInsert()
252 if ((char*) cell + cell->size == (char*) next) in DLInsert()
255 cell->size += next->size; in DLInsert()
256 cell->next = next = next->next; in DLInsert()
257 if (next) in DLInsert()
258 next->prev = cell; in DLInsert()
263 prev->next = cell; in DLInsert()
268 prev->next = next; in DLInsert()
269 if (next) in DLInsert()
270 next->prev = prev; in DLInsert()
296 for (cell = list; cell; cell = cell->next) in DLOverlap()
318 for (cell = list; cell; cell = cell->next) in DLSize()
361 for (cell = hd->free; cell != NULL; cell = cell->next) in OSAllocFromHeap()
399 newCell->next = cell->next; in OSAllocFromHeap()
400 if (newCell->next != NULL) in OSAllocFromHeap()
401 newCell->next->prev = newCell; in OSAllocFromHeap()
403 newCell->prev->next = newCell; in OSAllocFromHeap()
484 for (cell = hd->free; cell; cell = cell->next) in OSAllocFixed()
521 newCell->next = cell->next; in OSAllocFixed()
522 if (newCell->next) in OSAllocFixed()
523 newCell->next->prev = newCell; in OSAllocFixed()
526 newCell->prev->next = newCell; in OSAllocFixed()
553 newCell->next = cell->next; in OSAllocFixed()
554 if (newCell->next) in OSAllocFixed()
555 newCell->next->prev = newCell; in OSAllocFixed()
557 cell->next = newCell; // cell is before newCell in OSAllocFixed()
751 cell->next = NULL; in OSCreateHeap()
917 for (cell = hd->allocated; cell; cell = cell->next) in OSCheckHeap()
921 CHECK(cell->next == NULL || cell->next->prev == cell); in OSCheckHeap()
935 for (cell = hd->free; cell; cell = cell->next) in OSCheckHeap()
939 CHECK(cell->next == NULL || cell->next->prev == cell); in OSCheckHeap()
942 CHECK(cell->next == NULL || (char*) cell + cell->size < (char*) cell->next); in OSCheckHeap()
1031 for (cell = hd->allocated; cell; cell = cell->next) in OSDumpHeap()
1038 cell->next in OSDumpHeap()
1043 for (cell = hd->free; cell; cell = cell->next) in OSDumpHeap()
1050 cell->next in OSDumpHeap()
1075 for (cell = HeapArray[heap].allocated; cell; cell = cell->next) in OSVisitAllocated()