Home
last modified time | relevance | path

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

/RvlSDK-3.3/include/revolution/mem/
DheapCommon.h130 MEMHeapHandle MEMFindParentHeap( MEMHeapHandle heap );
147 MEMGetHeapStartAddress( MEMHeapHandle heap ) in MEMGetHeapStartAddress() argument
149 return (void*)heap; in MEMGetHeapStartAddress()
162 MEMGetHeapEndAddress( MEMHeapHandle heap ) in MEMGetHeapEndAddress() argument
164 return heap->heapEnd; in MEMGetHeapEndAddress()
178 MEMGetHeapTotalUsableSize( MEMHeapHandle heap ) in MEMGetHeapTotalUsableSize() argument
180 return ((s32)(heap->heapEnd) - (s32)(heap->heapStart)); in MEMGetHeapTotalUsableSize()
195 MEMGetHeapTotalSize( MEMHeapHandle heap ) in MEMGetHeapTotalSize() argument
197 return ((s32)(heap->heapEnd) - (s32)(heap)); in MEMGetHeapTotalSize()
211 MEMGetHeapType( MEMHeapHandle heap ) in MEMGetHeapType() argument
[all …]
DexpHeap.h119 typedef void (*MEMHeapVisitor)( void* memBlock, MEMHeapHandle heap, u32 userParam );
133 void MEMiDumpExpHeap( MEMHeapHandle heap );
145 void* MEMDestroyExpHeap( MEMHeapHandle heap );
148 MEMHeapHandle heap,
153 MEMHeapHandle heap,
157 void MEMFreeToExpHeap( MEMHeapHandle heap, void* memBlock );
159 u32 MEMGetTotalFreeSizeForExpHeap( MEMHeapHandle heap );
161 u32 MEMGetAllocatableSizeForExpHeapEx( MEMHeapHandle heap, int alignment );
163 BOOL MEMiIsEmptyExpHeap( MEMHeapHandle heap );
165 u16 MEMSetAllocModeForExpHeap( MEMHeapHandle heap, u16 mode );
[all …]
DframeHeap.h70 void* MEMiGetFreeStartForFrmHeap( MEMHeapHandle heap );
72 void* MEMiGetFreeEndForFrmHeap ( MEMHeapHandle heap );
76 void MEMiDumpFrmHeap( MEMHeapHandle heap );
86 void* MEMDestroyFrmHeap( MEMHeapHandle heap );
89 MEMHeapHandle heap,
93 void MEMFreeToFrmHeap( MEMHeapHandle heap, int mode );
95 u32 MEMGetAllocatableSizeForFrmHeapEx( MEMHeapHandle heap, int alignment );
97 BOOL MEMRecordStateForFrmHeap( MEMHeapHandle heap, u32 tagName );
99 BOOL MEMFreeByStateToFrmHeap( MEMHeapHandle heap, u32 tagName );
101 u32 MEMAdjustFrmHeap( MEMHeapHandle heap );
[all …]
DunitHeap.h68 void MEMiDumpUnitHeap( MEMHeapHandle heap );
80 void* MEMDestroyUnitHeap ( MEMHeapHandle heap );
82 void* MEMAllocFromUnitHeap( MEMHeapHandle heap );
85 MEMHeapHandle heap,
88 u32 MEMCountFreeBlockForUnitHeap( MEMHeapHandle heap );
131 MEMGetMemBlockSizeForUnitHeap( MEMHeapHandle heap ) in MEMGetMemBlockSizeForUnitHeap() argument
133 return ( ( (const MEMiUntHeapHead*)( (const u8*)heap + sizeof(MEMiHeapHead) ) )->mBlkSize ); in MEMGetMemBlockSizeForUnitHeap()
Dallocator.h61 MEMHeapHandle heap,
66 MEMHeapHandle heap,
69 void MEMInitAllocatorForUnitHeap( MEMAllocator* pAllocator, MEMHeapHandle heap );
71 void MEMInitAllocatorForOSHeap ( MEMAllocator* pAllocator, OSHeapHandle heap );
/RvlSDK-3.3/build/libraries/mem/src/
Dmem_frameHeap.c298 MEMiGetFreeStartForFrmHeap( MEMHeapHandle heap ) in MEMiGetFreeStartForFrmHeap() argument
300 ASSERT(IsValidFrmHeapHandle_(heap)); in MEMiGetFreeStartForFrmHeap()
302 return GetFrmHeapHeadPtrFromHeapHead_(heap)->headAllocator; in MEMiGetFreeStartForFrmHeap()
315 MEMiGetFreeEndForFrmHeap( MEMHeapHandle heap ) in MEMiGetFreeEndForFrmHeap() argument
317 ASSERT(IsValidFrmHeapHandle_(heap)); in MEMiGetFreeEndForFrmHeap()
319 return GetFrmHeapHeadPtrFromHeapHead_(heap)->tailAllocator; in MEMiGetFreeEndForFrmHeap()
336 MEMiDumpFrmHeap( MEMHeapHandle heap ) in MEMiDumpFrmHeap() argument
338 ASSERT(IsValidFrmHeapHandle_(heap)); in MEMiDumpFrmHeap()
341 MEMiHeapHead *const pHeapHd = heap; in MEMiDumpFrmHeap()
437 MEMDestroyFrmHeap( MEMHeapHandle heap ) in MEMDestroyFrmHeap() argument
[all …]
Dmem_allocator.c46 MEMHeapHandle const heap = (MEMHeapHandle)pAllocator->pHeap; in AllocatorAllocForExpHeap_() local
48 return MEMAllocFromExpHeapEx( heap, size, alignment ); in AllocatorAllocForExpHeap_()
67 MEMHeapHandle const heap = (MEMHeapHandle)pAllocator->pHeap; in AllocatorFreeForExpHeap_() local
68 MEMFreeToExpHeap( heap, memBlock ); in AllocatorFreeForExpHeap_()
91 MEMHeapHandle const heap = (MEMHeapHandle)pAllocator->pHeap; in AllocatorAllocForFrmHeap_() local
93 return MEMAllocFromFrmHeapEx( heap, size, alignment ); in AllocatorAllocForFrmHeap_()
144 MEMHeapHandle const heap = (MEMHeapHandle)pAllocator->pHeap; in AllocatorAllocForUnitHeap_() local
146 if ( size > MEMGetMemBlockSizeForUnitHeap(heap) ) in AllocatorAllocForUnitHeap_()
151 return MEMAllocFromUnitHeap(heap); in AllocatorAllocForUnitHeap_()
170 MEMHeapHandle const heap = (MEMHeapHandle)pAllocator->pHeap; in AllocatorFreeForUnitHeap_() local
[all …]
Dmem_unitHeap.c136 MEMiDumpUnitHeap( MEMHeapHandle heap ) in MEMiDumpUnitHeap() argument
138 ASSERT( IsValidUnitHeapHandle_( heap ) ); in MEMiDumpUnitHeap()
141 MEMiHeapHead *const pHeapHd = heap; in MEMiDumpUnitHeap()
144 const u32 freeSize = MEMCountFreeBlockForUnitHeap( heap ) * pUnitHeapHd->mBlkSize; in MEMiDumpUnitHeap()
259 MEMDestroyUnitHeap( MEMHeapHandle heap ) in MEMDestroyUnitHeap() argument
261 ASSERT( IsValidUnitHeapHandle_(heap) ); in MEMDestroyUnitHeap()
263 MEMiFinalizeHeap(heap); in MEMDestroyUnitHeap()
264 return (void*)heap; in MEMDestroyUnitHeap()
280 MEMAllocFromUnitHeap( MEMHeapHandle heap ) in MEMAllocFromUnitHeap() argument
284 ASSERT( IsValidUnitHeapHandle_( heap ) ); in MEMAllocFromUnitHeap()
[all …]
Dmem_expHeap.c159 GetExpHeapHeadPtrFromHandle_( MEMHeapHandle heap ) in GetExpHeapHeadPtrFromHandle_() argument
161 return (MEMiExpHeapHead*)GetExpHeapHeadPtrFromHeapHead_( heap ); in GetExpHeapHeadPtrFromHandle_()
1149 MEMHeapHandle heap in IsValidUsedMBlock_() argument
1152 MEMiHeapHead* pHeapHd = heap; in IsValidUsedMBlock_()
1160 if ( heap ) { LockHeap( heap ); } in IsValidUsedMBlock_()
1164 if ( heap ) { UnlockHeap( heap ); } in IsValidUsedMBlock_()
1191 MEMiDumpExpHeap( MEMHeapHandle heap ) in MEMiDumpExpHeap() argument
1193 ASSERT(IsValidExpHeapHandle_(heap)); in MEMiDumpExpHeap()
1201 MEMiHeapHead* pHeapHd = heap; in MEMiDumpExpHeap()
1348 MEMDestroyExpHeap( MEMHeapHandle heap ) in MEMDestroyExpHeap() argument
[all …]
Dmem_heapCommon.c170 ListContainsHeap_( MEMList* list, const MEMiHeapHead* heap ) in ListContainsHeap_() argument
176 if ( pHeapHd == heap ) in ListContainsHeap_()
335 MEMFindParentHeap( MEMHeapHandle heap ) in MEMFindParentHeap() argument
341 if ( pHeapHd == heap ) in MEMFindParentHeap()
346 if ( GetUIntPtr( pHeapHd->heapStart ) <= GetUIntPtr( heap ) in MEMFindParentHeap()
347 && GetUIntPtr( heap ) < GetUIntPtr( pHeapHd->heapEnd ) in MEMFindParentHeap()
350 return FindParentHeap_( pHeapHd, heap ); in MEMFindParentHeap()
371 MEMDumpHeap( MEMHeapHandle heap ) in MEMDumpHeap() argument
373 MEMiHeapHead* pHeapHd = heap; in MEMDumpHeap()
378 LockHeap( heap ); in MEMDumpHeap()
[all …]
/RvlSDK-3.3/build/libraries/os/src/
DOSAlloc.c338 void* OSAllocFromHeap(OSHeapHandle heap, u32 size) in OSAllocFromHeap() argument
351 ASSERTMSG(0 <= heap && heap < NumHeaps, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OSAllocFromHeap()
352 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OSAllocFromHeap()
354 hd = &HeapArray[heap]; in OSAllocFromHeap()
584 void OSFreeToHeap(OSHeapHandle heap, void* ptr) in OSFreeToHeap() argument
593 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_FREETOHEAP_INVHEAP); in OSFreeToHeap()
596 hd = &HeapArray[heap]; in OSFreeToHeap()
627 OSHeapHandle OSSetCurrentHeap(OSHeapHandle heap) in OSSetCurrentHeap() argument
632 ASSERTMSG(0 <= heap && heap < NumHeaps, OS_ERR_SETCURRENTHEAP_INVHEAP); in OSSetCurrentHeap()
633 ASSERTMSG(0 <= HeapArray[heap].size, OS_ERR_SETCURRENTHEAP_INVHEAP); in OSSetCurrentHeap()
[all …]
/RvlSDK-3.3/build/demos/memdemo/src/
Dfrm-1.c33 static void ReportFrmHeap( MEMHeapHandle heap );
34 static void ReportExpHeap( MEMHeapHandle heap );
209 ReportFrmHeap( MEMHeapHandle heap ) in ReportFrmHeap() argument
211 u32 allocatableSize = MEMGetAllocatableSizeForFrmHeap( heap ); in ReportFrmHeap()
212 u32 totalSize = (u32)MEMGetHeapTotalUsableSize( heap ); in ReportFrmHeap()
216 … OSReport(" whole [%p - %p)\n", MEMGetHeapStartAddress( heap ), MEMGetHeapEndAddress( heap ) ); in ReportFrmHeap()
249 MEMHeapHandle heap, in ReportVisitorFunc() argument
253 #pragma unused( heap ) in ReportVisitorFunc()
281 ReportExpHeap( MEMHeapHandle heap ) in ReportExpHeap() argument
287 … OSReport(" whole [%p - %p)\n", MEMGetHeapStartAddress( heap ), MEMGetHeapEndAddress( heap ) ); in ReportExpHeap()
[all …]
Dexp-1.c31 static void ReportExpHeap( MEMHeapHandle heap );
65 MEMHeapHandle heap, in GetTailSizeVisitorFunc() argument
69 #pragma unused( heap ) in GetTailSizeVisitorFunc()
93 MEMHeapHandle heap, in FreeGroupVisitorFunc() argument
105 MEMFreeToExpHeap( heap, memBlock ); in FreeGroupVisitorFunc()
258 MEMHeapHandle heap, in ReportVisitorFunc() argument
262 #pragma unused( heap ) in ReportVisitorFunc()
290 ReportExpHeap( MEMHeapHandle heap ) in ReportExpHeap() argument
296 … OSReport(" whole [%p - %p)\n", MEMGetHeapStartAddress( heap ), MEMGetHeapEndAddress( heap ) ); in ReportExpHeap()
300 heap, // The heap handle in ReportExpHeap()
Dunit-1.c29 static void ReportUnitHeap( MEMHeapHandle heap );
114 ReportUnitHeap( MEMHeapHandle heap ) in ReportUnitHeap() argument
116 u32 freeSize = MEMCountFreeBlockForUnitHeap( heap ) * MEMGetMemBlockSizeForUnitHeap( heap ); in ReportUnitHeap()
117 u32 totalSize = (u32)MEMGetHeapTotalUsableSize( heap ); in ReportUnitHeap()
120 … OSReport(" whole [%p - %p)\n", MEMGetHeapStartAddress( heap ), MEMGetHeapEndAddress( heap ) ); in ReportUnitHeap()
Dthread_safe.c36 static void ReportExpHeap( MEMHeapHandle heap );
279 MEMHeapHandle heap, in ReportVisitorFunc() argument
283 #pragma unused( heap ) in ReportVisitorFunc()
311 ReportExpHeap( MEMHeapHandle heap ) in ReportExpHeap() argument
317 … OSReport(" whole [%p - %p)\n", MEMGetHeapStartAddress( heap ), MEMGetHeapEndAddress( heap ) ); in ReportExpHeap()
321 heap, // The heap handle in ReportExpHeap()
/RvlSDK-3.3/include/revolution/os/
DOSAlloc.h86 OSHeapHandle heap);
88 OSHeapHandle heap,
93 OSHeapHandle heap);
96 OSHeapHandle heap,
102 OSHeapHandle heap,
106 OSHeapHandle heap);
108 OSHeapHandle heap);
/RvlSDK-3.3/build/demos/pmicdemo/src/
Daudio.c139 static u8* loadFile ( char *path, MEMHeapHandle* heap );
154 BOOL AUDIOInit(MEMHeapHandle* heap, MicFunc procFunc) in AUDIOInit() argument
161 axBuff = MEMAllocFromExpHeapEx(*heap, AXGetMemorySize (AX_MAX_VOICES), 32); in AUDIOInit()
162 mixBuff = MEMAllocFromExpHeapEx(*heap, MIXGetMemorySize(AX_MAX_VOICES), 32); in AUDIOInit()
163 synBuff = MEMAllocFromExpHeapEx(*heap, SYNGetMemorySize(AX_MAX_VOICES), 32); in AUDIOInit()
182 waveTbl = loadFile(AUDIO_GM_WT, heap); in AUDIOInit()
183 pcmData = loadFile(AUDIO_GM_PCM, heap); in AUDIOInit()
184 midiData = loadFile(AUDIO_MIDI_FILE, heap); in AUDIOInit()
207 srcBuff = MEMAllocFromExpHeapEx(*heap, SRC_BUFF_SAMPLES * sizeof(s16), 32); in AUDIOInit()
213 procInfo.buffer = MEMAllocFromExpHeapEx(*heap, PROC_BUFF_SAMPLES * sizeof(s16), 32); in AUDIOInit()
[all …]
/RvlSDK-3.3/build/demos/kpaddemo/src/
Dmain.c72 OSHeapHandle heap ; in init_memory() local
84 heap = OSCreateHeap( arenaLo, arenaHi ) ; in init_memory()
85 (void)OSSetCurrentHeap( heap ) ; in init_memory()
Dswing.c60 OSHeapHandle heap ; in init_memory() local
72 heap = OSCreateHeap( arenaLo, arenaHi ) ; in init_memory()
73 (void)OSSetCurrentHeap( heap ) ; in init_memory()
/RvlSDK-3.3/build/demos/pmicdemo/include/
Daudio.h39 BOOL AUDIOInit ( MEMHeapHandle* heap, MicFunc procFunc );
/RvlSDK-3.3/vcmv/
DReadme_en.txt183 ** size of the heap allocated with VCMVAllocateHeap(). **
186 ** for the heap, please consider how many pages the user is expected to **