Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 8 of 8) sorted by relevance

/TwlSDK-5.1.0/build/libraries/os/common/src/
Dos_alloc.c356 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/
Dalloc.h97 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/
Dmain.c44 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/
Dmain.c46 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/
Dmain.c37 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/
DMakefile46 heap-1 \
/TwlSDK-5.1.0/include/twl/os/common/
DsystemCall.h65 void* heap,
/TwlSDK-5.1.0/build/tools/loadrun/
Dloadrun.txt33 {0:01}--- heap init