Lines Matching full:if

41  * pvPortMalloc() will be called if any task objects (tasks, queues, event
84 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 0 )
85 #error This file must not be used if configSUPPORT_DYNAMIC_ALLOCATION is 0
101 /* Check if multiplying a and b will result in overflow. */
104 /* Check if adding a and b will result in overflow. */
107 /* Check if the subtraction operation ( a - b ) will result in underflow. */
124 #if ( configENABLE_HEAP_PROTECTOR == 1 )
139 #else /* if ( configENABLE_HEAP_PROTECTOR == 1 ) */
162 * the block in front it and/or the block behind it if the memory blocks are
168 #if ( configENABLE_HEAP_PROTECTOR == 1 )
195 #if ( configENABLE_HEAP_PROTECTOR == 1 )
220 if( xWantedSize > 0 ) in pvPortMalloc()
224 if( heapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc()
230 if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc()
235 if( heapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc()
265 if( heapBLOCK_SIZE_IS_VALID( xWantedSize ) != 0 ) in pvPortMalloc()
267 if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) ) in pvPortMalloc()
282 /* If the end marker was reached then a block of adequate size in pvPortMalloc()
284 if( pxBlock != pxEnd ) in pvPortMalloc()
295 /* If the block is larger than required it can be split into in pvPortMalloc()
299 if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE ) in pvPortMalloc()
324 if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining ) in pvPortMalloc()
358 #if ( configUSE_MALLOC_FAILED_HOOK == 1 ) in pvPortMalloc()
360 if( pvReturn == NULL ) in pvPortMalloc()
369 #endif /* if ( configUSE_MALLOC_FAILED_HOOK == 1 ) */ in pvPortMalloc()
381 if( pv != NULL ) in vPortFree()
394 if( heapBLOCK_IS_ALLOCATED( pxLink ) != 0 ) in vPortFree()
396 if( pxLink->pxNextFreeBlock == NULL ) in vPortFree()
401 #if ( configHEAP_CLEAR_MEMORY_ON_FREE == 1 ) in vPortFree()
403 /* Check for underflow as this can occur if xBlockSize is in vPortFree()
405 if( heapSUBTRACT_WILL_UNDERFLOW( pxLink->xBlockSize, xHeapStructSize ) == 0 ) in vPortFree()
452 if( heapMULTIPLY_WILL_OVERFLOW( xNum, xSize ) == 0 ) in pvPortCalloc()
456 if( pv != NULL ) in pvPortCalloc()
478 if( pxIterator != &xStart ) in prvInsertBlockIntoFreeList()
487 if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert ) in prvInsertBlockIntoFreeList()
501if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) heapPROTECT_BLOCK_POINTER( pxIterator->… in prvInsertBlockIntoFreeList()
503 if( heapPROTECT_BLOCK_POINTER( pxIterator->pxNextFreeBlock ) != pxEnd ) in prvInsertBlockIntoFreeList()
519 /* If the block being inserted plugged a gap, so was merged with the block in prvInsertBlockIntoFreeList()
523 if( pxIterator != pxBlockToInsert ) in prvInsertBlockIntoFreeList()
547 #if ( configENABLE_HEAP_PROTECTOR == 1 ) in vPortDefineHeapRegions()
562 if( ( xAddress & portBYTE_ALIGNMENT_MASK ) != 0 ) in vPortDefineHeapRegions()
573 /* Set xStart if it has not already been set. */ in vPortDefineHeapRegions()
574 if( xDefinedRegions == 0 ) in vPortDefineHeapRegions()
583 /* Should only get here if one region has already been added to the in vPortDefineHeapRegions()
591 #if ( configENABLE_HEAP_PROTECTOR == 1 ) in vPortDefineHeapRegions()
593 if( ( pucHeapLowAddress == NULL ) || in vPortDefineHeapRegions()
601 /* Remember the location of the end marker in the previous region, if in vPortDefineHeapRegions()
621 /* If this is not the first region that makes up the entire heap space in vPortDefineHeapRegions()
623 if( pxPreviousFreeBlock != NULL ) in vPortDefineHeapRegions()
630 #if ( configENABLE_HEAP_PROTECTOR == 1 ) in vPortDefineHeapRegions()
632 if( ( pucHeapHighAddress == NULL ) || in vPortDefineHeapRegions()
662 /* pxBlock will be NULL if the heap has not been initialised. The heap in vPortGetHeapStats()
664 if( pxBlock != NULL ) in vPortGetHeapStats()
672 if( pxBlock->xBlockSize > xMaxSize ) in vPortGetHeapStats()
680 if( pxBlock->xBlockSize != 0 ) in vPortGetHeapStats()
682 if( pxBlock->xBlockSize < xMinSize ) in vPortGetHeapStats()