Lines Matching refs:pHeapHd
74 MEMiHeapHead* pHeapHd = NULL; in FindContainHeap_() local
75 while ( NULL != ( pHeapHd = (MEMiHeapHead*)MEMGetNextListObject(pList, pHeapHd) ) ) in FindContainHeap_()
77 if ( GetUIntPtr( pHeapHd->heapStart ) <= GetUIntPtr( memBlock ) in FindContainHeap_()
78 && GetUIntPtr( memBlock ) < GetUIntPtr( pHeapHd->heapEnd ) in FindContainHeap_()
81 MEMiHeapHead* pChildHeapHd = FindContainHeap_( &pHeapHd->childList, memBlock ); in FindContainHeap_()
86 return pHeapHd; in FindContainHeap_()
110 MEMiHeapHead* pHeapHd = NULL; in FindParentHeap_() local
112 while ( NULL != ( pHeapHd = (MEMiHeapHead*)MEMGetNextListObject(pList, pHeapHd) ) ) in FindParentHeap_()
114 if ( pHeapHd == pTargetHeap ) in FindParentHeap_()
121 if ( GetUIntPtr( pHeapHd->heapStart ) <= GetUIntPtr( pTargetHeap ) in FindParentHeap_()
122 && GetUIntPtr( pTargetHeap ) < GetUIntPtr( pHeapHd->heapEnd ) in FindParentHeap_()
125 return FindParentHeap_( pHeapHd, pTargetHeap ); in FindParentHeap_()
144 FindListContainHeap_( const MEMiHeapHead* pHeapHd ) in FindListContainHeap_() argument
148 MEMiHeapHead* pContainHeap = FindContainHeap_( &sRootList, pHeapHd ); in FindListContainHeap_()
172 MEMiHeapHead* pHeapHd = NULL; in ListContainsHeap_() local
174 while ( NULL != ( pHeapHd = (MEMiHeapHead*)MEMGetNextListObject(list, pHeapHd) ) ) in ListContainsHeap_()
176 if ( pHeapHd == heap ) in ListContainsHeap_()
204 MEMiHeapHead* pHeapHd, in MEMiInitHeapHead() argument
211 pHeapHd->signature = signature; in MEMiInitHeapHead()
213 pHeapHd->heapStart = heapStart; in MEMiInitHeapHead()
214 pHeapHd->heapEnd = heapEnd; in MEMiInitHeapHead()
216 pHeapHd->attribute.val = 0; in MEMiInitHeapHead()
218 SetOptForHeap( pHeapHd, optFlag ); in MEMiInitHeapHead()
221 pHeapHd, in MEMiInitHeapHead()
226 MEM_INIT_LIST( &pHeapHd->childList, MEMiHeapHead, link ); in MEMiInitHeapHead()
237 OSInitMutex( &pHeapHd->mutex ); in MEMiInitHeapHead()
241 MEMAppendListObject( FindListContainHeap_( pHeapHd ), pHeapHd ); in MEMiInitHeapHead()
256 MEMiFinalizeHeap( MEMiHeapHead* pHeapHd ) in MEMiFinalizeHeap() argument
263 pList = FindListContainHeap_( pHeapHd ); in MEMiFinalizeHeap()
264 ASSERT( ListContainsHeap_( pList, pHeapHd ) ); // Check whether the heap is inside the tree in MEMiFinalizeHeap()
265 MEMRemoveListObject( pList, pHeapHd ); in MEMiFinalizeHeap()
267 pHeapHd->signature = 0; in MEMiFinalizeHeap()
281 MEMiDumpHeapHead( MEMiHeapHead* pHeapHd ) in MEMiDumpHeapHead() argument
285 switch ( pHeapHd->signature ) in MEMiDumpHeapHead()
296 OSReport(" whole [%p - %p)\n", pHeapHd, pHeapHd->heapEnd); in MEMiDumpHeapHead()
337 MEMiHeapHead* pHeapHd = NULL; in MEMFindParentHeap() local
339 while ( NULL != ( pHeapHd = (MEMiHeapHead*)MEMGetNextListObject(&sRootList, pHeapHd) ) ) in MEMFindParentHeap()
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()
373 MEMiHeapHead* pHeapHd = heap; in MEMDumpHeap() local
374 switch ( pHeapHd->signature ) in MEMDumpHeap()