Home
last modified time | relevance | path

Searched refs:aIndex (Results 1 – 25 of 44) sorted by relevance

12

/openthread-latest/src/core/common/
Dbit_vector.hpp75 bool Get(uint16_t aIndex) const in Get()
77 OT_ASSERT(aIndex < N); in Get()
78 return (mMask[aIndex / 8] & (0x80 >> (aIndex % 8))) != 0; in Get()
88 void Set(uint16_t aIndex, bool aValue) in Set() argument
90 OT_ASSERT(aIndex < N); in Set()
94 mMask[aIndex / 8] |= 0x80 >> (aIndex % 8); in Set()
98 mMask[aIndex / 8] &= ~(0x80 >> (aIndex % 8)); in Set()
Darray.hpp242 Type &operator[](IndexType aIndex) { return mElements[aIndex]; } in operator []() argument
254 const Type &operator[](IndexType aIndex) const { return mElements[aIndex]; } in operator []()
266 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mElements[aIndex] : nullptr; } in At() argument
278 …const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mElements[aIndex] : nullptr;… in At()
Dheap_array.hpp191 Type &operator[](IndexType aIndex) { return mArray[aIndex]; } in operator []() argument
203 const Type &operator[](IndexType aIndex) const { return mArray[aIndex]; } in operator []()
216 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At() argument
229 … const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At()
Dsettings_driver.hpp132 Error Delete(uint16_t aKey, int aIndex = -1) in Delete() argument
137 error = mFlash.Delete(aKey, aIndex); in Delete()
139 error = otPlatSettingsDelete(GetInstancePtr(), aKey, aIndex); in Delete()
161 Error Get(uint16_t aKey, int aIndex, void *aValue, uint16_t *aValueLength) const in Get() argument
167 error = mFlash.Get(aKey, aIndex, value, aValueLength); in Get()
169 error = otPlatSettingsGet(GetInstancePtr(), aKey, aIndex, value, aValueLength); in Get()
Dpool.hpp175 Type &GetEntryAt(uint16_t aIndex) { return mPool[aIndex]; } in GetEntryAt() argument
187 const Type &GetEntryAt(uint16_t aIndex) const { return mPool[aIndex]; } in GetEntryAt()
/openthread-latest/src/ncp/
Dchanged_props_set.hpp133 const Entry *GetEntry(uint8_t aIndex) const in GetEntry()
135 return (aIndex < GetNumEntries()) ? &mSupportedProps[aIndex] : nullptr; in GetEntry()
147 bool IsEntryChanged(uint8_t aIndex) const { return IsBitSet(mChangedSet, aIndex); } in IsEntryChanged()
157 void RemoveEntry(uint8_t aIndex) { ClearBit(mChangedSet, aIndex); } in RemoveEntry() argument
179 bool IsEntryFiltered(uint8_t aIndex) const { return IsBitSet(mFilterSet, aIndex); } in IsEntryFiltered()
/openthread-latest/src/core/backbone_router/
Dmulticast_listeners_table.cpp164 void MulticastListenersTable::FixHeap(uint16_t aIndex) in FixHeap() argument
166 if (!SiftHeapElemDown(aIndex)) in FixHeap()
168 SiftHeapElemUp(aIndex); in FixHeap()
184 bool MulticastListenersTable::SiftHeapElemDown(uint16_t aIndex) in SiftHeapElemDown() argument
186 uint16_t index = aIndex; in SiftHeapElemDown()
189 OT_ASSERT(aIndex < mNumValidListeners); in SiftHeapElemDown()
191 saveElem = mListeners[aIndex]; in SiftHeapElemDown()
217 if (index > aIndex) in SiftHeapElemDown()
222 return index > aIndex; in SiftHeapElemDown()
225 void MulticastListenersTable::SiftHeapElemUp(uint16_t aIndex) in SiftHeapElemUp() argument
[all …]
Dmulticast_listeners_table.hpp226 void FixHeap(uint16_t aIndex);
227 bool SiftHeapElemDown(uint16_t aIndex);
228 void SiftHeapElemUp(uint16_t aIndex);
/openthread-latest/src/core/api/
Ddns_api.cpp134 uint16_t aIndex, in otDnsAddressResponseGetAddress() argument
140 …return AsCoreType(aResponse).GetAddress(aIndex, AsCoreType(aAddress), (aTtl != nullptr) ? *aTtl : … in otDnsAddressResponseGetAddress()
166 uint16_t aIndex, in otDnsBrowseResponseGetServiceInstance() argument
172 return AsCoreType(aResponse).GetServiceInstance(aIndex, aLabelBuffer, aLabelBufferSize); in otDnsBrowseResponseGetServiceInstance()
186 uint16_t aIndex, in otDnsBrowseResponseGetHostAddress() argument
194 …return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), aTtl != nullp… in otDnsBrowseResponseGetHostAddress()
244 uint16_t aIndex, in otDnsServiceResponseGetHostAddress() argument
252 return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), in otDnsServiceResponseGetHostAddress()
/openthread-latest/src/posix/platform/
Dsettings.cpp241 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… in otPlatSettingsGet() argument
251 error = otPosixSecureSettingsGet(aInstance, aKey, aIndex, aValue, aValueLength); in otPlatSettingsGet()
256 error = ot::Posix::PlatformSettingsGet(aInstance, aKey, aIndex, aValue, aValueLength); in otPlatSettingsGet()
302 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex) in otPlatSettingsDelete() argument
309 error = otPosixSecureSettingsDelete(aInstance, aKey, aIndex); in otPlatSettingsDelete()
314 error = ot::Posix::PlatformSettingsDelete(aInstance, aKey, aIndex, nullptr); in otPlatSettingsDelete()
333 otError PlatformSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint… in PlatformSettingsGet() argument
357 if (aIndex == 0) in PlatformSettingsGet()
377 --aIndex; in PlatformSettingsGet()
431 otError PlatformSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex, int *aSwapFd) in PlatformSettingsDelete() argument
[all …]
Dsettings.hpp48 otError PlatformSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint…
88 otError PlatformSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex, int *aSwapFd);
Dbacktrace.cpp71 static void demangleSymbol(int aIndex, const char *aSymbol) in demangleSymbol() argument
100 otLogCritPlat("#%2d: %s %s+0x%x [0x%x]\n", aIndex, program, functionName, offset, address); in demangleSymbol()
104 otLogCritPlat("#%2d: %s\n", aIndex, aSymbol); in demangleSymbol()
/openthread-latest/src/core/utils/
Dflash.cpp117 Error Flash::Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) const in Get() argument
139 if (index == aIndex) in Get()
258 Error Flash::Delete(uint16_t aKey, int aIndex) in Delete() argument
278 if ((aIndex == index) || (aIndex == -1)) in Delete()
289 if ((index == 1) && (aIndex == 0)) in Delete()
Dverhoeff_checksum.cpp44 uint8_t VerhoeffChecksum::Lookup(uint8_t aIndex, const uint8_t aCompressedArray[]) in Lookup() argument
51 uint8_t result = aCompressedArray[aIndex / 2]; in Lookup()
53 if ((aIndex & 1) == 0) in Lookup()
Dflash.hpp86 Error Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) const;
131 Error Delete(uint16_t aKey, int aIndex);
/openthread-latest/src/core/thread/
Dchild.hpp335 uint8_t GetRequestTlv(uint8_t aIndex) const { return mRequestTlvs[aIndex]; } in GetRequestTlv()
344 void SetRequestTlv(uint8_t aIndex, uint8_t aType) { mRequestTlvs[aIndex] = aType; } in SetRequestTlv() argument
Dnetwork_data_tlvs.hpp561 HasRouteEntry *GetEntry(uint8_t aIndex) in GetEntry() argument
563 return reinterpret_cast<HasRouteEntry *>(GetValue() + (aIndex * sizeof(HasRouteEntry))); in GetEntry()
574 const HasRouteEntry *GetEntry(uint8_t aIndex) const in GetEntry()
576 … return reinterpret_cast<const HasRouteEntry *>(GetValue() + (aIndex * sizeof(HasRouteEntry))); in GetEntry()
1135 BorderRouterEntry *GetEntry(uint8_t aIndex) in GetEntry() argument
1137 … return reinterpret_cast<BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry))); in GetEntry()
1148 const BorderRouterEntry *GetEntry(uint8_t aIndex) const in GetEntry()
1150 …return reinterpret_cast<const BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry… in GetEntry()
Dthread_tlvs.hpp352 const Ip6::Address &GetIp6Address(uint8_t aIndex) const in GetIp6Address()
354 … return *reinterpret_cast<const Ip6::Address *>(GetValue() + (aIndex * sizeof(Ip6::Address))); in GetIp6Address()
/openthread-latest/include/openthread/
Ddns_client.h313 uint16_t aIndex,
428 uint16_t aIndex,
487 uint16_t aIndex,
674 uint16_t aIndex,
/openthread-latest/examples/platforms/utils/
Dsettings_ram.c71 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… in otPlatSettingsGet() argument
88 if (currentIndex == aIndex) in otPlatSettingsGet()
184 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex) in otPlatSettingsDelete() argument
202 if (currentIndex == aIndex) in otPlatSettingsDelete()
/openthread-latest/src/core/mac/
Dmac_frame.cpp1113 template <typename IeType> Error Frame::AppendHeaderIeAt(uint8_t &aIndex) in AppendHeaderIeAt() argument
1117 SuccessOrExit(error = InitIeHeaderAt(aIndex, IeType::kHeaderIeId, IeType::kIeContentSize)); in AppendHeaderIeAt()
1119 InitIeContentAt<IeType>(aIndex); in AppendHeaderIeAt()
1125 Error Frame::InitIeHeaderAt(uint8_t &aIndex, uint8_t ieId, uint8_t ieContentSize) in InitIeHeaderAt() argument
1131 if (aIndex == 0) in InitIeHeaderAt()
1133 aIndex = FindHeaderIeIndex(); in InitIeHeaderAt()
1136 VerifyOrExit(aIndex != kInvalidIndex, error = kErrorNotFound); in InitIeHeaderAt()
1138 reinterpret_cast<HeaderIe *>(mPsdu + aIndex)->Init(ieId, ieContentSize); in InitIeHeaderAt()
1139 aIndex += sizeof(HeaderIe); in InitIeHeaderAt()
1147 template <> void Frame::InitIeContentAt<TimeIe>(uint8_t &aIndex) in InitIeContentAt() argument
[all …]
/openthread-latest/src/posix/platform/include/openthread/platform/
Dsecure_settings.h99 int aIndex,
159 otError otPosixSecureSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex);
/openthread-latest/include/openthread/platform/
Dsettings.h147 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16…
233 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex);
/openthread-latest/src/core/net/
Ddns_client.hpp314 uint16_t aIndex,
318 …Error FindARecord(Section aSection, const Name &aHostName, uint16_t aIndex, ARecord &aARecord) con…
397 Error GetAddress(uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTtl) const;
461 … Error GetServiceInstance(uint16_t aIndex, char *aLabelBuffer, uint8_t aLabelBufferSize) const;
509 …Error GetHostAddress(const char *aHostName, uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTt…
592 …Error GetHostAddress(const char *aHostName, uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTt…
/openthread-latest/tests/unit/
Dtest_ndproxy_table.cpp49 Ip6::InterfaceIdentifier generateRandomIid(uint16_t aIndex) in generateRandomIid() argument
54 iid.mFields.m16[3] = aIndex; in generateRandomIid()

12