Lines Matching refs:sentinelNode
327 …TIC INLINE struct OsMemNodeHead *OsMemLastSentinelNodeGet(const struct OsMemNodeHead *sentinelNode) argument
330 VOID *ptr = sentinelNode->ptr.next;
331 UINT32 size = OS_MEM_NODE_GET_SIZE(sentinelNode->sizeAndFlag);
342 STATIC INLINE BOOL OsMemSentinelNodeCheck(struct OsMemNodeHead *sentinelNode) argument
344 if (!OS_MEM_NODE_GET_USED_FLAG(sentinelNode->sizeAndFlag)) {
348 if (!OS_MEM_MAGIC_VALID(sentinelNode)) {
355 STATIC INLINE BOOL OsMemIsLastSentinelNode(struct OsMemNodeHead *sentinelNode) argument
357 if (OsMemSentinelNodeCheck(sentinelNode) == FALSE) {
362 if ((OS_MEM_NODE_GET_SIZE(sentinelNode->sizeAndFlag) == 0) ||
363 (sentinelNode->ptr.next == NULL)) {
370 STATIC INLINE VOID OsMemSentinelNodeSet(struct OsMemNodeHead *sentinelNode, VOID *newNode, UINT32 s… argument
372 if (sentinelNode->ptr.next != NULL) {
373 sentinelNode = OsMemLastSentinelNodeGet(sentinelNode);
376 sentinelNode->sizeAndFlag = size;
377 sentinelNode->ptr.next = newNode;
378 OS_MEM_NODE_SET_USED_FLAG(sentinelNode->sizeAndFlag);
379 OS_MEM_NODE_SET_LAST_FLAG(sentinelNode->sizeAndFlag);
395 struct OsMemNodeHead *sentinelNode = NULL; local
397 sentinelNode = OS_MEM_END_NODE(pool, ((struct OsMemPoolHead *)pool)->info.totalSize);
398 while (sentinelNode != NULL) {
399 if (OsMemIsLastSentinelNode(sentinelNode)) {
403 nextNode = OsMemSentinelNodeGet(sentinelNode);
405 return sentinelNode;
407 nextSize = OS_MEM_NODE_GET_SIZE(sentinelNode->sizeAndFlag);
408 sentinelNode = OS_MEM_END_NODE(nextNode, nextSize);