Home
last modified time | relevance | path

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

12

/openthread-2.7.6/src/core/common/
Dlinked_list.hpp163 void Push(Type &aEntry) in Push() argument
165 aEntry.SetNext(mHead); in Push()
166 mHead = &aEntry; in Push()
176 void PushAfter(Type &aEntry, Type &aPrevEntry) in PushAfter() argument
178 aEntry.SetNext(aPrevEntry.GetNext()); in PushAfter()
179 aPrevEntry.SetNext(&aEntry); in PushAfter()
243 bool Contains(const Type &aEntry) const in Contains()
247 return Find(aEntry, prev) == kErrorNone; in Contains()
279 Error Add(Type &aEntry) in Add() argument
283 if (Contains(aEntry)) in Add()
[all …]
Darray.hpp224 …Error PushBack(const Type &aEntry) { return IsFull() ? kErrorNoBufs : (mElements[mLength++] = aEnt… in PushBack() argument
267 …Type *Find(const Type &aEntry) { return const_cast<Type *>(const_cast<const Array *>(this)->Find(a… in Find() argument
279 const Type *Find(const Type &aEntry) const in Find()
285 if (element == aEntry) in Find()
306 bool Contains(const Type &aEntry) const { return Find(aEntry) != nullptr; } in Contains()
Dpool.hpp116 void Free(Type &aEntry) { mFreeList.Push(aEntry); } in Free() argument
161 uint16_t GetIndexOf(const Type &aEntry) const { return static_cast<uint16_t>(&aEntry - mPool); } in GetIndexOf()
Dsettings.hpp839 template <typename EntryType> Error Read(EntryType &aEntry) const in Read()
841 aEntry.Init(); in Read()
843 return ReadEntry(EntryType::kKey, &aEntry, sizeof(EntryType)); in Read()
889 template <typename EntryType> Error Save(const EntryType &aEntry) in Save() argument
893 return SaveEntry(EntryType::kKey, &aEntry, &prev, sizeof(EntryType)); in Save()
/openthread-2.7.6/src/core/api/
Dsrp_client_buffers_api.cpp82 char *otSrpClientBuffersGetServiceEntryServiceNameString(otSrpClientBuffersServiceEntry *aEntry, ui… in otSrpClientBuffersGetServiceEntryServiceNameString() argument
84 … return static_cast<Utils::SrpClientBuffers::ServiceEntry *>(aEntry)->GetServiceNameString(*aSize); in otSrpClientBuffersGetServiceEntryServiceNameString()
87 char *otSrpClientBuffersGetServiceEntryInstanceNameString(otSrpClientBuffersServiceEntry *aEntry, u… in otSrpClientBuffersGetServiceEntryInstanceNameString() argument
89 …return static_cast<Utils::SrpClientBuffers::ServiceEntry *>(aEntry)->GetInstanceNameString(*aSize); in otSrpClientBuffersGetServiceEntryInstanceNameString()
92 uint8_t *otSrpClientBuffersGetServiceEntryTxtBuffer(otSrpClientBuffersServiceEntry *aEntry, uint16_… in otSrpClientBuffersGetServiceEntryTxtBuffer() argument
94 return static_cast<Utils::SrpClientBuffers::ServiceEntry *>(aEntry)->GetTxtBuffer(*aSize); in otSrpClientBuffersGetServiceEntryTxtBuffer()
97 const char **otSrpClientBuffersGetSubTypeLabelsArray(otSrpClientBuffersServiceEntry *aEntry, uint16… in otSrpClientBuffersGetSubTypeLabelsArray() argument
99 …return static_cast<Utils::SrpClientBuffers::ServiceEntry *>(aEntry)->GetSubTypeLabelsArray(*aArray… in otSrpClientBuffersGetSubTypeLabelsArray()
Dlink_api.cpp260 …lterGetNextAddress(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry) in otLinkFilterGetNextAddress() argument
264 OT_ASSERT(aIterator != nullptr && aEntry != nullptr); in otLinkFilterGetNextAddress()
266 return instance.Get<Mac::Filter>().GetNextAddress(*aIterator, *aEntry); in otLinkFilterGetNextAddress()
308 …FilterGetNextRssIn(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry) in otLinkFilterGetNextRssIn() argument
312 OT_ASSERT(aIterator != nullptr && aEntry != nullptr); in otLinkFilterGetNextRssIn()
314 return instance.Get<Mac::Filter>().GetNextRssIn(*aIterator, *aEntry); in otLinkFilterGetNextRssIn()
Ddns_api.cpp50 otError otDnsGetNextTxtEntry(otDnsTxtEntryIterator *aIterator, otDnsTxtEntry *aEntry) in otDnsGetNextTxtEntry() argument
52 …ic_cast<Dns::TxtEntry::Iterator *>(aIterator)->GetNextEntry(*static_cast<Dns::TxtEntry *>(aEntry)); in otDnsGetNextTxtEntry()
/openthread-2.7.6/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()
/openthread-2.7.6/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);
Dlink.h784 …terGetNextAddress(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry);
865 …ilterGetNextRssIn(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry);
/openthread-2.7.6/src/core/mac/
Dmac_filter.cpp121 Error Filter::GetNextAddress(Iterator &aIterator, Entry &aEntry) const in GetNextAddress()
131 aEntry.mExtAddress = entry.mExtAddress; in GetNextAddress()
132 aEntry.mRssIn = entry.mRssIn; in GetNextAddress()
183 Error Filter::GetNextRssIn(Iterator &aIterator, Entry &aEntry) in GetNextRssIn() argument
193 aEntry.mExtAddress = entry.mExtAddress; in GetNextRssIn()
194 aEntry.mRssIn = entry.mRssIn; in GetNextRssIn()
204 static_cast<ExtAddress &>(aEntry.mExtAddress).Fill(0xff); in GetNextRssIn()
205 aEntry.mRssIn = mDefaultRssIn; in GetNextRssIn()
Dmac_filter.hpp150 Error GetNextAddress(Iterator &aIterator, Entry &aEntry) const;
210 Error GetNextRssIn(Iterator &aIterator, Entry &aEntry);
/openthread-2.7.6/src/core/thread/
Dnetwork_data_leader_ftd.hpp267 …ic bool ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const HasRouteEntry &aEntry);
268 static bool ContainsMatchingEntry(const HasRouteTlv *aHasRoute, const HasRouteEntry &aEntry);
269 …ool ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const BorderRouterEntry &aEntry);
270 … bool ContainsMatchingEntry(const BorderRouterTlv *aBorderRouter, const BorderRouterEntry &aEntry);
Dnetwork_data_publisher.hpp430 …bool IsADnsSrpServiceEntry(const Entry &aEntry) const { return (&aEntry == &mDnsSrpServiceEntry); } in IsADnsSrpServiceEntry()
434 Error AllocatePrefixEntry(const Ip6::Prefix &aPrefix, PrefixEntry *&aEntry);
437 bool IsAPrefixEntry(const Entry &aEntry) const;
Daddress_resolver.hpp219 void SetNext(CacheEntry *aEntry);
302 …void RemoveCacheEntry(CacheEntry &aEntry, CacheEntryList &aList, CacheEntry *aPrevEntry, Re…
330 const CacheEntry &aEntry,
Daddress_resolver.cpp317 void AddressResolver::RemoveCacheEntry(CacheEntry & aEntry, in RemoveCacheEntry() argument
326 Get<MeshForwarder>().HandleResolved(aEntry.GetTarget(), kErrorDrop); in RemoveCacheEntry()
329 LogCacheEntryChange(kEntryRemoved, aReason, aEntry, &aList); in RemoveCacheEntry()
991 const CacheEntry &aEntry, in LogCacheEntryChange() argument
1038 …otLogNoteArp("Cache entry %s: %s, 0x%04x%s%s - %s", change, aEntry.GetTarget().ToString().AsCStrin… in LogCacheEntryChange()
1039aEntry.GetRloc16(), (aList == nullptr) ? "" : ", list:", ListToString(aList), reason); in LogCacheEntryChange()
1084 void AddressResolver::CacheEntry::SetNext(CacheEntry *aEntry) in SetNext() argument
1086 VerifyOrExit(aEntry != nullptr, mNextIndex = kNoNextIndex); in SetNext()
1087 mNextIndex = Get<AddressResolver>().GetCacheEntryPool().GetIndexOf(*aEntry); in SetNext()
Dnetwork_data_publisher.cpp143 Error Publisher::AllocatePrefixEntry(const Ip6::Prefix &aPrefix, PrefixEntry *&aEntry) in AllocatePrefixEntry() argument
153 aEntry = &entry; in AllocatePrefixEntry()
183 bool Publisher::IsAPrefixEntry(const Entry &aEntry) const in IsAPrefixEntry()
185 return (&mPrefixEntries[0] <= &aEntry) && (&aEntry < OT_ARRAY_END(mPrefixEntries)); in IsAPrefixEntry()
Dnetwork_data_leader_ftd.cpp573 … Leader::ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const HasRouteEntry &aEntry) in ContainsMatchingEntry() argument
578 …fix == nullptr) ? false : ContainsMatchingEntry(aPrefix->FindSubTlv<HasRouteTlv>(aStable), aEntry); in ContainsMatchingEntry()
581 bool Leader::ContainsMatchingEntry(const HasRouteTlv *aHasRoute, const HasRouteEntry &aEntry) in ContainsMatchingEntry() argument
591 if (*entry == aEntry) in ContainsMatchingEntry()
602 …der::ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const BorderRouterEntry &aEntry) in ContainsMatchingEntry() argument
607 …== nullptr) ? false : ContainsMatchingEntry(aPrefix->FindSubTlv<BorderRouterTlv>(aStable), aEntry); in ContainsMatchingEntry()
610 …eader::ContainsMatchingEntry(const BorderRouterTlv *aBorderRouter, const BorderRouterEntry &aEntry) in ContainsMatchingEntry() argument
621 if (*entry == aEntry) in ContainsMatchingEntry()
Dnetwork_diagnostic_tlvs.hpp1102 …Error ReadEntry(ChildTableEntry &aEntry, const Message &aMessage, uint16_t aOffset, uint8_t aIndex… in ReadEntry() argument
1105 … (aMessage.Read(aOffset + sizeof(ChildTableTlv) + (aIndex * sizeof(ChildTableEntry)), aEntry) == in ReadEntry()
/openthread-2.7.6/src/core/utils/
Dsrp_client_buffers.hpp174 …void SetNext(ServiceEntry *aEntry) { mService.mNext = reinterpret_cast<Srp::Client::Service *>(aEn… in SetNext() argument
Dhistory_tracker.hpp278 void AddNewEntry(const Entry &aEntry) { mEntries[Add(kMaxSize, mTimestamps)] = aEntry; } in AddNewEntry() argument
/openthread-2.7.6/src/core/net/
Ddns_types.cpp887 Error TxtEntry::Iterator::GetNextEntry(TxtEntry &aEntry) in GetNextEntry() argument
899 aEntry.mKey = keyBuffer; in GetNextEntry()
922 aEntry.mValue = reinterpret_cast<const uint8_t *>(&cur[index]); in GetNextEntry()
923 aEntry.mValueLength = length - index; in GetNextEntry()
934 aEntry.mKey = nullptr; in GetNextEntry()
935 aEntry.mValue = reinterpret_cast<const uint8_t *>(cur); in GetNextEntry()
936 aEntry.mValueLength = length; in GetNextEntry()
947 aEntry.mValue = nullptr; in GetNextEntry()
948 aEntry.mValueLength = 0; in GetNextEntry()
/openthread-2.7.6/src/ncp/
Dncp_base_ftd.cpp122 …se::HandleNeighborTableChanged(otNeighborTableEvent aEvent, const otNeighborTableEntryInfo *aEntry) in HandleNeighborTableChanged() argument
124 GetNcpInstance()->HandleNeighborTableChanged(aEvent, *aEntry); in HandleNeighborTableChanged()
127 …se::HandleNeighborTableChanged(otNeighborTableEvent aEvent, const otNeighborTableEntryInfo &aEntry) in HandleNeighborTableChanged() argument
142 VerifyOrExit(!aEntry.mInfo.mChild.mIsStateRestoring); in HandleNeighborTableChanged()
164 SuccessOrExit(error = EncodeChildInfo(aEntry.mInfo.mChild)); in HandleNeighborTableChanged()
168 SuccessOrExit(error = EncodeNeighborInfo(aEntry.mInfo.mRouter)); in HandleNeighborTableChanged()
Dncp_base.hpp302 …id HandleNeighborTableChanged(otNeighborTableEvent aEvent, const otNeighborTableEntryInfo *aEntry);
303 … HandleNeighborTableChanged(otNeighborTableEvent aEvent, const otNeighborTableEntryInfo &aEntry);

12