Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 – 10 of 10) sorted by relevance

/kernel/liteos_m/arch/arm/cortex-m55/gcc/TZ/secure/
Dlos_secure_heap.c81 STATIC struct OsSecureHeapNode *OsSecureHeapFindSuitableFreeBlock(UINT32 allocSize) in OsSecureHeapFindSuitableFreeBlock() argument
87 if (tmpNode->size >= allocSize) { in OsSecureHeapFindSuitableFreeBlock()
114 STATIC INLINE VOID OsSecureHeapSplitNode(struct OsSecureHeapNode *allocNode, UINT32 allocSize) in OsSecureHeapSplitNode() argument
119 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode()
121 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
123 allocNode->size = allocSize; in OsSecureHeapSplitNode()
165 UINT32 allocSize; in OsSecureHeapAllocNode() local
167 allocSize = LOS_Align(size + OS_SECURE_HEAP_NODE_HEAD_SIZE, OS_SECURE_HEAP_ALIGN_SIZE); in OsSecureHeapAllocNode()
168 allocNode = OsSecureHeapFindSuitableFreeBlock(allocSize); in OsSecureHeapAllocNode()
172 … if ((allocSize + OS_SECURE_HEAP_NODE_HEAD_SIZE + OS_SECURE_HEAP_ALIGN_SIZE) <= allocNode->size) { in OsSecureHeapAllocNode()
[all …]
/kernel/liteos_m/arch/arm/cortex-m33/iar/TZ/secure/
Dlos_secure_heap.c82 STATIC struct OsSecureHeapNode *OsSecureHeapFindSuitableFreeBlock(UINT32 allocSize) in OsSecureHeapFindSuitableFreeBlock() argument
88 if (tmpNode->size >= allocSize) { in OsSecureHeapFindSuitableFreeBlock()
115 STATIC INLINE VOID OsSecureHeapSplitNode(struct OsSecureHeapNode *allocNode, UINT32 allocSize) in OsSecureHeapSplitNode() argument
120 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode()
122 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
124 allocNode->size = allocSize; in OsSecureHeapSplitNode()
166 UINT32 allocSize; in OsSecureHeapAllocNode() local
168 allocSize = LOS_Align(size + OS_SECURE_HEAP_NODE_HEAD_SIZE, OS_SECURE_HEAP_ALIGN_SIZE); in OsSecureHeapAllocNode()
169 allocNode = OsSecureHeapFindSuitableFreeBlock(allocSize); in OsSecureHeapAllocNode()
173 … if ((allocSize + OS_SECURE_HEAP_NODE_HEAD_SIZE + OS_SECURE_HEAP_ALIGN_SIZE) <= allocNode->size) { in OsSecureHeapAllocNode()
[all …]
/kernel/liteos_m/arch/arm/cortex-m33/gcc/TZ/secure/
Dlos_secure_heap.c81 STATIC struct OsSecureHeapNode *OsSecureHeapFindSuitableFreeBlock(UINT32 allocSize) in OsSecureHeapFindSuitableFreeBlock() argument
87 if (tmpNode->size >= allocSize) { in OsSecureHeapFindSuitableFreeBlock()
114 STATIC INLINE VOID OsSecureHeapSplitNode(struct OsSecureHeapNode *allocNode, UINT32 allocSize) in OsSecureHeapSplitNode() argument
119 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode()
121 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
123 allocNode->size = allocSize; in OsSecureHeapSplitNode()
165 UINT32 allocSize; in OsSecureHeapAllocNode() local
167 allocSize = LOS_Align(size + OS_SECURE_HEAP_NODE_HEAD_SIZE, OS_SECURE_HEAP_ALIGN_SIZE); in OsSecureHeapAllocNode()
168 allocNode = OsSecureHeapFindSuitableFreeBlock(allocSize); in OsSecureHeapAllocNode()
172 … if ((allocSize + OS_SECURE_HEAP_NODE_HEAD_SIZE + OS_SECURE_HEAP_ALIGN_SIZE) <= allocNode->size) { in OsSecureHeapAllocNode()
[all …]
/kernel/liteos_m/arch/arm/cortex-m55/iar/TZ/secure/
Dlos_secure_heap.c82 STATIC struct OsSecureHeapNode *OsSecureHeapFindSuitableFreeBlock(UINT32 allocSize) in OsSecureHeapFindSuitableFreeBlock() argument
88 if (tmpNode->size >= allocSize) { in OsSecureHeapFindSuitableFreeBlock()
115 STATIC INLINE VOID OsSecureHeapSplitNode(struct OsSecureHeapNode *allocNode, UINT32 allocSize) in OsSecureHeapSplitNode() argument
120 newFreeNode = (struct OsSecureHeapNode *)((UINT8 *)allocNode + allocSize); in OsSecureHeapSplitNode()
122 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
124 allocNode->size = allocSize; in OsSecureHeapSplitNode()
166 UINT32 allocSize; in OsSecureHeapAllocNode() local
168 allocSize = LOS_Align(size + OS_SECURE_HEAP_NODE_HEAD_SIZE, OS_SECURE_HEAP_ALIGN_SIZE); in OsSecureHeapAllocNode()
169 allocNode = OsSecureHeapFindSuitableFreeBlock(allocSize); in OsSecureHeapAllocNode()
173 … if ((allocSize + OS_SECURE_HEAP_NODE_HEAD_SIZE + OS_SECURE_HEAP_ALIGN_SIZE) <= allocNode->size) { in OsSecureHeapAllocNode()
[all …]
/kernel/uniproton/src/mem/fsc/
Dprt_fscmem.c72 U32 allocSize; in OsFscMemAllocInner() local
86 allocSize = ALIGN(size, OS_FSC_MEM_SIZE_ALIGN) + (align - OS_FSC_MEM_SIZE_ALIGN) + in OsFscMemAllocInner()
88 …if ((allocSize < size) || allocSize >= ((OS_FSC_MEM_MAXVAL - OS_FSC_MEM_USED_HEAD_SIZE) - OS_FSC_M… in OsFscMemAllocInner()
93 currBlk = OsFscMemSearch(allocSize, &idx); in OsFscMemAllocInner()
99 if (OS_FSC_MEM_SZGET(currBlk) >= (allocSize + OS_FSC_MEM_MIN_SIZE)) { in OsFscMemAllocInner()
100 currBlk->size -= allocSize; in OsFscMemAllocInner()
110 plotBlk->size = allocSize; in OsFscMemAllocInner()
/kernel/liteos_a/kernel/base/mem/tlsf/
Dlos_memory.c429 STATIC INLINE INT32 OsMemPoolExpand(VOID *pool, UINT32 allocSize, UINT32 intSave) in OsMemPoolExpand() argument
432 UINT32 expandSize = MAX(expandDefault, allocSize); in OsMemPoolExpand()
442 if (allocSize > expandDefault) { in OsMemPoolExpand()
445 expandSize = allocSize; in OsMemPoolExpand()
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()
804 newFreeNode->header.sizeAndFlag = allocNode->sizeAndFlag - allocSize; in OsMemSplitNode()
805 allocNode->sizeAndFlag = allocSize; in OsMemSplitNode()
1025 UINT32 allocSize = OS_MEM_ALIGN(size + OS_MEM_NODE_HEAD_SIZE, OS_MEM_ALIGN_SIZE); in OsMemAlloc() local
1029 allocNode = OsMemFreeNodeGet(pool, allocSize); in OsMemAlloc()
[all …]
/kernel/liteos_m/kernel/src/mm/
Dlos_memory.c819 STATIC INLINE VOID OsMemSplitNode(VOID *pool, struct OsMemNodeHead *allocNode, UINT32 allocSize) argument
824 newFreeNode = (struct OsMemFreeNodeHead *)(VOID *)((UINT8 *)allocNode + allocSize);
826 newFreeNode->header.sizeAndFlag = allocNode->sizeAndFlag - allocSize;
827 allocNode->sizeAndFlag = allocSize;
1057 UINT32 allocSize = OS_MEM_ALIGN(size + OS_MEM_NODE_HEAD_SIZE, OS_MEM_ALIGN_SIZE); local
1061 allocNode = OsMemFreeNodeGet(pool, allocSize);
1065 INT32 ret = OsMemPoolExpand(pool, allocSize, intSave);
1083 … PRINT_ERR("[%s] No suitable free block, require free node size: 0x%x\n", __FUNCTION__, allocSize);
1089 if ((allocSize + OS_MEM_MIN_LEFT_SIZE) <= allocNode->sizeAndFlag) {
1090 OsMemSplitNode(pool, allocNode, allocSize);
[all …]
/kernel/liteos_a/kernel/extended/lms/usr/
Dlos_lmslibc.c40 size_t allocSize = malloc_usable_size(ptr); in LmsFree() local
59 LmsSetShadowValue((uintptr_t)ptr, (uintptr_t)ptr + allocSize, LMS_SHADOW_AFTERFREE_U8); in LmsFree()
/kernel/liteos_m/components/dynlink/
Dlos_dynlink.c223 UINT32 allocSize, nameLen; in OsLoadInit() local
233 allocSize = sizeof(DynSharedObj) + nameLen + 1; in OsLoadInit()
235 dso = (DynSharedObj *)LOS_MemAlloc(OS_SYS_MEM_ADDR, allocSize); in OsLoadInit()
241 (VOID)memset_s(dso, allocSize, 0, allocSize); in OsLoadInit()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0038_linux_drivers_mxc.patch112487 + 0, /* allocSize; */ \