Home
last modified time | relevance | path

Searched refs:Allocate (Results 1 – 25 of 44) sorted by relevance

12

/openthread-3.4.0/tests/unit/
Dtest_pool.cpp91 entry = aPool.Allocate(); in TestPool()
99 …VerifyOrQuit(aPool.Allocate() == nullptr, "Pool::Allocate() did not fail when all pool entries wer… in TestPool()
109 entries[i] = aPool.Allocate(); in TestPool()
116 …VerifyOrQuit(aPool.Allocate() == nullptr, "Pool::Allocate() did not fail when all pool entries wer… in TestPool()
Dtest_priority_queue.cpp188 …msgNet[i] = messagePool->Allocate(ot::Message::kTypeIp6, 0, ot::Message::Settings(ot::Message::kPr… in TestPriorityQueue()
190 …msgHigh[i] = messagePool->Allocate(ot::Message::kTypeIp6, 0, ot::Message::Settings(ot::Message::kP… in TestPriorityQueue()
193 …messagePool->Allocate(ot::Message::kTypeIp6, 0, ot::Message::Settings(ot::Message::kPriorityNormal… in TestPriorityQueue()
195 …msgLow[i] = messagePool->Allocate(ot::Message::kTypeIp6, 0, ot::Message::Settings(ot::Message::kPr… in TestPriorityQueue()
202 msgNet[i] = messagePool->Allocate(ot::Message::kTypeIp6); in TestPriorityQueue()
205 msgHigh[i] = messagePool->Allocate(ot::Message::kTypeIp6); in TestPriorityQueue()
208 msgNor[i] = messagePool->Allocate(ot::Message::kTypeIp6); in TestPriorityQueue()
211 msgLow[i] = messagePool->Allocate(ot::Message::kTypeIp6); in TestPriorityQueue()
Dtest_message.cpp68 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestMessage()
140 VerifyOrQuit((message2 = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestMessage()
272 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestMessage()
293 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestMessage()
331 message = instance->Get<MessagePool>().Allocate(Message::kTypeIp6); in TestAppender()
Dtest_hmac_sha256.cpp97 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestSha256()
240 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestHmacSha256()
Dtest_aes.cpp149 message = instance->Get<ot::MessagePool>().Allocate(ot::Message::kTypeIp6); in TestMacCommandFrame()
204 message = instance->Get<ot::MessagePool>().Allocate(ot::Message::kTypeIp6); in TestInPlaceAesCcmProcessing()
Dtest_spinel_buffer.cpp179 message = sMessagePool->Allocate(Message::kTypeIp6); in WriteTestFrame1()
223 message1 = sMessagePool->Allocate(Message::kTypeIp6); in WriteTestFrame2()
228 message2 = sMessagePool->Allocate(Message::kTypeIp6); in WriteTestFrame2()
268 message1 = sMessagePool->Allocate(Message::kTypeIp6); in WriteTestFrame3()
529 message = sMessagePool->Allocate(Message::kTypeIp6); in TestBuffer()
734 message = sMessagePool->Allocate(Message::kTypeIp6); in TestBuffer()
Dtest_tlv.cpp54 VerifyOrQuit((message = instance->Get<MessagePool>().Allocate(Message::kTypeIp6)) != nullptr); in TestTlv()
Dtest_dns.cpp147 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestDnsName()
509 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestDnsCompressedName()
770 VerifyOrQuit((message2 = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestDnsCompressedName()
871 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestHeaderAndResourceRecords()
1297 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestDnsTxtEntry()
Dtest_heap_string.cpp215 VerifyOrQuit((message = messagePool->Allocate(Message::kTypeIp6)) != nullptr); in TestHeapData()
Dtest_frame_builder.cpp58 message = instance->Get<MessagePool>().Allocate(Message::kTypeIp6); in TestFrameBuilder()
Dtest_message_queue.cpp116 msg = sMessagePool->Allocate(ot::Message::kTypeIp6); in TestMessageQueue()
Dtest_lowpan.cpp127 Message *message = sInstance->Get<MessagePool>().Allocate(Message::kTypeIp6); in Init()
181 … VerifyOrQuit((message = sInstance->Get<MessagePool>().Allocate(Message::kTypeIp6)) != nullptr); in Test()
204 …VerifyOrQuit((compressedMsg = sInstance->Get<MessagePool>().Allocate(Message::kTypeIp6)) != nullpt… in Test()
228 … VerifyOrQuit((message = sInstance->Get<MessagePool>().Allocate(Message::kTypeIp6)) != nullptr); in Test()
/openthread-3.4.0/src/core/common/
Dheap_array.hpp162 Error ReserveCapacity(IndexType aCapacity) { return Allocate(aCapacity); } in ReserveCapacity()
289 SuccessOrExit(error = Allocate(mCapacity + kCapacityIncrements)); in PushBack()
316 SuccessOrExit(error = Allocate(mCapacity + kCapacityIncrements)); in PushBack()
343 SuccessOrExit(Allocate(mCapacity + kCapacityIncrements)); in PushBack()
518 Error Allocate(IndexType aCapacity) in Allocate() function in ot::Heap::Array
Dheap_allocatable.hpp73 template <typename... Args> static Type *Allocate(Args &&...aArgs) in Allocate() function in ot::Heap::Allocatable
Dmessage.cpp75 Message *MessagePool::Allocate(Message::Type aType, uint16_t aReserveHeader, const Message::Setting… in Allocate() function in ot::MessagePool
101 Message *MessagePool::Allocate(Message::Type aType) { return Allocate(aType, 0, Message::Settings::… in Allocate() function in ot::MessagePool
103 Message *MessagePool::Allocate(Message::Type aType, uint16_t aReserveHeader) in Allocate() function in ot::MessagePool
105 return Allocate(aType, aReserveHeader, Message::Settings::GetDefault()); in Allocate()
125 buffer = mBufferPool.Allocate() in NewBuffer()
770 messageCopy = GetMessagePool()->Allocate(GetType(), GetReserved(), settings); in Clone()
Dpool.hpp107 Type *Allocate(void) { return mFreeList.Pop(); } in Allocate() function in ot::Pool
Dmessage.hpp1709 …Message *Allocate(Message::Type aType, uint16_t aReserveHeader, const Message::Settings &aSettings…
1719 Message *Allocate(Message::Type aType);
1730 Message *Allocate(Message::Type aType, uint16_t aReserveHeader);
/openthread-3.4.0/src/core/utils/
Dsrp_client_buffers.cpp54 ServiceEntry *entry = mServicePool.Allocate(); in AllocateService()
/openthread-3.4.0/src/core/thread/
Drouter_table.hpp83 Router *Allocate(void);
93 Router *Allocate(uint8_t aRouterId);
Dchild_supervision.cpp75 message = Get<MessagePool>().Allocate(Message::kTypeSupervision, sizeof(uint8_t)); in SendMessage()
Drouter_table.cpp134 Router *RouterTable::Allocate(void) in Allocate() function in ot::RouterTable
166 router = Allocate(selectedRouterId); in Allocate()
173 Router *RouterTable::Allocate(uint8_t aRouterId) in Allocate() function in ot::RouterTable
/openthread-3.4.0/src/core/meshcop/
Ddataset_updater.cpp67 message = Get<MessagePool>().Allocate(Message::kTypeOther); in RequestUpdate()
/openthread-3.4.0/examples/platforms/utils/
Dlink_metrics.cpp203 dataInfo = GetLinkMetricsDataInfoPool().Allocate(); in otLinkMetricsConfigureEnhAckProbing()
/openthread-3.4.0/src/core/net/
Dnetif.cpp364 entry = mExtMulticastAddressPool.Allocate(); in SubscribeExternalMulticast()
487 entry = mExtUnicastAddressPool.Allocate(); in AddExternalUnicastAddress()
/openthread-3.4.0/src/core/coap/
Dcoap_secure.cpp183 …VerifyOrExit((message = Get<MessagePool>().Allocate(Message::kTypeIp6, Message::GetHelpDataReserve… in HandleDtlsReceive()

12