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.c1092 UINT32 gapSize; in LOS_MemAllocAlign() local
1108 if ((boundary - sizeof(gapSize)) > ((UINT32)(-1) - size)) { in LOS_MemAllocAlign()
1112 UINT32 useSize = (size + boundary) - sizeof(gapSize); in LOS_MemAllocAlign()
1135 gapSize = (UINT32)((UINTPTR)alignedPtr - (UINTPTR)ptr); in LOS_MemAllocAlign()
1138 OS_MEM_NODE_SET_ALIGNED_FLAG(gapSize); in LOS_MemAllocAlign()
1139 *(UINT32 *)((UINTPTR)alignedPtr - sizeof(gapSize)) = gapSize; in LOS_MemAllocAlign()
1324 UINT32 gapSize = *(UINT32 *)((UINTPTR)ptr - sizeof(UINT32)); in LOS_MemFree() local
1325 if (OS_MEM_NODE_GET_ALIGNED_FLAG(gapSize) && OS_MEM_NODE_GET_USED_FLAG(gapSize)) { in LOS_MemFree()
1326 PRINT_ERR("[%s:%d]gapSize:0x%x error\n", __FUNCTION__, __LINE__, gapSize); in LOS_MemFree()
1332 if (OS_MEM_NODE_GET_ALIGNED_FLAG(gapSize)) { in LOS_MemFree()
[all …]
/kernel/liteos_m/kernel/src/mm/
Dlos_memory.c1132 UINT32 gapSize; local
1148 if ((boundary - sizeof(gapSize)) > ((UINT32)(-1) - size)) {
1152 UINT32 useSize = (size + boundary) - sizeof(gapSize);
1174 gapSize = (UINT32)((UINTPTR)alignedPtr - (UINTPTR)ptr);
1177 OS_MEM_SET_GAPSIZE_ALIGNED_FLAG(gapSize);
1178 *(UINT32 *)((UINTPTR)alignedPtr - sizeof(gapSize)) = gapSize;
1351 UINT32 gapSize = *((UINT32 *)((UINTPTR)ptr - sizeof(UINT32))); local
1353 if (OS_MEM_GAPSIZE_CHECK(gapSize)) {
1354 PRINT_ERR("[%s:%d]gapSize:0x%x error\n", __FUNCTION__, __LINE__, gapSize);
1358 if (OS_MEM_GET_GAPSIZE_ALIGNED_FLAG(gapSize)) {
[all …]