/openthread-2.7.6/src/core/common/ |
D | bit_vector.hpp | 74 bool Get(uint16_t aIndex) const in Get() 76 OT_ASSERT(aIndex < N); in Get() 77 return (mMask[aIndex / 8] & (0x80 >> (aIndex % 8))) != 0; in Get() 87 void Set(uint16_t aIndex, bool aValue) in Set() argument 89 OT_ASSERT(aIndex < N); in Set() 93 mMask[aIndex / 8] |= 0x80 >> (aIndex % 8); in Set() 97 mMask[aIndex / 8] &= ~(0x80 >> (aIndex % 8)); in Set()
|
D | array.hpp | 143 Type &operator[](IndexType aIndex) { return mElements[aIndex]; } in operator []() argument 155 const Type &operator[](IndexType aIndex) const { return mElements[aIndex]; } in operator []() 167 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mElements[aIndex] : nullptr; } in At() argument 179 …const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mElements[aIndex] : nullptr;… in At()
|
D | settings_driver.hpp | 143 Error Delete(uint16_t aKey, int aIndex = -1) in Delete() argument 148 error = mFlash.Delete(aKey, aIndex); in Delete() 150 error = otPlatSettingsDelete(GetInstancePtr(), aKey, aIndex); in Delete() 172 Error Get(uint16_t aKey, int aIndex, void *aValue, uint16_t *aValueLength) const in Get() argument 178 error = mFlash.Get(aKey, aIndex, value, aValueLength); in Get() 180 error = otPlatSettingsGet(GetInstancePtr(), aKey, aIndex, value, aValueLength); in Get()
|
D | pool.hpp | 173 Type &GetEntryAt(uint16_t aIndex) { return mPool[aIndex]; } in GetEntryAt() argument 185 const Type &GetEntryAt(uint16_t aIndex) const { return mPool[aIndex]; } in GetEntryAt()
|
/openthread-2.7.6/src/ncp/ |
D | changed_props_set.hpp | 133 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-2.7.6/src/core/backbone_router/ |
D | multicast_listeners_table.cpp | 161 void MulticastListenersTable::FixHeap(uint16_t aIndex) in FixHeap() argument 163 if (!SiftHeapElemDown(aIndex)) in FixHeap() 165 SiftHeapElemUp(aIndex); in FixHeap() 181 bool MulticastListenersTable::SiftHeapElemDown(uint16_t aIndex) in SiftHeapElemDown() argument 183 uint16_t index = aIndex; in SiftHeapElemDown() 186 OT_ASSERT(aIndex < mNumValidListeners); in SiftHeapElemDown() 188 saveElem = mListeners[aIndex]; in SiftHeapElemDown() 214 if (index > aIndex) in SiftHeapElemDown() 219 return index > aIndex; in SiftHeapElemDown() 222 void MulticastListenersTable::SiftHeapElemUp(uint16_t aIndex) in SiftHeapElemUp() argument [all …]
|
D | multicast_listeners_table.hpp | 215 void FixHeap(uint16_t aIndex); 216 bool SiftHeapElemDown(uint16_t aIndex); 217 void SiftHeapElemUp(uint16_t aIndex);
|
/openthread-2.7.6/src/core/api/ |
D | dns_api.cpp | 112 uint16_t aIndex, in otDnsAddressResponseGetAddress() argument 119 …return response.GetAddress(aIndex, *static_cast<Ip6::Address *>(aAddress), (aTtl != nullptr) ? *aT… in otDnsAddressResponseGetAddress() 146 uint16_t aIndex, in otDnsBrowseResponseGetServiceInstance() argument 152 return response.GetServiceInstance(aIndex, aLabelBuffer, aLabelBufferSize); in otDnsBrowseResponseGetServiceInstance() 166 uint16_t aIndex, in otDnsBrowseResponseGetHostAddress() argument 173 return response.GetHostAddress(aHostName, aIndex, *static_cast<Ip6::Address *>(aAddress), in otDnsBrowseResponseGetHostAddress() 210 uint16_t aIndex, in otDnsServiceResponseGetHostAddress() argument 217 return response.GetHostAddress(aHostName, aIndex, *static_cast<Ip6::Address *>(aAddress), in otDnsServiceResponseGetHostAddress()
|
/openthread-2.7.6/include/openthread/ |
D | dns_client.h | 248 uint16_t aIndex, 362 uint16_t aIndex, 419 uint16_t aIndex, 545 uint16_t aIndex,
|
/openthread-2.7.6/src/core/utils/ |
D | flash.cpp | 117 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()
|
D | flash.hpp | 86 Error Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) const; 131 Error Delete(uint16_t aKey, int aIndex);
|
/openthread-2.7.6/src/posix/platform/include/openthread/platform/ |
D | secure_settings.h | 99 int aIndex, 159 otError otPosixSecureSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex);
|
/openthread-2.7.6/examples/platforms/utils/ |
D | settings_ram.c | 72 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… in otPlatSettingsGet() argument 89 if (currentIndex == aIndex) in otPlatSettingsGet() 185 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex) in otPlatSettingsDelete() argument 203 if (currentIndex == aIndex) in otPlatSettingsDelete()
|
/openthread-2.7.6/src/posix/platform/ |
D | settings.cpp | 61 static otError platformSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex, int *aSwapF… 228 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… in otPlatSettingsGet() argument 239 ExitNow(error = otPosixSecureSettingsGet(aInstance, aKey, aIndex, aValue, aValueLength)); in otPlatSettingsGet() 259 if (aIndex == 0) in otPlatSettingsGet() 279 --aIndex; in otPlatSettingsGet() 362 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex) in otPlatSettingsDelete() argument 369 error = otPosixSecureSettingsDelete(aInstance, aKey, aIndex); in otPlatSettingsDelete() 374 error = platformSettingsDelete(aInstance, aKey, aIndex, nullptr); in otPlatSettingsDelete() 396 static otError platformSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex, int *aSwapF… in platformSettingsDelete() argument 425 if (aIndex == 0) in platformSettingsDelete() [all …]
|
/openthread-2.7.6/src/core/mac/ |
D | mac_frame.cpp | 900 template <typename IeType> Error Frame::AppendHeaderIeAt(uint8_t &aIndex) in AppendHeaderIeAt() argument 904 SuccessOrExit(error = InitIeHeaderAt(aIndex, IeType::kHeaderIeId, IeType::kIeContentSize)); in AppendHeaderIeAt() 906 InitIeContentAt<IeType>(aIndex); in AppendHeaderIeAt() 912 Error Frame::InitIeHeaderAt(uint8_t &aIndex, uint8_t ieId, uint8_t ieContentSize) in InitIeHeaderAt() argument 916 if (aIndex == 0) in InitIeHeaderAt() 918 aIndex = FindHeaderIeIndex(); in InitIeHeaderAt() 921 VerifyOrExit(aIndex != kInvalidIndex, error = kErrorNotFound); in InitIeHeaderAt() 923 reinterpret_cast<HeaderIe *>(mPsdu + aIndex)->Init(ieId, ieContentSize); in InitIeHeaderAt() 924 aIndex += sizeof(HeaderIe); in InitIeHeaderAt() 932 template <> void Frame::InitIeContentAt<TimeIe>(uint8_t &aIndex) in InitIeContentAt() argument [all …]
|
/openthread-2.7.6/include/openthread/platform/ |
D | settings.h | 138 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… 203 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex);
|
/openthread-2.7.6/src/core/net/ |
D | dns_client.hpp | 260 uint16_t aIndex, 264 …Error FindARecord(Section aSection, const Name &aHostName, uint16_t aIndex, ARecord &aARecord) con… 338 Error GetAddress(uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTtl) const; 403 … Error GetServiceInstance(uint16_t aIndex, char *aLabelBuffer, uint8_t aLabelBufferSize) const; 451 …Error GetHostAddress(const char *aHostName, uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTt… 534 …Error GetHostAddress(const char *aHostName, uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTt…
|
D | dns_client.cpp | 176 uint16_t aIndex, in FindHostAddress() argument 189 …SuccessOrExit(error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, aIndex, name, aaaa… in FindHostAddress() 199 Error Client::Response::FindARecord(Section aSection, const Name &aHostName, uint16_t aIndex, AReco… in FindARecord() argument 209 error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, aIndex, name, aARecord); in FindARecord() 309 Error Client::AddressResponse::GetAddress(uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTtl) … in GetAddress() argument 334 SuccessOrExit(error = FindARecord(section, name, aIndex, aRecord)); in GetAddress() 344 ExitNow(error = FindHostAddress(kAnswerSection, name, aIndex, aAddress, aTtl)); in GetAddress() 386 Error Client::BrowseResponse::GetServiceInstance(uint16_t aIndex, char *aLabelBuffer, uint8_t aLabe… in GetServiceInstance() argument 397 …SuccessOrExit(error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, aIndex, serviceNam… in GetServiceInstance() 421 uint16_t aIndex, in GetHostAddress() argument [all …]
|
D | srp_client.hpp | 140 const Ip6::Address &GetAddress(uint8_t aIndex) const in GetAddress() 142 return static_cast<const Ip6::Address &>(mAddresses[aIndex]); in GetAddress() 214 const char *GetSubTypeLabelAt(uint16_t aIndex) const { return mSubTypeLabels[aIndex]; } in GetSubTypeLabelAt()
|
/openthread-2.7.6/src/core/thread/ |
D | network_diagnostic_tlvs.hpp | 740 const Ip6::Address &GetIp6Address(uint8_t aIndex) const in GetIp6Address() 742 … return *reinterpret_cast<const Ip6::Address *>(GetValue() + (aIndex * sizeof(Ip6::Address))); in GetIp6Address() 1085 ChildTableEntry &GetEntry(uint16_t aIndex) in GetEntry() argument 1087 … return *reinterpret_cast<ChildTableEntry *>(GetValue() + (aIndex * sizeof(ChildTableEntry))); in GetEntry() 1102 …ReadEntry(ChildTableEntry &aEntry, const Message &aMessage, uint16_t aOffset, uint8_t aIndex) const in ReadEntry() 1104 return ((aIndex < GetNumEntries()) && in ReadEntry() 1105 … (aMessage.Read(aOffset + sizeof(ChildTableTlv) + (aIndex * sizeof(ChildTableEntry)), aEntry) == in ReadEntry()
|
D | network_data_tlvs.hpp | 504 HasRouteEntry *GetEntry(uint8_t aIndex) in GetEntry() argument 506 return reinterpret_cast<HasRouteEntry *>(GetValue() + (aIndex * sizeof(HasRouteEntry))); in GetEntry() 517 const HasRouteEntry *GetEntry(uint8_t aIndex) const in GetEntry() 519 … return reinterpret_cast<const HasRouteEntry *>(GetValue() + (aIndex * sizeof(HasRouteEntry))); in GetEntry() 1081 BorderRouterEntry *GetEntry(uint8_t aIndex) in GetEntry() argument 1083 … return reinterpret_cast<BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry))); in GetEntry() 1094 const BorderRouterEntry *GetEntry(uint8_t aIndex) const in GetEntry() 1096 …return reinterpret_cast<const BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry… in GetEntry()
|
D | topology.hpp | 888 …AddressIterator(const Child &aChild, Index aIndex, Ip6::Address::TypeFilter aFilter = Ip6::Address… in AddressIterator() argument 891 , mIndex(aIndex) in AddressIterator() 1176 uint8_t GetRequestTlv(uint8_t aIndex) const { return mRequestTlvs[aIndex]; } in GetRequestTlv() 1185 void SetRequestTlv(uint8_t aIndex, uint8_t aType) { mRequestTlvs[aIndex] = aType; } in SetRequestTlv() argument
|
D | thread_tlvs.hpp | 343 const Ip6::Address &GetIp6Address(uint8_t aIndex) const in GetIp6Address() 345 … return *reinterpret_cast<const Ip6::Address *>(GetValue() + (aIndex * sizeof(Ip6::Address))); in GetIp6Address()
|
/openthread-2.7.6/tests/unit/ |
D | test_ndproxy_table.cpp | 49 Ip6::InterfaceIdentifier generateRandomIid(uint16_t aIndex) in generateRandomIid() argument 54 iid.mFields.m16[3] = aIndex; in generateRandomIid()
|
/openthread-2.7.6/tests/fuzz/ |
D | fuzzer_platform.cpp | 454 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… in otPlatSettingsGet() argument 458 OT_UNUSED_VARIABLE(aIndex); in otPlatSettingsGet() 482 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex) in otPlatSettingsDelete() argument 486 OT_UNUSED_VARIABLE(aIndex); in otPlatSettingsDelete()
|