/openthread-3.4.0/src/core/common/ |
D | linked_list.hpp | 164 void Push(Type &aEntry) in Push() argument 166 aEntry.SetNext(mHead); in Push() 167 mHead = &aEntry; in Push() 177 void PushAfter(Type &aEntry, Type &aPrevEntry) in PushAfter() argument 179 aEntry.SetNext(aPrevEntry.GetNext()); in PushAfter() 180 aPrevEntry.SetNext(&aEntry); in PushAfter() 244 bool Contains(const Type &aEntry) const in Contains() 248 return Find(aEntry, prev) == kErrorNone; in Contains() 280 Error Add(Type &aEntry) in Add() argument 284 if (Contains(aEntry)) in Add() [all …]
|
D | array.hpp | 323 …Error PushBack(const Type &aEntry) { return IsFull() ? kErrorNoBufs : (mElements[mLength++] = aEnt… in PushBack() argument 387 Type *Find(const Type &aEntry) { return AsNonConst(AsConst(this)->Find(aEntry)); } in Find() argument 399 const Type *Find(const Type &aEntry) const in Find() 405 if (element == aEntry) in Find() 426 bool Contains(const Type &aEntry) const { return Find(aEntry) != nullptr; } in Contains() 592 bool IsInArrayBuffer(const Type *aEntry) const in IsInArrayBuffer() 594 return (&mElements[0] <= aEntry) && (aEntry < GetArrayEnd(mElements)); in IsInArrayBuffer()
|
D | heap_array.hpp | 283 Error PushBack(const Type &aEntry) in PushBack() argument 292 new (&mArray[mLength++]) Type(aEntry); in PushBack() 310 Error PushBack(Type &&aEntry) in PushBack() argument 319 new (&mArray[mLength++]) Type(static_cast<Type &&>(aEntry)); in PushBack() 390 Type *Find(const Type &aEntry) { return AsNonConst(AsConst(this)->Find(aEntry)); } in Find() argument 403 const Type *Find(const Type &aEntry) const in Find() 409 if (element == aEntry) in Find() 430 bool Contains(const Type &aEntry) const { return Find(aEntry) != nullptr; } in Contains()
|
D | pool.hpp | 118 void Free(Type &aEntry) { mFreeList.Push(aEntry); } in Free() argument 163 uint16_t GetIndexOf(const Type &aEntry) const { return static_cast<uint16_t>(&aEntry - mPool); } in GetIndexOf()
|
D | binary_search.hpp | 106 typedef int (&Comparator)(const void *aKey, const void *aEntry); 113 template <typename Key, typename Entry> static int Compare(const void *aKey, const void *aEntry) in Compare() argument 115 return static_cast<const Entry *>(aEntry)->Compare(*static_cast<const Key *>(aKey)); in Compare()
|
D | settings.hpp | 939 template <typename EntryType> Error Read(EntryType &aEntry) const in Read() 941 aEntry.Init(); in Read() 943 return ReadEntry(EntryType::kKey, &aEntry, sizeof(EntryType)); in Read() 989 template <typename EntryType> Error Save(const EntryType &aEntry) in Save() argument 993 return SaveEntry(EntryType::kKey, &aEntry, &prev, sizeof(EntryType)); in Save()
|
/openthread-3.4.0/src/core/api/ |
D | srp_client_buffers_api.cpp | 74 char *otSrpClientBuffersGetServiceEntryServiceNameString(otSrpClientBuffersServiceEntry *aEntry, ui… in otSrpClientBuffersGetServiceEntryServiceNameString() argument 78 return AsCoreType(aEntry).GetServiceNameString(*aSize); in otSrpClientBuffersGetServiceEntryServiceNameString() 81 char *otSrpClientBuffersGetServiceEntryInstanceNameString(otSrpClientBuffersServiceEntry *aEntry, u… in otSrpClientBuffersGetServiceEntryInstanceNameString() argument 85 return AsCoreType(aEntry).GetInstanceNameString(*aSize); in otSrpClientBuffersGetServiceEntryInstanceNameString() 88 uint8_t *otSrpClientBuffersGetServiceEntryTxtBuffer(otSrpClientBuffersServiceEntry *aEntry, uint16_… in otSrpClientBuffersGetServiceEntryTxtBuffer() argument 92 return AsCoreType(aEntry).GetTxtBuffer(*aSize); in otSrpClientBuffersGetServiceEntryTxtBuffer() 95 const char **otSrpClientBuffersGetSubTypeLabelsArray(otSrpClientBuffersServiceEntry *aEntry, uint16… in otSrpClientBuffersGetSubTypeLabelsArray() argument 99 return AsCoreType(aEntry).GetSubTypeLabelsArray(*aArrayLength); in otSrpClientBuffersGetSubTypeLabelsArray()
|
D | border_routing_api.cpp | 140 otBorderRoutingPrefixTableEntry *aEntry) in otBorderRoutingGetNextPrefixTableEntry() argument 143 AssertPointerIsNotNull(aEntry); in otBorderRoutingGetNextPrefixTableEntry() 145 …reType(aInstance).Get<BorderRouter::RoutingManager>().GetNextPrefixTableEntry(*aIterator, *aEntry); in otBorderRoutingGetNextPrefixTableEntry()
|
D | link_api.cpp | 218 …lterGetNextAddress(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry) in otLinkFilterGetNextAddress() argument 221 AssertPointerIsNotNull(aEntry); in otLinkFilterGetNextAddress() 223 return AsCoreType(aInstance).Get<Mac::Filter>().GetNextAddress(*aIterator, *aEntry); in otLinkFilterGetNextAddress() 248 …FilterGetNextRssIn(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry) in otLinkFilterGetNextRssIn() argument 251 AssertPointerIsNotNull(aEntry); in otLinkFilterGetNextRssIn() 253 return AsCoreType(aInstance).Get<Mac::Filter>().GetNextRssIn(*aIterator, *aEntry); in otLinkFilterGetNextRssIn()
|
D | dns_api.cpp | 48 otError otDnsGetNextTxtEntry(otDnsTxtEntryIterator *aIterator, otDnsTxtEntry *aEntry) in otDnsGetNextTxtEntry() argument 50 return AsCoreType(aIterator).GetNextEntry(AsCoreType(aEntry)); in otDnsGetNextTxtEntry()
|
/openthread-3.4.0/tests/unit/ |
D | test_pool.cpp | 68 void VerifyEntry(EntryPool &aPool, const Entry &aEntry, bool aInitWithInstance) in VerifyEntry() argument 73 VerifyOrQuit(aPool.IsPoolEntry(aEntry)); in VerifyEntry() 76 index = aPool.GetIndexOf(aEntry); in VerifyEntry() 77 VerifyOrQuit(&aPool.GetEntryAt(index) == &aEntry); in VerifyEntry() 78 VerifyOrQuit(&constPool.GetEntryAt(index) == &aEntry); in VerifyEntry() 80 …VerifyOrQuit(aEntry.IsInitializedWithInstance() == aInitWithInstance, "Pool did not correctly Init… in VerifyEntry()
|
D | test_heap_array.cpp | 66 Entry(const Entry &aEntry) in Entry() argument 67 : mValue(aEntry.mValue) in Entry() 87 void VerifyEntry(const EntryType &aEntry, const Heap::Array<EntryType, 2> &aArray, int aExpectedVal… in VerifyEntry() argument 93 OT_UNUSED_VARIABLE(aEntry); in VerifyEntry() 100 template <> void VerifyEntry(const uint16_t &aEntry, const Heap::Array<uint16_t, 2> &aArray, int aE… in VerifyEntry() argument 103 VerifyOrQuit(aEntry == static_cast<uint16_t>(aExpectedValue)); in VerifyEntry() 106 template <> void VerifyEntry(const Entry &aEntry, const Heap::Array<Entry, 2> &aArray, int aExpecte… in VerifyEntry() argument 108 VerifyOrQuit(aEntry.IsInitialized()); in VerifyEntry() 109 VerifyOrQuit(aEntry.GetValue() == static_cast<uint16_t>(aExpectedValue)); in VerifyEntry() 111 VerifyOrQuit(aArray.ContainsMatching(aEntry.GetValue())); in VerifyEntry() [all …]
|
/openthread-3.4.0/include/openthread/ |
D | srp_client_buffers.h | 147 char *otSrpClientBuffersGetServiceEntryServiceNameString(otSrpClientBuffersServiceEntry *aEntry, ui… 159 char *otSrpClientBuffersGetServiceEntryInstanceNameString(otSrpClientBuffersServiceEntry *aEntry, u… 170 uint8_t *otSrpClientBuffersGetServiceEntryTxtBuffer(otSrpClientBuffersServiceEntry *aEntry, uint16_… 181 const char **otSrpClientBuffersGetSubTypeLabelsArray(otSrpClientBuffersServiceEntry *aEntry, uint16…
|
D | dns.h | 142 otError otDnsGetNextTxtEntry(otDnsTxtEntryIterator *aIterator, otDnsTxtEntry *aEntry);
|
/openthread-3.4.0/src/core/mac/ |
D | mac_filter.cpp | 124 Error Filter::GetNextAddress(Iterator &aIterator, Entry &aEntry) const in GetNextAddress() 134 aEntry.mExtAddress = entry.mExtAddress; in GetNextAddress() 135 aEntry.mRssIn = entry.mRssIn; in GetNextAddress() 186 Error Filter::GetNextRssIn(Iterator &aIterator, Entry &aEntry) const in GetNextRssIn() 196 aEntry.mExtAddress = entry.mExtAddress; in GetNextRssIn() 197 aEntry.mRssIn = entry.mRssIn; in GetNextRssIn() 207 AsCoreType(&aEntry.mExtAddress).Fill(0xff); in GetNextRssIn() 208 aEntry.mRssIn = mDefaultRssIn; in GetNextRssIn()
|
D | mac_filter.hpp | 155 Error GetNextAddress(Iterator &aIterator, Entry &aEntry) const; 215 Error GetNextRssIn(Iterator &aIterator, Entry &aEntry) const;
|
/openthread-3.4.0/src/core/thread/ |
D | address_resolver.hpp | 88 void SetEntry(const CacheEntry *aEntry) { mData[kEntryIndex] = aEntry; } in SetEntry() argument 261 void SetNext(CacheEntry *aEntry); 348 …void RemoveCacheEntry(CacheEntry &aEntry, CacheEntryList &aList, CacheEntry *aPrevEntry, Re… 374 const CacheEntry &aEntry,
|
D | network_data_leader_ftd.hpp | 314 …ic bool ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const HasRouteEntry &aEntry); 315 static bool ContainsMatchingEntry(const HasRouteTlv *aHasRoute, const HasRouteEntry &aEntry); 316 …ool ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const BorderRouterEntry &aEntry); 317 … bool ContainsMatchingEntry(const BorderRouterTlv *aBorderRouter, const BorderRouterEntry &aEntry);
|
D | address_resolver.cpp | 324 void AddressResolver::RemoveCacheEntry(CacheEntry &aEntry, in RemoveCacheEntry() argument 333 Get<MeshForwarder>().HandleResolved(aEntry.GetTarget(), kErrorDrop); in RemoveCacheEntry() 336 LogCacheEntryChange(kEntryRemoved, aReason, aEntry, &aList); in RemoveCacheEntry() 1031 const CacheEntry &aEntry, in LogCacheEntryChange() argument 1064 …LogInfo("Cache entry %s: %s, 0x%04x%s%s - %s", kChangeStrings[aChange], aEntry.GetTarget().ToStrin… in LogCacheEntryChange() 1065 …aEntry.GetRloc16(), (aList == nullptr) ? "" : ", list:", ListToString(aList), kReasonStrings[aReas… in LogCacheEntryChange() 1108 void AddressResolver::CacheEntry::SetNext(CacheEntry *aEntry) in SetNext() argument 1110 VerifyOrExit(aEntry != nullptr, mNextIndex = kNoNextIndex); in SetNext() 1111 mNextIndex = Get<AddressResolver>().GetCacheEntryPool().GetIndexOf(*aEntry); in SetNext()
|
D | network_data_publisher.hpp | 503 …bool IsADnsSrpServiceEntry(const Entry &aEntry) const { return (&aEntry == &mDnsSrpServiceEntry); } in IsADnsSrpServiceEntry() 510 bool IsAPrefixEntry(const Entry &aEntry) const;
|
/openthread-3.4.0/src/core/border_router/ |
D | routing_manager.hpp | 401 Error GetNextPrefixTableEntry(PrefixTableIterator &aIterator, PrefixTableEntry &aEntry) const in GetNextPrefixTableEntry() 403 return mDiscoveredPrefixTable.GetNextEntry(aIterator, aEntry); in GetNextPrefixTableEntry() 517 Error GetNextEntry(PrefixTableIterator &aIterator, PrefixTableEntry &aEntry) const; 601 void AdoptValidAndPreferredLifetimesFrom(const Entry &aEntry); 654 void SetEntry(const Entry *aEntry) { mPtr2 = aEntry; } in SetEntry() argument 667 void FreeEntry(Entry &aEntry) { mEntryPool.Free(aEntry); } in FreeEntry() argument 669 void UpdateNetworkDataOnChangeTo(Entry &aEntry);
|
D | routing_manager.cpp | 1685 PrefixTableEntry &aEntry) const in GetNextEntry() 1693 aEntry.mRouterAddress = iterator.GetRouter()->mAddress; in GetNextEntry() 1694 aEntry.mPrefix = iterator.GetEntry()->GetPrefix(); in GetNextEntry() 1695 aEntry.mIsOnLink = iterator.GetEntry()->IsOnLinkPrefix(); in GetNextEntry() 1696 aEntry.mMsecSinceLastUpdate = iterator.GetInitTime() - iterator.GetEntry()->GetLastUpdateTime(); in GetNextEntry() 1697 aEntry.mValidLifetime = iterator.GetEntry()->GetValidLifetime(); in GetNextEntry() 1698 … aEntry.mPreferredLifetime = aEntry.mIsOnLink ? iterator.GetEntry()->GetPreferredLifetime() : 0; in GetNextEntry() 1699 aEntry.mRoutePreference = in GetNextEntry() 1700 … static_cast<otRoutePreference>(aEntry.mIsOnLink ? 0 : iterator.GetEntry()->GetRoutePreference()); in GetNextEntry() 1799 …tingManager::DiscoveredPrefixTable::Entry::AdoptValidAndPreferredLifetimesFrom(const Entry &aEntry) in AdoptValidAndPreferredLifetimesFrom() argument [all …]
|
/openthread-3.4.0/src/core/utils/ |
D | srp_client_buffers.hpp | 176 …void SetNext(ServiceEntry *aEntry) { mService.mNext = reinterpret_cast<Srp::Client::Service *>(aEn… in SetNext() argument
|
/openthread-3.4.0/src/core/radio/ |
D | trel_interface.cpp | 346 void Interface::RemovePeerEntry(Peer &aEntry) in RemovePeerEntry() argument 348 aEntry.Log("Removing"); in RemovePeerEntry() 353 if (&aEntry != mPeerTable.Back()) in RemovePeerEntry() 355 aEntry = *mPeerTable.Back(); in RemovePeerEntry()
|
/openthread-3.4.0/src/core/net/ |
D | dns_types.cpp | 924 Error TxtEntry::Iterator::GetNextEntry(TxtEntry &aEntry) in GetNextEntry() argument 936 aEntry.mKey = keyBuffer; in GetNextEntry() 959 aEntry.mValue = reinterpret_cast<const uint8_t *>(&cur[index]); in GetNextEntry() 960 aEntry.mValueLength = length - index; in GetNextEntry() 971 aEntry.mKey = nullptr; in GetNextEntry() 972 aEntry.mValue = reinterpret_cast<const uint8_t *>(cur); in GetNextEntry() 973 aEntry.mValueLength = length; in GetNextEntry() 984 aEntry.mValue = nullptr; in GetNextEntry() 985 aEntry.mValueLength = 0; in GetNextEntry()
|