/openthread-latest/src/core/utils/ |
D | heap.cpp | 79 while (curr->GetSize() < size) in CAlloc() 89 if (curr->GetSize() > size + sizeof(Block)) in CAlloc() 91 const uint16_t newBlockSize = curr->GetSize() - size - sizeof(Block); in CAlloc() 98 if (prev->GetSize() < newBlockSize) in CAlloc() 110 mMemory.mFreeSize -= curr->GetSize(); in CAlloc() 125 …for (Block *block = &BlockNext(*prev); block->GetSize() < aBlock.GetSize(); block = &BlockNext(*bl… in BlockInsert() 156 mMemory.mFreeSize += block.GetSize(); in Free() 178 if (right.GetSize() > left->GetSize()) in Free() 193 left->SetSize(left->GetSize() + right.GetSize() + sizeof(Block)); in Free() 197 left->SetSize(left->GetSize() + block.GetSize() + sizeof(Block)); in Free() [all …]
|
D | flash.cpp | 68 …SwapUsed = kSwapMarkerSize; mSwapUsed <= mSwapSize - sizeof(record); mSwapUsed += record.GetSize()) in Init() 122 for (offset = kSwapMarkerSize; offset < mSwapUsed; offset += record.GetSize()) in Get() 185 OT_ASSERT((mSwapSize - record.GetSize()) >= kSwapMarkerSize); in Add() 187 if ((mSwapSize - record.GetSize()) < mSwapUsed) in Add() 190 VerifyOrExit((mSwapSize - record.GetSize()) >= mSwapUsed, error = kErrorNoBufs); in Add() 193 otPlatFlashWrite(&GetInstance(), mSwapIndex, mSwapUsed, &record, record.GetSize()); in Add() 198 mSwapUsed += record.GetSize(); in Add() 209 for (; aOffset < mSwapUsed; aOffset += record.GetSize()) in DoesValidRecordExist() 231 for (uint32_t srcOffset = kSwapMarkerSize; srcOffset < mSwapUsed; srcOffset += record.GetSize()) in Swap() 237 … if (!record.IsValid() || DoesValidRecordExist(srcOffset + record.GetSize(), record.GetKey())) in Swap() [all …]
|
D | heap.hpp | 74 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::Block 200 return super.GetNext() == self.BlockOffset(first) && first.GetSize() == kFirstBlockSize; in IsClean() 275 …ht(const Block &aBlock) { return BlockAt(BlockOffset(aBlock) + sizeof(Block) + aBlock.GetSize()); } in BlockRight()
|
D | history_tracker.hpp | 322 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::HistoryTracker::List 371 uint16_t GetSize(void) const { return 0; } in GetSize() function in ot::Utils::HistoryTracker::EntryList
|
D | flash.hpp | 161 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize() function in ot::Flash::RecordHeader
|
/openthread-latest/src/core/net/ |
D | nd6.cpp | 66 … reinterpret_cast<const Option *>(reinterpret_cast<const uint8_t *>(aOption) + aOption->GetSize()); in Next() 103 return (GetSize() >= sizeof(*this)) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid() 138 return (GetSize() >= kMinSize) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid() 265 for (; size < option.GetSize(); size++) in AppendLinkLayerOption()
|
D | ip6_headers.cpp | 88 VerifyOrExit(aOffsetRange.Contains(GetSize()), error = kErrorParse); in ParseFrom() 94 uint16_t Option::GetSize(void) const in GetSize() function in ot::Ip6::Option
|
D | dns_types.cpp | 811 aOffset += static_cast<uint16_t>(record.GetSize()); in ParseRecords() 844 aOffset += static_cast<uint16_t>(record.GetSize()); in FindRecord() 903 offset = static_cast<uint16_t>(recordOffset + aRecord.GetSize()); in FindRecord() 929 … if (((aType == kTypeAny) || (record.GetType() == aType)) && (record.GetSize() >= aMinRecordSize)) in ReadRecord() 937 aOffset += static_cast<uint16_t>(record.GetSize()); in ReadRecord() 971 VerifyOrExit(aOffset <= aStartOffset + GetSize(), error = kErrorParse); in ReadName() 993 aOffset += static_cast<uint16_t>(GetSize()); in SkipRecord() 1005 return (aOffset + GetSize() <= aMessage.GetLength()) ? kErrorNone : kErrorParse; in CheckRecord() 1185 return GetType() == Dns::ResourceRecord::kTypeAaaa && GetSize() == sizeof(*this); in IsValid() 1250 VerifyOrExit(aOffset + GetSize() <= endOffset, error = kErrorParse); in ReadFrom() [all …]
|
D | ip6.cpp | 174 … if (padOption.InitToPadHeaderWithSize(sizeof(HopByHopHeader) + mplOption.GetSize()) == kErrorNone) in AddMplOption() 176 SuccessOrExit(error = aMessage.PrependBytes(&padOption, padOption.GetSize())); in AddMplOption() 179 SuccessOrExit(error = aMessage.PrependBytes(&mplOption, mplOption.GetSize())); in AddMplOption() 253 hbhSize = hbh.GetSize(); in InsertMplOption() 268 aMessage.WriteBytes(hbhSize, &mplOption, mplOption.GetSize()); in InsertMplOption() 271 if (padOption.InitToPadHeaderWithSize(mplOption.GetSize()) == kErrorNone) in InsertMplOption() 273 aMessage.WriteBytes(hbhSize + mplOption.GetSize(), &padOption, padOption.GetSize()); in InsertMplOption() 318 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(option.GetSize())) in RemoveMplOption() 336 mplOffsetRange.ShrinkLength(option.GetSize()); in RemoveMplOption() 338 VerifyOrExit(option.GetSize() <= sizeof(MplOption), error = kErrorParse); in RemoveMplOption() [all …]
|
D | dns_dso.hpp | 163 uint32_t GetSize(void) const { return sizeof(Tlv) + static_cast<uint32_t>(GetLength()); } in GetSize() function in ot::Dns::Dso::Tlv 858 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid() 879 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
|
D | ip6_headers.hpp | 393 uint16_t GetSize(void) const { return kLengthUnitSize * (mLength + 1); } in GetSize() function in ot::Ip6::ExtensionHeader 469 uint16_t GetSize(void) const;
|
D | nd6.hpp | 118 uint16_t GetSize(void) const { return mLength * kLengthUnit; } in GetSize() function in ot::Ip6::Nd::Option 471 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
|
/openthread-latest/src/core/radio/ |
D | trel_packet.cpp | 56 uint16_t Header::GetSize(Type aType) in GetSize() function in ot::Trel::Header 112 uint16_t headerSize = Header::GetSize(aType); in Init()
|
D | trel_packet.hpp | 109 uint16_t GetLength(void) const { return GetSize(GetType()); } in GetLength() 206 static uint16_t GetSize(Type aType);
|
D | ble_secure.cpp | 404 requiredBytes = extTlv.GetSize(); in HandleTlsReceive() 409 requiredBytes = tlv.GetSize(); in HandleTlsReceive()
|
/openthread-latest/src/core/common/ |
D | tlvs.hpp | 111 uint32_t GetSize(void) const; 138 …Tlv *GetNext(void) { return reinterpret_cast<Tlv *>(reinterpret_cast<uint8_t *>(this) + GetSize())… in GetNext() 149 return reinterpret_cast<const Tlv *>(reinterpret_cast<const uint8_t *>(this) + GetSize()); in GetNext() 283 uint16_t GetSize(void) const { return mTlvOffsetRange.GetLength(); } in GetSize() function
|
D | pool.hpp | 132 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 | 426 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::StringWriter
|
/openthread-latest/src/core/thread/ |
D | discover_scanner.cpp | 119 …static_cast<uint8_t>(discoveryRequest.GetSize() + ((mAdvDataLength != 0) ? joinerAdvertisement.Get… in Discover() 327 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(tlvInfo.GetSize())) in HandleDiscoveryResponse()
|
D | link_metrics.cpp | 134 for (; !aOffsetRange.IsEmpty(); aOffsetRange.AdvanceOffset(tlvInfo.GetSize())) in HandleReport() 306 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(tlvInfo.GetSize())) in HandleManagementResponse() 430 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(tlvInfo.GetSize())) in AppendReport() 524 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(tlvInfo.GetSize())) in HandleManagementRequest() 559 VerifyOrExit(tlvInfo.GetSize() >= minTlvSize, error = kErrorParse); in HandleManagementRequest()
|
D | network_data.cpp | 62 VerifyOrExit(aNetworkData.GetSize() >= mLength, error = kErrorNoBufs); in CopyNetworkData() 691 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn() 724 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn() 767 void MutableNetworkData::RemoveTlv(NetworkDataTlv *aTlv) { Remove(aTlv, aTlv->GetSize()); } in RemoveTlv()
|
D | lowpan.cpp | 453 len = extHeader.GetSize() - sizeof(extHeader); in CompressExtensionHeader() 470 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(option.GetSize())) in CompressExtensionHeader() 479 padLength = option.GetSize(); in CompressExtensionHeader() 867 SuccessOrExit(aMessage.AppendBytes(&padOption, padOption.GetSize())); in DecompressExtensionHeader() 868 aMessage.MoveOffset(padOption.GetSize()); in DecompressExtensionHeader()
|
/openthread-latest/tests/unit/ |
D | test_pool.cpp | 89 VerifyOrQuit(aPool.GetSize() == kPoolSize); in TestPool()
|
/openthread-latest/src/core/meshcop/ |
D | meshcop_leader.cpp | 259 mSteeringDataTlv.GetSize()); in GetLength()
|