Lines Matching refs:HeapArray
155 static HeapDesc* HeapArray; // array of current heap descriptors variable
349 ASSERTMSG(HeapArray, OS_ERR_ALLOCFROMHEAP_NOHEAP); in OSAllocFromHeap()
352 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OSAllocFromHeap()
354 hd = &HeapArray[heap]; in OSAllocFromHeap()
448 ASSERTMSG(HeapArray, OS_ERR_ALLOCFIXED_NOHEAP); in OSAllocFixed()
456 hd = &HeapArray[i]; in OSAllocFixed()
480 hd = &HeapArray[i]; in OSAllocFixed()
589 ASSERTMSG(HeapArray, OS_ERR_FREETOHEAP_NOHEAP); in OSFreeToHeap()
593 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_FREETOHEAP_INVHEAP); in OSFreeToHeap()
596 hd = &HeapArray[heap]; in OSFreeToHeap()
631 ASSERTMSG(HeapArray, OS_ERR_SETCURRENTHEAP_NOHEAP); in OSSetCurrentHeap()
633 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_SETCURRENTHEAP_INVHEAP); in OSSetCurrentHeap()
668 HeapArray = arenaStart; in OSInitAlloc()
673 HeapDesc* hd = &HeapArray[i]; in OSInitAlloc()
686 arenaStart = (void*) ((char*) HeapArray + arraySize); in OSInitAlloc()
717 ASSERTMSG(HeapArray, OS_ERR_CREATEHEAP_NOHEAP); in OSCreateHeap()
732 if (HeapArray[heap].size < 0) in OSCreateHeap()
734 ASSERTMSG(!DLOverlap(HeapArray[heap].free, start, end), in OSCreateHeap()
736 ASSERTMSG(!DLOverlap(HeapArray[heap].allocated, start, end), in OSCreateHeap()
744 hd = &HeapArray[heap]; in OSCreateHeap()
794 ASSERTMSG(HeapArray, OS_ERR_DESTROYHEAP_NOHEAP); in OSDestroyHeap()
796 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_DESTROYHEAP_INVHEAP); in OSDestroyHeap()
798 hd = &HeapArray[heap]; in OSDestroyHeap()
842 ASSERTMSG(HeapArray, OS_ERR_ADDTOHEAP_NOHEAP); in OSAddToHeap()
844 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_ADDTOHEAP_INVHEAP); in OSAddToHeap()
846 hd = &HeapArray[heap]; in OSAddToHeap()
861 if (HeapArray[i].size < 0) in OSAddToHeap()
863 ASSERTMSG(!DLOverlap(HeapArray[i].free, start, end), in OSAddToHeap()
865 ASSERTMSG(!DLOverlap(HeapArray[i].allocated, start, end), in OSAddToHeap()
910 CHECK(HeapArray); in OSCheckHeap()
913 hd = &HeapArray[heap]; in OSCheckHeap()
972 ASSERTMSG(HeapArray, OS_ERR_REFERENT_NOHEAP); in OSReferentSize()
980 ASSERTMSG(((char*) cell->hd - (char*) HeapArray) % sizeof(HeapDesc) == 0, in OSReferentSize()
982 ASSERTMSG(HeapArray <= cell->hd && cell->hd < &HeapArray[NumHeaps], in OSReferentSize()
1007 ASSERTMSG(HeapArray, OS_ERR_DUMPHEAP_NOHEAP); in OSDumpHeap()
1010 hd = &HeapArray[heap]; in OSDumpHeap()
1073 if (HeapArray[heap].size >= 0) in OSVisitAllocated()
1075 for (cell = HeapArray[heap].allocated; cell; cell = cell->next) in OSVisitAllocated()