/openthread-latest/src/core/common/ |
D | bit_set.hpp | 73 bool Has(uint16_t aIndex) const { return (mMask[aIndex / 8] & BitMaskFor(aIndex)) != 0; } in Has() 83 void Add(uint16_t aIndex) { mMask[aIndex / 8] |= BitMaskFor(aIndex); } in Add() argument 93 void Remove(uint16_t aIndex) { mMask[aIndex / 8] &= ~BitMaskFor(aIndex); } in Remove() argument 104 void Update(uint16_t aIndex, bool aToAdd) { aToAdd ? Add(aIndex) : Remove(aIndex); } in Update() argument 129 static uint8_t BitMaskFor(uint16_t aIndex) { return (0x80 >> (aIndex & 7)); } in BitMaskFor() argument
|
D | array.hpp | 225 Type &operator[](IndexType aIndex) { return mElements[aIndex]; } in operator []() argument 236 const Type &operator[](IndexType aIndex) const { return mElements[aIndex]; } in operator []() 247 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mElements[aIndex] : nullptr; } in At() argument 258 …const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mElements[aIndex] : nullptr;… in At()
|
D | heap_array.hpp | 180 Type &operator[](IndexType aIndex) { return mArray[aIndex]; } in operator []() argument 191 const Type &operator[](IndexType aIndex) const { return mArray[aIndex]; } in operator []() 203 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At() argument 215 … const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At()
|
D | settings_driver.hpp | 127 Error Delete(uint16_t aKey, int aIndex = -1) in Delete() argument 132 error = mFlash.Delete(aKey, aIndex); in Delete() 134 error = otPlatSettingsDelete(GetInstancePtr(), aKey, aIndex); in Delete() 155 Error Get(uint16_t aKey, int aIndex, void *aValue, uint16_t *aValueLength) const in Get() argument 161 error = mFlash.Get(aKey, aIndex, value, aValueLength); in Get() 163 error = otPlatSettingsGet(GetInstancePtr(), aKey, aIndex, value, aValueLength); in Get()
|
D | pool.hpp | 164 Type &GetEntryAt(uint16_t aIndex) { return mPool[aIndex]; } in GetEntryAt() argument 175 const Type &GetEntryAt(uint16_t aIndex) const { return mPool[aIndex]; } in GetEntryAt()
|
/openthread-latest/src/ncp/ |
D | changed_props_set.hpp | 124 const Entry *GetEntry(uint8_t aIndex) const in GetEntry() 126 return (aIndex < GetNumEntries()) ? &mSupportedProps[aIndex] : nullptr; in GetEntry() 137 bool IsEntryChanged(uint8_t aIndex) const { return IsBitSet(mChangedSet, aIndex); } in IsEntryChanged() 146 void RemoveEntry(uint8_t aIndex) { ClearBit(mChangedSet, aIndex); } in RemoveEntry() argument 166 bool IsEntryFiltered(uint8_t aIndex) const { return IsBitSet(mFilterSet, aIndex); } in IsEntryFiltered()
|
/openthread-latest/src/core/backbone_router/ |
D | multicast_listeners_table.cpp | 160 void MulticastListenersTable::FixHeap(uint16_t aIndex) in FixHeap() argument 162 if (!SiftHeapElemDown(aIndex)) in FixHeap() 164 SiftHeapElemUp(aIndex); in FixHeap() 180 bool MulticastListenersTable::SiftHeapElemDown(uint16_t aIndex) in SiftHeapElemDown() argument 182 uint16_t index = aIndex; in SiftHeapElemDown() 185 OT_ASSERT(aIndex < mNumValidListeners); in SiftHeapElemDown() 187 saveElem = mListeners[aIndex]; in SiftHeapElemDown() 213 if (index > aIndex) in SiftHeapElemDown() 218 return index > aIndex; in SiftHeapElemDown() 221 void MulticastListenersTable::SiftHeapElemUp(uint16_t aIndex) in SiftHeapElemUp() argument [all …]
|
D | multicast_listeners_table.hpp | 212 void FixHeap(uint16_t aIndex); 213 bool SiftHeapElemDown(uint16_t aIndex); 214 void SiftHeapElemUp(uint16_t aIndex);
|
/openthread-latest/tests/nexus/platform/ |
D | nexus_settings.cpp | 45 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… in otPlatSettingsGet() argument 47 return AsNode(aInstance).mSettings.Get(aKey, aIndex, aValue, aValueLength); in otPlatSettingsGet() 60 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex) in otPlatSettingsDelete() argument 62 return AsNode(aInstance).mSettings.Delete(aKey, aIndex); in otPlatSettingsDelete() 72 Error Settings::Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) const in Get() argument 77 IndexMatcher IndexMatcher(aIndex); in Get() 131 Error Settings::Delete(uint16_t aKey, int aIndex) in Delete() argument 140 if (aIndex < 0) in Delete() 146 IndexMatcher indexMatcher(aIndex); in Delete()
|
D | nexus_settings.hpp | 47 Error Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) const; 49 Error Delete(uint16_t aKey, int aIndex); 54 IndexMatcher(int aIndex) { mIndex = aIndex; } in IndexMatcher()
|
/openthread-latest/src/core/api/ |
D | dns_api.cpp | 132 uint16_t aIndex, in otDnsAddressResponseGetAddress() argument 138 …return AsCoreType(aResponse).GetAddress(aIndex, AsCoreType(aAddress), (aTtl != nullptr) ? *aTtl : … in otDnsAddressResponseGetAddress() 164 uint16_t aIndex, in otDnsBrowseResponseGetServiceInstance() argument 170 return AsCoreType(aResponse).GetServiceInstance(aIndex, aLabelBuffer, aLabelBufferSize); in otDnsBrowseResponseGetServiceInstance() 184 uint16_t aIndex, in otDnsBrowseResponseGetHostAddress() argument 192 …return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), aTtl != nullp… in otDnsBrowseResponseGetHostAddress() 242 uint16_t aIndex, in otDnsServiceResponseGetHostAddress() argument 250 return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), in otDnsServiceResponseGetHostAddress()
|
/openthread-latest/src/posix/platform/ |
D | settings_file.cpp | 113 otError SettingsFile::Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) in Get() argument 139 if (aIndex == 0) in Get() 159 --aIndex; in Get() 220 otError SettingsFile::Delete(uint16_t aKey, int aIndex) { return Delete(aKey, aIndex, nullptr); } in Delete() argument 222 otError SettingsFile::Delete(uint16_t aKey, int aIndex, int *aSwapFd) in Delete() argument 255 if (aIndex == 0) in Delete() 262 else if (aIndex == -1) in Delete() 270 --aIndex; in Delete()
|
D | settings_file.hpp | 72 otError Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength); 102 otError Delete(uint16_t aKey, int aIndex); 117 otError Delete(uint16_t aKey, int aIndex, int *aSwapFd);
|
D | backtrace.cpp | 71 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()
|
D | settings.cpp | 139 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… in otPlatSettingsGet() argument 149 error = otPosixSecureSettingsGet(aInstance, aKey, aIndex, aValue, aValueLength); in otPlatSettingsGet() 154 error = sSettingsFile.Get(aKey, aIndex, aValue, aValueLength); in otPlatSettingsGet() 202 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex) in otPlatSettingsDelete() argument 211 error = otPosixSecureSettingsDelete(aInstance, aKey, aIndex); in otPlatSettingsDelete() 216 error = sSettingsFile.Delete(aKey, aIndex); in otPlatSettingsDelete()
|
/openthread-latest/src/core/thread/ |
D | child.hpp | 298 uint8_t GetRequestTlv(uint8_t aIndex) const { return mRequestTlvs[aIndex]; } in GetRequestTlv() 306 void SetRequestTlv(uint8_t aIndex, uint8_t aType) { mRequestTlvs[aIndex] = aType; } in SetRequestTlv() argument
|
D | network_data_tlvs.hpp | 515 HasRouteEntry *GetEntry(uint8_t aIndex) in GetEntry() argument 517 return reinterpret_cast<HasRouteEntry *>(GetValue() + (aIndex * sizeof(HasRouteEntry))); in GetEntry() 527 const HasRouteEntry *GetEntry(uint8_t aIndex) const in GetEntry() 529 … return reinterpret_cast<const HasRouteEntry *>(GetValue() + (aIndex * sizeof(HasRouteEntry))); in GetEntry() 1038 BorderRouterEntry *GetEntry(uint8_t aIndex) in GetEntry() argument 1040 … return reinterpret_cast<BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry))); in GetEntry() 1050 const BorderRouterEntry *GetEntry(uint8_t aIndex) const in GetEntry() 1052 …return reinterpret_cast<const BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry… in GetEntry()
|
/openthread-latest/src/core/utils/ |
D | flash.cpp | 114 Error Flash::Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) const in Get() argument 136 if (index == aIndex) in Get() 255 Error Flash::Delete(uint16_t aKey, int aIndex) in Delete() argument 275 if ((aIndex == index) || (aIndex == -1)) in Delete() 286 if ((index == 1) && (aIndex == 0)) in Delete()
|
D | verhoeff_checksum.cpp | 44 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()
|
/openthread-latest/include/openthread/ |
D | dns_client.h | 299 uint16_t aIndex, 408 uint16_t aIndex, 465 uint16_t aIndex, 645 uint16_t aIndex,
|
/openthread-latest/tests/gtest/ |
D | fake_platform.cpp | 212 otError FakePlatform::SettingsGet(uint16_t aKey, uint16_t aIndex, uint8_t *aValue, uint16_t *aValue… in SettingsGet() argument 221 if (aIndex > setting->second.size()) in SettingsGet() 231 const auto &data = setting->second[aIndex]; in SettingsGet() 268 otError FakePlatform::SettingsDelete(uint16_t aKey, int aIndex) in SettingsDelete() argument 276 if (static_cast<std::size_t>(aIndex) >= setting->second.size()) in SettingsDelete() 280 setting->second.erase(setting->second.begin() + aIndex); in SettingsDelete() 519 otError otPlatSettingsGet(otInstance *, uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValu… in otPlatSettingsGet() argument 521 return FakePlatform::CurrentPlatform().SettingsGet(aKey, aIndex, aValue, aValueLength); in otPlatSettingsGet() 534 otError otPlatSettingsDelete(otInstance *, uint16_t aKey, int aIndex) in otPlatSettingsDelete() argument 536 return FakePlatform::CurrentPlatform().SettingsDelete(aKey, aIndex); in otPlatSettingsDelete()
|
/openthread-latest/examples/platforms/utils/ |
D | settings_ram.c | 70 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… in otPlatSettingsGet() argument 87 if (currentIndex == aIndex) in otPlatSettingsGet() 183 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex) in otPlatSettingsDelete() argument 201 if (currentIndex == aIndex) in otPlatSettingsDelete()
|
/openthread-latest/src/posix/platform/include/openthread/platform/ |
D | secure_settings.h | 95 int aIndex, 152 otError otPosixSecureSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex);
|
/openthread-latest/include/openthread/platform/ |
D | settings.h | 143 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… 229 otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex);
|
/openthread-latest/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()
|