Searched refs:gapSize (Results 1 – 2 of 2) sorted by relevance
1081 UINT32 gapSize; in LOS_MemAllocAlign() local1097 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() local1314 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 …]
1118 UINT32 gapSize; local1134 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))); local1339 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 …]