Home
last modified time | relevance | path

Searched refs:OT_ARRAY_LENGTH (Results 1 – 25 of 32) sorted by relevance

12

/openthread-2.7.6/src/core/common/
Dcode_utils.hpp51 #define OT_ARRAY_LENGTH(aArray) (sizeof(aArray) / sizeof(aArray[0])) macro
64 #define OT_ARRAY_END(aArray) (&aArray[OT_ARRAY_LENGTH(aArray)])
Derror.cpp83 return aError < OT_ARRAY_LENGTH(kErrorStrings) ? kErrorStrings[aError] : "UnknownErrorType"; in ErrorToString()
Dlogging.cpp78 if (aLogRegion < OT_ARRAY_LENGTH(kRegionPrefixStrings)) in Log()
315 return ((aLogLevel >= 0) && (aLogLevel < static_cast<int>(OT_ARRAY_LENGTH(kLevelStrings)))) in otLogLevelToPrefixString()
Dnotifier.cpp289 for (uint8_t index = 0; index < OT_ARRAY_LENGTH(kEventStrings); index++) in EventToString()
Dsettings.cpp196 Get<SettingsDriver>().SetCriticalKeys(kCriticalKeys, OT_ARRAY_LENGTH(kCriticalKeys)); in Init()
/openthread-2.7.6/src/core/utils/
Dsrp_client_buffers.hpp167 aArrayLength = OT_ARRAY_LENGTH(mSubTypeLabels); in GetSubTypeLabelsArray()
215 aArrayLength = OT_ARRAY_LENGTH(mHostAddresses); in GetHostAddressesArray()
Dslaac_address.cpp247 OT_ARRAY_LENGTH(mAddresses)); in Update()
/openthread-2.7.6/src/core/mac/
Dmac_filter.cpp125 for (; aIterator < OT_ARRAY_LENGTH(mFilterEntries); aIterator++) in GetNextAddress()
187 for (; aIterator < OT_ARRAY_LENGTH(mFilterEntries); aIterator++) in GetNextRssIn()
202 if ((aIterator == OT_ARRAY_LENGTH(mFilterEntries)) && (mDefaultRssIn != kFixedRssDisabled)) in GetNextRssIn()
/openthread-2.7.6/src/ncp/
Dncp_base_dispatcher.cpp383 static_assert(AreHandlerEntriesSorted(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries)), in FindGetPropertyHandler()
386 return FindPropertyHandler(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries), aKey); in FindGetPropertyHandler()
635 static_assert(AreHandlerEntriesSorted(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries)), in FindSetPropertyHandler()
638 return FindPropertyHandler(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries), aKey); in FindSetPropertyHandler()
688 static_assert(AreHandlerEntriesSorted(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries)), in FindInsertPropertyHandler()
691 return FindPropertyHandler(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries), aKey); in FindInsertPropertyHandler()
741 static_assert(AreHandlerEntriesSorted(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries)), in FindRemovePropertyHandler()
744 return FindPropertyHandler(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries), aKey); in FindRemovePropertyHandler()
Dchanged_props_set.cpp102 static_assert(OT_ARRAY_LENGTH(mSupportedProps) <= sizeof(mChangedSet) * CHAR_BIT, in GetNumEntries()
105 return OT_ARRAY_LENGTH(mSupportedProps); in GetNumEntries()
/openthread-2.7.6/tests/unit/
Dtest_hmac_sha256.cpp90 uint16_t offsets[OT_ARRAY_LENGTH(kTestCases)]; in TestSha256()
232 uint16_t offsets[OT_ARRAY_LENGTH(kTestCases)]; in TestHmacSha256()
Dtest_child_table.cpp293 const uint16_t testListLength = OT_ARRAY_LENGTH(testChildList); in TestChildTable()
Dtest_link_quality.cpp415 for (uint16_t testRound = 0; testRound < OT_ARRAY_LENGTH(kWeightLimit) * 2; testRound++) in TestSuccessRateTracker()
/openthread-2.7.6/src/posix/
Dmain.c279 …VerifyOrDie(aConfig->mPlatformConfig.mRadioUrlNum < OT_ARRAY_LENGTH(aConfig->mPlatformConfig.mRadi… in ParseArg()
392 otCliSetUserCommands(kCommands, OT_ARRAY_LENGTH(kCommands), instance); in main()
/openthread-2.7.6/examples/apps/cli/
Dmain.c134 otCliSetUserCommands(kCommands, OT_ARRAY_LENGTH(kCommands), instance); in main()
/openthread-2.7.6/src/core/net/
Ddhcp6_server.cpp321 for (uint16_t i = 0; i < OT_ARRAY_LENGTH(mPrefixAgents); i++) in ProcessIaAddress()
401 for (uint16_t i = 0; i < OT_ARRAY_LENGTH(mPrefixAgents); i++) in AppendIaNa()
441 for (uint16_t i = 0; i < OT_ARRAY_LENGTH(mPrefixAgents); i++) in AppendIaAddress()
Ddns_client.cpp535 /* kIp6AddressQuery -> */ OT_ARRAY_LENGTH(kIp6AddressQueryRecordTypes), // AAAA records
537 /* kIp4AddressQuery -> */ OT_ARRAY_LENGTH(kIp4AddressQueryRecordTypes), // A records
540 /* kBrowseQuery -> */ OT_ARRAY_LENGTH(kBrowseQueryRecordTypes), // PTR records
541 /* kServiceQuery -> */ OT_ARRAY_LENGTH(kServiceQueryRecordTypes), // SRV and TXT records
Dip6_address.cpp647 AppendHexWords(aWriter, OT_ARRAY_LENGTH(mFields.m16)); in ToString()
/openthread-2.7.6/src/cli/
Dcli_tcp.cpp236 toSendOut = OT_MIN(OT_ARRAY_LENGTH(mBenchmarkLinks), mBenchmarkLinksLeft); in ProcessBenchmark()
397 if (mBenchmarkLinksLeft >= OT_ARRAY_LENGTH(mBenchmarkLinks)) in HandleTcpSendDone()
/openthread-2.7.6/src/core/backbone_router/
Dmulticast_listeners_table.cpp69 VerifyOrExit(mNumValidListeners < OT_ARRAY_LENGTH(mListeners), error = kErrorNoBufs); in Add()
/openthread-2.7.6/src/posix/platform/
Dhdlc_interface.cpp626 … index < OT_ARRAY_LENGTH(argv) && (arg = aRadioUrl.GetValue("forkpty-arg", arg)) != nullptr; in ForkPty()
631 if (index < OT_ARRAY_LENGTH(argv)) in ForkPty()
Dtrel_udp6.cpp415 for (uint16_t index = 0; index < OT_ARRAY_LENGTH(sTxPacketPool); index++) in InitPacketQueue()
/openthread-2.7.6/src/core/thread/
Dtopology.cpp213 …return static_cast<uint8_t>(aState) < OT_ARRAY_LENGTH(kStateStrings) ? kStateStrings[aState] : "Un… in StateToString()
/openthread-2.7.6/src/core/radio/
Dtrel_link.cpp459 …return (static_cast<uint8_t>(aState) < OT_ARRAY_LENGTH(kStateStrings)) ? kStateStrings[aState] : "… in StateToString()
/openthread-2.7.6/src/core/meshcop/
Djoiner.cpp344 for (; mJoinerRouterIndex < OT_ARRAY_LENGTH(mJoinerRouters); mJoinerRouterIndex++) in TryNextJoinerRouter()

12