Home
last modified time | relevance | path

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

/openthread-3.4.0/tests/unit/
Dtest_hmac_sha256.cpp89 MessagePool *messagePool; in TestSha256()
96 messagePool = &instance->Get<MessagePool>(); in TestSha256()
230 MessagePool *messagePool; in TestHmacSha256()
239 messagePool = &instance->Get<MessagePool>(); 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_heap_string.cpp200 MessagePool *messagePool; in TestHeapData()
214 messagePool = &instance->Get<MessagePool>(); in TestHeapData()
Dtest_message.cpp50 MessagePool *messagePool; in TestMessage()
64 messagePool = &instance->Get<MessagePool>(); in TestMessage()
331 message = instance->Get<MessagePool>().Allocate(Message::kTypeIp6); in TestAppender()
Dtest_message_queue.cpp44 static ot::MessagePool *sMessagePool;
112 sMessagePool = &sInstance->Get<ot::MessagePool>(); in TestMessageQueue()
Dtest_dns.cpp60 MessagePool *messagePool; in TestDnsName()
146 messagePool = &instance->Get<MessagePool>(); in TestDnsName()
485 MessagePool *messagePool; in TestDnsCompressedName()
508 messagePool = &instance->Get<MessagePool>(); in TestDnsCompressedName()
840 MessagePool *messagePool; in TestHeaderAndResourceRecords()
870 messagePool = &instance->Get<MessagePool>(); in TestHeaderAndResourceRecords()
1281 MessagePool *messagePool; in TestDnsTxtEntry()
1296 messagePool = &instance->Get<MessagePool>(); in TestDnsTxtEntry()
Dtest_priority_queue.cpp172 ot::MessagePool *messagePool; in TestPriorityQueue()
183 messagePool = &instance->Get<ot::MessagePool>(); in TestPriorityQueue()
Dtest_tlv.cpp54 VerifyOrQuit((message = instance->Get<MessagePool>().Allocate(Message::kTypeIp6)) != nullptr); in TestTlv()
Dtest_frame_builder.cpp58 message = instance->Get<MessagePool>().Allocate(Message::kTypeIp6); in TestFrameBuilder()
Dtest_spinel_buffer.cpp61 static MessagePool *sMessagePool;
344 sMessagePool = &sInstance->Get<MessagePool>(); in TestBuffer()
967 sMessagePool = &sInstance->Get<MessagePool>(); in TestFuzzBuffer()
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()
Dtest_dns_client.cpp219 VerifyOrQuit(sInstance->Get<MessagePool>().GetFreeBufferCount() == in FinalizeTest()
220 sInstance->Get<MessagePool>().GetTotalBufferCount()); in FinalizeTest()
/openthread-3.4.0/src/core/common/
Dmessage.cpp65 MessagePool::MessagePool(Instance &aInstance) in MessagePool() function in ot::MessagePool
75 Message *MessagePool::Allocate(Message::Type aType, uint16_t aReserveHeader, const Message::Setting… in Allocate()
101 Message *MessagePool::Allocate(Message::Type aType) { return Allocate(aType, 0, Message::Settings::… in Allocate()
103 Message *MessagePool::Allocate(Message::Type aType, uint16_t aReserveHeader) in Allocate()
108 void MessagePool::Free(Message *aMessage) in Free()
115 Buffer *MessagePool::NewBuffer(Message::Priority aPriority) in NewBuffer()
146 void MessagePool::FreeBuffers(Buffer *aBuffer) in FreeBuffers()
164 Error MessagePool::ReclaimBuffers(Message::Priority aPriority) { return Get<MeshForwarder>().EvictM… in ReclaimBuffers()
166 uint16_t MessagePool::GetFreeBufferCount(void) const in GetFreeBufferCount()
185 uint16_t MessagePool::GetTotalBufferCount(void) const in GetTotalBufferCount()
Dinstance.cpp405 aInfo.mTotalBuffers = Get<MessagePool>().GetTotalBufferCount(); in GetBufferInfo()
406 aInfo.mFreeBuffers = Get<MessagePool>().GetFreeBufferCount(); in GetBufferInfo()
407 aInfo.mMaxUsedBuffers = Get<MessagePool>().GetMaxUsedBufferCount(); in GetBufferInfo()
433 void Instance::ResetBufferInfo(void) { Get<MessagePool>().ResetMaxUsedBufferCount(); } in ResetBufferInfo()
Dmessage.hpp149 class MessagePool;
192 MessagePool *mMessagePool; // Message pool for this message.
269 friend class MessagePool;
1404 MessagePool *GetMessagePool(void) const { return GetMetadata().mMessagePool; } in GetMessagePool()
1405 …void SetMessagePool(MessagePool *aMessagePool) { GetMetadata().mMessagePool = aMessagePool… in SetMessagePool()
1543 friend class MessagePool;
1686 class MessagePool : public InstanceLocator, private NonCopyable class
1697 explicit MessagePool(Instance &aInstance);
Dinstance.hpp419 MessagePool mMessagePool;
899 template <> inline MessagePool &Instance::Get(void) { return mMessagePool; } in Get()
/openthread-3.4.0/src/core/meshcop/
Ddataset_updater.cpp67 message = Get<MessagePool>().Allocate(Message::kTypeOther); in RequestUpdate()
Djoiner_router.cpp210 Message *message = Get<MessagePool>().Allocate(Message::kTypeOther); in DelaySendingJoinerEntrust()
/openthread-3.4.0/src/core/thread/
Dchild_supervision.cpp75 message = Get<MessagePool>().Allocate(Message::kTypeSupervision, sizeof(uint8_t)); in SendMessage()
Dmesh_forwarder.cpp1546 …aMessage = Get<MessagePool>().Allocate(Message::kTypeIp6, /* aReserveHeader */ 0, Message::Setting… in FrameToMessage()
1653 message = Get<MessagePool>().Allocate(Message::kTypeMacEmptyData); in SendEmptyMessage()
Dmesh_forwarder_ftd.cpp701 …Get<MessagePool>().Allocate(Message::kType6lowpan, /* aReserveHeader */ 0, Message::Settings(prior… in HandleMesh()
/openthread-3.4.0/src/core/coap/
Dcoap_secure.cpp183 …VerifyOrExit((message = Get<MessagePool>().Allocate(Message::kTypeIp6, Message::GetHelpDataReserve… in HandleDtlsReceive()
/openthread-3.4.0/src/core/net/
Dip6.cpp90 return Get<MessagePool>().Allocate( in NewMessage()
108 message = Get<MessagePool>().Allocate(Message::kTypeIp6, /* aReserveHeader */ 0, settings); in NewMessageFromData()
Ddns_dso.cpp157 return Get<MessagePool>().Allocate(Message::kTypeOther, sizeof(Dns::Header), in NewMessage()
Ddns_client.cpp1036 aQuery = Get<MessagePool>().Allocate(Message::kTypeOther); in AllocateQuery()