Lines Matching refs:mInstance
73 : mInstance(nullptr) in OtNetworkProperties()
79 return otThreadGetDeviceRole(mInstance); in GetDeviceRole()
84 return otIp6IsEnabled(mInstance); in Ip6IsEnabled()
89 return otThreadGetPartitionId(mInstance); in GetPartitionId()
94 otError error = otDatasetGetActiveTlvs(mInstance, &aDatasetTlvs); in GetDatasetActiveTlvs()
105 otError error = otDatasetGetPendingTlvs(mInstance, &aDatasetTlvs); in GetDatasetPendingTlvs()
116 mInstance = aInstance; in SetInstance()
126 : mInstance(nullptr) in RcpHost()
147 assert(mInstance == nullptr); in ~RcpHost()
238 mInstance = otSysInit(&mConfig); in Init()
239 assert(mInstance != nullptr); in Init()
242 otError result = otSetStateChangedCallback(mInstance, &RcpHost::HandleStateChanged, this); in Init()
250 otTrelSetEnabled(mInstance, featureFlagList.enable_trel()); in Init()
257 otSrpServerSetAutoEnableMode(mInstance, /* aEnabled */ true); in Init()
259 otSrpServerSetEnabled(mInstance, /* aEnabled */ true); in Init()
266 otNat64SetEnabled(mInstance, /* aEnabled */ true); in Init()
269 otDnssdUpstreamQuerySetEnabled(mInstance, /* aEnabled */ true); in Init()
272 otBorderRoutingDhcp6PdSetEnabled(mInstance, /* aEnabled */ true); in Init()
276 mThreadHelper = MakeUnique<otbr::agent::ThreadHelper>(mInstance, this); in Init()
278 OtNetworkProperties::SetInstance(mInstance); in Init()
292 otNat64SetEnabled(mInstance, aFeatureFlagList.enable_nat64()); in ApplyFeatureFlagList()
305 otTrelSetEnabled(mInstance, aFeatureFlagList.enable_trel()); in ApplyFeatureFlagList()
308 otDnssdUpstreamQuerySetEnabled(mInstance, aFeatureFlagList.enable_dns_upstream_query()); in ApplyFeatureFlagList()
311 otBorderRoutingDhcp6PdSetEnabled(mInstance, aFeatureFlagList.enable_dhcp6_pd()); in ApplyFeatureFlagList()
314 otLinkMetricsManagerSetEnabled(mInstance, aFeatureFlagList.enable_link_metrics_manager()); in ApplyFeatureFlagList()
323 assert(mInstance != nullptr); in Deinit()
326 mInstance = nullptr; in Deinit()
348 if (otTaskletsArePending(mInstance)) in Update()
353 otSysMainloopUpdate(mInstance, &aMainloop); in Update()
358 otTaskletsProcess(mInstance); in Process()
360 otSysMainloopProcess(mInstance, &aMainloop); in Process()
398 mInstance = nullptr; in Reset()
454 …VerifyOrExit(mInstance != nullptr, error = OT_ERROR_INVALID_STATE, errorMsg = "OT is not initializ… in ScheduleMigration()
460 …SuccessOrExit(error = otDatasetSendMgmtPendingSet(mInstance, &emptyDataset, aPendingOpDatasetTl… in ScheduleMigration()
494 VerifyOrExit(mInstance != nullptr, error = OT_ERROR_INVALID_STATE); in SetThreadEnabled()
501 …if (otDatasetGetActiveTlvs(mInstance, &datasetTlvs) != OT_ERROR_NOT_FOUND && datasetTlvs.mLength >… in SetThreadEnabled()
502 otThreadGetDeviceRole(mInstance) == OT_DEVICE_ROLE_DISABLED) in SetThreadEnabled()
504 SuccessOrExit(error = otIp6SetEnabled(mInstance, true)); in SetThreadEnabled()
505 SuccessOrExit(error = otThreadSetEnabled(mInstance, true)); in SetThreadEnabled()
510 SuccessOrExit(error = otThreadDetachGracefully(mInstance, DisableThreadAfterDetach, this)); in SetThreadEnabled()
528 VerifyOrExit(mInstance != nullptr, error = OT_ERROR_INVALID_STATE); in GetChannelMasks()
530 supportedChannelMask = otLinkGetSupportedChannelMask(mInstance); in GetChannelMasks()
531 preferredChannelMask = otPlatRadioGetPreferredChannelMask(mInstance); in GetChannelMasks()
552 …VerifyOrExit(mInstance != nullptr, error = OT_ERROR_INVALID_STATE, errorMsg = "OT is not initializ… in SetChannelMaxPowers()
566 … mInstance, static_cast<uint8_t>(channelMaxPower.mChannel), channelMaxPower.mMaxPower), in SetChannelMaxPowers()
584 …SuccessOrExit(error = otThreadSetEnabled(mInstance, false), errorMsg = "Failed to disable Thread s… in DisableThreadAfterDetach()
585 …SuccessOrExit(error = otIp6SetEnabled(mInstance, false), errorMsg = "Failed to disable Thread inte… in DisableThreadAfterDetach()
602 …VerifyOrExit(mInstance != nullptr, error = OT_ERROR_INVALID_STATE, errorMsg = "OT is not initializ… in SetCountryCode()
605 …SuccessOrExit(error = otLinkSetRegion(mInstance, countryCode), errorMsg = "Failed to set the count… in SetCountryCode()