Lines Matching refs:heapArray
147 HeapDesc *heapArray; member
393 SDK_TASSERTMSG(heapInfo->heapArray, OS_ERR_ALLOCFROMHEAP_NOHEAP); in OS_AllocFromHeap()
396 SDK_TASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OS_AllocFromHeap()
398 hd = &heapInfo->heapArray[heap]; in OS_AllocFromHeap()
510 SDK_TASSERTMSG(heapInfo->heapArray, OS_ERR_ALLOCFIXED_NOHEAP); in OS_AllocFixed()
517 hd = &heapInfo->heapArray[i]; in OS_AllocFixed()
544 hd = &heapInfo->heapArray[i]; in OS_AllocFixed()
691 SDK_TASSERTMSG(heapInfo->heapArray, OS_ERR_FREETOHEAP_NOHEAP); in OS_FreeToHeap()
703 SDK_TASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_FREETOHEAP_INVHEAP); in OS_FreeToHeap()
706 hd = &heapInfo->heapArray[heap]; in OS_FreeToHeap()
755 SDK_TASSERTMSG(heapInfo->heapArray, "heap not initialized"); in OS_FreeAllToHeap()
756 SDK_TASSERTMSG(0 <= heapInfo->heapArray[heap].size, "invalid heap handle"); in OS_FreeAllToHeap()
758 hd = &heapInfo->heapArray[heap]; in OS_FreeAllToHeap()
804 SDK_TASSERTMSG(heapInfo->heapArray, OS_ERR_SETCURRENTHEAP_NOHEAP); in OS_SetCurrentHeap()
806 SDK_TASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_SETCURRENTHEAP_INVHEAP); in OS_SetCurrentHeap()
851 heapInfo->heapArray = (void *)((u32)arenaStart + sizeof(OSHeapInfo)); in OS_InitAlloc()
856 HeapDesc *hd = &heapInfo->heapArray[i]; in OS_InitAlloc()
869 arenaStart = (void *)((char *)heapInfo->heapArray + arraySize); in OS_InitAlloc()
926 SDK_TASSERTMSG(heapInfo->heapArray, OS_ERR_CREATEHEAP_NOHEAP); in OS_CreateHeap()
939 if (heapInfo->heapArray[heap].size < 0) in OS_CreateHeap()
943 …SDK_TASSERTMSG(!DLOverlap(heapInfo->heapArray[heap].free, start, end), OS_ERR_CREATEHEAP_INVRANGE); in OS_CreateHeap()
944 …SDK_TASSERTMSG(!DLOverlap(heapInfo->heapArray[heap].allocated, start, end), OS_ERR_CREATEHEAP_INVR… in OS_CreateHeap()
951 hd = &heapInfo->heapArray[heap]; in OS_CreateHeap()
1009 SDK_TASSERTMSG(heapInfo->heapArray, OS_ERR_CREATEHEAP_NOHEAP); in OS_CreateExtraHeap()
1017 hd = &heapInfo->heapArray[heap]; in OS_CreateExtraHeap()
1076 SDK_TASSERTMSG(heapInfo->heapArray, OS_ERR_DESTROYHEAP_NOHEAP); in OS_DestroyHeap()
1078 SDK_TASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_DESTROYHEAP_INVHEAP); in OS_DestroyHeap()
1080 hd = &heapInfo->heapArray[heap]; in OS_DestroyHeap()
1143 SDK_TASSERTMSG(heapInfo->heapArray, OS_ERR_ADDTOHEAP_NOHEAP); in OS_AddToHeap()
1145 SDK_TASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_ADDTOHEAP_INVHEAP); in OS_AddToHeap()
1147 hd = &heapInfo->heapArray[heap]; in OS_AddToHeap()
1171 if (heapInfo->heapArray[i].size < 0) in OS_AddToHeap()
1175 … SDK_TASSERTMSG(!DLOverlap(heapInfo->heapArray[i].free, start, end), OS_ERR_ADDTOHEAP_INVRANGE); in OS_AddToHeap()
1176 …SDK_TASSERTMSG(!DLOverlap(heapInfo->heapArray[i].allocated, start, end), OS_ERR_ADDTOHEAP_INVRANGE… in OS_AddToHeap()
1287 OSi_CHECK(heapInfo->heapArray); in OS_CheckHeap()
1290 hd = &heapInfo->heapArray[heap]; in OS_CheckHeap()
1378 SDK_TASSERTMSG(heapInfo->heapArray, OS_ERR_REFERENT_NOHEAP); in OS_ReferentSize()
1394 …SDK_TASSERTMSG(((char *)cell->hd - (char *)heapInfo->heapArray) % sizeof(HeapDesc) == 0, OS_ERR_RE… in OS_ReferentSize()
1395 …SDK_TASSERTMSG(heapInfo->heapArray <= cell->hd && cell->hd < &heapInfo->heapArray[heapInfo->numHea… in OS_ReferentSize()
1426 SDK_TASSERTMSG(heapInfo && heapInfo->heapArray, OS_ERR_DUMPHEAP_NOHEAP); in OS_DumpHeap()
1435 hd = &heapInfo->heapArray[heap]; in OS_DumpHeap()
1519 if (heapInfo->heapArray[heap].size >= 0) in OS_VisitAllocated()
1521 for (cell = heapInfo->heapArray[heap].allocated; cell; cell = cell->next) in OS_VisitAllocated()
1566 for (cell = heapInfo->heapArray[heap].allocated; cell; cell = cell->next) in OSi_GetTotalAllocSize()
1573 for (cell = heapInfo->heapArray[heap].allocated; cell; cell = cell->next) in OSi_GetTotalAllocSize()
1613 for (cell = heapInfo->heapArray[heap].free; cell; cell = cell->next) in OS_GetTotalFreeSize()
1651 for (cell = heapInfo->heapArray[heap].free; cell; cell = cell->next) in OS_GetMaxFreeSize()
1693 SDK_TASSERTMSG(heapInfo && heapInfo->heapArray, "heap not initialized"); in OS_ClearHeap()
1717 hd = &heapInfo->heapArray[heap]; in OS_ClearHeap()