/Kernel-v11.1.0/portable/MemMang/ |
D | heap_1.c | 71 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 79 if( xWantedSize & portBYTE_ALIGNMENT_MASK ) in pvPortMalloc() 82 …if( ( xWantedSize + ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ) ) > xWanted… in pvPortMalloc() 84 xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ); in pvPortMalloc() 88 xWantedSize = 0; in pvPortMalloc() 103 if( ( xWantedSize > 0 ) && /* valid size */ in pvPortMalloc() 104 ( ( xNextFreeByte + xWantedSize ) < configADJUSTED_HEAP_SIZE ) && in pvPortMalloc() 105 ( ( xNextFreeByte + xWantedSize ) > xNextFreeByte ) ) /* Check for overflow. */ in pvPortMalloc() 110 xNextFreeByte += xWantedSize; in pvPortMalloc() 113 traceMALLOC( pvReturn, xWantedSize ); in pvPortMalloc()
|
D | heap_2.c | 156 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 164 if( xWantedSize > 0 ) in pvPortMalloc() 168 if( heapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 170 xWantedSize += xHeapStructSize; in pvPortMalloc() 174 if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 177 … xAdditionalRequiredSize = portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ); in pvPortMalloc() 179 if( heapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 181 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 185 xWantedSize = 0; in pvPortMalloc() 195 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | heap_4.c | 173 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 181 if( xWantedSize > 0 ) in pvPortMalloc() 185 if( heapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 187 xWantedSize += xHeapStructSize; in pvPortMalloc() 191 if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 194 … xAdditionalRequiredSize = portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ); in pvPortMalloc() 196 if( heapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 198 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 202 xWantedSize = 0; in pvPortMalloc() 212 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | heap_5.c | 208 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 220 if( xWantedSize > 0 ) in pvPortMalloc() 224 if( heapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 226 xWantedSize += xHeapStructSize; in pvPortMalloc() 230 if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 233 … xAdditionalRequiredSize = portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ); in pvPortMalloc() 235 if( heapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 237 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 241 xWantedSize = 0; in pvPortMalloc() 251 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | heap_3.c | 59 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 65 pvReturn = malloc( xWantedSize ); in pvPortMalloc() 66 traceMALLOC( pvReturn, xWantedSize ); in pvPortMalloc()
|
/Kernel-v11.1.0/portable/IAR/ARM_CM33/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
/Kernel-v11.1.0/portable/IAR/ARM_CM23/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | secure_heap.h | 43 void * pvPortMalloc( size_t xWantedSize );
|
/Kernel-v11.1.0/portable/IAR/ARM_CM55/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | secure_heap.h | 43 void * pvPortMalloc( size_t xWantedSize );
|
/Kernel-v11.1.0/portable/IAR/ARM_CM85/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | secure_heap.h | 43 void * pvPortMalloc( size_t xWantedSize );
|
/Kernel-v11.1.0/portable/ARMv8M/secure/heap/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | secure_heap.h | 43 void * pvPortMalloc( size_t xWantedSize );
|
/Kernel-v11.1.0/portable/GCC/ARM_CM85/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | secure_heap.h | 43 void * pvPortMalloc( size_t xWantedSize );
|
/Kernel-v11.1.0/portable/GCC/ARM_CM23/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | secure_heap.h | 43 void * pvPortMalloc( size_t xWantedSize );
|
/Kernel-v11.1.0/portable/GCC/ARM_CM33/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
/Kernel-v11.1.0/portable/IAR/ARM_CM35P/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | secure_heap.h | 43 void * pvPortMalloc( size_t xWantedSize );
|
/Kernel-v11.1.0/portable/GCC/ARM_CM55/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | secure_heap.h | 43 void * pvPortMalloc( size_t xWantedSize );
|
/Kernel-v11.1.0/portable/GCC/ARM_CM35P/secure/ |
D | secure_heap.c | 52 #define traceMALLOC( pvReturn, xWantedSize ) argument 252 void * pvPortMalloc( size_t xWantedSize ) in pvPortMalloc() argument 271 if( xWantedSize > 0 ) in pvPortMalloc() 275 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xHeapStructSize ) == 0 ) in pvPortMalloc() 277 xWantedSize += xHeapStructSize; in pvPortMalloc() 281 if( ( xWantedSize & secureportBYTE_ALIGNMENT_MASK ) != 0x00 ) in pvPortMalloc() 284 …xAdditionalRequiredSize = secureportBYTE_ALIGNMENT - ( xWantedSize & secureportBYTE_ALIGNMENT_MASK… in pvPortMalloc() 286 if( secureheapADD_WILL_OVERFLOW( xWantedSize, xAdditionalRequiredSize ) == 0 ) in pvPortMalloc() 288 xWantedSize += xAdditionalRequiredSize; in pvPortMalloc() 292 xWantedSize = 0; in pvPortMalloc() [all …]
|
D | secure_heap.h | 43 void * pvPortMalloc( size_t xWantedSize );
|