Lines Matching refs:mInstance

90     instance = mInstance;  in IidToInstance()
270 : mInstance(aInstance) in NcpBase()
335 OT_ASSERT(mInstance != nullptr); in NcpBase()
352 IgnoreError(otSetStateChangedCallback(mInstance, &NcpBase::HandleStateChanged, this)); in NcpBase()
353 otIp6SetReceiveCallback(mInstance, &NcpBase::HandleDatagramFromStack, this); in NcpBase()
354 otIp6SetReceiveFilterEnabled(mInstance, true); in NcpBase()
356 otNetworkTimeSyncSetCallback(mInstance, &NcpBase::HandleTimeSyncUpdate, this); in NcpBase()
359 otUdpForwardSetForwarder(mInstance, &NcpBase::HandleUdpForwardStream, this); in NcpBase()
361 otIcmp6SetEchoMode(mInstance, OT_ICMP6_ECHO_HANDLER_RLOC_ALOC_ONLY); in NcpBase()
363 otThreadRegisterNeighborTableCallback(mInstance, &NcpBase::HandleNeighborTableChanged); in NcpBase()
368 …otThreadRegisterParentResponseCallback(mInstance, &NcpBase::HandleParentResponseInfo, static_cast<… in NcpBase()
372 otSrpClientSetCallback(mInstance, HandleSrpClientCallback, this); in NcpBase()
376 otDiagSetOutputCallback(mInstance, &NcpBase::HandleDiagOutput_Jump, this); in NcpBase()
447 mInstance = IidToInstance(mCurCommandIid); in HandleReceive()
448 if (mInstance == nullptr) in HandleReceive()
955 status = ResetReasonToSpinelStatus(otPlatGetResetReason(mInstance)); in UpdateChangedProps()
1300 otInstanceResetRadioStack(mInstance); in CommandHandler_RESET()
1319 error = otInstanceResetToBootloader(mInstance); in CommandHandler_RESET()
1327 otInstanceReset(mInstance); in CommandHandler_RESET()
1333 IgnoreError(otThreadSetEnabled(mInstance, false)); in CommandHandler_RESET()
1334 IgnoreError(otIp6SetEnabled(mInstance, false)); in CommandHandler_RESET()
1464 SuccessOrExit(error = otDiagProcessCmdLine(mInstance, string)); in HandlePropertySet_SPINEL_PROP_NEST_STREAM_MFG()
1517 return mEncoder.WriteBool(otLinkRawIsEnabled(mInstance)); in HandlePropertyGet()
1525 return mEncoder.WriteUint8(otLinkGetChannel(mInstance)); in HandlePropertyGet()
1535 error = otLinkSetChannel(mInstance, static_cast<uint8_t>(channel)); in HandlePropertySet()
1543 if (otLinkRawIsEnabled(mInstance) && mIsRawStreamEnabled[mCurCommandIid]) in HandlePropertySet()
1545 error = otLinkRawReceive(mInstance); in HandlePropertySet()
1559 isPromiscuous = otLinkRawGetPromiscuous(mInstance); in HandlePropertyGet()
1561 isPromiscuous = otLinkIsPromiscuous(mInstance); in HandlePropertyGet()
1578 error = otLinkRawSetPromiscuous(mInstance, false); in HandlePropertySet()
1580 error = otLinkSetPromiscuous(mInstance, false); in HandlePropertySet()
1587 error = otLinkRawSetPromiscuous(mInstance, true); in HandlePropertySet()
1589 error = otLinkSetPromiscuous(mInstance, true); in HandlePropertySet()
1608 SuccessOrExit(error = otLinkSetRxOnWhenIdle(mInstance, enabled)); in HandlePropertySet()
1616 return mEncoder.WriteUint16(otLinkGetPanId(mInstance)); in HandlePropertyGet()
1626 error = otLinkSetPanId(mInstance, panid); in HandlePropertySet()
1634 return mEncoder.WriteEui64(*otLinkGetExtendedAddress(mInstance)); in HandlePropertyGet()
1644 error = otLinkSetExtendedAddress(mInstance, extAddress); in HandlePropertySet()
1652 return mEncoder.WriteUint16(otLinkGetShortAddress(mInstance)); in HandlePropertyGet()
1669 if (otLinkRawIsEnabled(mInstance)) in HandlePropertySet()
1673 error = otLinkRawReceive(mInstance); in HandlePropertySet()
1677 error = otLinkRawSleep(mInstance); in HandlePropertySet()
1701 uint64_t now = otPlatRadioGetNow(mInstance); in HandlePropertySet()
1707 error = otPlatRadioReceiveAt(mInstance, channel, start, duration); in HandlePropertySet()
1717 return mEncoder.WriteUint8(otPlatRadioGetCslAccuracy(mInstance)); in HandlePropertyGet()
1724 return mEncoder.WriteUint8(otPlatRadioGetCslUncertainty(mInstance)); in HandlePropertyGet()
1795 if (otLinkRawIsEnabled(mInstance)) in HandlePropertyGet()
1806 if (otLinkIsActiveScanInProgress(mInstance)) in HandlePropertyGet()
1810 else if (otLinkIsEnergyScanInProgress(mInstance)) in HandlePropertyGet()
1814 else if (otThreadIsDiscoverInProgress(mInstance)) in HandlePropertyGet()
1843 …error = otLinkActiveScan(mInstance, mScanChannelMask, mScanPeriod, &HandleActiveScanResult_Jump, t… in HandlePropertySet()
1850 if (otLinkRawIsEnabled(mInstance)) in HandlePropertySet()
1862 error = otLinkRawEnergyScan(mInstance, scanChannel, mScanPeriod, LinkRawEnergyScanDone); in HandlePropertySet()
1868 …error = otLinkEnergyScan(mInstance, mScanChannelMask, mScanPeriod, &HandleEnergyScanResult_Jump, t… in HandlePropertySet()
1877 …error = otThreadDiscover(mInstance, mScanChannelMask, mDiscoveryScanPanId, mDiscoveryScanJoinerFla… in HandlePropertySet()
2189 switch (otPlatGetMcuPowerState(mInstance)) in HandlePropertyGet()
2233 SuccessOrExit(error = otPlatSetMcuPowerState(mInstance, powerState)); in HandlePropertySet()
2243 if (otThreadGetDeviceRole(mInstance) != OT_DEVICE_ROLE_DISABLED) in HandlePropertySet()
2245 IgnoreError(otThreadSetEnabled(mInstance, false)); in HandlePropertySet()
2248 if (otIp6IsEnabled(mInstance)) in HandlePropertySet()
2250 IgnoreError(otIp6SetEnabled(mInstance, false)); in HandlePropertySet()
2279 otLinkGetFactoryAssignedIeeeEui64(mInstance, &hwAddr); in HandlePropertyGet()
2390 return mEncoder.WriteInt8(otPlatRadioGetRssi(mInstance)); in HandlePropertyGet()
2395 return mEncoder.WriteInt8(otPlatRadioGetReceiveSensitivity(mInstance)); in HandlePropertyGet()
2401 const uint8_t chan(otLinkGetChannel(mInstance)); in HandlePropertyGet()
2424 error = otPlatRadioGetCcaEnergyDetectThreshold(mInstance, &threshold); in HandlePropertyGet()
2444 error = otPlatRadioSetCcaEnergyDetectThreshold(mInstance, threshold); in HandlePropertySet()
2455 error = otPlatRadioGetTransmitPower(mInstance, &power); in HandlePropertyGet()
2475 error = otPlatRadioSetTransmitPower(mInstance, txPower); in HandlePropertySet()
2486 error = otPlatRadioGetFemLnaGain(mInstance, &gain); in HandlePropertyGet()
2506 error = otPlatRadioSetFemLnaGain(mInstance, gain); in HandlePropertySet()
2520 error = otPlatRadioSetChannelMaxTransmitPower(mInstance, channel, maxPower); in HandlePropertySet()
2531 error = otPlatRadioGetRegion(mInstance, &regionCode); in HandlePropertyGet()
2550 error = otPlatRadioSetRegion(mInstance, regionCode); in HandlePropertySet()
2656 return EncodeChannelMask(otPlatRadioGetSupportedChannelMask(mInstance)); in HandlePropertyGet()
2658 return EncodeChannelMask(otLinkGetSupportedChannelMask(mInstance)); in HandlePropertyGet()
2664 return EncodeChannelMask(otPlatRadioGetPreferredChannelMask(mInstance)); in HandlePropertyGet()
2674 error = otPlatRadioSetCoexEnabled(mInstance, enabled); in HandlePropertySet()
2682 return mEncoder.WriteBool(otPlatRadioIsCoexEnabled(mInstance)); in HandlePropertyGet()
2688 otError error = otPlatRadioGetCoexMetrics(mInstance, &coexMetrics); in HandlePropertyGet()
2773 error = otPlatRadioSetChannelTargetPower(mInstance, channel, targetPower); in HandlePropertySet()
2790 error = otPlatRadioAddCalibratedPower(mInstance, channel, actualPower, dataPtr, dataLen); in HandlePropertyInsert()
2798 return otPlatRadioClearCalibratedPowers(mInstance); in HandlePropertySet()