Lines Matching refs:pxBlock
80 #define heapBLOCK_IS_ALLOCATED( pxBlock ) ( ( ( pxBlock->xBlockSize ) & heapBLOCK_ALLOCATED_… argument
81 #define heapALLOCATE_BLOCK( pxBlock ) ( ( pxBlock->xBlockSize ) |= heapBLOCK_ALLOCATED_B… argument
82 #define heapFREE_BLOCK( pxBlock ) ( ( pxBlock->xBlockSize ) &= ~heapBLOCK_ALLOCATED_… argument
158 BlockLink_t * pxBlock; in pvPortMalloc() local
224 pxBlock = xStart.pxNextFreeBlock; in pvPortMalloc()
226 … while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) ) in pvPortMalloc()
228 pxPreviousBlock = pxBlock; in pvPortMalloc()
229 pxBlock = pxBlock->pxNextFreeBlock; in pvPortMalloc()
233 if( pxBlock != &xEnd ) in pvPortMalloc()
241 pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock; in pvPortMalloc()
244 if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE ) in pvPortMalloc()
249 pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize ); in pvPortMalloc()
253 pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize; in pvPortMalloc()
254 pxBlock->xBlockSize = xWantedSize; in pvPortMalloc()
262 xFreeBytesRemaining -= pxBlock->xBlockSize; in pvPortMalloc()
266 heapALLOCATE_BLOCK( pxBlock ); in pvPortMalloc()
267 pxBlock->pxNextFreeBlock = NULL; in pvPortMalloc()