/openthread-3.6.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 | flash.hpp | 169 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize() function in ot::Flash::RecordHeader
|
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
|
/openthread-3.6.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);
|
/openthread-3.6.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 | 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 | 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()
|
D | ip6.cpp | 189 … if (padOption.InitToPadHeaderWithSize(sizeof(HopByHopHeader) + mplOption.GetSize()) == kErrorNone) in AddMplOption() 191 SuccessOrExit(error = aMessage.PrependBytes(&padOption, padOption.GetSize())); in AddMplOption() 194 SuccessOrExit(error = aMessage.PrependBytes(&mplOption, mplOption.GetSize())); in AddMplOption() 265 hbhSize = hbh.GetSize(); in InsertMplOption() 280 aMessage.WriteBytes(hbhSize, &mplOption, mplOption.GetSize()); in InsertMplOption() 283 if (padOption.InitToPadHeaderWithSize(mplOption.GetSize()) == kErrorNone) in InsertMplOption() 285 aMessage.WriteBytes(hbhSize + mplOption.GetSize(), &padOption, padOption.GetSize()); in InsertMplOption() 325 endOffset = offset + hbh.GetSize(); in RemoveMplOption() 330 for (; offset < endOffset; offset += option.GetSize()) in RemoveMplOption() 400 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 | 115 uint16_t GetSize(void) const { return mLength * kLengthUnit; } in GetSize() function in ot::Ip6::Nd::Option 488 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
|
/openthread-3.6.0/src/core/common/ |
D | pool.hpp | 140 uint16_t GetSize(void) const { return kPoolSize; } in GetSize() function in ot::Pool
|
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 | string.hpp | 391 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::StringWriter
|
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()
|
/openthread-3.6.0/tests/unit/ |
D | test_pool.cpp | 89 VerifyOrQuit(aPool.GetSize() == kPoolSize); in TestPool()
|
/openthread-3.6.0/src/core/thread/ |
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 | network_data.cpp | 69 VerifyOrExit(aNetworkData.GetSize() >= mLength, error = kErrorNoBufs); in CopyNetworkData() 514 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn() 545 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn() 676 void MutableNetworkData::RemoveTlv(NetworkDataTlv *aTlv) { Remove(aTlv, aTlv->GetSize()); } in RemoveTlv()
|
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.6.0/src/core/meshcop/ |
D | dataset_manager_ftd.cpp | 226 offset += static_cast<uint16_t>(datasetTlv.GetSize()); in HandleSet() 433 offset += static_cast<uint16_t>(datasetTlv.GetSize()); in ApplyActiveDataset()
|
D | dataset_local.cpp | 193 if (aDataset.GetSize() == 0) in Save()
|