Searched refs:allocNode (Results 1 – 6 of 6) sorted by relevance
/kernel/liteos_m/arch/arm/cortex-m55/gcc/TZ/secure/ |
D | los_secure_heap.c | 114 STATIC INLINE VOID OsSecureHeapSplitNode(struct OsSecureHeapNode *allocNode, UINT32 allocSize) in OsSecureHeapSplitNode() argument 119 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode() 120 newFreeNode->preNode = allocNode; in OsSecureHeapSplitNode() 121 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode() 123 allocNode->size = allocSize; in OsSecureHeapSplitNode() 164 struct OsSecureHeapNode *allocNode = NULL; in OsSecureHeapAllocNode() local 168 allocNode = OsSecureHeapFindSuitableFreeBlock(allocSize); in OsSecureHeapAllocNode() 169 if (allocNode == NULL) { in OsSecureHeapAllocNode() 172 … if ((allocSize + OS_SECURE_HEAP_NODE_HEAD_SIZE + OS_SECURE_HEAP_ALIGN_SIZE) <= allocNode->size) { in OsSecureHeapAllocNode() 173 OsSecureHeapSplitNode(allocNode, allocSize); in OsSecureHeapAllocNode() [all …]
|
/kernel/liteos_m/arch/arm/cortex-m33/iar/TZ/secure/ |
D | los_secure_heap.c | 115 STATIC INLINE VOID OsSecureHeapSplitNode(struct OsSecureHeapNode *allocNode, UINT32 allocSize) in OsSecureHeapSplitNode() argument 120 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode() 121 newFreeNode->preNode = allocNode; in OsSecureHeapSplitNode() 122 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode() 124 allocNode->size = allocSize; in OsSecureHeapSplitNode() 165 struct OsSecureHeapNode *allocNode = NULL; in OsSecureHeapAllocNode() local 169 allocNode = OsSecureHeapFindSuitableFreeBlock(allocSize); in OsSecureHeapAllocNode() 170 if (allocNode == NULL) { in OsSecureHeapAllocNode() 173 … if ((allocSize + OS_SECURE_HEAP_NODE_HEAD_SIZE + OS_SECURE_HEAP_ALIGN_SIZE) <= allocNode->size) { in OsSecureHeapAllocNode() 174 OsSecureHeapSplitNode(allocNode, allocSize); in OsSecureHeapAllocNode() [all …]
|
/kernel/liteos_m/arch/arm/cortex-m33/gcc/TZ/secure/ |
D | los_secure_heap.c | 114 STATIC INLINE VOID OsSecureHeapSplitNode(struct OsSecureHeapNode *allocNode, UINT32 allocSize) in OsSecureHeapSplitNode() argument 119 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode() 120 newFreeNode->preNode = allocNode; in OsSecureHeapSplitNode() 121 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode() 123 allocNode->size = allocSize; in OsSecureHeapSplitNode() 164 struct OsSecureHeapNode *allocNode = NULL; in OsSecureHeapAllocNode() local 168 allocNode = OsSecureHeapFindSuitableFreeBlock(allocSize); in OsSecureHeapAllocNode() 169 if (allocNode == NULL) { in OsSecureHeapAllocNode() 172 … if ((allocSize + OS_SECURE_HEAP_NODE_HEAD_SIZE + OS_SECURE_HEAP_ALIGN_SIZE) <= allocNode->size) { in OsSecureHeapAllocNode() 173 OsSecureHeapSplitNode(allocNode, allocSize); in OsSecureHeapAllocNode() [all …]
|
/kernel/liteos_m/arch/arm/cortex-m55/iar/TZ/secure/ |
D | los_secure_heap.c | 115 STATIC INLINE VOID OsSecureHeapSplitNode(struct OsSecureHeapNode *allocNode, UINT32 allocSize) in OsSecureHeapSplitNode() argument 120 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode() 121 newFreeNode->preNode = allocNode; in OsSecureHeapSplitNode() 122 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode() 124 allocNode->size = allocSize; in OsSecureHeapSplitNode() 165 struct OsSecureHeapNode *allocNode = NULL; in OsSecureHeapAllocNode() local 169 allocNode = OsSecureHeapFindSuitableFreeBlock(allocSize); in OsSecureHeapAllocNode() 170 if (allocNode == NULL) { in OsSecureHeapAllocNode() 173 … if ((allocSize + OS_SECURE_HEAP_NODE_HEAD_SIZE + OS_SECURE_HEAP_ALIGN_SIZE) <= allocNode->size) { in OsSecureHeapAllocNode() 174 OsSecureHeapSplitNode(allocNode, allocSize); in OsSecureHeapAllocNode() [all …]
|
/kernel/liteos_a/kernel/base/mem/tlsf/ |
D | los_memory.c | 478 struct OsMemNodeHead *allocNode = NULL; in OsLmsAllocAlignMark() local 483 allocNode = (struct OsMemNodeHead *)((struct OsMemUsedNodeHead *)ptr - 1); in OsLmsAllocAlignMark() 490 …g_lms->simpleMark(LMS_ADDR_ALIGN((UINTPTR)alignedPtr + size), (UINTPTR)OS_MEM_NEXT_NODE(allocNode), in OsLmsAllocAlignMark() 797 STATIC INLINE VOID OsMemSplitNode(VOID *pool, struct OsMemNodeHead *allocNode, UINT32 allocSize) in OsMemSplitNode() argument 802 newFreeNode = (struct OsMemFreeNodeHead *)(VOID *)((UINT8 *)allocNode + allocSize); in OsMemSplitNode() 803 newFreeNode->header.ptr.prev = allocNode; in OsMemSplitNode() 804 newFreeNode->header.sizeAndFlag = allocNode->sizeAndFlag - allocSize; in OsMemSplitNode() 805 allocNode->sizeAndFlag = allocSize; in OsMemSplitNode() 1017 struct OsMemNodeHead *allocNode = NULL; in OsMemAlloc() local 1029 allocNode = OsMemFreeNodeGet(pool, allocSize); in OsMemAlloc() [all …]
|
/kernel/liteos_m/kernel/src/mm/ |
D | los_memory.c | 513 struct OsMemNodeHead *allocNode = NULL; local 518 allocNode = (struct OsMemNodeHead *)((struct OsMemUsedNodeHead *)ptr - 1); 525 …g_lms->simpleMark(LMS_ADDR_ALIGN((UINTPTR)alignedPtr + size), (UINTPTR)OS_MEM_NEXT_NODE(allocNode), 819 STATIC INLINE VOID OsMemSplitNode(VOID *pool, struct OsMemNodeHead *allocNode, UINT32 allocSize) argument 824 newFreeNode = (struct OsMemFreeNodeHead *)(VOID *)((UINT8 *)allocNode + allocSize); 825 newFreeNode->header.ptr.prev = allocNode; 826 newFreeNode->header.sizeAndFlag = allocNode->sizeAndFlag - allocSize; 827 allocNode->sizeAndFlag = allocSize; 1049 struct OsMemNodeHead *allocNode = NULL; local 1061 allocNode = OsMemFreeNodeGet(pool, allocSize); [all …]
|