Home
last modified time | relevance | path

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

/openthread-latest/src/include/common/
Dcode_utils.hpp48 #define OT_ARRAY_LENGTH(aArray) (sizeof(aArray) / sizeof(aArray[0])) macro
60 #define OT_ARRAY_END(aArray) (&aArray[OT_ARRAY_LENGTH(aArray)])
/openthread-latest/src/ncp/
Dncp_base_dispatcher.cpp400 static_assert(AreHandlerEntriesSorted(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries)), in FindGetPropertyHandler()
403 return FindPropertyHandler(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries), aKey); in FindGetPropertyHandler()
696 static_assert(AreHandlerEntriesSorted(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries)), in FindSetPropertyHandler()
699 return FindPropertyHandler(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries), aKey); in FindSetPropertyHandler()
752 static_assert(AreHandlerEntriesSorted(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries)), in FindInsertPropertyHandler()
755 return FindPropertyHandler(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries), aKey); in FindInsertPropertyHandler()
805 static_assert(AreHandlerEntriesSorted(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries)), in FindRemovePropertyHandler()
808 return FindPropertyHandler(sHandlerEntries, OT_ARRAY_LENGTH(sHandlerEntries), aKey); in FindRemovePropertyHandler()
Dchanged_props_set.cpp100 static_assert(OT_ARRAY_LENGTH(mSupportedProps) <= sizeof(mChangedSet) * kBitsPerByte, in GetNumEntries()
103 return OT_ARRAY_LENGTH(mSupportedProps); in GetNumEntries()
/openthread-latest/src/cli/
Dcli_extension_example.c56 … IgnoreError(otCliSetUserCommands(sExtensionCommands, OT_ARRAY_LENGTH(sExtensionCommands), NULL)); in otCliVendorSetUserCommands()
Dcli_mac_filter.cpp274 for (size_t index = 0; index < OT_ARRAY_LENGTH(kModeCommands); index++) in Process()
Dcli_link_metrics.cpp588 if (aStatus < OT_ARRAY_LENGTH(kStatusStrings)) in LinkMetricsStatusToStr()
Dcli_mesh_diag.cpp359 …for (uint8_t id = 0; id < static_cast<uint8_t>(OT_ARRAY_LENGTH(aRouterInfo->mLinkQualities)); id++) in HandleMeshDiagDiscoverDone()
Dcli_tcp.cpp612 uint32_t toSendOut = OT_MIN(OT_ARRAY_LENGTH(mBenchmarkLinks), benchmarkLinksLeft); in Process()
867 if (mBenchmarkBytesUnsent >= OT_ARRAY_LENGTH(mBenchmarkLinks) * sizeof(mSendBufferBytes)) in HandleTcpSendDone()
Dcli_dns.cpp505 for (size_t index = 0; index < OT_ARRAY_LENGTH(kServiceModeStrings); index++) in ParseDnsServiceMode()
Dcli.cpp3760 for (index = 0; index < OT_ARRAY_LENGTH(kPowerSupplyStrings); index++) in Process()
3769 VerifyOrExit(index < OT_ARRAY_LENGTH(kPowerSupplyStrings), error = OT_ERROR_INVALID_ARGS); in Process()
4166 if (numAddresses == OT_ARRAY_LENGTH(addresses)) in Process()
/openthread-latest/src/posix/platform/
Drcp_caps_diag.cpp536 OT_ARRAY_LENGTH(kRadioThread11Flags)); in TestRadioCapbilityFlags()
538 OT_ARRAY_LENGTH(kRadioThread12Flags)); in TestRadioCapbilityFlags()
540 OT_ARRAY_LENGTH(kRadioUtilsFlags)); in TestRadioCapbilityFlags()
578 …OutputSpinelCapFlags(kCategoryBasic, capsBuffer, capsLength, kSpinelBasicFlags, OT_ARRAY_LENGTH(kS… in TestSpinelCapbilityFlags()
579 …OutputSpinelCapFlags(kCategoryUtils, capsBuffer, capsLength, kSpinelUtilsFlags, OT_ARRAY_LENGTH(kS… in TestSpinelCapbilityFlags()
835 … return (aCategory < OT_ARRAY_LENGTH(kCategoryStrings)) ? kCategoryStrings[aCategory] : "invalid"; in CategoryToString()
868 VerifyOrExit(index < OT_ARRAY_LENGTH(kCapbilityStrings)); in RadioCapbilityToString()
Dspinel_manager.cpp81 mode = mSpinelDriver.Init(*mSpinelInterface, swReset, iidList, OT_ARRAY_LENGTH(iidList)); in Init()
Dhdlc_interface.cpp686 … index < OT_ARRAY_LENGTH(argv) && (arg = aRadioUrl.GetValue("forkpty-arg", arg)) != nullptr; in ForkPty()
691 if (index < OT_ARRAY_LENGTH(argv)) in ForkPty()
Dtrel.cpp307 for (uint16_t index = 0; index < OT_ARRAY_LENGTH(sTxPacketPool); index++) in InitPacketQueue()
/openthread-latest/src/posix/
Dmain.c271 OT_ARRAY_LENGTH(aConfig->mPlatformConfig.mCoprocessorUrls.mUrls), in ParseArg()
385 IgnoreError(otCliSetUserCommands(kCommands, OT_ARRAY_LENGTH(kCommands), instance)); in main()
/openthread-latest/tests/gtest/
Dfake_coprocessor_platform.cpp98 mSpinelDriver.Init(mSpinelInterface, false, iids, OT_ARRAY_LENGTH(iids)); in FakeCoprocessorPlatform()
/openthread-latest/examples/apps/cli/
Dmain.c144 IgnoreError(otCliSetUserCommands(kCommands, OT_ARRAY_LENGTH(kCommands), instance)); in main()