Lines Matching refs:xBlockSize

81 #define heapBLOCK_SIZE_IS_VALID( xBlockSize )    ( ( ( xBlockSize ) & heapBLOCK_ALLOCATED_BITMASK )…  argument
82 #define heapBLOCK_IS_ALLOCATED( pxBlock ) ( ( ( pxBlock->xBlockSize ) & heapBLOCK_ALLOCATED_…
83 #define heapALLOCATE_BLOCK( pxBlock ) ( ( pxBlock->xBlockSize ) |= heapBLOCK_ALLOCATED_B…
84 #define heapFREE_BLOCK( pxBlock ) ( ( pxBlock->xBlockSize ) &= ~heapBLOCK_ALLOCATED_…
103 size_t xBlockSize; /**< The size of the free block. */ member
247 …while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != heapPROTECT_BLOCK_PO… in pvPortMalloc()
269 … configASSERT( heapSUBTRACT_WILL_UNDERFLOW( pxBlock->xBlockSize, xWantedSize ) == 0 ); in pvPortMalloc()
271 if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE ) in pvPortMalloc()
282 pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize; in pvPortMalloc()
283 pxBlock->xBlockSize = xWantedSize; in pvPortMalloc()
294 xFreeBytesRemaining -= pxBlock->xBlockSize; in pvPortMalloc()
377 if( heapSUBTRACT_WILL_UNDERFLOW( pxLink->xBlockSize, xHeapStructSize ) == 0 ) in vPortFree()
379 … ( void ) memset( puc + xHeapStructSize, 0, pxLink->xBlockSize - xHeapStructSize ); in vPortFree()
387 xFreeBytesRemaining += pxLink->xBlockSize; in vPortFree()
388 traceFREE( pv, pxLink->xBlockSize ); in vPortFree()
469 xStart.xBlockSize = ( size_t ) 0; in prvHeapInit()
477 pxEnd->xBlockSize = 0; in prvHeapInit()
483 …pxFirstFreeBlock->xBlockSize = ( size_t ) ( uxEndAddress - ( portPOINTER_SIZE_TYPE ) pxFirstFreeBl… in prvHeapInit()
487 xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; in prvHeapInit()
488 xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; in prvHeapInit()
513 if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert ) in prvInsertBlockIntoFreeList()
515 pxIterator->xBlockSize += pxBlockToInsert->xBlockSize; in prvInsertBlockIntoFreeList()
527 …if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) heapPROTECT_BLOCK_POINTER( pxIterator->… in prvInsertBlockIntoFreeList()
532 …pxBlockToInsert->xBlockSize += heapPROTECT_BLOCK_POINTER( pxIterator->pxNextFreeBlock )->xBlockSiz… in prvInsertBlockIntoFreeList()
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()