/openthread-2.7.6/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 | 76 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::Block 214 return super.GetNext() == self.BlockOffset(first) && first.GetSize() == kFirstBlockSize; in IsClean() 295 …ht(const Block &aBlock) { return BlockAt(BlockOffset(aBlock) + sizeof(Block) + aBlock.GetSize()); } in BlockRight()
|
D | history_tracker.hpp | 251 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::HistoryTracker::List 300 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-2.7.6/src/core/thread/ |
D | link_metrics.cpp | 168 …:MleRouter>().SendLinkMetricsManagementRequest(aDestination, subTlvs, fwdProbingSubTlv->GetSize()); in SendMgmtRequestForwardTrackingSeries() 200 …Destination, reinterpret_cast<const uint8_t *>(&enhAckConfigSubTlv), enhAckConfigSubTlv.GetSize()); in SendMgmtRequestEnhAckProbing() 271 … static_cast<uint16_t>(offset + tlv.GetSize()), in AppendReport() 279 offset += tlv.GetSize(); in AppendReport() 370 … aMessage, pos, static_cast<uint16_t>(offset + index + tlv.GetSize()), metrics)); in HandleManagementRequest() 380 … aMessage, pos, static_cast<uint16_t>(offset + index + tlv.GetSize()), metrics)); in HandleManagementRequest() 388 index += tlv.GetSize(); in HandleManagementRequest() 436 index += tlv.GetSize(); in HandleManagementResponse() 819 SuccessOrExit(error = aMessage.AppendBytes(&metric, metric.GetSize())); in AppendReportSubTlvToMessage() 820 aLength += metric.GetSize(); in AppendReportSubTlvToMessage() [all …]
|
D | discover_scanner.cpp | 129 …static_cast<uint8_t>(discoveryRequest.GetSize() + ((mAdvDataLength != 0) ? joinerAdvertisement.Get… in Discover()
|
D | network_data_leader_ftd.cpp | 260 VerifyOrExit(length + cur->GetSize() <= sizeof(tlvs)); in HandleCommissioningSet() 261 memcpy(tlvs + length, reinterpret_cast<uint8_t *>(cur), cur->GetSize()); in HandleCommissioningSet() 262 length += cur->GetSize(); in HandleCommissioningSet() 937 uint8_t tlvSize = aServer.GetSize(); in AddServer() 1186 uint8_t subTlvSize = server->GetSize(); in RemoveRlocInService() 1284 uint8_t subTlvSize = context->GetSize(); in RemoveContext()
|
D | network_data.cpp | 503 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryData() 537 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryData() 683 Remove(aData, aDataLength, reinterpret_cast<uint8_t *>(aTlv), aTlv->GetSize()); in RemoveTlv()
|
/openthread-2.7.6/src/core/common/ |
D | tlvs.cpp | 42 uint32_t Tlv::GetSize(void) const in GetSize() function in ot::Tlv 60 return aMessage.AppendBytes(this, static_cast<uint16_t>(GetSize())); in AppendTo() 137 size = tlv.GetSize(); in Find() 146 size = extTlv.GetSize(); in Find() 203 VerifyOrExit(tlv.GetSize() + aOffset <= aMessage.GetLength(), error = kErrorParse); in ReadTlv()
|
D | tlvs.hpp | 119 uint32_t GetSize(void) const; 149 …Tlv *GetNext(void) { return reinterpret_cast<Tlv *>(reinterpret_cast<uint8_t *>(this) + GetSize())… in GetNext() 161 return reinterpret_cast<const Tlv *>(reinterpret_cast<const uint8_t *>(this) + GetSize()); in GetNext()
|
D | string.hpp | 167 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::StringWriter
|
D | pool.hpp | 138 uint16_t GetSize(void) const { return kPoolSize; } in GetSize() function in ot::Pool
|
/openthread-2.7.6/src/core/border_router/ |
D | router_advertisement.cpp | 58 nextOption = reinterpret_cast<const uint8_t *>(aCurOption) + aCurOption->GetSize(); in GetNextOption() 62 VerifyOrExit(reinterpret_cast<const Option *>(nextOption)->GetSize() > 0, nextOption = nullptr); in GetNextOption() 63 VerifyOrExit(nextOption + reinterpret_cast<const Option *>(nextOption)->GetSize() <= bufferEnd, in GetNextOption()
|
D | routing_manager.cpp | 692 OT_ASSERT(bufferLength + pio.GetSize() <= sizeof(buffer)); in SendRouterAdvertisement() 693 memcpy(buffer + bufferLength, &pio, pio.GetSize()); in SendRouterAdvertisement() 694 bufferLength += pio.GetSize(); in SendRouterAdvertisement() 719 OT_ASSERT(bufferLength + pio.GetSize() <= sizeof(buffer)); in SendRouterAdvertisement() 720 memcpy(buffer + bufferLength, &pio, pio.GetSize()); in SendRouterAdvertisement() 721 bufferLength += pio.GetSize(); in SendRouterAdvertisement() 739 OT_ASSERT(bufferLength + rio.GetSize() <= sizeof(buffer)); in SendRouterAdvertisement() 740 memcpy(buffer + bufferLength, &rio, rio.GetSize()); in SendRouterAdvertisement() 741 bufferLength += rio.GetSize(); in SendRouterAdvertisement() 755 OT_ASSERT(bufferLength + rio.GetSize() <= sizeof(buffer)); in SendRouterAdvertisement() [all …]
|
D | router_advertisement.hpp | 122 uint16_t GetSize(void) const { return mLength * kLengthUnit; } in GetSize() function in ot::BorderRouter::RouterAdv::Option 273 return (GetSize() == sizeof(*this)) && (mPrefixLength <= OT_IP6_ADDRESS_SIZE * CHAR_BIT) && in IsValid()
|
/openthread-2.7.6/src/core/radio/ |
D | trel_packet.cpp | 60 uint16_t Header::GetSize(Type aType) in GetSize() function in ot::Trel::Header 121 uint16_t headerSize = Header::GetSize(aType); in Init()
|
D | trel_packet.hpp | 116 uint16_t GetLength(void) const { return GetSize(GetType()); } in GetLength() 226 static uint16_t GetSize(Type aType);
|
/openthread-2.7.6/src/core/net/ |
D | dns_types.cpp | 668 aOffset += static_cast<uint16_t>(record.GetSize()); in ParseRecords() 701 aOffset += static_cast<uint16_t>(record.GetSize()); in FindRecord() 760 offset = static_cast<uint16_t>(recordOffset + aRecord.GetSize()); in FindRecord() 786 … if (((aType == kTypeAny) || (record.GetType() == aType)) && (record.GetSize() >= aMinRecordSize)) in ReadRecord() 794 aOffset += static_cast<uint16_t>(record.GetSize()); in ReadRecord() 828 VerifyOrExit(aOffset <= aStartOffset + GetSize(), error = kErrorParse); in ReadName() 850 aOffset += static_cast<uint16_t>(GetSize()); in SkipRecord() 862 return (aOffset + GetSize() <= aMessage.GetLength()) ? kErrorNone : kErrorParse; in CheckRecord() 1017 return GetType() == Dns::ResourceRecord::kTypeAaaa && GetSize() == sizeof(*this); in IsValid() 1061 VerifyOrExit(aOffset <= startOffset + GetSize(), error = kErrorParse); in ReadPtrName()
|
D | srp_client.cpp | 1390 VerifyOrExit(aOffset + aRecord.GetSize() <= aMessage.GetLength(), error = kErrorParse); in ReadResourceRecord() 1391 aOffset += static_cast<uint16_t>(aRecord.GetSize()); in ReadResourceRecord() 1418 VerifyOrExit(aOffset + option.GetSize() <= aMessage.GetLength(), error = kErrorParse); in ProcessOptRecord() 1433 size = static_cast<uint16_t>(option.GetSize()); in ProcessOptRecord()
|
/openthread-2.7.6/tests/unit/ |
D | test_pool.cpp | 87 VerifyOrQuit(aPool.GetSize() == kPoolSize); in TestPool()
|
D | test_string.cpp | 56 VerifyOrQuit(str.GetSize() == kStringSize); in TestStringWriter()
|
/openthread-2.7.6/src/core/meshcop/ |
D | dataset_local.cpp | 183 if (aDataset.GetSize() == 0) in Save()
|
D | dataset_manager_ftd.cpp | 235 offset += static_cast<uint16_t>(datasetTlv.GetSize()); in HandleSet() 469 offset += static_cast<uint16_t>(datasetTlv.GetSize()); in ApplyActiveDataset()
|
D | dataset.hpp | 712 uint16_t GetSize(void) const { return mLength; } in GetSize() function in ot::MeshCoP::Dataset
|