Home
last modified time | relevance | path

Searched refs:gapSize (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/kernel/base/mem/tlsf/
Dlos_memory.c1081 UINT32 gapSize; in LOS_MemAllocAlign() local
1097 if ((boundary - sizeof(gapSize)) > ((UINT32)(-1) - size)) { in LOS_MemAllocAlign()
1101 UINT32 useSize = (size + boundary) - sizeof(gapSize); in LOS_MemAllocAlign()
1124 gapSize = (UINT32)((UINTPTR)alignedPtr - (UINTPTR)ptr); in LOS_MemAllocAlign()
1127 OS_MEM_NODE_SET_ALIGNED_FLAG(gapSize); in LOS_MemAllocAlign()
1128 *(UINT32 *)((UINTPTR)alignedPtr - sizeof(gapSize)) = gapSize; in LOS_MemAllocAlign()
1313 UINT32 gapSize = *(UINT32 *)((UINTPTR)ptr - sizeof(UINT32)); in LOS_MemFree() local
1314 if (OS_MEM_NODE_GET_ALIGNED_FLAG(gapSize) && OS_MEM_NODE_GET_USED_FLAG(gapSize)) { in LOS_MemFree()
1315 PRINT_ERR("[%s:%d]gapSize:0x%x error\n", __FUNCTION__, __LINE__, gapSize); in LOS_MemFree()
1321 if (OS_MEM_NODE_GET_ALIGNED_FLAG(gapSize)) { in LOS_MemFree()
[all …]
/kernel/liteos_m/kernel/src/mm/
Dlos_memory.c1118 UINT32 gapSize; local
1134 if ((boundary - sizeof(gapSize)) > ((UINT32)(-1) - size)) {
1138 UINT32 useSize = (size + boundary) - sizeof(gapSize);
1160 gapSize = (UINT32)((UINTPTR)alignedPtr - (UINTPTR)ptr);
1163 OS_MEM_SET_GAPSIZE_ALIGNED_FLAG(gapSize);
1164 *(UINT32 *)((UINTPTR)alignedPtr - sizeof(gapSize)) = gapSize;
1337 UINT32 gapSize = *((UINT32 *)((UINTPTR)ptr - sizeof(UINT32))); local
1339 if (OS_MEM_GAPSIZE_CHECK(gapSize)) {
1340 PRINT_ERR("[%s:%d]gapSize:0x%x error\n", __FUNCTION__, __LINE__, gapSize);
1344 if (OS_MEM_GET_GAPSIZE_ALIGNED_FLAG(gapSize)) {
[all …]