Home
last modified time | relevance | path

Searched refs:aEntry (Results 1 – 25 of 36) sorted by relevance

12

/openthread-3.4.0/src/core/common/
Dlinked_list.hpp164 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 …]
Darray.hpp323 …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()
Dheap_array.hpp283 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()
Dpool.hpp118 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()
Dbinary_search.hpp106 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()
Dsettings.hpp939 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/
Dsrp_client_buffers_api.cpp74 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()
Dborder_routing_api.cpp140 otBorderRoutingPrefixTableEntry *aEntry) in otBorderRoutingGetNextPrefixTableEntry() argument
143 AssertPointerIsNotNull(aEntry); in otBorderRoutingGetNextPrefixTableEntry()
145 …reType(aInstance).Get<BorderRouter::RoutingManager>().GetNextPrefixTableEntry(*aIterator, *aEntry); in otBorderRoutingGetNextPrefixTableEntry()
Dlink_api.cpp218 …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()
Ddns_api.cpp48 otError otDnsGetNextTxtEntry(otDnsTxtEntryIterator *aIterator, otDnsTxtEntry *aEntry) in otDnsGetNextTxtEntry() argument
50 return AsCoreType(aIterator).GetNextEntry(AsCoreType(aEntry)); in otDnsGetNextTxtEntry()
/openthread-3.4.0/tests/unit/
Dtest_pool.cpp68 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()
Dtest_heap_array.cpp66 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/
Dsrp_client_buffers.h147 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…
Ddns.h142 otError otDnsGetNextTxtEntry(otDnsTxtEntryIterator *aIterator, otDnsTxtEntry *aEntry);
/openthread-3.4.0/src/core/mac/
Dmac_filter.cpp124 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()
Dmac_filter.hpp155 Error GetNextAddress(Iterator &aIterator, Entry &aEntry) const;
215 Error GetNextRssIn(Iterator &aIterator, Entry &aEntry) const;
/openthread-3.4.0/src/core/thread/
Daddress_resolver.hpp88 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,
Dnetwork_data_leader_ftd.hpp314 …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);
Daddress_resolver.cpp324 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()
1065aEntry.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()
Dnetwork_data_publisher.hpp503 …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/
Drouting_manager.hpp401 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);
Drouting_manager.cpp1685 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()
1698aEntry.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/
Dsrp_client_buffers.hpp176 …void SetNext(ServiceEntry *aEntry) { mService.mNext = reinterpret_cast<Srp::Client::Service *>(aEn… in SetNext() argument
/openthread-3.4.0/src/core/radio/
Dtrel_interface.cpp346 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/
Ddns_types.cpp924 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()

12