Lines Matching refs:pxBlock

82 #define heapBLOCK_IS_ALLOCATED( pxBlock )        ( ( ( pxBlock->xBlockSize ) & heapBLOCK_ALLOCATED_…  argument
83 #define heapALLOCATE_BLOCK( pxBlock ) ( ( pxBlock->xBlockSize ) |= heapBLOCK_ALLOCATED_B… argument
84 #define heapFREE_BLOCK( pxBlock ) ( ( pxBlock->xBlockSize ) &= ~heapBLOCK_ALLOCATED_… argument
126 …#define heapPROTECT_BLOCK_POINTER( pxBlock ) ( ( BlockLink_t * ) ( ( ( portPOINTER_SIZE_TYPE ) … argument
129 #define heapPROTECT_BLOCK_POINTER( pxBlock ) ( pxBlock ) argument
134 #define heapVALIDATE_BLOCK_POINTER( pxBlock ) \ argument
135 configASSERT( ( ( uint8_t * ) ( pxBlock ) >= &( ucHeap[ 0 ] ) ) && \
136 ( ( uint8_t * ) ( pxBlock ) <= &( ucHeap[ configTOTAL_HEAP_SIZE - 1 ] ) ) )
175 BlockLink_t * pxBlock; in pvPortMalloc() local
244 pxBlock = heapPROTECT_BLOCK_POINTER( xStart.pxNextFreeBlock ); in pvPortMalloc()
245 heapVALIDATE_BLOCK_POINTER( pxBlock ); in pvPortMalloc()
247 …while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != heapPROTECT_BLOCK_PO… in pvPortMalloc()
249 pxPreviousBlock = pxBlock; in pvPortMalloc()
250 pxBlock = heapPROTECT_BLOCK_POINTER( pxBlock->pxNextFreeBlock ); in pvPortMalloc()
251 heapVALIDATE_BLOCK_POINTER( pxBlock ); in pvPortMalloc()
256 if( pxBlock != pxEnd ) in pvPortMalloc()
265 pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock; in pvPortMalloc()
269 … configASSERT( heapSUBTRACT_WILL_UNDERFLOW( pxBlock->xBlockSize, xWantedSize ) == 0 ); in pvPortMalloc()
271 if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE ) in pvPortMalloc()
277 pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize ); in pvPortMalloc()
282 pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize; in pvPortMalloc()
283 pxBlock->xBlockSize = xWantedSize; in pvPortMalloc()
294 xFreeBytesRemaining -= pxBlock->xBlockSize; in pvPortMalloc()
307 heapALLOCATE_BLOCK( pxBlock ); in pvPortMalloc()
308 pxBlock->pxNextFreeBlock = NULL; in pvPortMalloc()
562 BlockLink_t * pxBlock; in vPortGetHeapStats() local
567 pxBlock = heapPROTECT_BLOCK_POINTER( xStart.pxNextFreeBlock ); in vPortGetHeapStats()
571 if( pxBlock != NULL ) in vPortGetHeapStats()
573 while( pxBlock != pxEnd ) in vPortGetHeapStats()
579 if( pxBlock->xBlockSize > xMaxSize ) in vPortGetHeapStats()
581 xMaxSize = pxBlock->xBlockSize; in vPortGetHeapStats()
584 if( pxBlock->xBlockSize < xMinSize ) in vPortGetHeapStats()
586 xMinSize = pxBlock->xBlockSize; in vPortGetHeapStats()
591 pxBlock = heapPROTECT_BLOCK_POINTER( pxBlock->pxNextFreeBlock ); in vPortGetHeapStats()