/openthread-3.7.0/src/core/utils/ |
D | heap.cpp | 80 while (curr->GetSize() < size) in CAlloc() 90 if (curr->GetSize() > size + sizeof(Block)) in CAlloc() 92 const uint16_t newBlockSize = curr->GetSize() - size - sizeof(Block); in CAlloc() 99 if (prev->GetSize() < newBlockSize) in CAlloc() 111 mMemory.mFreeSize -= curr->GetSize(); in CAlloc() 126 …for (Block *block = &BlockNext(*prev); block->GetSize() < aBlock.GetSize(); block = &BlockNext(*bl… in BlockInsert() 157 mMemory.mFreeSize += block.GetSize(); in Free() 179 if (right.GetSize() > left->GetSize()) in Free() 194 left->SetSize(left->GetSize() + right.GetSize() + sizeof(Block)); in Free() 198 left->SetSize(left->GetSize() + block.GetSize() + sizeof(Block)); in Free() [all …]
|
D | flash.cpp | 71 …SwapUsed = kSwapMarkerSize; mSwapUsed <= mSwapSize - sizeof(record); mSwapUsed += record.GetSize()) in Init() 125 for (offset = kSwapMarkerSize; offset < mSwapUsed; offset += record.GetSize()) in Get() 188 OT_ASSERT((mSwapSize - record.GetSize()) >= kSwapMarkerSize); in Add() 190 if ((mSwapSize - record.GetSize()) < mSwapUsed) in Add() 193 VerifyOrExit((mSwapSize - record.GetSize()) >= mSwapUsed, error = kErrorNoBufs); in Add() 196 otPlatFlashWrite(&GetInstance(), mSwapIndex, mSwapUsed, &record, record.GetSize()); in Add() 201 mSwapUsed += record.GetSize(); in Add() 212 for (; aOffset < mSwapUsed; aOffset += record.GetSize()) in DoesValidRecordExist() 234 for (uint32_t srcOffset = kSwapMarkerSize; srcOffset < mSwapUsed; srcOffset += record.GetSize()) in Swap() 240 … if (!record.IsValid() || DoesValidRecordExist(srcOffset + record.GetSize(), record.GetKey())) in Swap() [all …]
|
D | heap.hpp | 77 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::Block 215 return super.GetNext() == self.BlockOffset(first) && first.GetSize() == kFirstBlockSize; in IsClean() 296 …ht(const Block &aBlock) { return BlockAt(BlockOffset(aBlock) + sizeof(Block) + aBlock.GetSize()); } in BlockRight()
|
D | history_tracker.hpp | 335 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::HistoryTracker::List 384 uint16_t GetSize(void) const { return 0; } in GetSize() function in ot::Utils::HistoryTracker::EntryList
|
D | flash.hpp | 169 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize() function in ot::Flash::RecordHeader
|
/openthread-3.7.0/src/core/radio/ |
D | trel_packet.cpp | 59 uint16_t Header::GetSize(Type aType) in GetSize() function in ot::Trel::Header 115 uint16_t headerSize = Header::GetSize(aType); in Init()
|
D | trel_packet.hpp | 117 uint16_t GetLength(void) const { return GetSize(GetType()); } in GetLength() 227 static uint16_t GetSize(Type aType);
|
D | ble_secure.cpp | 420 requiredBytes = extTlv.GetSize(); in HandleTlsReceive() 425 requiredBytes = tlv.GetSize(); in HandleTlsReceive()
|
/openthread-3.7.0/src/core/net/ |
D | ip6_headers.cpp | 89 VerifyOrExit(aOffset + GetSize() <= aEndOffset, error = kErrorParse); in ParseFrom() 95 uint16_t Option::GetSize(void) const in GetSize() function in ot::Ip6::Option
|
D | dns_types.cpp | 817 aOffset += static_cast<uint16_t>(record.GetSize()); in ParseRecords() 850 aOffset += static_cast<uint16_t>(record.GetSize()); in FindRecord() 909 offset = static_cast<uint16_t>(recordOffset + aRecord.GetSize()); in FindRecord() 935 … if (((aType == kTypeAny) || (record.GetType() == aType)) && (record.GetSize() >= aMinRecordSize)) in ReadRecord() 943 aOffset += static_cast<uint16_t>(record.GetSize()); in ReadRecord() 977 VerifyOrExit(aOffset <= aStartOffset + GetSize(), error = kErrorParse); in ReadName() 999 aOffset += static_cast<uint16_t>(GetSize()); in SkipRecord() 1011 return (aOffset + GetSize() <= aMessage.GetLength()) ? kErrorNone : kErrorParse; in CheckRecord() 1191 return GetType() == Dns::ResourceRecord::kTypeAaaa && GetSize() == sizeof(*this); in IsValid() 1256 VerifyOrExit(aOffset + GetSize() <= endOffset, error = kErrorParse); in ReadFrom() [all …]
|
D | nd6.cpp | 67 … reinterpret_cast<const Option *>(reinterpret_cast<const uint8_t *>(aOption) + aOption->GetSize()); in Next() 104 return (GetSize() >= sizeof(*this)) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid() 139 return (GetSize() >= kMinSize) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
|
D | ip6.cpp | 192 … if (padOption.InitToPadHeaderWithSize(sizeof(HopByHopHeader) + mplOption.GetSize()) == kErrorNone) in AddMplOption() 194 SuccessOrExit(error = aMessage.PrependBytes(&padOption, padOption.GetSize())); in AddMplOption() 197 SuccessOrExit(error = aMessage.PrependBytes(&mplOption, mplOption.GetSize())); in AddMplOption() 268 hbhSize = hbh.GetSize(); in InsertMplOption() 283 aMessage.WriteBytes(hbhSize, &mplOption, mplOption.GetSize()); in InsertMplOption() 286 if (padOption.InitToPadHeaderWithSize(mplOption.GetSize()) == kErrorNone) in InsertMplOption() 288 aMessage.WriteBytes(hbhSize + mplOption.GetSize(), &padOption, padOption.GetSize()); in InsertMplOption() 328 endOffset = offset + hbh.GetSize(); in RemoveMplOption() 333 for (; offset < endOffset; offset += option.GetSize()) in RemoveMplOption() 403 aMessage.WriteBytes(mplOffset, &padOption, padOption.GetSize()); in RemoveMplOption() [all …]
|
D | dns_dso.hpp | 175 uint32_t GetSize(void) const { return sizeof(Tlv) + static_cast<uint32_t>(GetLength()); } in GetSize() function in ot::Dns::Dso::Tlv 909 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid() 930 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
|
D | ip6_headers.hpp | 430 uint16_t GetSize(void) const { return kLengthUnitSize * (mLength + 1); } in GetSize() function in ot::Ip6::ExtensionHeader 514 uint16_t GetSize(void) const;
|
D | nd6.hpp | 116 uint16_t GetSize(void) const { return mLength * kLengthUnit; } in GetSize() function in ot::Ip6::Nd::Option 489 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
|
/openthread-3.7.0/src/core/common/ |
D | tlvs.hpp | 118 uint32_t GetSize(void) const; 148 …Tlv *GetNext(void) { return reinterpret_cast<Tlv *>(reinterpret_cast<uint8_t *>(this) + GetSize())… in GetNext() 160 return reinterpret_cast<const Tlv *>(reinterpret_cast<const uint8_t *>(this) + GetSize()); in GetNext()
|
D | pool.hpp | 140 uint16_t GetSize(void) const { return kPoolSize; } in GetSize() function in ot::Pool
|
D | tlvs.cpp | 42 uint32_t Tlv::GetSize(void) const in GetSize() function in ot::Tlv 57 …o(Message &aMessage) const { return aMessage.AppendBytes(this, static_cast<uint16_t>(GetSize())); } in AppendTo()
|
D | string.hpp | 448 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::StringWriter
|
/openthread-3.7.0/src/core/thread/ |
D | network_data.cpp | 72 VerifyOrExit(aNetworkData.GetSize() >= mLength, error = kErrorNoBufs); in CopyNetworkData() 701 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn() 734 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn() 777 void MutableNetworkData::RemoveTlv(NetworkDataTlv *aTlv) { Remove(aTlv, aTlv->GetSize()); } in RemoveTlv()
|
D | link_metrics.cpp | 452 … static_cast<uint16_t>(offset + tlv.GetSize()), in AppendReport() 460 offset += static_cast<uint16_t>(tlv.GetSize()); in AppendReport() 540 VerifyOrExit(offset + tlv.GetSize() <= endOffset, error = kErrorParse); in HandleManagementRequest() 541 tlvEndOffset = static_cast<uint16_t>(offset + tlv.GetSize()); in HandleManagementRequest() 563 VerifyOrExit(tlv.GetSize() >= minTlvSize, error = kErrorParse); in HandleManagementRequest()
|
D | discover_scanner.cpp | 126 …static_cast<uint8_t>(discoveryRequest.GetSize() + ((mAdvDataLength != 0) ? joinerAdvertisement.Get… in Discover()
|
D | lowpan.cpp | 462 len = extHeader.GetSize() - sizeof(extHeader); in CompressExtensionHeader() 478 for (; offset < endOffset; offset += option.GetSize()) in CompressExtensionHeader() 487 padLength = option.GetSize(); in CompressExtensionHeader() 875 SuccessOrExit(aMessage.AppendBytes(&padOption, padOption.GetSize())); in DecompressExtensionHeader() 876 aMessage.MoveOffset(padOption.GetSize()); in DecompressExtensionHeader()
|
/openthread-3.7.0/tests/unit/ |
D | test_pool.cpp | 89 VerifyOrQuit(aPool.GetSize() == kPoolSize); in TestPool()
|
/openthread-3.7.0/src/core/meshcop/ |
D | meshcop_leader.cpp | 272 mSteeringDataTlv.GetSize()); in GetLength()
|