Lines Matching refs:sInstance

64 static ot::Instance *sInstance;  variable
172 VerifyOrQuit(aInstance == sInstance); in otPlatDnssdRegisterService()
219 VerifyOrQuit(aInstance == sInstance); in otPlatDnssdUnregisterService()
269 VerifyOrQuit(aInstance == sInstance); in otPlatDnssdRegisterHost()
296 VerifyOrQuit(sInstance == aInstance); in otPlatDnssdUnregisterHost()
323 VerifyOrQuit(aInstance == sInstance); in otPlatDnssdRegisterKey()
365 VerifyOrQuit(aInstance == sInstance); in otPlatDnssdUnregisterKey()
487 otPlatRadioTxStarted(sInstance, &sRadioTxFrame); in ProcessRadioTxAndTasklets()
488 otPlatRadioTxDone(sInstance, &sRadioTxFrame, nullptr, OT_ERROR_NONE); in ProcessRadioTxAndTasklets()
491 otTaskletsProcess(sInstance); in ProcessRadioTxAndTasklets()
492 } while (otTaskletsArePending(sInstance)); in ProcessRadioTxAndTasklets()
505 otPlatAlarmMilliFired(sInstance); in AdvanceTime()
519 sInstance = static_cast<Instance *>(testInitInstance()); in InitTest()
539 SuccessOrQuit(otDatasetCreateNewNetwork(sInstance, &dataset)); in InitTest()
541 SuccessOrQuit(otDatasetSetActiveTlvs(sInstance, &datasetTlvs)); in InitTest()
543 SuccessOrQuit(otIp6SetEnabled(sInstance, true)); in InitTest()
544 SuccessOrQuit(otThreadSetEnabled(sInstance, true)); in InitTest()
548 sInstance->Get<Dnssd>().SetUseNativeMdns(false); in InitTest()
555 VerifyOrQuit(otThreadGetDeviceRole(sInstance) == OT_DEVICE_ROLE_LEADER); in InitTest()
560 SuccessOrQuit(otIp6SetEnabled(sInstance, false)); in FinalizeTest()
561 SuccessOrQuit(otThreadSetEnabled(sInstance, false)); in FinalizeTest()
562 SuccessOrQuit(otInstanceErasePersistentInfo(sInstance)); in FinalizeTest()
563 testFreeInstance(sInstance); in FinalizeTest()
580 VerifyOrQuit(aContext == sInstance); in HandleSrpClientCallback()
789 srpServer = &sInstance->Get<Srp::Server>(); in TestSrpAdvProxy()
790 srpClient = &sInstance->Get<Srp::Client>(); in TestSrpAdvProxy()
791 advProxy = &sInstance->Get<Srp::AdvertisingProxy>(); in TestSrpAdvProxy()
811 SuccessOrQuit(otBorderRouterAddOnMeshPrefix(sInstance, &prefixConfig)); in TestSrpAdvProxy()
812 SuccessOrQuit(otBorderRouterRegister(sInstance)); in TestSrpAdvProxy()
830 …SuccessOrQuit(otBorderRoutingInit(sInstance, /* aInfraIfIndex */ kInfraIfIndex, /* aInfraIfIsRunni… in TestSrpAdvProxy()
837 srpServer->SetServiceHandler(nullptr, sInstance); in TestSrpAdvProxy()
849 srpClient->SetCallback(HandleSrpClientCallback, sInstance); in TestSrpAdvProxy()
938 SuccessOrQuit(otBorderRouterAddOnMeshPrefix(sInstance, &prefixConfig)); in TestSrpAdvProxy()
939 SuccessOrQuit(otBorderRouterRegister(sInstance)); in TestSrpAdvProxy()
1161 srpServer = &sInstance->Get<Srp::Server>(); in TestSrpAdvProxyDnssdStateChange()
1162 srpClient = &sInstance->Get<Srp::Client>(); in TestSrpAdvProxyDnssdStateChange()
1163 advProxy = &sInstance->Get<Srp::AdvertisingProxy>(); in TestSrpAdvProxyDnssdStateChange()
1183 SuccessOrQuit(otBorderRouterAddOnMeshPrefix(sInstance, &prefixConfig)); in TestSrpAdvProxyDnssdStateChange()
1184 SuccessOrQuit(otBorderRouterRegister(sInstance)); in TestSrpAdvProxyDnssdStateChange()
1204 …SuccessOrQuit(otBorderRoutingInit(sInstance, /* aInfraIfIndex */ kInfraIfIndex, /* aInfraIfIsRunni… in TestSrpAdvProxyDnssdStateChange()
1211 srpServer->SetServiceHandler(nullptr, sInstance); in TestSrpAdvProxyDnssdStateChange()
1223 srpClient->SetCallback(HandleSrpClientCallback, sInstance); in TestSrpAdvProxyDnssdStateChange()
1274 otPlatDnssdStateHandleStateChange(sInstance); in TestSrpAdvProxyDnssdStateChange()
1309 otPlatDnssdStateHandleStateChange(sInstance); in TestSrpAdvProxyDnssdStateChange()
1340 otPlatDnssdStateHandleStateChange(sInstance); in TestSrpAdvProxyDnssdStateChange()
1359 otPlatDnssdStateHandleStateChange(sInstance); in TestSrpAdvProxyDnssdStateChange()
1398 otPlatDnssdStateHandleStateChange(sInstance); in TestSrpAdvProxyDnssdStateChange()
1466 srpServer = &sInstance->Get<Srp::Server>(); in TestSrpAdvProxyDelayedCallback()
1467 srpClient = &sInstance->Get<Srp::Client>(); in TestSrpAdvProxyDelayedCallback()
1468 advProxy = &sInstance->Get<Srp::AdvertisingProxy>(); in TestSrpAdvProxyDelayedCallback()
1488 SuccessOrQuit(otBorderRouterAddOnMeshPrefix(sInstance, &prefixConfig)); in TestSrpAdvProxyDelayedCallback()
1489 SuccessOrQuit(otBorderRouterRegister(sInstance)); in TestSrpAdvProxyDelayedCallback()
1507 …SuccessOrQuit(otBorderRoutingInit(sInstance, /* aInfraIfIndex */ kInfraIfIndex, /* aInfraIfIsRunni… in TestSrpAdvProxyDelayedCallback()
1514 srpServer->SetServiceHandler(nullptr, sInstance); in TestSrpAdvProxyDelayedCallback()
1526 srpClient->SetCallback(HandleSrpClientCallback, sInstance); in TestSrpAdvProxyDelayedCallback()
1560 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyDelayedCallback()
1564 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyDelayedCallback()
1568 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyDelayedCallback()
1577 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyDelayedCallback()
1612 request->mCallback(sInstance, request->mId, kErrorDuplicated); in TestSrpAdvProxyDelayedCallback()
1650 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyDelayedCallback()
1654 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyDelayedCallback()
1751 srpServer = &sInstance->Get<Srp::Server>(); in TestSrpAdvProxyReplacedEntries()
1752 srpClient = &sInstance->Get<Srp::Client>(); in TestSrpAdvProxyReplacedEntries()
1753 advProxy = &sInstance->Get<Srp::AdvertisingProxy>(); in TestSrpAdvProxyReplacedEntries()
1773 SuccessOrQuit(otBorderRouterAddOnMeshPrefix(sInstance, &prefixConfig)); in TestSrpAdvProxyReplacedEntries()
1774 SuccessOrQuit(otBorderRouterRegister(sInstance)); in TestSrpAdvProxyReplacedEntries()
1792 …SuccessOrQuit(otBorderRoutingInit(sInstance, /* aInfraIfIndex */ kInfraIfIndex, /* aInfraIfIsRunni… in TestSrpAdvProxyReplacedEntries()
1799 srpServer->SetServiceHandler(nullptr, sInstance); in TestSrpAdvProxyReplacedEntries()
1821 srpClient->SetCallback(HandleSrpClientCallback, sInstance); in TestSrpAdvProxyReplacedEntries()
1871 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
1875 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
1881 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
1939 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
1956 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
2002 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
2033 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
2051 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
2055 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
2155 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
2159 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyReplacedEntries()
2243 srpServer = &sInstance->Get<Srp::Server>(); in TestSrpAdvProxyHostWithOffMeshRoutableAddress()
2244 srpClient = &sInstance->Get<Srp::Client>(); in TestSrpAdvProxyHostWithOffMeshRoutableAddress()
2245 advProxy = &sInstance->Get<Srp::AdvertisingProxy>(); in TestSrpAdvProxyHostWithOffMeshRoutableAddress()
2268 …SuccessOrQuit(otBorderRoutingInit(sInstance, /* aInfraIfIndex */ kInfraIfIndex, /* aInfraIfIsRunni… in TestSrpAdvProxyHostWithOffMeshRoutableAddress()
2275 srpServer->SetServiceHandler(nullptr, sInstance); in TestSrpAdvProxyHostWithOffMeshRoutableAddress()
2287 srpClient->SetCallback(HandleSrpClientCallback, sInstance); in TestSrpAdvProxyHostWithOffMeshRoutableAddress()
2390 srpServer = &sInstance->Get<Srp::Server>(); in TestSrpAdvProxyRemoveBeforeCommitted()
2391 srpClient = &sInstance->Get<Srp::Client>(); in TestSrpAdvProxyRemoveBeforeCommitted()
2392 advProxy = &sInstance->Get<Srp::AdvertisingProxy>(); in TestSrpAdvProxyRemoveBeforeCommitted()
2412 SuccessOrQuit(otBorderRouterAddOnMeshPrefix(sInstance, &prefixConfig)); in TestSrpAdvProxyRemoveBeforeCommitted()
2413 SuccessOrQuit(otBorderRouterRegister(sInstance)); in TestSrpAdvProxyRemoveBeforeCommitted()
2431 …SuccessOrQuit(otBorderRoutingInit(sInstance, /* aInfraIfIndex */ kInfraIfIndex, /* aInfraIfIsRunni… in TestSrpAdvProxyRemoveBeforeCommitted()
2438 srpServer->SetServiceHandler(nullptr, sInstance); in TestSrpAdvProxyRemoveBeforeCommitted()
2450 srpClient->SetCallback(HandleSrpClientCallback, sInstance); in TestSrpAdvProxyRemoveBeforeCommitted()
2544 request->mCallback(sInstance, request->mId, kErrorNone); in TestSrpAdvProxyRemoveBeforeCommitted()
2594 srpServer = &sInstance->Get<Srp::Server>(); in TestSrpAdvProxyFullyRemoveBeforeCommitted()
2595 srpClient = &sInstance->Get<Srp::Client>(); in TestSrpAdvProxyFullyRemoveBeforeCommitted()
2596 advProxy = &sInstance->Get<Srp::AdvertisingProxy>(); in TestSrpAdvProxyFullyRemoveBeforeCommitted()
2616 SuccessOrQuit(otBorderRouterAddOnMeshPrefix(sInstance, &prefixConfig)); in TestSrpAdvProxyFullyRemoveBeforeCommitted()
2617 SuccessOrQuit(otBorderRouterRegister(sInstance)); in TestSrpAdvProxyFullyRemoveBeforeCommitted()
2635 …SuccessOrQuit(otBorderRoutingInit(sInstance, /* aInfraIfIndex */ kInfraIfIndex, /* aInfraIfIsRunni… in TestSrpAdvProxyFullyRemoveBeforeCommitted()
2642 srpServer->SetServiceHandler(nullptr, sInstance); in TestSrpAdvProxyFullyRemoveBeforeCommitted()
2654 srpClient->SetCallback(HandleSrpClientCallback, sInstance); in TestSrpAdvProxyFullyRemoveBeforeCommitted()