Lines Matching refs:sLastInstance
64 static ot::Instance *sLastInstance; variable
86 sLastInstance = static_cast<ot::Instance *>(aInstance); in otPlatRadioTransmit()
96 *aInstance = sLastInstance; in otPlatMultipanGetActiveInstance()
110 VerifyOrExit(sLastInstance != static_cast<ot::Instance *>(aInstance), error = OT_ERROR_ALREADY); in otPlatMultipanSetActiveInstance()
111 sLastInstance = static_cast<ot::Instance *>(aInstance); in otPlatMultipanSetActiveInstance()
500 sLastInstance = nullptr; in TestNcpBaseDifferentInstanceCall()
506 VerifyOrQuit(sLastInstance != nullptr); in TestNcpBaseDifferentInstanceCall()
507 VerifyOrQuit(sLastInstance == sInstances[0]); in TestNcpBaseDifferentInstanceCall()
510 VerifyOrQuit(sLastInstance != nullptr); in TestNcpBaseDifferentInstanceCall()
511 VerifyOrQuit(sLastInstance == sInstances[1]); in TestNcpBaseDifferentInstanceCall()
517 sLastInstance = nullptr; in TestNcpBaseDifferentInstanceCall()
519 VerifyOrQuit(sLastInstance != nullptr); in TestNcpBaseDifferentInstanceCall()
520 VerifyOrQuit(sLastInstance == sInstances[1]); in TestNcpBaseDifferentInstanceCall()
523 VerifyOrQuit(sLastInstance != nullptr); in TestNcpBaseDifferentInstanceCall()
524 VerifyOrQuit(sLastInstance == sInstances[0]); in TestNcpBaseDifferentInstanceCall()
542 sLastInstance = nullptr; in TestNcpBaseTransmitDoneInterface()
599 sLastInstance = nullptr; in TestNcpBaseReceiveOnTwoInterfaces()
643 sLastInstance = nullptr; in TestNcpBaseSwitchoverRequest()
650 VerifyOrQuit(sLastInstance == sInstances[0]); in TestNcpBaseSwitchoverRequest()
652 VerifyOrQuit(sLastInstance == sInstances[1]); in TestNcpBaseSwitchoverRequest()
654 VerifyOrQuit(sLastInstance == sInstances[2]); in TestNcpBaseSwitchoverRequest()
656 VerifyOrQuit(sLastInstance == sInstances[0]); in TestNcpBaseSwitchoverRequest()
658 VerifyOrQuit(sLastInstance == sInstances[1]); in TestNcpBaseSwitchoverRequest()
660 VerifyOrQuit(sLastInstance == sInstances[2]); in TestNcpBaseSwitchoverRequest()
662 VerifyOrQuit(sLastInstance == sInstances[0]); in TestNcpBaseSwitchoverRequest()
664 VerifyOrQuit(sLastInstance == sInstances[1]); in TestNcpBaseSwitchoverRequest()
666 VerifyOrQuit(sLastInstance == sInstances[2]); in TestNcpBaseSwitchoverRequest()
681 sLastInstance = nullptr; in TestNcpBaseSwitchoverRequestFail()
687 VerifyOrQuit(sLastInstance == sInstances[0]); in TestNcpBaseSwitchoverRequestFail()
690 VerifyOrQuit(sLastInstance == sInstances[0]); in TestNcpBaseSwitchoverRequestFail()
693 VerifyOrQuit(sLastInstance == sInstances[0]); in TestNcpBaseSwitchoverRequestFail()
708 sLastInstance = nullptr; in TestNcpBaseSwitchoverResponse()
714 VerifyOrQuit(sLastInstance == sInstances[0]); in TestNcpBaseSwitchoverResponse()
716 otPlatMultipanSwitchoverDone(sLastInstance, true); in TestNcpBaseSwitchoverResponse()
724 VerifyOrQuit(sLastInstance == sInstances[1]); in TestNcpBaseSwitchoverResponse()
726 otPlatMultipanSwitchoverDone(sLastInstance, false); in TestNcpBaseSwitchoverResponse()