Home
last modified time | relevance | path

Searched refs:newFreeNode (Results 1 – 6 of 6) sorted by relevance

/kernel/liteos_m/arch/arm/cortex-m55/gcc/TZ/secure/
Dlos_secure_heap.c116 struct OsSecureHeapNode *newFreeNode = NULL; in OsSecureHeapSplitNode() local
119 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode()
120 newFreeNode->preNode = allocNode; in OsSecureHeapSplitNode()
121 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
122 newFreeNode->used = OS_SECURE_HEAP_NODE_FREE; in OsSecureHeapSplitNode()
124 nextNode = OS_SECURE_HEAP_NEXT_NODE(newFreeNode); in OsSecureHeapSplitNode()
125 nextNode->preNode = newFreeNode; in OsSecureHeapSplitNode()
131 OsSecureHeapListAdd(&g_secureHeapFreeList, &newFreeNode->freeNode); in OsSecureHeapSplitNode()
/kernel/liteos_m/arch/arm/cortex-m33/iar/TZ/secure/
Dlos_secure_heap.c117 struct OsSecureHeapNode *newFreeNode = NULL; in OsSecureHeapSplitNode() local
120 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode()
121 newFreeNode->preNode = allocNode; in OsSecureHeapSplitNode()
122 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
123 newFreeNode->used = OS_SECURE_HEAP_NODE_FREE; in OsSecureHeapSplitNode()
125 nextNode = OS_SECURE_HEAP_NEXT_NODE(newFreeNode); in OsSecureHeapSplitNode()
126 nextNode->preNode = newFreeNode; in OsSecureHeapSplitNode()
132 OsSecureHeapListAdd(&g_secureHeapFreeList, &newFreeNode->freeNode); in OsSecureHeapSplitNode()
/kernel/liteos_m/arch/arm/cortex-m33/gcc/TZ/secure/
Dlos_secure_heap.c116 struct OsSecureHeapNode *newFreeNode = NULL; in OsSecureHeapSplitNode() local
119 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode()
120 newFreeNode->preNode = allocNode; in OsSecureHeapSplitNode()
121 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
122 newFreeNode->used = OS_SECURE_HEAP_NODE_FREE; in OsSecureHeapSplitNode()
124 nextNode = OS_SECURE_HEAP_NEXT_NODE(newFreeNode); in OsSecureHeapSplitNode()
125 nextNode->preNode = newFreeNode; in OsSecureHeapSplitNode()
131 OsSecureHeapListAdd(&g_secureHeapFreeList, &newFreeNode->freeNode); in OsSecureHeapSplitNode()
/kernel/liteos_m/arch/arm/cortex-m55/iar/TZ/secure/
Dlos_secure_heap.c117 struct OsSecureHeapNode *newFreeNode = NULL; in OsSecureHeapSplitNode() local
120 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode()
121 newFreeNode->preNode = allocNode; in OsSecureHeapSplitNode()
122 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
123 newFreeNode->used = OS_SECURE_HEAP_NODE_FREE; in OsSecureHeapSplitNode()
125 nextNode = OS_SECURE_HEAP_NEXT_NODE(newFreeNode); in OsSecureHeapSplitNode()
126 nextNode->preNode = newFreeNode; in OsSecureHeapSplitNode()
132 OsSecureHeapListAdd(&g_secureHeapFreeList, &newFreeNode->freeNode); in OsSecureHeapSplitNode()
/kernel/liteos_a/kernel/base/mem/tlsf/
Dlos_memory.c799 struct OsMemFreeNodeHead *newFreeNode = NULL; in OsMemSplitNode() local
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()
806 nextNode = OS_MEM_NEXT_NODE(&newFreeNode->header); in OsMemSplitNode()
808 nextNode->ptr.prev = &newFreeNode->header; in OsMemSplitNode()
815 OsMemFreeNodeAdd(pool, newFreeNode); in OsMemSplitNode()
/kernel/liteos_m/kernel/src/mm/
Dlos_memory.c821 struct OsMemFreeNodeHead *newFreeNode = NULL; local
824 newFreeNode = (struct OsMemFreeNodeHead *)(VOID *)((UINT8 *)allocNode + allocSize);
825 newFreeNode->header.ptr.prev = allocNode;
826 newFreeNode->header.sizeAndFlag = allocNode->sizeAndFlag - allocSize;
828 nextNode = OS_MEM_NEXT_NODE(&newFreeNode->header);
830 nextNode->ptr.prev = &newFreeNode->header;
837 OsMemFreeNodeAdd(pool, newFreeNode);