Searched refs:heap (Results 1 – 8 of 8) sorted by relevance
| /TwlSDK-5.1.0/build/libraries/os/common/src/ |
| D | os_alloc.c | 356 void *OS_AllocFromHeap(OSArenaId id, OSHeapHandle heap, u32 size) in OS_AllocFromHeap() argument 384 if (heap < 0) in OS_AllocFromHeap() 386 heap = heapInfo->currentHeap; in OS_AllocFromHeap() 391 SDK_ASSERTMSG(0 <= heap && heap < heapInfo->numHeaps, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OS_AllocFromHeap() 392 SDK_ASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OS_AllocFromHeap() 394 hd = &heapInfo->heapArray[heap]; in OS_AllocFromHeap() 667 void OS_FreeToHeap(OSArenaId id, OSHeapHandle heap, void *ptr) in OS_FreeToHeap() argument 680 if (heap < 0) in OS_FreeToHeap() 682 heap = heapInfo->currentHeap; in OS_FreeToHeap() 690 SDK_ASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_FREETOHEAP_INVHEAP); in OS_FreeToHeap() [all …]
|
| /TwlSDK-5.1.0/include/nitro/os/common/ |
| D | alloc.h | 97 extern void OS_DestroyHeap(OSArenaId id, OSHeapHandle heap); 113 extern void OS_AddToHeap(OSArenaId id, OSHeapHandle heap, void *start, void *end); 127 extern OSHeapHandle OS_SetCurrentHeap(OSArenaId id, OSHeapHandle heap); 142 extern void *OS_AllocFromHeap(OSArenaId id, OSHeapHandle heap, u32 size); 173 extern void OS_FreeToHeap(OSArenaId id, OSHeapHandle heap, void *ptr); 185 extern void OS_FreeAllToHeap(OSArenaId id, OSHeapHandle heap); 198 extern s32 OS_CheckHeap(OSArenaId id, OSHeapHandle heap); 210 extern void OS_DumpHeap(OSArenaId id, OSHeapHandle heap); 249 extern u32 OSi_GetTotalAllocSize(OSArenaId id, OSHeapHandle heap, BOOL isHeadInclude); 250 static inline u32 OS_GetTotalAllocSize(OSArenaId id, OSHeapHandle heap) in OS_GetTotalAllocSize() argument [all …]
|
| /TwlSDK-5.1.0/build/demos.TWL/el/simple-1/simple-1_static/src/ |
| D | main.c | 44 void* heap; in MY_Alloc() local 45 heap = OS_Alloc( size); in MY_Alloc() 46 if( heap == NULL) { OS_TPanic( "OS_Alloc failed.\n");} in MY_Alloc() 47 return( heap); in MY_Alloc()
|
| /TwlSDK-5.1.0/build/demos.TWL/el/simple-2/simple-2_static/src/ |
| D | main.c | 46 void* heap; in MY_Alloc() local 47 heap = OS_Alloc( size); in MY_Alloc() 48 if( heap == NULL) { OS_TPanic( "OS_Alloc failed.\n");} in MY_Alloc() 49 return( heap); in MY_Alloc()
|
| /TwlSDK-5.1.0/build/demos/os/heap-1/src/ |
| D | main.c | 37 void DisplayHeap(u32 heap); 140 void DisplayHeap( u32 heap ) in DisplayHeap() argument 142 if ( heap & DISPLAY_HEAP1 ) in DisplayHeap() 151 if ( heap & DISPLAY_HEAP2 ) in DisplayHeap()
|
| /TwlSDK-5.1.0/build/demos/os/ |
| D | Makefile | 46 heap-1 \
|
| /TwlSDK-5.1.0/include/twl/os/common/ |
| D | systemCall.h | 65 void* heap,
|
| /TwlSDK-5.1.0/build/tools/loadrun/ |
| D | loadrun.txt | 33 {0:01}--- heap init
|