Home
last modified time | relevance | path

Searched refs:curr (Results 1 – 5 of 5) sorted by relevance

/openthread-3.7.0/third_party/tcplp/lib/
Dlbuf.c62 otLinkedBuffer* curr = buffer->head; in lbuf_pop() local
65 if (curr == NULL) { in lbuf_pop()
68 while (bytesleft >= curr->mLength - curroffset) { in lbuf_pop()
70 bytesleft -= (curr->mLength - curroffset); in lbuf_pop()
71 buffer->length -= (curr->mLength - curroffset); in lbuf_pop()
72 if (buffer->tail == curr) { in lbuf_pop()
78 curr = curr->mNext; in lbuf_pop()
82 buffer->head = curr; in lbuf_pop()
91 otLinkedBuffer* curr = buffer->head; in lbuf_getrange() local
97 while (offsetleft > 0 && offsetleft >= curr->mLength) { in lbuf_getrange()
[all …]
/openthread-3.7.0/src/core/utils/
Dheap.cpp68 Block *curr = nullptr; in CAlloc() local
78 curr = &BlockNext(*prev); in CAlloc()
80 while (curr->GetSize() < size) in CAlloc()
82 prev = curr; in CAlloc()
83 curr = &BlockNext(*curr); in CAlloc()
86 VerifyOrExit(curr->IsFree()); in CAlloc()
88 prev->SetNext(curr->GetNext()); in CAlloc()
90 if (curr->GetSize() > size + sizeof(Block)) in CAlloc()
92 const uint16_t newBlockSize = curr->GetSize() - size - sizeof(Block); in CAlloc()
93 curr->SetSize(size); in CAlloc()
[all …]
/openthread-3.7.0/tests/unit/
Dtest_heap.cpp131 Node *curr = prev->mNext; in TestAllocateRandomly() local
132 printf("TestAllocateRandomly freeing %zu bytes...\n", curr->mSize); in TestAllocateRandomly()
133 prev->mNext = curr->mNext; in TestAllocateRandomly()
134 heap.Free(curr); in TestAllocateRandomly()
136 if (last == curr) in TestAllocateRandomly()
/openthread-3.7.0/third_party/tcplp/bsdtcp/
Dtcp_output.c988 otLinkedBuffer* curr; in tcp_output() local
992 for (curr = start; curr != end->mNext; curr = curr->mNext) { in tcp_output()
993 const uint8_t* data_to_copy = curr->mData; in tcp_output()
994 size_t length_to_copy = curr->mLength; in tcp_output()
995 if (curr == start) { in tcp_output()
999 if (curr == end) { in tcp_output()
/openthread-3.7.0/src/core/net/
Dtcp6.cpp719 otLinkedBuffer *curr = aPriorHead; in ProcessSignals() local
721 OT_ASSERT(curr != nullptr || aSignals.links_popped == 0); in ProcessSignals()
725 otLinkedBuffer *next = curr->mNext; in ProcessSignals()
729 curr->mNext = nullptr; in ProcessSignals()
730 aEndpoint.mSendDoneCallback(&aEndpoint, curr); in ProcessSignals()
731 curr = next; in ProcessSignals()