Home
last modified time | relevance | path

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

/TwlSDK-5.4/include/nitro/os/common/
Dalloc.h113 extern void OS_DestroyHeap(OSArenaId id, OSHeapHandle heap);
129 extern void OS_AddToHeap(OSArenaId id, OSHeapHandle heap, void *start, void *end);
144 void OS_AddExtraAreaToHeap(OSArenaId id, OSHeapHandle heap);
159 extern OSHeapHandle OS_SetCurrentHeap(OSArenaId id, OSHeapHandle heap);
174 extern void *OS_AllocFromHeap(OSArenaId id, OSHeapHandle heap, u32 size);
205 extern void OS_FreeToHeap(OSArenaId id, OSHeapHandle heap, void *ptr);
217 extern void OS_FreeAllToHeap(OSArenaId id, OSHeapHandle heap);
230 extern s32 OS_CheckHeap(OSArenaId id, OSHeapHandle heap);
242 extern void OS_DumpHeap(OSArenaId id, OSHeapHandle heap);
281 extern u32 OSi_GetTotalAllocSize(OSArenaId id, OSHeapHandle heap, BOOL isHeadInclude);
[all …]
/TwlSDK-5.4/build/libraries/os/common/src/
Dos_alloc.c360 void *OS_AllocFromHeap(OSArenaId id, OSHeapHandle heap, u32 size) in OS_AllocFromHeap() argument
388 if (heap < 0) in OS_AllocFromHeap()
390 heap = heapInfo->currentHeap; in OS_AllocFromHeap()
395 SDK_TASSERTMSG(0 <= heap && heap < heapInfo->numHeaps, OS_ERR_ALLOCFROMHEAP_INVHEAP); 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()
673 void OS_FreeToHeap(OSArenaId id, OSHeapHandle heap, void *ptr) in OS_FreeToHeap() argument
686 if (heap < 0) in OS_FreeToHeap()
688 heap = heapInfo->currentHeap; in OS_FreeToHeap()
694 if ( OSi_ExtraHeapArenaId != id || OSi_ExtraHeapHandle != heap ) in OS_FreeToHeap()
[all …]
/TwlSDK-5.4/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.4/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.4/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.4/build/demos/os/
DMakefile45 heap-1 \
/TwlSDK-5.4/include/twl/os/common/
DsystemCall.h65 void* heap,
/TwlSDK-5.4/build/tools/loadrun/
Dloadrun.txt33 {0:01}--- heap init