Searched refs:curr (Results 1 – 5 of 5) sorted by relevance
62 otLinkedBuffer* curr = buffer->head; in lbuf_pop() local65 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() local97 while (offsetleft > 0 && offsetleft >= curr->mLength) { in lbuf_getrange()[all …]
68 Block *curr = nullptr; in CAlloc() local78 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 …]
131 Node *curr = prev->mNext; in TestAllocateRandomly() local132 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()
988 otLinkedBuffer* curr; in tcp_output() local992 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()
719 otLinkedBuffer *curr = aPriorHead; in ProcessSignals() local721 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()