/openthread-latest/src/core/common/ |
D | binary_search.hpp | 71 template <typename Key, typename Entry, uint16_t kLength> 72 static const Entry *Find(const Key &aKey, const Entry (&aTable)[kLength]) in Find() 74 return static_cast<const Entry *>( in Find() 75 Find(&aKey, &aTable[0], kLength, sizeof(aTable[0]), BinarySearch::Compare<Key, Entry>)); in Find() 98 …template <typename Entry, uint16_t kLength> static constexpr bool IsSorted(const Entry (&aTable)[k… in IsSorted() 106 template <typename Entry> static constexpr bool IsSorted(const Entry *aTable, uint16_t aLength) in IsSorted() 108 …return (aLength <= 1) ? true : Entry::AreInOrder(aTable[0], aTable[1]) && IsSorted(aTable + 1, aLe… in IsSorted() 111 template <typename Key, typename Entry> static int Compare(const void *aKey, const void *aEntry) in Compare() 113 return static_cast<const Entry *>(aEntry)->Compare(*static_cast<const Key *>(aKey)); in Compare()
|
D | string.hpp | 519 class Entry class in ot::Stringify 530 constexpr static bool AreInOrder(const Entry &aFirst, const Entry &aSecond) in AreInOrder() 551 …static const char *Lookup(uint16_t aKey, const Entry (&aTable)[kLength], const char *aNotFound = "… in Lookup() 553 const Entry *entry = BinarySearch::Find(aKey, aTable); in Lookup()
|
/openthread-latest/src/core/net/ |
D | srp_advertising_proxy.hpp | 252 template <typename Entry> void UpdateAdvIdRangeOn(Entry &aEntry); 253 template <typename Entry> bool IsRegisteredOrRegistering(const Entry &aEntry) const; 254 template <typename Entry> bool IsKeyRegisteredOrRegistering(const Entry &aEntry) const; 255 …template <typename Entry> void DecideToAdvertise(Entry &aEntry, bool aUnregisterEntry, bool aUnreg… 256 …template <typename Entry> void UpdateKeyRegistrationStatus(Entry &aEntry, const Entry &aExistingEn… 257 template <typename Entry> bool CompareAndUpdate(Entry &aEntry, Entry &aExistingEntry); 258 … template <typename Entry> bool EntriesMatch(const Entry &aFirstEntry, const Entry &aSecondEntry);
|
D | srp_advertising_proxy.cpp | 436 template <typename Entry> bool AdvertisingProxy::IsKeyRegisteredOrRegistering(const Entry &aEntry) … in IsKeyRegisteredOrRegistering() 441 template <typename Entry> bool AdvertisingProxy::IsRegisteredOrRegistering(const Entry &aEntry) con… in IsRegisteredOrRegistering() 446 template <typename Entry> 447 void AdvertisingProxy::DecideToAdvertise(Entry &aEntry, bool aUnregisterEntry, bool aUnregisterKey) in DecideToAdvertise() 629 template <typename Entry> void AdvertisingProxy::UpdateKeyRegistrationStatus(Entry &aEntry, const E… in UpdateKeyRegistrationStatus() 634 …static_assert(TypeTraits::IsSame<Entry, Host>::kValue || TypeTraits::IsSame<Entry, Service>::kValu… in UpdateKeyRegistrationStatus() 722 template <typename Entry> bool AdvertisingProxy::CompareAndUpdate(Entry &aEntry, Entry &aExistingEn… in CompareAndUpdate()
|
D | mdns.cpp | 362 mHostEntries.RemoveAndFreeAllMatching(Entry::kRemoving); in RemoveEmptyEntries() 363 mServiceEntries.RemoveAndFreeAllMatching(Entry::kRemoving); in RemoveEmptyEntries() 966 Core::Entry::Entry(void) in Entry() function in ot::Dns::Multicast::Core::Entry 976 void Core::Entry::Init(Instance &aInstance) in Init() 985 void Core::Entry::SetState(State aState) in SetState() 991 void Core::Entry::Register(const Key &aKey, const Callback &aCallback) in Register() 1005 void Core::Entry::Unregister(const Key &aKey) in Unregister() 1032 void Core::Entry::ClearKey(void) in ClearKey() 1038 void Core::Entry::SetCallback(const Callback &aCallback) in SetCallback() 1044 void Core::Entry::MarkToInvokeCallbackUnconditionally(void) in MarkToInvokeCallbackUnconditionally() [all …]
|
D | mdns.hpp | 937 class Entry : public InstanceLocatorInit, public FireTime, private NonCopyable class in ot::Dns::Multicast::Core 975 typedef void (*NameAppender)(Entry &aEntry, TxMessage &aTxMessage, Section aSection); 977 Entry(void); 1026 …class HostEntry : public Entry, public LinkedListEntry<HostEntry>, public Heap::Allocatable<HostEn… 1029 friend class Entry; 1072 static void AppendEntryName(Entry &aEntry, TxMessage &aTxMessage, Section aSection); 1083 …class ServiceEntry : public Entry, public LinkedListEntry<ServiceEntry>, public Heap::Allocatable<… 1086 friend class Entry; 1154 static void AppendEntryName(Entry &aEntry, TxMessage &aTxMessage, Section aSection); 1255 bool ShouldClearAppendStateOnReinit(const Entry &aEntry) const; [all …]
|
D | dns_dso.hpp | 682 struct Entry struct in ot::Dns::Dso::Connection::PendingRequests 691 Array<Entry, kMaxPendingRequests> mRequests;
|
D | dns_dso.cpp | 1377 const Entry *entry = mRequests.FindMatching(aMessageId); in Contains() 1389 Entry *entry = mRequests.PushBack(); in Add() 1406 for (const Entry &entry : mRequests) in HasAnyTimedOut() 1420 for (const Entry &entry : mRequests) in UpdateNextFireTime()
|
/openthread-latest/tests/unit/ |
D | test_binary_search.cpp | 45 struct Entry in TestBinarySearch() struct 49 constexpr static bool AreInOrder(const Entry &aFirst, const Entry &aSecond) in TestBinarySearch() argument 58 constexpr Entry kTable[] = { in TestBinarySearch() 64 constexpr Entry kUnsortedTable[] = {{"z", 0}, {"a", 0}, {"b", 0}}; in TestBinarySearch() 65 constexpr Entry kDuplicateEntryTable[] = {{"duplicate", 1}, {"duplicate", 2}}; in TestBinarySearch() 74 for (const Entry &tableEntry : kTable) in TestBinarySearch() 76 const Entry *entry; in TestBinarySearch()
|
D | test_array.cpp | 187 struct Entry : public Unequatable<Entry> in TestArrayCopyAndFindMatching() struct 189 Entry(void) = default; in TestArrayCopyAndFindMatching() 191 Entry(const char *aName, uint16_t aYear) in TestArrayCopyAndFindMatching() function 197 …bool operator==(const Entry &aOther) const { return (mName == aOther.mName) && (mYear == aOther.mY… in TestArrayCopyAndFindMatching() argument 237 Entry ps1("PS", 1994); in TestArrayCopyAndFindMatching() 238 Entry ps2("PS2", 1999); in TestArrayCopyAndFindMatching() 239 Entry ps3("PS3", 2006); in TestArrayCopyAndFindMatching() 240 Entry ps4("PS4", 2013); in TestArrayCopyAndFindMatching() 241 Entry ps5("PS5", 2020); in TestArrayCopyAndFindMatching() 243 Array<Entry, kMaxSize> array1; in TestArrayCopyAndFindMatching() [all …]
|
D | test_heap_array.cpp | 49 class Entry class 52 Entry(void) in Entry() function in ot::Entry 59 explicit Entry(uint16_t aValue) in Entry() function in ot::Entry 66 Entry(const Entry &aEntry) in Entry() function in ot::Entry 73 ~Entry(void) { sDestructorCalls++; } in ~Entry() 78 bool operator==(const Entry &aOther) const { return mValue == aOther.mValue; } in operator ==() 106 template <> void VerifyEntry(const Entry &aEntry, const Heap::Array<Entry, 2> &aArray, int aExpecte… in VerifyEntry() argument 170 if (TypeTraits::IsSame<EntryType, Entry>::kValue) in VerifyArray() 349 Heap::Array<Entry, 2> array; in TestHeapArray() 350 Heap::Array<Entry, 2> array2; in TestHeapArray() [all …]
|
D | test_pool.cpp | 45 struct Entry : public EntryBase, LinkedListEntry<Entry> struct 48 Entry(void) in Entry() argument 66 typedef Pool<Entry, kPoolSize> EntryPool; 68 static Entry sNonPoolEntry; 70 void VerifyEntry(EntryPool &aPool, const Entry &aEntry, bool aInitWithInstance) in VerifyEntry() 87 Entry *entries[kPoolSize]; in TestPool() 91 for (Entry *&entry : entries) in TestPool()
|
D | test_linked_list.cpp | 50 struct Entry : public EntryBase, LinkedListEntry<Entry> struct 59 Entry(const char *aName, uint16_t aId, Type aType = Type::kAlpha) in Entry() argument 85 constexpr Entry::Type kAlphaType = Entry::Type::kAlpha; 86 constexpr Entry::Type kBetaType = Entry::Type::kBeta; 89 void VerifyLinkedListContent(const LinkedList<Entry> *aList, ...) in VerifyLinkedListContent() 92 Entry *argEntry; in VerifyLinkedListContent() 93 Entry *argPrev = nullptr; in VerifyLinkedListContent() 94 const Entry *prev; in VerifyLinkedListContent() 99 for (const Entry &entry : *aList) in VerifyLinkedListContent() 101 argEntry = va_arg(args, Entry *); in VerifyLinkedListContent() [all …]
|
/openthread-latest/tests/nexus/platform/ |
D | nexus_settings.cpp | 75 const Entry *entry; in Get() 76 const Entry::Value *value; in Get() 104 Entry *entry; in SetOrAdd() 105 Entry::Value *value; in SetOrAdd() 111 entry = Settings::Entry::Allocate(); in SetOrAdd() 117 value = Entry::Value::Allocate(); in SetOrAdd() 134 Entry *entry; in Delete() 135 Entry::Value *preValue; in Delete() 147 OwnedPtr<Entry::Value> valuePtr; in Delete()
|
D | nexus_settings.hpp | 59 struct Entry : public Heap::Allocatable<Entry>, public LinkedListEntry<Entry> struct 71 Entry *mNext; argument 76 OwningList<Entry> mEntries;
|
/openthread-latest/src/core/thread/ |
D | network_data_publisher.hpp | 320 class Entry : public InstanceLocatorInit class in ot::NetworkData::Publisher 342 Entry(void) in Entry() function in ot::NetworkData::Publisher::Entry 370 class DnsSrpServiceEntry : public Entry, private NonCopyable 372 friend class Entry; 381 void HandleTimer(void) { Entry::HandleTimer(); } in HandleTimer() 456 class PrefixEntry : public Entry, private NonCopyable 458 friend class Entry; 461 void Init(Instance &aInstance) { Entry::Init(aInstance); } in Init() 468 void HandleTimer(void) { Entry::HandleTimer(); } in HandleTimer() 501 …bool IsADnsSrpServiceEntry(const Entry &aEntry) const { return (&aEntry == &mDnsSrpServiceEntry); } in IsADnsSrpServiceEntry() [all …]
|
D | uri_paths.cpp | 42 struct Entry struct 46 constexpr static bool AreInOrder(const Entry &aFirst, const Entry &aSecond) in AreInOrder() argument 55 static constexpr Entry kEntries[] = { 157 const UriList::Entry *entry = BinarySearch::Find(aPath, UriList::kEntries); in UriFromPath()
|
D | network_data_publisher.cpp | 207 bool Publisher::IsAPrefixEntry(const Entry &aEntry) const in IsAPrefixEntry() 250 void Publisher::Entry::SetState(State aState) in SetState() 262 bool Publisher::Entry::IsPreferred(uint16_t aRloc16) const in IsPreferred() 275 void Publisher::Entry::UpdateState(uint8_t aNumEntries, uint8_t aNumPreferredEntries, uint8_t aDesi… in UpdateState() 353 void Publisher::Entry::HandleTimer(void) in HandleTimer() 382 void Publisher::Entry::Add(void) in Add() 399 void Publisher::Entry::Remove(State aNextState) in Remove() 416 Publisher::Entry::InfoString Publisher::Entry::ToString(bool aIncludeState) const in ToString() 458 void Publisher::Entry::LogUpdateTime(void) const in LogUpdateTime() 463 const char *Publisher::Entry::StateToString(State aState) in StateToString()
|
/openthread-latest/src/core/utils/ |
D | history_tracker.hpp | 341 template <typename Entry, uint16_t kMaxSize> class EntryList : public List 348 Entry *AddNewEntry(void) { return &mEntries[Add(kMaxSize, mTimestamps)]; } in AddNewEntry() 349 void AddNewEntry(const Entry &aEntry) { mEntries[Add(kMaxSize, mTimestamps)] = aEntry; } in AddNewEntry() 353 const Entry *Iterate(Iterator &aIterator, uint32_t &aEntryAge) const in Iterate() 363 Entry mEntries[kMaxSize]; 367 template <typename Entry> class EntryList<Entry, 0> : private NonCopyable 372 Entry *AddNewEntry(void) { return nullptr; } in AddNewEntry() 373 void AddNewEntry(const Entry &) {} in AddNewEntry() argument 374 const Entry *Iterate(Iterator &, uint32_t &) const { return nullptr; } in Iterate()
|
/openthread-latest/src/ncp/ |
D | changed_props_set.hpp | 58 struct Entry struct in ot::Ncp::ChangedPropsSet 111 const Entry *GetSupportedEntries(uint8_t &aNumEntries) const in GetSupportedEntries() 124 const Entry *GetEntry(uint8_t aIndex) const in GetEntry() 191 static const Entry mSupportedProps[];
|
D | changed_props_set.cpp | 49 const ChangedPropsSet::Entry ChangedPropsSet::mSupportedProps[] = { 109 const Entry *entry; in Add() 130 const Entry *entry; in EnablePropertyFilter() 173 const Entry *entry; in IsPropertyFiltered()
|
/openthread-latest/src/core/border_router/ |
D | routing_manager.hpp | 872 struct Entry : public Type, struct in ot::BorderRouter::RoutingManager::RxRaTracker 873 public LinkedListEntry<Entry<Type>>, 875 public Heap::Allocatable<Entry<Type>> 885 Entry<Type> *mNext; argument 920 using OnLinkPrefixList = OwningList<Entry<OnLinkPrefix>>; 921 using RoutePrefixList = OwningList<Entry<RoutePrefix>>; 966 void Init(const Entry<Router> *aRoutersHead, uint32_t aUptime); 972 … const Entry<Router> *GetRouter(void) const { return static_cast<const Entry<Router> *>(mPtr1); } in GetRouter() 975 template <class PrefixType> const Entry<PrefixType> *GetEntry(void) const in GetEntry() 977 return static_cast<const Entry<PrefixType> *>(mPtr2); in GetEntry() [all …]
|
/openthread-latest/src/core/meshcop/ |
D | meshcop_tlvs.cpp | 166 Entry readEntry; in Parse() 167 const Entry *entry; in Parse() 189 entry = reinterpret_cast<const Entry *>(&mData[mOffsetRange.GetOffset()]); in Parse() 222 Entry *entry = reinterpret_cast<Entry *>(aValue.mData); in PrepareValue() 236 aValue.mLength += sizeof(Entry); in PrepareValue()
|
/openthread-latest/src/core/mac/ |
D | mac_filter.hpp | 69 typedef otMacFilterEntry Entry; typedef in ot::Mac::Filter 143 Error GetNextAddress(Iterator &aIterator, Entry &aEntry) const; 197 Error GetNextRssIn(Iterator &aIterator, Entry &aEntry) const;
|
D | mac_filter.cpp | 121 Error Filter::GetNextAddress(Iterator &aIterator, Entry &aEntry) const in GetNextAddress() 183 Error Filter::GetNextRssIn(Iterator &aIterator, Entry &aEntry) const in GetNextRssIn()
|