Home
last modified time | relevance | path

Searched refs:mInstance (Results 1 – 25 of 27) sorted by relevance

12

/openthread-2.7.6/src/ncp/
Dncp_base_ftd.cpp199 return mEncoder.WriteUint8(otThreadGetLocalLeaderWeight(mInstance)); in HandlePropertyGet()
204 return mEncoder.WriteUint8(otThreadGetLeaderWeight(mInstance)); in HandlePropertyGet()
213 maxChildren = otThreadGetMaxAllowedChildren(mInstance); in HandlePropertyGet()
217 …if ((otThreadGetChildInfoByIndex(mInstance, index, &childInfo) != OT_ERROR_NONE) || childInfo.mIsS… in HandlePropertyGet()
237 maxRouterId = otThreadGetMaxRouterId(mInstance); in HandlePropertyGet()
241 …if ((otThreadGetRouterInfo(mInstance, routerId, &routerInfo) != OT_ERROR_NONE) || !routerInfo.mAll… in HandlePropertyGet()
273 maxChildren = otThreadGetMaxAllowedChildren(mInstance); in HandlePropertyGet()
277 if ((otThreadGetChildInfoByIndex(mInstance, childIndex, &childInfo) != OT_ERROR_NONE) || in HandlePropertyGet()
290 …while (otThreadGetChildNextIp6Address(mInstance, childIndex, &iterator, &ip6Address) == OT_ERROR_N… in HandlePropertyGet()
304 return mEncoder.WriteBool(otThreadIsRouterEligible(mInstance)); in HandlePropertyGet()
[all …]
Dncp_base_mtd.cpp300 error = otLinkCslSetPeriod(mInstance, cslPeriod); in HandlePropertySet()
308 return mEncoder.WriteUint16(otLinkCslGetPeriod(mInstance)); in HandlePropertyGet()
318 error = otLinkCslSetTimeout(mInstance, cslTimeout); in HandlePropertySet()
326 return mEncoder.WriteUint32(otLinkCslGetTimeout(mInstance)); in HandlePropertyGet()
336 error = otLinkCslSetChannel(mInstance, cslChannel); in HandlePropertySet()
344 return mEncoder.WriteUint8(otLinkCslGetChannel(mInstance)); in HandlePropertyGet()
390 SuccessOrExit(error = otIp6RegisterMulticastListeners(mInstance, addresses, addressesCount, in HandlePropertySet()
442 SuccessOrExit(error = otBackboneRouterGetPrimary(mInstance, &bbrConfig)); in HandlePropertyGet()
456 return mEncoder.WriteUint32(otLinkGetPollPeriod(mInstance)); in HandlePropertyGet()
466 error = otLinkSetPollPeriod(mInstance, pollPeriod); in HandlePropertySet()
[all …]
Dncp_base.cpp212 : mInstance(aInstance) in NcpBase()
272 OT_ASSERT(mInstance != nullptr); in NcpBase()
282 IgnoreError(otSetStateChangedCallback(mInstance, &NcpBase::HandleStateChanged, this)); in NcpBase()
283 otIp6SetReceiveCallback(mInstance, &NcpBase::HandleDatagramFromStack, this); in NcpBase()
284 otIp6SetReceiveFilterEnabled(mInstance, true); in NcpBase()
286 otNetworkTimeSyncSetCallback(mInstance, &NcpBase::HandleTimeSyncUpdate, this); in NcpBase()
289 otUdpForwardSetForwarder(mInstance, &NcpBase::HandleUdpForwardStream, this); in NcpBase()
291 otIcmp6SetEchoMode(mInstance, OT_ICMP6_ECHO_HANDLER_DISABLED); in NcpBase()
293 otThreadRegisterNeighborTableCallback(mInstance, &NcpBase::HandleNeighborTableChanged); in NcpBase()
297 …otThreadRegisterParentResponseCallback(mInstance, &NcpBase::HandleParentResponseInfo, static_cast<… in NcpBase()
[all …]
Dncp_base_radio.cpp202 IgnoreError(otLinkRawReceive(mInstance)); in LinkRawEnergyScanDone()
225 return mEncoder.WriteUintPacked(otLinkRawGetCaps(mInstance)); in HandlePropertyGet()
238 SuccessOrExit(error = mEncoder.WriteUint64(otLinkRawGetRadioTime(mInstance))); in HandlePropertyGet()
250 error = otLinkRawSrcMatchEnable(mInstance, mSrcMatchEnabled); in HandlePropertySet()
261 SuccessOrExit(error = otLinkRawSrcMatchClearShortEntries(mInstance)); in HandlePropertySet()
270 SuccessOrExit(error = otLinkRawSrcMatchAddShortEntry(mInstance, shortAddress)); in HandlePropertySet()
282 SuccessOrExit(error = otLinkRawSrcMatchClearExtEntries(mInstance)); in HandlePropertySet()
291 SuccessOrExit(error = otLinkRawSrcMatchAddExtEntry(mInstance, extAddress)); in HandlePropertySet()
305 error = otLinkRawSrcMatchClearShortEntry(mInstance, shortAddress); in HandlePropertyRemove()
319 error = otLinkRawSrcMatchClearExtEntry(mInstance, extAddress); in HandlePropertyRemove()
[all …]
/openthread-2.7.6/src/cli/
Dcli_srp_client.cpp66 otSrpClientSetCallback(mInterpreter.mInstance, SrpClient::HandleCallback, this); in SrpClient()
98 …Interpreter.OutputEnabledDisabledStatus(otSrpClientIsAutoStartModeEnabled(mInterpreter.mInstance)); in ProcessAutoStart()
106 …otSrpClientEnableAutoStartMode(mInterpreter.mInstance, /* aCallback */ nullptr, /* aContext */ nul… in ProcessAutoStart()
110 otSrpClientDisableAutoStartMode(mInterpreter.mInstance); in ProcessAutoStart()
153 OutputHostInfo(0, *otSrpClientGetHostInfo(mInterpreter.mInstance)); in ProcessHost()
161 const char *name = otSrpClientGetHostInfo(mInterpreter.mInstance)->mName; in ProcessHost()
171 hostName = otSrpClientBuffersGetHostNameString(mInterpreter.mInstance, &size); in ProcessHost()
182 … SuccessOrExit(error = otSrpClientSetHostName(mInterpreter.mInstance, aArgs[1].GetCString())); in ProcessHost()
185 IgnoreError(otSrpClientSetHostName(mInterpreter.mInstance, hostName)); in ProcessHost()
192 … otSrpClientItemStateToString(otSrpClientGetHostInfo(mInterpreter.mInstance)->mState)); in ProcessHost()
[all …]
Dcli.cpp102 : mInstance(aInstance) in Interpreter()
143 otThreadSetDiscoveryRequestCallback(mInstance, &Interpreter::HandleDiscoveryRequest, this); in Interpreter()
380 OutputLine("%hu", otBorderAgentGetUdpPort(mInstance)); in ProcessBorderAgent()
386 switch (otBorderAgentGetState(mInstance)) in ProcessBorderAgent()
421 SuccessOrExit(error = otBorderRoutingSetEnabled(mInstance, enable)); in ProcessBorderRouting()
427 SuccessOrExit(error = otBorderRoutingGetOmrPrefix(mInstance, &omrPrefix)); in ProcessBorderRouting()
435 SuccessOrExit(error = otBorderRoutingGetOnLinkPrefix(mInstance, &onLinkPrefix)); in ProcessBorderRouting()
457 if (otBackboneRouterGetPrimary(mInstance, &config) == OT_ERROR_NONE) in ProcessBackboneRouter()
497 otBackboneRouterConfigNextDuaRegistrationResponse(mInstance, mlIid, status); in ProcessBackboneRouter()
535 otBackboneRouterMulticastListenerClear(mInstance); in ProcessBackboneRouterMgmtMlr()
[all …]
Dcli_network_data.cpp223 otNetDataPublishDnsSrpServiceAnycast(mInterpreter.mInstance, sequenceNumber); in ProcessPublish()
235 otNetDataPublishDnsSrpServiceUnicastMeshLocalEid(mInterpreter.mInstance, port); in ProcessPublish()
241 otNetDataPublishDnsSrpServiceUnicast(mInterpreter.mInstance, &address, port); in ProcessPublish()
253 error = otNetDataPublishOnMeshPrefix(mInterpreter.mInstance, &config); in ProcessPublish()
262 error = otNetDataPublishExternalRoute(mInterpreter.mInstance, &config); in ProcessPublish()
280 otNetDataUnpublishDnsSrpService(mInterpreter.mInstance); in ProcessUnpublish()
291 error = otNetDataUnpublishPrefix(mInterpreter.mInstance, &prefix); in ProcessUnpublish()
312 SuccessOrExit(error = otBorderRouterRegister(mInterpreter.mInstance)); in ProcessRegister()
314 SuccessOrExit(error = otServerRegister(mInterpreter.mInstance)); in ProcessRegister()
342 error = otNetDataSteeringDataCheckJoinerWithDiscerner(mInterpreter.mInstance, &discerner); in ProcessSteeringData()
[all …]
Dcli_coap_secure.cpp131 otCoapSecureAddBlockWiseResource(mInterpreter.mInstance, &mResource); in ProcessResource()
133 otCoapSecureAddResource(mInterpreter.mInstance, &mResource); in ProcessResource()
181 otCoapSecureSetSslAuthMode(mInterpreter.mInstance, verifyPeerCert); in ProcessStart()
182 …otCoapSecureSetClientConnectedCallback(mInterpreter.mInstance, &CoapSecure::HandleConnected, this); in ProcessStart()
185 otCoapSecureSetDefaultHandler(mInterpreter.mInstance, &CoapSecure::DefaultHandler, this); in ProcessStart()
188 error = otCoapSecureStart(mInterpreter.mInstance, OT_DEFAULT_COAP_SECURE_PORT); in ProcessStart()
199 otCoapRemoveBlockWiseResource(mInterpreter.mInstance, &mResource); in ProcessStop()
201 otCoapRemoveResource(mInterpreter.mInstance, &mResource); in ProcessStop()
204 if (otCoapSecureIsConnectionActive(mInterpreter.mInstance)) in ProcessStop()
206 otCoapSecureDisconnect(mInterpreter.mInstance); in ProcessStop()
[all …]
Dcli_commissioner.cpp70 error = otCommissionerAnnounceBegin(mInterpreter.mInstance, mask, count, period, &address); in ProcessAnnounce()
91 …error = otCommissionerEnergyScan(mInterpreter.mInstance, mask, count, period, scanDuration, &addre… in ProcessEnergy()
139 …error = otCommissionerAddJoinerWithDiscerner(mInterpreter.mInstance, &discerner, aArgs[2].GetCStri… in ProcessJoiner()
144 … error = otCommissionerAddJoiner(mInterpreter.mInstance, addrPtr, aArgs[2].GetCString(), timeout); in ProcessJoiner()
151 error = otCommissionerRemoveJoinerWithDiscerner(mInterpreter.mInstance, &discerner); in ProcessJoiner()
155 error = otCommissionerRemoveJoiner(mInterpreter.mInstance, addrPtr); in ProcessJoiner()
208 error = otCommissionerSendMgmtGet(mInterpreter.mInstance, tlvs, static_cast<uint8_t>(length)); in ProcessMgmtGet()
270 error = otCommissionerSendMgmtSet(mInterpreter.mInstance, &dataset, tlvs, tlvsLength); in ProcessMgmtSet()
287 …error = otCommissionerPanIdQuery(mInterpreter.mInstance, panId, mask, &address, &Commissioner::Han… in ProcessPanId()
298 return otCommissionerSetProvisioningUrl(mInterpreter.mInstance, aArgs[0].GetCString()); in ProcessProvisioningUrl()
[all …]
Dcli_joiner.cpp53 const otJoinerDiscerner *discerner = otJoinerGetDiscerner(mInterpreter.mInstance); in ProcessDiscerner()
68 error = otJoinerSetDiscerner(mInterpreter.mInstance, nullptr); in ProcessDiscerner()
74 error = otJoinerSetDiscerner(mInterpreter.mInstance, &discerner); in ProcessDiscerner()
98 mInterpreter.OutputExtAddress(*otJoinerGetId(mInterpreter.mInstance)); in ProcessId()
110 error = otJoinerStart(mInterpreter.mInstance, in ProcessStart()
127 otJoinerStop(mInterpreter.mInstance); in ProcessStop()
Dcli_srp_server.cpp74 mInterpreter.OutputLine("%s", otSrpServerGetDomain(mInterpreter.mInstance)); in ProcessDomain()
78 error = otSrpServerSetDomain(mInterpreter.mInstance, aArgs[0].GetCString()); in ProcessDomain()
88 switch (otSrpServerGetState(mInterpreter.mInstance)) in ProcessState()
111 otSrpServerSetEnabled(mInterpreter.mInstance, /* aEnabled */ true); in ProcessEnable()
120 otSrpServerSetEnabled(mInterpreter.mInstance, /* aEnabled */ false); in ProcessDisable()
132 otSrpServerGetLeaseConfig(mInterpreter.mInstance, &leaseConfig); in ProcessLease()
146 error = otSrpServerSetLeaseConfig(mInterpreter.mInstance, &leaseConfig); in ProcessLease()
161 while ((host = otSrpServerGetNextHost(mInterpreter.mInstance, host)) != nullptr) in ProcessHost()
225 while ((host = otSrpServerGetNextHost(mInterpreter.mInstance, host)) != nullptr) in ProcessService()
Dcli_dataset.cpp164 error = otDatasetGetActive(mInterpreter.mInstance, &sDataset); in ProcessInit()
168 error = otDatasetGetPending(mInterpreter.mInstance, &sDataset); in ProcessInit()
173 error = otDatasetCreateNewNetwork(mInterpreter.mInstance, &sDataset); in ProcessInit()
199 SuccessOrExit(error = otDatasetGetActive(mInterpreter.mInstance, &dataset)); in ProcessActive()
206 SuccessOrExit(error = otDatasetGetActiveTlvs(mInterpreter.mInstance, &dataset)); in ProcessActive()
223 SuccessOrExit(error = otDatasetGetPending(mInterpreter.mInstance, &dataset)); in ProcessPending()
230 SuccessOrExit(error = otDatasetGetPendingTlvs(mInterpreter.mInstance, &dataset)); in ProcessPending()
316 error = otDatasetSetActive(mInterpreter.mInstance, &sDataset); in ProcessCommit()
320 error = otDatasetSetPending(mInterpreter.mInstance, &sDataset); in ProcessCommit()
579 …error = otDatasetSendMgmtActiveSet(mInterpreter.mInstance, &dataset, tlvs, tlvsLength, /* aCallbac… in ProcessMgmtSetCommand()
[all …]
Dcli_udp.cpp87 error = otUdpBind(mInterpreter.mInstance, &mSocket, &sockaddr, netif); in ProcessBind()
102 error = otUdpConnect(mInterpreter.mInstance, &mSocket, &sockaddr); in ProcessConnect()
112 return otUdpClose(mInterpreter.mInstance, &mSocket); in ProcessClose()
121 VerifyOrExit(!otUdpIsOpen(mInterpreter.mInstance, &mSocket), error = OT_ERROR_ALREADY); in ProcessOpen()
122 error = otUdpOpen(mInterpreter.mInstance, &mSocket, HandleUdpReceive, this); in ProcessOpen()
151 message = otUdpNewMessage(mInterpreter.mInstance, &messageSettings); in ProcessSend()
183 SuccessOrExit(error = otUdpSend(mInterpreter.mInstance, &mSocket, message, &messageInfo)); in ProcessSend()
Dcli_coap.cpp89 message = otCoapNewMessage(mInterpreter.mInstance, nullptr); in CancelResourceSubscription()
98 … otCoapSendRequest(mInterpreter.mInstance, message, &messageInfo, &Coap::HandleResponse, this)); in CancelResourceSubscription()
193 otCoapAddBlockWiseResource(mInterpreter.mInstance, &mResource); in ProcessResource()
195 otCoapAddResource(mInterpreter.mInstance, &mResource); in ProcessResource()
233 notificationMessage = otCoapNewMessage(mInterpreter.mInstance, nullptr); in ProcessSet()
247 … SuccessOrExit(error = otCoapSendRequest(mInterpreter.mInstance, notificationMessage, &messageInfo, in ProcessSet()
273 return otCoapStart(mInterpreter.mInstance, OT_DEFAULT_COAP_PORT); in ProcessStart()
281 otCoapRemoveBlockWiseResource(mInterpreter.mInstance, &mResource); in ProcessStop()
283 otCoapRemoveResource(mInterpreter.mInstance, &mResource); in ProcessStop()
286 return otCoapStop(mInterpreter.mInstance); in ProcessStop()
[all …]
Dcli_history.cpp127 info = otHistoryTrackerIterateNeighborHistory(mInterpreter.mInstance, &iterator, &entryAge); in ProcessNeighbor()
176 info = otHistoryTrackerIterateNetInfoHistory(mInterpreter.mInstance, &iterator, &entryAge); in ProcessNetInfo()
328 info = otHistoryTrackerIterateRxHistory(mInterpreter.mInstance, &rxIterator, &entryAge); in ProcessRxTxHistory()
333 info = otHistoryTrackerIterateTxHistory(mInterpreter.mInstance, &txIterator, &entryAge); in ProcessRxTxHistory()
343 … rxInfo = otHistoryTrackerIterateRxHistory(mInterpreter.mInstance, &rxIterator, &rxEntryAge); in ProcessRxTxHistory()
348 … txInfo = otHistoryTrackerIterateTxHistory(mInterpreter.mInstance, &txIterator, &txEntryAge); in ProcessRxTxHistory()
Dcli.hpp363 OutputLine(FormatStringFor<ValueType>(), aGetHandler(mInstance)); in ProcessGet()
377 aSetHandler(mInstance, value); in ProcessSet()
391 error = aSetHandler(mInstance, value); in ProcessSet()
948 Instance * mInstance; member in ot::Cli::Interpreter
Dcli_tcp.cpp110 … SuccessOrExit(error = otTcpEndpointInitialize(mInterpreter.mInstance, &mEndpoint, &endpointArgs)); in ProcessInit()
121 error = otTcpListenerInitialize(mInterpreter.mInstance, &mListener, &listenerArgs); in ProcessInit()
/openthread-2.7.6/src/core/common/
Dlocator.hpp84 Instance &GetInstance(void) const { return *mInstance; } in GetInstance()
111 : mInstance(&aInstance) in InstanceLocator()
121 Instance *mInstance; member in ot::InstanceLocator
158 mInstance = &aInstance; in Init()
/openthread-2.7.6/src/core/net/
Dtcp6.cpp70 mInstance = &aInstance; in Initialize()
80 return *static_cast<Instance *>(mInstance); in GetInstance()
268 mInstance = &aInstance; in Initialize()
276 return *static_cast<Instance *>(mInstance); in GetInstance()
Ddns_client.cpp361 … while (mInstance->Get<NetworkData::Leader>().GetNextExternalRoute(iterator, config) == kErrorNone) in GetNat64Prefix()
849 response.mInstance = &Get<Instance>(); in FinalizeQuery()
936 response.mInstance = &Get<Instance>(); in ProcessResponse()
/openthread-2.7.6/include/openthread/
Dtcp.h209 …otInstance * mInstance; ///< A pointer to the OpenThread instance associated with this TC… member
614 …otInstance * mInstance; ///< A pointer to the OpenThread instance associated with this TC… member
Dthread_ftd.h665 otInstance *mInstance; ///< The OpenThread instance. member
/openthread-2.7.6/src/lib/spinel/
Dradio_spinel_impl.hpp176 : mInstance(nullptr) in RadioSpinel()
877 otPlatRadioEnergyScanDone(mInstance, maxRssi); in HandleValueIs()
1042 otPlatDiagRadioReceiveDone(mInstance, &mRxRadioFrame, OT_ERROR_NONE); in RadioReceive()
1047 otPlatRadioReceiveDone(mInstance, &mRxRadioFrame, OT_ERROR_NONE); in RadioReceive()
1062 otPlatDiagRadioTransmitDone(mInstance, aFrame, aError); in TransmitDone()
1067 otPlatRadioTxDone(mInstance, aFrame, aAckFrame, aError); in TransmitDone()
1915 otPlatRadioTxStarted(mInstance, mTransmitFrame); in Transmit()
2011 mInstance = aInstance; in Enable()
2040 mInstance = nullptr; in Disable()
2308 if (mInstance != nullptr) in RestoreProperties()
[all …]
Dradio_spinel.hpp927 otInstance *mInstance; member in ot::Spinel::RadioSpinel
/openthread-2.7.6/src/core/thread/
Dneighbor_table.cpp266 info.mInstance = &GetInstance(); in Signal()

12