Lines Matching refs:pxBlock
78 #define secureheapBLOCK_IS_ALLOCATED( pxBlock ) ( ( ( pxBlock->xBlockSize ) & secureheapBLOC… argument
79 #define secureheapALLOCATE_BLOCK( pxBlock ) ( ( pxBlock->xBlockSize ) |= secureheapBLOCK… argument
80 #define secureheapFREE_BLOCK( pxBlock ) ( ( pxBlock->xBlockSize ) &= ~secureheapBLOC… argument
254 BlockLink_t * pxBlock; in pvPortMalloc() local
321 pxBlock = xStart.pxNextFreeBlock; in pvPortMalloc()
323 while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) ) in pvPortMalloc()
325 pxPreviousBlock = pxBlock; in pvPortMalloc()
326 pxBlock = pxBlock->pxNextFreeBlock; in pvPortMalloc()
331 if( pxBlock != pxEnd ) in pvPortMalloc()
339 pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock; in pvPortMalloc()
343 if( ( pxBlock->xBlockSize - xWantedSize ) > secureheapMINIMUM_BLOCK_SIZE ) in pvPortMalloc()
349 pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize ); in pvPortMalloc()
354 pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize; in pvPortMalloc()
355 pxBlock->xBlockSize = xWantedSize; in pvPortMalloc()
366 xFreeBytesRemaining -= pxBlock->xBlockSize; in pvPortMalloc()
379 secureheapALLOCATE_BLOCK( pxBlock ); in pvPortMalloc()
380 pxBlock->pxNextFreeBlock = NULL; in pvPortMalloc()