Home
last modified time | relevance | path

Searched refs:OT_ERROR_NONE (Results 1 – 25 of 67) sorted by relevance

123

/openthread-2.7.6/tests/unit/
Dtest_cmd_line_parser.cpp71 if (testCase->mError != OT_ERROR_NONE) in VerifyParser()
86 if (error == OT_ERROR_NONE) in VerifyParser()
103 {"0", OT_ERROR_NONE, false}, // Zero as false value in TestParsingInts()
104 {"1", OT_ERROR_NONE, true}, // Non-zero as true value in TestParsingInts()
105 {"0x0", OT_ERROR_NONE, false}, // Zero as false value in TestParsingInts()
106 {"0x1", OT_ERROR_NONE, true}, // Non-zero (in hex) as true value in TestParsingInts()
107 {"10", OT_ERROR_NONE, true}, // Non-zero as true value in TestParsingInts()
114 {"0", OT_ERROR_NONE, 0}, in TestParsingInts()
115 {"1", OT_ERROR_NONE, 1}, in TestParsingInts()
116 {"74", OT_ERROR_NONE, 74}, in TestParsingInts()
[all …]
Dtest_platform.cpp248 return OT_ERROR_NONE; in otPlatRadioEnable()
258 return OT_ERROR_NONE; in otPlatRadioDisable()
263 return OT_ERROR_NONE; in otPlatRadioSleep()
273 return OT_ERROR_NONE; in otPlatRadioReceive()
285 return OT_ERROR_NONE; in otPlatRadioTransmit()
323 return OT_ERROR_NONE; in otPlatRadioAddSrcMatchShortEntry()
330 return OT_ERROR_NONE; in otPlatRadioAddSrcMatchExtEntry()
337 return OT_ERROR_NONE; in otPlatRadioClearSrcMatchShortEntry()
344 return OT_ERROR_NONE; in otPlatRadioClearSrcMatchExtEntry()
380 otError error = OT_ERROR_NONE; in otPlatEntropyGet()
[all …]
/openthread-2.7.6/src/lib/spinel/
Dspinel_decoder.cpp72 otError error = OT_ERROR_NONE; in ReadBool()
97 otError error = OT_ERROR_NONE; in ReadUint8()
109 otError error = OT_ERROR_NONE; in ReadInt8()
121 otError error = OT_ERROR_NONE; in ReadUint16()
135 otError error = OT_ERROR_NONE; in ReadInt16()
147 otError error = OT_ERROR_NONE; in ReadUint32()
162 otError error = OT_ERROR_NONE; in ReadInt32()
174 otError error = OT_ERROR_NONE; in ReadUint64()
191 otError error = OT_ERROR_NONE; in ReadInt64()
203 otError error = OT_ERROR_NONE; in ReadUintPacked()
[all …]
Dspinel_encoder.cpp46 return OT_ERROR_NONE; in BeginFrame()
51 otError error = OT_ERROR_NONE; in BeginFrame()
73 otError error = OT_ERROR_NONE; in BeginFrame()
92 otError error = OT_ERROR_NONE; in OverwriteWithLastStatusError()
104 otError error = OT_ERROR_NONE; in EndFrame()
119 otError error = OT_ERROR_NONE; in WriteUint16()
130 otError error = OT_ERROR_NONE; in WriteUint32()
143 otError error = OT_ERROR_NONE; in WriteUint64()
170 otError error = OT_ERROR_NONE; in WriteDataWithLen()
198 otError error = OT_ERROR_NONE; in OpenStruct()
[all …]
Dspinel_buffer.cpp226 otError error = OT_ERROR_NONE; in InFrameAppend()
251 otError error = OT_ERROR_NONE; in InFrameBeginSegment()
362 otError error = OT_ERROR_NONE; in InFrameFeedByte()
377 otError error = OT_ERROR_NONE; in InFrameFeedData()
397 otError error = OT_ERROR_NONE; in InFrameFeedMessage()
418 otError error = OT_ERROR_NONE; in InFrameGetPosition()
434 otError error = OT_ERROR_NONE; in InFrameOverwrite()
484 otError error = OT_ERROR_NONE; in InFrameReset()
506 otError error = OT_ERROR_NONE; in InFrameEnd()
565 otError error = OT_ERROR_NONE; in OutFramePrepareSegment()
[all …]
Dradio_spinel_impl.hpp90 ret = OT_ERROR_NONE; in SpinelStatusToOtError()
162 if (aError != OT_ERROR_NONE) in LogIfFail()
186 , mError(OT_ERROR_NONE) in RadioSpinel()
227 otError error = OT_ERROR_NONE; in Init()
256 … exitCode = (RestoreDatasetFromNcp() == OT_ERROR_NONE) ? OT_EXIT_SUCCESS : OT_EXIT_FAILURE; in Init()
280 otError error = OT_ERROR_NONE; in CheckSpinelVersion()
363 otError error = OT_ERROR_NONE; in CheckRadioCapabilities()
394 otError error = OT_ERROR_NONE; in CheckRcpApiVersion()
425 otError error = OT_ERROR_NONE; in RestoreDatasetFromNcp()
452 otError error = OT_ERROR_NONE; in HandleReceivedFrame()
[all …]
/openthread-2.7.6/src/ncp/
Dncp_base_ftd.cpp66 otError error = OT_ERROR_NONE; in EncodeChildInfo()
129 otError error = OT_ERROR_NONE; in HandleNeighborTableChanged()
181 if (error != OT_ERROR_NONE) in HandleNeighborTableChanged()
209 otError error = OT_ERROR_NONE; in HandlePropertyGet()
217 …if ((otThreadGetChildInfoByIndex(mInstance, index, &childInfo) != OT_ERROR_NONE) || childInfo.mIsS… in HandlePropertyGet()
233 otError error = OT_ERROR_NONE; in HandlePropertyGet()
241 …if ((otThreadGetRouterInfo(mInstance, routerId, &routerInfo) != OT_ERROR_NONE) || !routerInfo.mAll… in HandlePropertyGet()
267 otError error = OT_ERROR_NONE; in HandlePropertyGet()
277 if ((otThreadGetChildInfoByIndex(mInstance, childIndex, &childInfo) != OT_ERROR_NONE) || in HandlePropertyGet()
290 …le (otThreadGetChildNextIp6Address(mInstance, childIndex, &iterator, &ip6Address) == OT_ERROR_NONE) in HandlePropertyGet()
[all …]
Dncp_base.cpp86 case OT_ERROR_NONE: in ThreadErrorToSpinelStatus()
350 otError error = OT_ERROR_NONE; in HandleReceive()
379 if (error != OT_ERROR_NONE) in HandleReceive()
493 otError error = OT_ERROR_NONE; in StreamWrite()
668 otError error = OT_ERROR_NONE; in Log()
723 otError error = OT_ERROR_NONE; in EnqueueResponse()
790 otError error = OT_ERROR_NONE; in SendQueuedResponses()
903 otError error = OT_ERROR_NONE; in HandleCommand()
1011 otError error = OT_ERROR_NONE; in HandleCommandPropertySet()
1049 if (error == OT_ERROR_NONE) in HandleCommandPropertySet()
[all …]
Dncp_base_mtd.cpp217 otError error = OT_ERROR_NONE; in DecodeLinkMetrics()
249 otError error = OT_ERROR_NONE; in EncodeLinkMetricsValues()
296 otError error = OT_ERROR_NONE; in HandlePropertySet()
314 otError error = OT_ERROR_NONE; in HandlePropertySet()
332 otError error = OT_ERROR_NONE; in HandlePropertySet()
351 otError error = OT_ERROR_NONE; in HandlePropertySet()
419 if (aError == OT_ERROR_NONE) in HandleMlrRegResult()
439 otError error = OT_ERROR_NONE; in HandlePropertyGet()
462 otError error = OT_ERROR_NONE; in HandlePropertySet()
485 otError error = OT_ERROR_NONE; in HandlePropertySet()
[all …]
Dncp_base_radio.cpp67 if (aFrame != nullptr && aError == OT_ERROR_NONE) in PackRadioFrame()
115 error = OT_ERROR_NONE; in PackRadioFrame()
163 if (aError == OT_ERROR_NONE) in LinkRawTransmitDone()
236 otError error = OT_ERROR_NONE; in HandlePropertyGet()
246 otError error = OT_ERROR_NONE; in HandlePropertySet()
258 otError error = OT_ERROR_NONE; in HandlePropertySet()
279 otError error = OT_ERROR_NONE; in HandlePropertySet()
300 otError error = OT_ERROR_NONE; in HandlePropertyRemove()
313 otError error = OT_ERROR_NONE; in HandlePropertyRemove()
327 otError error = OT_ERROR_NONE; in HandlePropertyInsert()
[all …]
Dexample_vendor_hook.cpp42 otError error = OT_ERROR_NONE; in VendorCommandHandler()
73 otError error = OT_ERROR_NONE; in VendorGetPropertyHandler()
94 otError error = OT_ERROR_NONE; in VendorSetPropertyHandler()
/openthread-2.7.6/src/posix/platform/
Dsettings.cpp169 otError error = OT_ERROR_NONE; in otPlatSettingsInit()
261 error = OT_ERROR_NONE; in otPlatSettingsGet()
295 otError error = OT_ERROR_NONE; in otPlatSettingsSet()
306 case OT_ERROR_NONE: in otPlatSettingsSet()
332 otError error = OT_ERROR_NONE; in otPlatSettingsAdd()
429 error = OT_ERROR_NONE; in platformSettingsDelete()
435 error = OT_ERROR_NONE; in platformSettingsDelete()
462 else if (error == OT_ERROR_NONE) in platformSettingsDelete()
521 assert(otPlatSettingsSet(instance, 0, data, sizeof(data) / 2) == OT_ERROR_NONE); in main()
526 assert(otPlatSettingsGet(instance, 0, 0, nullptr, nullptr) == OT_ERROR_NONE); in main()
[all …]
Dudp.cpp103 otError error = OT_ERROR_NONE; in transmitPacket()
230 return rval > 0 ? OT_ERROR_NONE : OT_ERROR_FAILED; in receivePacket()
237 otError error = OT_ERROR_NONE; in otPlatUdpSocket()
253 otError error = OT_ERROR_NONE; in otPlatUdpClose()
271 otError error = OT_ERROR_NONE; in otPlatUdpBind()
306 otError error = OT_ERROR_NONE; in otPlatUdpBindToNetif()
364 otError error = OT_ERROR_NONE; in otPlatUdpConnect()
430 otError error = OT_ERROR_NONE; in otPlatUdpSend()
458 if (error == OT_ERROR_NONE) in otPlatUdpSend()
470 otError error = OT_ERROR_NONE; in otPlatUdpJoinMulticastGroup()
[all …]
Dnetif.cpp441 otError error = OT_ERROR_NONE; in UpdateMulticast()
484 otError error = OT_ERROR_NONE; in UpdateLink()
513 if (error != OT_ERROR_NONE) in UpdateLink()
555 otError error = OT_ERROR_NONE; in AddExternalRoute()
605 otError error = OT_ERROR_NONE; in DeleteExternalRoute()
648 while (otNetDataGetNextRoute(aInstance, &iterator, &config) == OT_ERROR_NONE) in HasExternalRouteInNetData()
687 if ((error = DeleteExternalRoute(sAddedExternalRoutes[i])) != OT_ERROR_NONE) in UpdateExternalRoutes()
701 while (otNetDataGetNextRoute(aInstance, &iterator, &config) == OT_ERROR_NONE) in UpdateExternalRoutes()
709 if ((error = AddExternalRoute(config.mPrefix)) != OT_ERROR_NONE) in UpdateExternalRoutes()
756 otError error = OT_ERROR_NONE; in processReceive()
[all …]
/openthread-2.7.6/tests/fuzz/
Dfuzzer_platform.cpp107 otPlatRadioTxDone(aInstance, &sRadioTransmitFrame, &sRadioAckFrame, OT_ERROR_NONE); in FuzzerPlatformProcess()
111 otPlatRadioTxDone(aInstance, &sRadioTransmitFrame, nullptr, OT_ERROR_NONE); in FuzzerPlatformProcess()
284 return OT_ERROR_NONE; in otPlatRadioEnable()
293 return OT_ERROR_NONE; in otPlatRadioDisable()
302 return OT_ERROR_NONE; in otPlatRadioSleep()
312 return OT_ERROR_NONE; in otPlatRadioReceive()
321 return OT_ERROR_NONE; in otPlatRadioTransmit()
328 return OT_ERROR_NONE; in otPlatRadioGetTransmitPower()
365 return OT_ERROR_NONE; in otPlatRadioAddSrcMatchShortEntry()
372 return OT_ERROR_NONE; in otPlatRadioAddSrcMatchExtEntry()
[all …]
/openthread-2.7.6/src/cli/
Dcli.cpp151 case OT_ERROR_NONE: in OutputResult()
260 otError error = OT_ERROR_NONE; in ParseEnableOrDisable()
302 otError error = OT_ERROR_NONE; in ParsePingInterval()
363 return OT_ERROR_NONE; in ProcessHelp()
376 otError error = OT_ERROR_NONE; in ProcessBorderAgent()
416 otError error = OT_ERROR_NONE; in ProcessBorderRouting()
419 if (ParseEnableOrDisable(aArgs[0], enable) == OT_ERROR_NONE) in ProcessBorderRouting()
457 if (otBackboneRouterGetPrimary(mInstance, &config) == OT_ERROR_NONE) in ProcessBackboneRouter()
470 error = OT_ERROR_NONE; in ProcessBackboneRouter()
529 ExitNow(error = OT_ERROR_NONE); in ProcessBackboneRouterMgmtMlr()
[all …]
Dcli_network_data.cpp207 return OT_ERROR_NONE; in ProcessHelp()
213 otError error = OT_ERROR_NONE; in ProcessPublish()
275 otError error = OT_ERROR_NONE; in ProcessUnpublish()
289 if (aArgs[0].ParseAsIp6Prefix(prefix) == OT_ERROR_NONE) in ProcessUnpublish()
309 otError error = OT_ERROR_NONE; in ProcessRegister()
360 … while (otNetDataGetNextOnMeshPrefix(mInterpreter.mInstance, &iterator, &config) == OT_ERROR_NONE) in OutputPrefixes()
373 while (otNetDataGetNextRoute(mInterpreter.mInstance, &iterator, &config) == OT_ERROR_NONE) in OutputRoutes()
386 while (otNetDataGetNextService(mInterpreter.mInstance, &iterator, &config) == OT_ERROR_NONE) in OutputServices()
394 otError error = OT_ERROR_NONE; in OutputBinary()
416 error = OT_ERROR_NONE; in ProcessShow()
Dcli_joiner.cpp58 error = OT_ERROR_NONE; in ProcessDiscerner()
91 return OT_ERROR_NONE; in ProcessHelp()
101 return OT_ERROR_NONE; in ProcessId()
129 return OT_ERROR_NONE; in ProcessStop()
161 case OT_ERROR_NONE: in HandleCallback()
Dcli_dataset.cpp124 return OT_ERROR_NONE; in Print()
155 return OT_ERROR_NONE; in ProcessHelp()
241 otError error = OT_ERROR_NONE; in ProcessActiveTimestamp()
262 otError error = OT_ERROR_NONE; in ProcessChannel()
283 otError error = OT_ERROR_NONE; in ProcessChannelMask()
307 return OT_ERROR_NONE; in ProcessClear()
328 otError error = OT_ERROR_NONE; in ProcessDelay()
349 otError error = OT_ERROR_NONE; in ProcessExtPanId()
371 otError error = OT_ERROR_NONE; in ProcessMeshLocalPrefix()
398 otError error = OT_ERROR_NONE; in ProcessNetworkKey()
[all …]
Dcli_srp_server.cpp70 otError error = OT_ERROR_NONE; in ProcessDomain()
104 return OT_ERROR_NONE; in ProcessState()
113 return OT_ERROR_NONE; in ProcessEnable()
122 return OT_ERROR_NONE; in ProcessDisable()
127 otError error = OT_ERROR_NONE; in ProcessLease()
155 otError error = OT_ERROR_NONE; in ProcessHost()
220 otError error = OT_ERROR_NONE; in ProcessService()
292 return OT_ERROR_NONE; in ProcessHelp()
Dcli_coap_secure.cpp104 return OT_ERROR_NONE; in ProcessHelp()
109 otError error = OT_ERROR_NONE; in ProcessResource()
147 otError error = OT_ERROR_NONE; in ProcessSet()
166 otError error = OT_ERROR_NONE; in ProcessStart()
214 return OT_ERROR_NONE; in ProcessStop()
239 otError error = OT_ERROR_NONE; in ProcessRequest()
379 if ((error != OT_ERROR_NONE) && (message != nullptr)) in ProcessRequest()
413 return OT_ERROR_NONE; in ProcessDisconnect()
419 otError error = OT_ERROR_NONE; in ProcessPsk()
456 return OT_ERROR_NONE; in ProcessX509()
[all …]
Dcli_coap.cpp79 otError error = OT_ERROR_NONE; in CancelResourceSubscription()
106 if ((error != OT_ERROR_NONE) && (message != nullptr)) in CancelResourceSubscription()
165 return OT_ERROR_NONE; in ProcessHelp()
170 otError error = OT_ERROR_NONE; in ProcessResource()
213 otError error = OT_ERROR_NONE; in ProcessSet()
260 if ((error != OT_ERROR_NONE) && (notificationMessage != nullptr)) in ProcessSet()
291 otError error = OT_ERROR_NONE; in ProcessParameters()
380 otError error = OT_ERROR_NONE; in ProcessRequest()
571 if ((error != OT_ERROR_NONE) && (message != nullptr)) in ProcessRequest()
606 otError error = OT_ERROR_NONE; in HandleRequest()
[all …]
Dcli_udp.cpp63 return OT_ERROR_NONE; in ProcessHelp()
130 otError error = OT_ERROR_NONE; in ProcessSend()
198 otError error = OT_ERROR_NONE; in ProcessLinkSecurity()
214 otError error = OT_ERROR_NONE; in PrepareAutoGeneratedPayload()
259 VerifyOrExit((error == OT_ERROR_NONE) || (error == OT_ERROR_PENDING)); in PrepareHexStringPaylod()
260 done = (error == OT_ERROR_NONE); in PrepareHexStringPaylod()
/openthread-2.7.6/examples/platforms/simulation/
Dradio.c172 otEXPECT(otMacFrameGetSrcAddr(aFrame, &src) == OT_ERROR_NONE); in hasFramePending()
410 return OT_ERROR_NONE; in otPlatRadioEnable()
415 otError error = OT_ERROR_NONE; in otPlatRadioDisable()
436 error = OT_ERROR_NONE; in otPlatRadioSleep()
453 error = OT_ERROR_NONE; in otPlatRadioReceive()
475 error = OT_ERROR_NONE; in otPlatRadioTransmit()
573 otPlatDiagRadioTransmitDone(aInstance, &sTransmitFrame, OT_ERROR_NONE); in radioReceive()
578 … otPlatRadioTxDone(aInstance, &sTransmitFrame, (isAck ? &sReceiveFrame : NULL), OT_ERROR_NONE); in radioReceive()
606 otError error = OT_ERROR_NONE; in radioProcessTransmitSecurity()
689 otEXPECT(radioProcessTransmitSecurity(&sTransmitFrame) == OT_ERROR_NONE); in radioSendMessage()
[all …]
/openthread-2.7.6/src/lib/hdlc/
Dhdlc.cpp135 otError error = OT_ERROR_NONE; in Encode()
157 otError error = OT_ERROR_NONE; in Encode()
168 if (error != OT_ERROR_NONE) in Encode()
179 otError error = OT_ERROR_NONE; in EndFrame()
193 if (error != OT_ERROR_NONE) in EndFrame()
258 error = OT_ERROR_NONE; in Decode()

123