Home
last modified time | relevance | path

Searched refs:xWantedSize (Results 1 – 25 of 30) sorted by relevance

12

/Kernel-v11.1.0/portable/MemMang/
Dheap_1.c71 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()
Dheap_2.c156 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 …]
Dheap_4.c173 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 …]
Dheap_5.c208 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 …]
Dheap_3.c59 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/
Dsecure_heap.c52 #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/
Dsecure_heap.c52 #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 …]
Dsecure_heap.h43 void * pvPortMalloc( size_t xWantedSize );
/Kernel-v11.1.0/portable/IAR/ARM_CM55/secure/
Dsecure_heap.c52 #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 …]
Dsecure_heap.h43 void * pvPortMalloc( size_t xWantedSize );
/Kernel-v11.1.0/portable/IAR/ARM_CM85/secure/
Dsecure_heap.c52 #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 …]
Dsecure_heap.h43 void * pvPortMalloc( size_t xWantedSize );
/Kernel-v11.1.0/portable/ARMv8M/secure/heap/
Dsecure_heap.c52 #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 …]
Dsecure_heap.h43 void * pvPortMalloc( size_t xWantedSize );
/Kernel-v11.1.0/portable/GCC/ARM_CM85/secure/
Dsecure_heap.c52 #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 …]
Dsecure_heap.h43 void * pvPortMalloc( size_t xWantedSize );
/Kernel-v11.1.0/portable/GCC/ARM_CM23/secure/
Dsecure_heap.c52 #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 …]
Dsecure_heap.h43 void * pvPortMalloc( size_t xWantedSize );
/Kernel-v11.1.0/portable/GCC/ARM_CM33/secure/
Dsecure_heap.c52 #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/
Dsecure_heap.c52 #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 …]
Dsecure_heap.h43 void * pvPortMalloc( size_t xWantedSize );
/Kernel-v11.1.0/portable/GCC/ARM_CM55/secure/
Dsecure_heap.c52 #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 …]
Dsecure_heap.h43 void * pvPortMalloc( size_t xWantedSize );
/Kernel-v11.1.0/portable/GCC/ARM_CM35P/secure/
Dsecure_heap.c52 #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 …]
Dsecure_heap.h43 void * pvPortMalloc( size_t xWantedSize );

12