Lines Matching refs:GetInstancePtr
145 otIp6SetReceiveCallback(GetInstancePtr(), &Interpreter::HandleIp6Receive, this); in Interpreter()
148 otDiagSetOutputCallback(GetInstancePtr(), &Interpreter::HandleDiagOutput, this); in Interpreter()
197 return otDiagProcessCmd(GetInstancePtr(), Arg::GetArgsLength(aArgs), args); in Process()
265 otInstanceReset(GetInstancePtr()); in Process()
280 error = otInstanceResetToBootloader(GetInstancePtr()); in Process()
350 if (otDiagIsEnabled(GetInstancePtr()) && (args[0] != "diag") && (args[0] != "factoryreset")) in ProcessLine()
430 …otConvertDurationInSecondsToString(otThreadGetCurrentAttachDuration(GetInstancePtr()), string, siz… in Process()
459 OutputLine("%hu", otBorderAgentGetUdpPort(GetInstancePtr())); in Process()
483 OutputLine("%s", Stringify(otBorderAgentGetState(GetInstancePtr()), kStateStrings)); in Process()
497 otBorderAgentDisconnect(GetInstancePtr()); in Process()
524 SuccessOrExit(error = otBorderAgentGetId(GetInstancePtr(), &id)); in Process()
533 error = otBorderAgentSetId(GetInstancePtr(), &id); in Process()
552 OutputLine("%sactive", otBorderAgentIsEphemeralKeyActive(GetInstancePtr()) ? "" : "in"); in Process()
580 … error = otBorderAgentSetEphemeralKey(GetInstancePtr(), aArgs[2].GetCString(), timeout, port); in Process()
593 otBorderAgentClearEphemeralKey(GetInstancePtr()); in Process()
616 …otBorderAgentSetEphemeralKeyCallback(GetInstancePtr(), HandleBorderAgentEphemeralKeyStateChange, t… in Process()
620 otBorderAgentSetEphemeralKeyCallback(GetInstancePtr(), nullptr, nullptr); in Process()
657 OutputBorderAgentCounters(*otBorderAgentGetCounters(GetInstancePtr())); in Process()
711 bool active = otBorderAgentIsEphemeralKeyActive(GetInstancePtr()); in HandleBorderAgentEphemeralKeyStateChange()
717 OutputFormat(", port:%u", otBorderAgentGetUdpPort(GetInstancePtr())); in HandleBorderAgentEphemeralKeyStateChange()
798 … OutputLine("PrefixManager: %s", kNat64State[otNat64GetPrefixManagerState(GetInstancePtr())]); in Process()
801 OutputLine("Translator: %s", kNat64State[otNat64GetTranslatorState(GetInstancePtr())]); in Process()
823 SuccessOrExit(error = otNat64GetCidr(GetInstancePtr(), &cidr)); in Process()
839 error = otNat64SetIp4Cidr(GetInstancePtr(), &cidr); in Process()
880 otNat64InitAddressMappingIterator(GetInstancePtr(), &iterator); in Process()
881 while (otNat64GetNextAddressMapping(GetInstancePtr(), &iterator, &mapping) == OT_ERROR_NONE) in Process()
974 otNat64GetCounters(GetInstancePtr(), &counters); in Process()
975 otNat64GetErrorCounters(GetInstancePtr(), &errorCounters); in Process()
1070 … const otIp6InterfaceIdentifier *iid = otThreadGetFixedDuaInterfaceIdentifier(GetInstancePtr()); in Process()
1095 error = otThreadSetFixedDuaInterfaceIdentifier(GetInstancePtr(), nullptr); in Process()
1102 error = otThreadSetFixedDuaInterfaceIdentifier(GetInstancePtr(), &iid); in Process()
1173 otMessageGetBufferInfo(GetInstancePtr(), &bufferInfo); in Process()
1196 otMessageResetBufferInfo(GetInstancePtr()); in Process()
1232 SuccessOrExit(error = otPlatRadioGetCcaEnergyDetectThreshold(GetInstancePtr(), &cca)); in Process()
1238 error = otPlatRadioSetCcaEnergyDetectThreshold(GetInstancePtr(), cca); in Process()
1341 OutputLine("0x%lx", ToUlong(otPlatRadioGetSupportedChannelMask(GetInstancePtr()))); in Process()
1355 OutputLine("0x%lx", ToUlong(otPlatRadioGetPreferredChannelMask(GetInstancePtr()))); in Process()
1394 OutputLine("enabled: %d", otChannelMonitorIsEnabled(GetInstancePtr())); in Process()
1395 if (otChannelMonitorIsEnabled(GetInstancePtr())) in Process()
1397 uint32_t channelMask = otLinkGetSupportedChannelMask(GetInstancePtr()); in Process()
1400 … OutputLine("interval: %lu", ToUlong(otChannelMonitorGetSampleInterval(GetInstancePtr()))); in Process()
1401 OutputLine("threshold: %d", otChannelMonitorGetRssiThreshold(GetInstancePtr())); in Process()
1402 … OutputLine("window: %lu", ToUlong(otChannelMonitorGetSampleWindow(GetInstancePtr()))); in Process()
1403 OutputLine("count: %lu", ToUlong(otChannelMonitorGetSampleCount(GetInstancePtr()))); in Process()
1417 occupancy = otChannelMonitorGetChannelOccupancy(GetInstancePtr(), channel); in Process()
1441 error = otChannelMonitorSetEnabled(GetInstancePtr(), true); in Process()
1458 error = otChannelMonitorSetEnabled(GetInstancePtr(), false); in Process()
1490 OutputLine("channel: %u", otChannelManagerGetRequestedChannel(GetInstancePtr())); in Process()
1492 … OutputLine("auto: %d", otChannelManagerGetAutoChannelSelectionEnabled(GetInstancePtr())); in Process()
1495 … OutputLine("autocsl: %u", otChannelManagerGetAutoCslChannelSelectionEnabled(GetInstancePtr())); in Process()
1499 if (otChannelManagerGetAutoChannelSelectionEnabled(GetInstancePtr()) || in Process()
1500 otChannelManagerGetAutoCslChannelSelectionEnabled(GetInstancePtr())) in Process()
1502 if (otChannelManagerGetAutoChannelSelectionEnabled(GetInstancePtr())) in Process()
1504 if (otChannelManagerGetAutoCslChannelSelectionEnabled(GetInstancePtr())) in Process()
1507 … Mac::ChannelMask supportedMask(otChannelManagerGetSupportedChannels(GetInstancePtr())); in Process()
1508 Mac::ChannelMask favoredMask(otChannelManagerGetFavoredChannels(GetInstancePtr())); in Process()
1510 OutputLine("delay: %u", otChannelManagerGetDelay(GetInstancePtr())); in Process()
1512 …tLine("interval: %lu", ToUlong(otChannelManagerGetAutoChannelSelectionInterval(GetInstancePtr()))); in Process()
1513 … OutputLine("cca threshold: 0x%04x", otChannelManagerGetCcaFailureRateThreshold(GetInstancePtr())); in Process()
1558 error = otChannelManagerRequestChannelSelect(GetInstancePtr(), enable); in Process()
1582 otChannelManagerSetAutoChannelSelectionEnabled(GetInstancePtr(), enable); in Process()
1606 otChannelManagerSetAutoCslChannelSelectionEnabled(GetInstancePtr(), enable); in Process()
1764 maxChildren = otThreadGetMaxAllowedChildren(GetInstancePtr()); in Process()
1768 if ((otThreadGetChildInfoByIndex(GetInstancePtr(), i, &childInfo) != OT_ERROR_NONE) || in Process()
1815 SuccessOrExit(error = otThreadGetChildInfoById(GetInstancePtr(), childId, &childInfo)); in Process()
1874 uint16_t maxChildren = otThreadGetMaxAllowedChildren(GetInstancePtr()); in Process()
1882 … if ((otThreadGetChildInfoByIndex(GetInstancePtr(), childIndex, &childInfo) != OT_ERROR_NONE) || in Process()
1890 … while (otThreadGetChildNextIp6Address(GetInstancePtr(), childIndex, &iterator, &ip6Address) == in Process()
2015 OutputLine("%u", otChildSupervisionGetCheckFailureCounter(GetInstancePtr())); in Process()
2020 otChildSupervisionResetCheckFailureCounter(GetInstancePtr()); in Process()
2100 SuccessOrExit(error = otPlatRadioGetCoexMetrics(GetInstancePtr(), &metrics)); in Process()
2169 const otBorderRoutingCounters *brCounters = otIp6GetBorderRoutingCounters(GetInstancePtr()); in OutputBorderRouterCounters()
2251 otIp6ResetBorderRoutingCounters(GetInstancePtr()); in Process()
2348 const otMacCounters *macCounters = otLinkGetCounters(GetInstancePtr()); in Process()
2376 otLinkResetCounters(GetInstancePtr()); in Process()
2426 const otMleCounters *mleCounters = otThreadGetMleCounters(GetInstancePtr()); in Process()
2469 otThreadResetMleCounters(GetInstancePtr()); in Process()
2507 const otIpCounters *ipCounters = otThreadGetIp6Counters(GetInstancePtr()); in Process()
2526 otThreadResetIp6Counters(GetInstancePtr()); in Process()
2564 OutputLine("channel: %u", otLinkGetCslChannel(GetInstancePtr())); in Process()
2565 OutputLine("period: %luus", ToUlong(otLinkGetCslPeriod(GetInstancePtr()))); in Process()
2566 OutputLine("timeout: %lus", ToUlong(otLinkGetCslTimeout(GetInstancePtr()))); in Process()
2637 OutputLine("%lu", ToUlong((otDatasetGetDelayTimerMinimal(GetInstancePtr()) / 1000))); in Process()
2654 …SuccessOrExit(error = otDatasetSetDelayTimerMinimal(GetInstancePtr(), static_cast<uint32_t>(delay … in Process()
2696 SuccessOrExit(error = otThreadDetachGracefully(GetInstancePtr(), nullptr, nullptr)); in Process()
2700 …SuccessOrExit(error = otThreadDetachGracefully(GetInstancePtr(), HandleDetachGracefullyResult, thi… in Process()
2765 otThreadSetDiscoveryRequestCallback(GetInstancePtr(), callback, context); in Process()
2779 …SuccessOrExit(error = otThreadDiscover(GetInstancePtr(), scanChannels, OT_PANID_BROADCAST, false, … in Process()
2870 SuccessOrExit(otThreadGetNextCacheEntry(GetInstancePtr(), &entry, &iterator)); in Process()
2898 otLinkGetFactoryAssignedIeeeEui64(GetInstancePtr(), &extAddress); in Process()
2921 OutputExtAddressLine(*otLinkGetExtendedAddress(GetInstancePtr())); in Process()
2939 error = otLinkSetExtendedAddress(GetInstancePtr(), &extAddress); in Process()
3034 OutputBytesLine(otThreadGetExtendedPanId(GetInstancePtr())->m8); in Process()
3054 error = otThreadSetExtendedPanId(GetInstancePtr(), &extPanId); in Process()
3073 otInstanceFactoryReset(GetInstancePtr()); in Process()
3104 otThreadSendAddressNotification(GetInstancePtr(), &destination, &target, &mlIid); in Process()
3117 …error = otThreadSendProactiveBackboneNotification(GetInstancePtr(), &target, &mlIid, timeSinceLast… in Process()
3145 SuccessOrExit(error = otPlatRadioGetFemLnaGain(GetInstancePtr(), &lnaGain)); in Process()
3164 SuccessOrExit(error = otPlatRadioGetFemLnaGain(GetInstancePtr(), &lnaGain)); in Process()
3181 SuccessOrExit(error = otPlatRadioSetFemLnaGain(GetInstancePtr(), lnaGain)); in Process()
3214 if (otIp6IsEnabled(GetInstancePtr())) in Process()
3239 SuccessOrExit(error = otIp6SetEnabled(GetInstancePtr(), true)); in Process()
3243 SuccessOrExit(error = otIp6SetEnabled(GetInstancePtr(), false)); in Process()
3270 OutputLine("%lu", ToUlong(otInstanceGetId(GetInstancePtr()))); in Process()
3316 const otNetifAddress *unicastAddrs = otIp6GetUnicastAddresses(GetInstancePtr()); in Process()
3351 error = otIp6AddUnicastAddress(GetInstancePtr(), &address); in Process()
3368 error = otIp6RemoveUnicastAddress(GetInstancePtr(), &address); in Process()
3382 OutputIp6AddressLine(*otThreadGetLinkLocalIp6Address(GetInstancePtr())); in Process()
3396 OutputIp6AddressLine(*otThreadGetRloc(GetInstancePtr())); in Process()
3410 OutputIp6AddressLine(*otThreadGetMeshLocalEid(GetInstancePtr())); in Process()
3439 … for (const otNetifMulticastAddress *addr = otIp6GetMulticastAddresses(GetInstancePtr()); addr; in Process()
3464 SuccessOrExit(error = otIp6SubscribeMulticastAddress(GetInstancePtr(), &address)); in Process()
3487 error = otIp6UnsubscribeMulticastAddress(GetInstancePtr(), &address); in Process()
3501 OutputIp6AddressLine(*otThreadGetLinkLocalAllThreadNodesMulticastAddress(GetInstancePtr())); in Process()
3515 … OutputIp6AddressLine(*otThreadGetRealmLocalAllThreadNodesMulticastAddress(GetInstancePtr())); in Process()
3605 SuccessOrExit(error = otThreadGetLeaderData(GetInstancePtr(), &leaderData)); in Process()
3635 OutputLine("%lu", ToUlong(otThreadGetPartitionId(GetInstancePtr()))); in Process()
3723 const otDeviceProperties *props = otThreadGetDeviceProperties(GetInstancePtr()); in Process()
3783 otThreadSetDeviceProperties(GetInstancePtr(), &props); in Process()
3834 … while (otThreadGetNextNeighborInfo(GetInstancePtr(), &iterator, &neighborInfo) == OT_ERROR_NONE) in Process()
3838 … if (otLinkMetricsManagerGetMetricsValueByExtAddr(GetInstancePtr(), &neighborInfo.mExtAddress, in Process()
3890 OutputLine(otThreadIsAnycastLocateInProgress(GetInstancePtr()) ? "In Progress" : "Idle"); in Process()
3914 … otThreadLocateAnycastDestination(GetInstancePtr(), &anycastAddress, HandleLocateResult, this)); in Process()
3969 otThreadGetPskc(GetInstancePtr(), &pskc); in Process()
4003 … reinterpret_cast<const otNetworkName *>(otThreadGetNetworkName(GetInstancePtr())), in Process()
4004 otThreadGetExtendedPanId(GetInstancePtr()), &pskc)); in Process()
4011 error = otThreadSetPskc(GetInstancePtr(), &pskc); in Process()
4035 OutputLine("0x%08lx", ToUlong(otThreadGetPskcRef(GetInstancePtr()))); in Process()
4060 error = otThreadSetPskcRef(GetInstancePtr(), pskcRef); in Process()
4109 SuccessOrExit(error = otIp6SetMeshLocalIid(GetInstancePtr(), &iid)); in Process()
4180 … SuccessOrExit(error = otIp6RegisterMulticastListeners(GetInstancePtr(), addresses, numAddresses, in Process()
4231 OutputLine("%s", LinkModeToString(otThreadGetLinkMode(GetInstancePtr()), linkModeString)); in Process()
4277 error = otThreadSetLinkMode(GetInstancePtr(), linkMode); in Process()
4338 … while (otThreadGetNextNeighborInfo(GetInstancePtr(), &iterator, &neighInfo) == OT_ERROR_NONE) in Process()
4340 … if (otMultiRadioGetNeighborInfo(GetInstancePtr(), &neighInfo.mExtAddress, &multiRadioInfo) != in Process()
4368 …SuccessOrExit(error = otMultiRadioGetNeighborInfo(GetInstancePtr(), &extAddress, &multiRadioInfo)); in Process()
4429 … while (otThreadGetNextNeighborInfo(GetInstancePtr(), &iterator, &neighborInfo) == OT_ERROR_NONE) in Process()
4511 … while (otThreadGetNextNeighborInfo(GetInstancePtr(), &iterator, &neighborInfo) == OT_ERROR_NONE) in Process()
4582 … while (otThreadGetNextNeighborInfo(GetInstancePtr(), &iterator, &neighborInfo) == OT_ERROR_NONE) in Process()
4639 …for (const otUdpSocket *socket = otUdpGetSockets(GetInstancePtr()); socket != nullptr; socket = so… in Process()
4661 while (otServerGetNextService(GetInstancePtr(), &iterator, &config) == OT_ERROR_NONE) in Process()
4718 error = otServerAddService(GetInstancePtr(), &cfg); in Process()
4744 error = otServerRemoveService(GetInstancePtr(), cfg.mEnterpriseNumber, cfg.mServiceData, in Process()
4802 otThreadGetNetworkKey(GetInstancePtr(), &networkKey); in Process()
4820 SuccessOrExit(error = otThreadSetNetworkKey(GetInstancePtr(), &key)); in Process()
4834 OutputLine("0x%08lx", ToUlong(otThreadGetNetworkKeyRef(GetInstancePtr()))); in Process()
4841 SuccessOrExit(error = otThreadSetNetworkKeyRef(GetInstancePtr(), keyRef)); in Process()
4901 networkTimeStatus = otNetworkTimeGet(GetInstancePtr(), &time); in Process()
4925 OutputLine("Time Sync Period: %us", otNetworkTimeGetSyncPeriod(GetInstancePtr())); in Process()
4926 OutputLine("XTAL Threshold: %uppm", otNetworkTimeGetXtalThreshold(GetInstancePtr())); in Process()
4949 SuccessOrExit(error = otNetworkTimeSetSyncPeriod(GetInstancePtr(), period)); in Process()
4950 SuccessOrExit(error = otNetworkTimeSetXtalThreshold(GetInstancePtr(), xtalThreshold)); in Process()
5007 if (!otThreadIsRouterIdAllocated(GetInstancePtr(), routerId)) in Process()
5015 otThreadGetNextHopAndPathCost(GetInstancePtr(), destRloc16, &nextHopRloc16, &pathCost); in Process()
5048 otThreadGetNextHopAndPathCost(GetInstancePtr(), destRloc16, &nextHopRloc16, &pathCost); in Process()
5079 OutputLine("0x%04x", otLinkGetPanId(GetInstancePtr())); in Process()
5130 SuccessOrExit(error = otThreadGetParentInfo(GetInstancePtr(), &parentInfo)); in Process()
5154 error = otThreadSearchForBetterParent(GetInstancePtr()); in Process()
5198 otThreadGetRouterIdRange(GetInstancePtr(), &minRouterId, &maxRouterId); in Process()
5206 error = otThreadSetRouterIdRange(GetInstancePtr(), minRouterId, maxRouterId); in Process()
5308 OutputEnabledDisabledStatus(otLinkIsPromiscuous(GetInstancePtr()) && in Process()
5309 otPlatRadioGetPromiscuous(GetInstancePtr())); in Process()
5333 otLinkSetPcapCallback(GetInstancePtr(), nullptr, nullptr); in Process()
5336 SuccessOrExit(error = otLinkSetPromiscuous(GetInstancePtr(), enable)); in Process()
5340 otLinkSetPcapCallback(GetInstancePtr(), &HandleLinkPcapReceive, this); in Process()
5397 … while (otBorderRouterGetNextOnMeshPrefix(GetInstancePtr(), &iterator, &config) == OT_ERROR_NONE) in Process()
5403 if (otBackboneRouterGetState(GetInstancePtr()) == OT_BACKBONE_ROUTER_STATE_DISABLED) in Process()
5405 SuccessOrExit(otBackboneRouterGetDomainPrefix(GetInstancePtr(), &config)); in Process()
5432 error = otBorderRouterAddOnMeshPrefix(GetInstancePtr(), &config); in Process()
5448 error = otBorderRouterRemoveOnMeshPrefix(GetInstancePtr(), &prefix); in Process()
5464 OutputIp6PrefixLine(*otThreadGetMeshLocalPrefix(GetInstancePtr())); in Process()
5473 …otThreadSetMeshLocalPrefix(GetInstancePtr(), reinterpret_cast<otMeshLocalPrefix *>(&prefix.mPrefix… in Process()
5570 radioStats = otRadioTimeStatsGet(GetInstancePtr()); in Process()
5600 otRadioTimeStatsReset(GetInstancePtr()); in Process()
5615 const char *version = otPlatRadioGetVersionString(GetInstancePtr()); in Process()
5658 SuccessOrExit(error = otLinkGetRegion(GetInstancePtr(), ®ionCode)); in Process()
5679 error = otLinkSetRegion(GetInstancePtr(), regionCode); in Process()
5718 OutputLine("%04x", otThreadGetRloc16(GetInstancePtr())); in Process()
5743 while (otBorderRouterGetNextRoute(GetInstancePtr(), &iterator, &config) == OT_ERROR_NONE) in Process()
5770 error = otBorderRouterAddRoute(GetInstancePtr(), &config); in Process()
5787 error = otBorderRouterRemoveRoute(GetInstancePtr(), &prefix); in Process()
5849 maxRouterId = otThreadGetMaxRouterId(GetInstancePtr()); in Process()
5853 if (otThreadGetRouterInfo(GetInstancePtr(), i, &routerInfo) != OT_ERROR_NONE) in Process()
5918 SuccessOrExit(error = otThreadGetRouterInfo(GetInstancePtr(), routerId, &routerInfo)); in Process()
6131 SuccessOrExit(error = otLinkEnergyScan(GetInstancePtr(), scanChannels, scanDuration, in Process()
6156 SuccessOrExit(error = otLinkActiveScan(GetInstancePtr(), scanChannels, scanDuration, in Process()
6233 OutputLine(otThreadIsSingleton(GetInstancePtr()) ? "true" : "false"); in Process()
6289 …SuccessOrExit(error = otSntpClientQuery(GetInstancePtr(), &query, &Interpreter::HandleSntpResponse… in Process()
6399 OutputLine("%s", otThreadDeviceRoleToString(otThreadGetDeviceRole(GetInstancePtr()))); in Process()
6403 error = otThreadBecomeDetached(GetInstancePtr()); in Process()
6407 error = otThreadBecomeChild(GetInstancePtr()); in Process()
6412 error = otThreadBecomeRouter(GetInstancePtr()); in Process()
6416 error = otThreadBecomeLeader(GetInstancePtr()); in Process()
6444 error = otThreadSetEnabled(GetInstancePtr(), true); in Process()
6457 error = otThreadSetEnabled(GetInstancePtr(), false); in Process()
6558 histogram = otThreadGetTimeInQueueHistogram(GetInstancePtr(), &numBins, &binInterval); in Process()
6589 OutputLine("%lu", ToUlong(otThreadGetMaxTimeInQueue(GetInstancePtr()))); in Process()
6602 otThreadResetTimeInQueueStat(GetInstancePtr()); in Process()
6639 SuccessOrExit(error = otPlatRadioGetTransmitPower(GetInstancePtr(), &power)); in Process()
6645 error = otPlatRadioSetTransmitPower(GetInstancePtr(), power); in Process()
6822 otIp6RemoveAllUnsecurePorts(GetInstancePtr()); in Process()
6845 ports = otIp6GetUnsecurePorts(GetInstancePtr(), &numPorts); in Process()
6884 otInstanceGetUptimeAsString(GetInstancePtr(), string, sizeof(string)); in Process()
6900 OutputUint64Line(otInstanceGetUptime(GetInstancePtr())); in Process()
6966 OutputLine("0x%04x", otLinkGetAlternateShortAddress(GetInstancePtr())); in Process()
7048 error = otLinkSendDataRequest(GetInstancePtr()); in Process()
7052 error = otLinkSendEmptyData(GetInstancePtr()); in Process()
7184 otTrelInitPeerIterator(GetInstancePtr(), &iterator); in Process()
7186 while ((peer = otTrelGetNextPeer(GetInstancePtr(), &iterator)) != nullptr) in Process()
7225 OutputTrelCounters(*otTrelGetCounters(GetInstancePtr())); in Process()
7238 otTrelResetCounters(GetInstancePtr()); in Process()
7257 OutputLine("%hu", otTrelGetUdpPort(GetInstancePtr())); in Process()
7492 SuccessOrExit(error = otThreadSendDiagnosticGet(GetInstancePtr(), &address, tlvTypes, count, in Process()
7513 IgnoreError(otThreadSendDiagnosticReset(GetInstancePtr(), &address, tlvTypes, count)); in Process()
7927 otLinkGetWakeupListenParameters(GetInstancePtr(), &interval, &duration); in Process()
7935 error = otLinkSetWakeupListenParameters(GetInstancePtr(), interval, duration); in Process()
7987 …SuccessOrExit(error = otThreadWakeup(GetInstancePtr(), &extAddress, wakeupIntervalUs, wakeupDurati… in Process()