Searched refs:OT_ARRAY_LENGTH (Results 1 – 17 of 17) sorted by relevance
/openthread-latest/src/include/common/ |
D | code_utils.hpp | 48 #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/ |
D | ncp_base_dispatcher.cpp | 400 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()
|
D | changed_props_set.cpp | 100 static_assert(OT_ARRAY_LENGTH(mSupportedProps) <= sizeof(mChangedSet) * kBitsPerByte, in GetNumEntries() 103 return OT_ARRAY_LENGTH(mSupportedProps); in GetNumEntries()
|
/openthread-latest/src/cli/ |
D | cli_extension_example.c | 56 … IgnoreError(otCliSetUserCommands(sExtensionCommands, OT_ARRAY_LENGTH(sExtensionCommands), NULL)); in otCliVendorSetUserCommands()
|
D | cli_mac_filter.cpp | 274 for (size_t index = 0; index < OT_ARRAY_LENGTH(kModeCommands); index++) in Process()
|
D | cli_link_metrics.cpp | 588 if (aStatus < OT_ARRAY_LENGTH(kStatusStrings)) in LinkMetricsStatusToStr()
|
D | cli_mesh_diag.cpp | 359 …for (uint8_t id = 0; id < static_cast<uint8_t>(OT_ARRAY_LENGTH(aRouterInfo->mLinkQualities)); id++) in HandleMeshDiagDiscoverDone()
|
D | cli_tcp.cpp | 612 uint32_t toSendOut = OT_MIN(OT_ARRAY_LENGTH(mBenchmarkLinks), benchmarkLinksLeft); in Process() 867 if (mBenchmarkBytesUnsent >= OT_ARRAY_LENGTH(mBenchmarkLinks) * sizeof(mSendBufferBytes)) in HandleTcpSendDone()
|
D | cli_dns.cpp | 505 for (size_t index = 0; index < OT_ARRAY_LENGTH(kServiceModeStrings); index++) in ParseDnsServiceMode()
|
D | cli.cpp | 3760 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/ |
D | rcp_caps_diag.cpp | 536 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()
|
D | spinel_manager.cpp | 81 mode = mSpinelDriver.Init(*mSpinelInterface, swReset, iidList, OT_ARRAY_LENGTH(iidList)); in Init()
|
D | hdlc_interface.cpp | 686 … index < OT_ARRAY_LENGTH(argv) && (arg = aRadioUrl.GetValue("forkpty-arg", arg)) != nullptr; in ForkPty() 691 if (index < OT_ARRAY_LENGTH(argv)) in ForkPty()
|
D | trel.cpp | 307 for (uint16_t index = 0; index < OT_ARRAY_LENGTH(sTxPacketPool); index++) in InitPacketQueue()
|
/openthread-latest/src/posix/ |
D | main.c | 271 OT_ARRAY_LENGTH(aConfig->mPlatformConfig.mCoprocessorUrls.mUrls), in ParseArg() 385 IgnoreError(otCliSetUserCommands(kCommands, OT_ARRAY_LENGTH(kCommands), instance)); in main()
|
/openthread-latest/tests/gtest/ |
D | fake_coprocessor_platform.cpp | 98 mSpinelDriver.Init(mSpinelInterface, false, iids, OT_ARRAY_LENGTH(iids)); in FakeCoprocessorPlatform()
|
/openthread-latest/examples/apps/cli/ |
D | main.c | 144 IgnoreError(otCliSetUserCommands(kCommands, OT_ARRAY_LENGTH(kCommands), instance)); in main()
|