/openthread-2.7.6/src/lib/hdlc/ |
D | hdlc.cpp | 203 : mState(kStateNoSync) in Decoder() 214 mState = kStateNoSync; in Reset() 225 switch (mState) in Decode() 230 mState = kStateSync; in Decode() 241 mState = kStateEscaped; in Decode() 278 mState = kStateNoSync; in Decode() 293 mState = kStateSync; in Decode() 298 mState = kStateNoSync; in Decode()
|
/openthread-2.7.6/src/core/meshcop/ |
D | dtls.cpp | 65 , mState(kStateClosed) in Dtls() 133 VerifyOrExit(mState == kStateClosed, error = kErrorAlready); in Open() 140 mState = kStateOpen; in Open() 150 VerifyOrExit(mState == kStateOpen, error = kErrorInvalidState); in Connect() 169 switch (mState) in HandleUdpReceive() 199 if (mState == MeshCoP::Dtls::kStateConnecting) in HandleUdpReceive() 220 VerifyOrExit(mState == kStateOpen, error = kErrorInvalidState); in Bind() 233 VerifyOrExit(mState == kStateOpen, error = kErrorInvalidState); in Bind() 249 VerifyOrExit(mState == kStateOpen, rval = MBEDTLS_ERR_SSL_TIMEOUT); in Setup() 251 mState = kStateInitializing; in Setup() [all …]
|
D | joiner.cpp | 60 , mState(kStateIdle) in Joiner() 92 VerifyOrExit(mState == kStateIdle, error = kErrorInvalidState); in SetDiscerner() 105 VerifyOrExit(mState == kStateIdle, error = kErrorInvalidState); in ClearDiscerner() 117 State oldState = mState; in SetState() 120 SuccessOrExit(Get<Notifier>().Update(mState, aState, kEventJoinerStateChanged)); in SetState() 147 VerifyOrExit(mState == kStateIdle, error = kErrorBusy); in Start() 207 switch (mState) in Finish() 281 VerifyOrExit(mState == kStateDiscover); in HandleDiscoverResult() 411 VerifyOrExit(mState == kStateConnect); in HandleSecureCoapClientConnect() 496 VerifyOrExit(mState == kStateIdle && mFinalizeMessage != nullptr); in FreeJoinerFinalizeMessage() [all …]
|
D | commissioner.cpp | 72 , mState(kStateDisabled) in Commissioner() 91 State oldState = mState; in SetState() 95 SuccessOrExit(Get<Notifier>().Update(mState, aState, kEventCommissionerStateChanged)); in SetState() 101 mStateCallback(static_cast<otCommissionerState>(mState), mCallbackContext); in SetState() 304 VerifyOrExit(mState == kStateDisabled, error = kErrorAlready); in Start() 336 VerifyOrExit(mState != kStateDisabled, error = kErrorAlready); in Stop() 340 if (mState == kStateActive) in Stop() 347 else if (mState == kStatePetition) in Stop() 407 VerifyOrExit(mState == kStateActive, error = kErrorInvalidState); in SendCommissionerSet() 441 VerifyOrExit(mState == kStateActive, error = kErrorInvalidState); in AddJoiner() [all …]
|
D | commissioner.hpp | 253 bool IsActive(void) const { return mState == kStateActive; } in IsActive() 261 bool IsDisabled(void) const { return mState == kStateDisabled; } in IsDisabled() 269 State GetState(void) const { return mState; } in GetState() 469 State mState; member in ot::MeshCoP::Commissioner
|
D | dtls.hpp | 178 bool IsConnectionActive(void) const { return mState >= kStateConnecting; } in IsConnectionActive() 187 bool IsConnected(void) const { return mState == kStateConnected; } in IsConnected() 413 State mState; member in ot::MeshCoP::Dtls
|
D | joiner.hpp | 123 State GetState(void) const { return mState; } in GetState() 229 State mState; member in ot::MeshCoP::Joiner
|
D | border_agent.cpp | 294 , mState(kStateStopped) in BorderAgent() 564 mState = kStateActive; in HandleConnected() 572 mState = kStateStarted; in HandleConnected() 587 VerifyOrExit(mState == kStateStopped, error = kErrorAlready); in Start() 606 mState = kStateStarted; in Start() 636 VerifyOrExit(mState != kStateStopped); in Stop() 655 mState = kStateStopped; in Stop() 666 VerifyOrExit(mState == kStateActive); in ApplyMeshLocalPrefix()
|
/openthread-2.7.6/src/core/utils/ |
D | channel_manager.cpp | 56 , mState(kStateIdle) in ChannelManager() 74 if (mState == kStateChangeInProgress) in RequestChannelChange() 79 mState = kStateChangeRequested; in RequestChannelChange() 112 mState = kStateChangeInProgress; in StartDatasetUpdate() 127 mState = kStateIdle; in StartDatasetUpdate() 150 mState = kStateIdle; in HandleDatasetUpdateDone() 161 switch (mState) in HandleTimer() 295 VerifyOrExit(mState == kStateIdle); in StartAutoSelectTimer() 329 …if (mAutoSelectEnabled && (mState == kStateIdle) && mTimer.IsRunning() && (prevInterval != aInterv… in SetAutoChannelSelectionInterval()
|
/openthread-2.7.6/src/core/thread/ |
D | topology.hpp | 215 State GetState(void) const { return static_cast<State>(mState); } in GetState() 223 void SetState(State aState) { mState = static_cast<uint8_t>(aState); } in SetState() 231 bool IsStateInvalid(void) const { return (mState == kStateInvalid); } in IsStateInvalid() 239 bool IsStateChildIdRequest(void) const { return (mState == kStateChildIdRequest); } in IsStateChildIdRequest() 247 bool IsStateLinkRequest(void) const { return (mState == kStateLinkRequest); } in IsStateLinkRequest() 255 bool IsStateParentResponse(void) const { return (mState == kStateParentResponse); } in IsStateParentResponse() 263 …bool IsStateRestoring(void) const { return (mState == kStateRestored) || (mState == kStateChildUpd… in IsStateRestoring() 271 bool IsStateRestored(void) const { return (mState == kStateRestored); } in IsStateRestored() 279 bool IsStateValid(void) const { return (mState == kStateValid); } in IsStateValid() 289 … bool IsStateValidOrRestoring(void) const { return (mState == kStateValid) || IsStateRestoring(); } in IsStateValidOrRestoring() [all …]
|
D | discover_scanner.cpp | 53 , mState(kStateIdle) in DiscoverScanner() 78 VerifyOrExit(mState == kStateIdle, error = kErrorBusy); in Discover() 156 …mState = (mScanChannels.GetNextChannel(mScanChannel) == kErrorNone) ? kStateScanning : kStat… in Discover() 186 switch (mState) in PrepareDiscoveryRequestFrame() 207 switch (mState) in HandleDiscoveryRequestFrameTxDone() 230 switch (mState) in HandleDiscoverComplete() 250 mState = kStateIdle; in HandleDiscoverComplete() 268 VerifyOrExit(mState == kStateScanning); in HandleTimer() 279 mState = kStateScanDone; in HandleTimer() 303 VerifyOrExit(mState == kStateScanning, error = kErrorDrop); in HandleDiscoveryResponse()
|
D | discover_scanner.hpp | 138 bool IsInProgress(void) const { return (mState != kStateIdle); } in IsInProgress() 180 State mState; member in ot::Mle::DiscoverScanner
|
D | network_data_publisher.hpp | 290 : mState(kNoEntry) in Entry() 295 State GetState(void) const { return mState; } in GetState() 304 bool IsAdded(void) const { return (mState == kAdded); } in IsAdded() 313 State mState; member in ot::NetworkData::Publisher::Entry
|
/openthread-2.7.6/src/core/radio/ |
D | trel_link.cpp | 48 , mState(kStateDisabled) in Link() 78 if (mState == kStateDisabled) in Enable() 86 if (mState != kStateDisabled) in Disable() 94 OT_ASSERT(mState != kStateDisabled); in Sleep() 100 OT_ASSERT(mState != kStateDisabled); in Receive() 107 OT_ASSERT(mState != kStateDisabled); in Send() 132 VerifyOrExit(mState == kStateTransmit); in BeginTransmit() 323 VerifyOrExit((mState == kStateReceive) || (mState == kStateTransmit)); in ProcessReceivedPacket() 441 if (mState != aState) in SetState() 443 otLogDebgMac("Trel: State: %s -> %s", StateToString(mState), StateToString(aState)); in SetState() [all …]
|
/openthread-2.7.6/src/core/backbone_router/ |
D | bbr_local.hpp | 100 BackboneRouterState GetState(void) const { return mState; } in GetState() 148 bool IsPrimary(void) const { return mState == OT_BACKBONE_ROUTER_STATE_PRIMARY; } in IsPrimary() 157 bool IsEnabled(void) const { return mState != OT_BACKBONE_ROUTER_STATE_DISABLED; } in IsEnabled() 270 BackboneRouterState mState; member in ot::BackboneRouter::Local
|
D | bbr_local.cpp | 52 , mState(OT_BACKBONE_ROUTER_STATE_DISABLED) in Local() 84 VerifyOrExit(aEnable == (mState == OT_BACKBONE_ROUTER_STATE_DISABLED)); in SetEnabled() 105 VerifyOrExit(mState != OT_BACKBONE_ROUTER_STATE_DISABLED); in Reset() 109 if (mState == OT_BACKBONE_ROUTER_STATE_PRIMARY) in Reset() 177 VerifyOrExit(mState != OT_BACKBONE_ROUTER_STATE_DISABLED && Get<Mle::Mle>().IsAttached()); in AddService() 213 VerifyOrExit(mState != aState); in SetState() 215 if (mState == OT_BACKBONE_ROUTER_STATE_DISABLED) in SetState() 221 if (mState == OT_BACKBONE_ROUTER_STATE_PRIMARY) in SetState() 232 mState = aState; in SetState() 244 VerifyOrExit(mState != OT_BACKBONE_ROUTER_STATE_DISABLED && Get<Mle::MleRouter>().IsAttached()); in HandleBackboneRouterPrimaryUpdate()
|
/openthread-2.7.6/src/ncp/ |
D | ncp_hdlc.cpp | 87 , mState(kStartingFrame) in NcpHdlc() 137 while (!txFrameBuffer.IsEmpty() || (mState == kFinalizingFrame)) in EncodeAndSend() 139 switch (mState) in EncodeAndSend() 153 mState = kEncodingFrame; in EncodeAndSend() 182 mState = kFinalizingFrame; in EncodeAndSend() 190 mState = kStartingFrame; in EncodeAndSend()
|
/openthread-2.7.6/src/core/mac/ |
D | sub_mac.cpp | 55 , mState(kStateDisabled) in SubMac() 165 VerifyOrExit(mState == kStateDisabled); in Enable() 282 … otLogDebgMac("Received frame in state (SubMac %s, CSL %s), timestamp %u", StateToString(mState), in HandleReceiveDone() 297 switch (mState) in Send() 437 VerifyOrExit(mState == kStateCsmaBackoff || mState == kStateCslTransmit); in BeginTransmit() 439 VerifyOrExit(mState == kStateCsmaBackoff); in BeginTransmit() 607 switch (mState) in EnergyScan() 691 switch (mState) in HandleTimer() 827 if (mState != aState) in SetState() 829 otLogDebgMac("RadioState: %s -> %s", StateToString(mState), StateToString(aState)); in SetState() [all …]
|
D | sub_mac.hpp | 315 …bool IsTransmittingOrScanning(void) const { return (mState == kStateTransmit) || (mState == kState… in IsTransmittingOrScanning() 633 State mState; member in ot::Mac::SubMac
|
/openthread-2.7.6/tests/unit/ |
D | test_child_table.cpp | 49 Child::State mState; member 65 return (aChild.GetState() == aTestChild.mState) && (aChild.GetRloc16() == aTestChild.mRloc16) && in ChildMatches() 129 if (!StateMatchesFilter(aChildList[listIndex].mState, filter)) in VerifyChildTableContent() 211 if (StateMatchesFilter(aChildList[index].mState, filter)) in VerifyChildTableContent() 334 child->SetState(testChildList[i].mState); in TestChildTable() 356 child->SetState(testChildList[i - 1].mState); in TestChildTable()
|
/openthread-2.7.6/src/core/common/ |
D | random_manager.cpp | 122 mState = aSeed; in Init() 130 tmpstate = static_cast<uint64_t>(33614) * static_cast<uint64_t>(mState); in GetNext() 142 mState = mlcg; in GetNext()
|
/openthread-2.7.6/src/core/net/ |
D | srp_client.hpp | 151 ItemState GetState(void) const { return static_cast<ItemState>(mState); } in GetState() 262 ItemState GetState(void) const { return static_cast<ItemState>(mState); } in GetState() 383 bool IsRunning(void) const { return (mState != kStateStopped); } in IsRunning() 809 State GetState(void) const { return mState; } in GetState() 858 State mState; member in ot::Srp::Client
|
/openthread-2.7.6/include/openthread/ |
D | srp_client.h | 80 otSrpClientItemState mState; ///< Host info state. member 109 otSrpClientItemState mState; ///< Service state (managed by OT core). member
|
/openthread-2.7.6/src/lib/spinel/ |
D | radio_spinel_impl.hpp | 193 , mState(kStateDisabled) in RadioSpinel() 578 if (mState == kStateTransmitting) in HandleResponse() 1026 switch (mState) in RadioReceive() 1074 if (mState == kStateTransmitDone) in ProcessRadioStateMachine() 1076 mState = kStateReceive; in ProcessRadioStateMachine() 1081 else if (mState == kStateTransmitting && otPlatTimeGet() >= mTxRadioEndUs) in ProcessRadioStateMachine() 1900 mState = kStateTransmitDone; in HandleTransmitDone() 1910 …VerifyOrExit(mState == kStateReceive || (mState == kStateSleep && (mRadioCaps & OT_RADIO_CAPS_SLEE… in Transmit() 1937 mState = kStateTransmitting; in Transmit() 1951 VerifyOrExit(mState != kStateDisabled, error = OT_ERROR_INVALID_STATE); in Receive() [all …]
|
D | radio_spinel.hpp | 530 bool IsEnabled(void) const { return mState != kStateDisabled; } in IsEnabled() 539 bool IsTransmitting(void) const { return mState == kStateTransmitting; } in IsTransmitting() 548 bool IsTransmitDone(void) const { return mState == kStateTransmitDone; } in IsTransmitDone() 961 State mState; member in ot::Spinel::RadioSpinel
|