Lines Matching refs:id
360 void *OS_AllocFromHeap(OSArenaId id, OSHeapHandle heap, u32 size) in OS_AllocFromHeap() argument
376 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_ALLOCFROMHEAP_INVID); in OS_AllocFromHeap()
377 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_ALLOCFROMHEAP_NOINFO); in OS_AllocFromHeap()
378 heapInfo = OSiHeapInfo[id]; in OS_AllocFromHeap()
494 void *OS_AllocFixed(OSArenaId id, void **rstart, void **rend) in OS_AllocFixed() argument
506 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_ALLOCFIXED_INVID); in OS_AllocFixed()
507 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_ALLOCFIXED_NOINFO); in OS_AllocFixed()
508 heapInfo = OSiHeapInfo[id]; in OS_AllocFixed()
673 void OS_FreeToHeap(OSArenaId id, OSHeapHandle heap, void *ptr) in OS_FreeToHeap() argument
682 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_FREETOHEAP_INVID); in OS_FreeToHeap()
683 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_FREETOHEAP_NOINFO); in OS_FreeToHeap()
684 heapInfo = OSiHeapInfo[id]; in OS_FreeToHeap()
694 if ( OSi_ExtraHeapArenaId != id || OSi_ExtraHeapHandle != heap ) in OS_FreeToHeap()
737 void OS_FreeAllToHeap(OSArenaId id, OSHeapHandle heap) in OS_FreeAllToHeap() argument
746 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_FREETOHEAP_INVID); in OS_FreeAllToHeap()
747 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_FREETOHEAP_NOINFO); in OS_FreeAllToHeap()
748 heapInfo = OSiHeapInfo[id]; in OS_FreeAllToHeap()
793 OSHeapHandle OS_SetCurrentHeap(OSArenaId id, OSHeapHandle heap) in OS_SetCurrentHeap() argument
800 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_SETCURRENTHEAP_INVID); in OS_SetCurrentHeap()
801 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_SETCURRENTHEAP_NOINFO); in OS_SetCurrentHeap()
802 heapInfo = OSiHeapInfo[id]; in OS_SetCurrentHeap()
830 void *OS_InitAlloc(OSArenaId id, void *arenaStart, void *arenaEnd, int maxHeaps) in OS_InitAlloc() argument
838 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_INITALLOC_INVID); in OS_InitAlloc()
839 SDK_ASSERTMSG(OSiHeapInfo[id] == NULL, OS_ERR_INITALLOC_INVINFO); in OS_InitAlloc()
847 OSiHeapInfo[id] = heapInfo; in OS_InitAlloc()
890 void OS_ClearAlloc(OSArenaId id) in OS_ClearAlloc() argument
892 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_CLEARALLOC_INVID); in OS_ClearAlloc()
893 OSiHeapInfo[id] = NULL; in OS_ClearAlloc()
911 OSHeapHandle OS_CreateHeap(OSArenaId id, void *start, void *end) in OS_CreateHeap() argument
922 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_CREATEHEAP_INVID); in OS_CreateHeap()
923 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_CREATEHEAP_NOINFO); in OS_CreateHeap()
924 heapInfo = OSiHeapInfo[id]; in OS_CreateHeap()
997 OSHeapHandle OS_CreateExtraHeap(OSArenaId id) in OS_CreateExtraHeap() argument
1005 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_CREATEHEAP_INVID); in OS_CreateExtraHeap()
1007 heapInfo = OSiHeapInfo[id]; in OS_CreateExtraHeap()
1035 OSi_ExtraHeapArenaId = id; in OS_CreateExtraHeap()
1062 void OS_DestroyHeap(OSArenaId id, OSHeapHandle heap) in OS_DestroyHeap() argument
1072 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_DESTROYHEAP_INVID); in OS_DestroyHeap()
1073 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_DESTROYHEAP_NOINFO); in OS_DestroyHeap()
1074 heapInfo = OSiHeapInfo[id]; in OS_DestroyHeap()
1093 if ( OSi_ExtraHeapArenaId == id && OSi_ExtraHeapHandle == heap ) in OS_DestroyHeap()
1128 void OS_AddToHeap(OSArenaId id, OSHeapHandle heap, void *start, void *end) in OS_AddToHeap() argument
1139 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_ADDTOHEAP_INVID); in OS_AddToHeap()
1140 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_ADDTOHEAP_NOINFO); in OS_AddToHeap()
1141 heapInfo = OSiHeapInfo[id]; in OS_AddToHeap()
1207 void OS_AddExtraAreaToHeap(OSArenaId id, OSHeapHandle heap) in OS_AddExtraAreaToHeap() argument
1211 OS_AddToHeap(id, heap, in OS_AddExtraAreaToHeap()
1214 OSi_ExtraHeapArenaId = id; in OS_AddExtraAreaToHeap()
1265 s32 OS_CheckHeap(OSArenaId id, OSHeapHandle heap) in OS_CheckHeap() argument
1276 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_CHECKHEAP_INVID); in OS_CheckHeap()
1277 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_CHECKHEAP_NOINFO); in OS_CheckHeap()
1278 heapInfo = OSiHeapInfo[id]; in OS_CheckHeap()
1298 if ( OSi_ExtraHeapArenaId != id || OSi_ExtraHeapHandle != heap ) in OS_CheckHeap()
1325 if ( OSi_ExtraHeapArenaId != id || OSi_ExtraHeapHandle != heap ) in OS_CheckHeap()
1367 u32 OS_ReferentSize(OSArenaId id, void *ptr) in OS_ReferentSize() argument
1374 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_REFERENTSIZE_INVID); in OS_ReferentSize()
1375 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_REFERENTSIZE_NOINFO); in OS_ReferentSize()
1376 heapInfo = OSiHeapInfo[id]; in OS_ReferentSize()
1381 if ( OSi_ExtraHeapArenaId != id ) in OS_ReferentSize()
1413 void OS_DumpHeap(OSArenaId id, OSHeapHandle heap) in OS_DumpHeap() argument
1422 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_DUMPHEAP_INVID); in OS_DumpHeap()
1423 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_DUMPHEAP_NOINFO); in OS_DumpHeap()
1424 heapInfo = OSiHeapInfo[id]; in OS_DumpHeap()
1442 SDK_ASSERTMSG(0 <= OS_CheckHeap(id, heap), OS_ERR_DUMPHEAP_BROKENHEAP); in OS_DumpHeap()
1485 #pragma unused( id, heap ) in OS_DumpHeap()
1502 void OS_VisitAllocated(OSArenaId id, OSAllocVisitor visitor) in OS_VisitAllocated() argument
1511 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_VISITALLOCATED_INVID); in OS_VisitAllocated()
1512 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_VISITALLOCATED_NOINFO); in OS_VisitAllocated()
1513 heapInfo = OSiHeapInfo[id]; in OS_VisitAllocated()
1544 u32 OSi_GetTotalAllocSize(OSArenaId id, OSHeapHandle heap, BOOL isHeadInclude) in OSi_GetTotalAllocSize() argument
1551 SDK_ASSERT(id < OS_ARENA_MAX); in OSi_GetTotalAllocSize()
1552 heapInfo = OSiHeapInfo[id]; in OSi_GetTotalAllocSize()
1593 u32 OS_GetTotalFreeSize(OSArenaId id, OSHeapHandle heap) in OS_GetTotalFreeSize() argument
1600 SDK_ASSERT(id < OS_ARENA_MAX); in OS_GetTotalFreeSize()
1601 heapInfo = OSiHeapInfo[id]; in OS_GetTotalFreeSize()
1631 u32 OS_GetMaxFreeSize(OSArenaId id, OSHeapHandle heap) in OS_GetMaxFreeSize() argument
1638 SDK_ASSERT(id < OS_ARENA_MAX); in OS_GetMaxFreeSize()
1639 heapInfo = OSiHeapInfo[id]; in OS_GetMaxFreeSize()
1678 void OS_ClearHeap(OSArenaId id, OSHeapHandle heap, void *start, void *end) in OS_ClearHeap() argument
1687 SDK_ASSERTMSG(id < OS_ARENA_MAX, "invalid id"); in OS_ClearHeap()
1689 heapInfo = OSiHeapInfo[id]; in OS_ClearHeap()
1698 if ( OSi_ExtraHeapArenaId != id || OSi_ExtraHeapHandle != heap ) in OS_ClearHeap()
1745 void OS_ClearExtraHeap(OSArenaId id, OSHeapHandle heap) in OS_ClearExtraHeap() argument
1749 if ( OSi_ExtraHeapArenaId == id || OSi_ExtraHeapHandle == heap ) in OS_ClearExtraHeap()
1751 OS_ClearHeap(id, heap, in OS_ClearExtraHeap()