Lines Matching refs:mInstance
125 : mInstance(nullptr) in Resource()
149 mInstance = mHost->GetThreadHelper()->GetInstance(); in Init()
224 …VerifyOrExit(otBorderAgentGetId(mInstance, &node.mBaId) == OT_ERROR_NONE, error = OTBR_ERROR_REST); in GetNodeInfo()
225 (void)otThreadGetLeaderData(mInstance, &node.mLeaderData); in GetNodeInfo()
228 maxRouterId = otThreadGetMaxRouterId(mInstance); in GetNodeInfo()
231 if (otThreadGetRouterInfo(mInstance, i, &routerInfo) != OT_ERROR_NONE) in GetNodeInfo()
238 node.mRole = GetDeviceRoleName(otThreadGetDeviceRole(mInstance)); in GetNodeInfo()
239 node.mExtAddress = reinterpret_cast<const uint8_t *>(otLinkGetExtendedAddress(mInstance)); in GetNodeInfo()
240 node.mNetworkName = otThreadGetNetworkName(mInstance); in GetNodeInfo()
241 node.mRloc16 = otThreadGetRloc16(mInstance); in GetNodeInfo()
242 node.mExtPanId = reinterpret_cast<const uint8_t *>(otThreadGetExtendedPanId(mInstance)); in GetNodeInfo()
243 node.mRlocAddress = *otThreadGetRloc(mInstance); in GetNodeInfo()
266 … VerifyOrExit(otInstanceErasePersistentInfo(mInstance) == OT_ERROR_NONE, error = OTBR_ERROR_REST); in DeleteNodeInfo()
310 VerifyOrExit(otBorderAgentGetId(mInstance, &id) == OT_ERROR_NONE, error = OTBR_ERROR_REST); in GetDataBaId()
343 …const uint8_t *extAddress = reinterpret_cast<const uint8_t *>(otLinkGetExtendedAddress(mInstance)); in GetDataExtendedAddr()
372 role = otThreadGetDeviceRole(mInstance); in GetDataState()
388 if (!otIp6IsEnabled(mInstance)) in SetDataState()
390 … VerifyOrExit(otIp6SetEnabled(mInstance, true) == OT_ERROR_NONE, error = OTBR_ERROR_INVALID_STATE); in SetDataState()
392 …VerifyOrExit(otThreadSetEnabled(mInstance, true) == OT_ERROR_NONE, error = OTBR_ERROR_INVALID_STAT… in SetDataState()
396 …VerifyOrExit(otThreadSetEnabled(mInstance, false) == OT_ERROR_NONE, error = OTBR_ERROR_INVALID_STA… in SetDataState()
397 …VerifyOrExit(otIp6SetEnabled(mInstance, false) == OT_ERROR_NONE, error = OTBR_ERROR_INVALID_STATE); in SetDataState()
450 networkName = otThreadGetNetworkName(mInstance); in GetDataNetworkName()
479 …VerifyOrExit(otThreadGetLeaderData(mInstance, &leaderData) == OT_ERROR_NONE, error = OTBR_ERROR_RE… in GetDataLeaderData()
515 maxRouterId = otThreadGetMaxRouterId(mInstance); in GetDataNumOfRoute()
521 if (otThreadGetRouterInfo(mInstance, i, &routerInfo) != OT_ERROR_NONE) in GetDataNumOfRoute()
551 uint16_t rloc16 = otThreadGetRloc16(mInstance); in GetDataRloc16()
578 … const uint8_t *extPanId = reinterpret_cast<const uint8_t *>(otThreadGetExtendedPanId(mInstance)); in GetDataExtendedPanId()
603 otIp6Address rlocAddress = *otThreadGetRloc(mInstance); in GetDataRloc()
641 VerifyOrExit(otDatasetGetActiveTlvs(mInstance, &datasetTlvs) == OT_ERROR_NONE, in GetDataset()
646 VerifyOrExit(otDatasetGetPendingTlvs(mInstance, &datasetTlvs) == OT_ERROR_NONE, in GetDataset()
657 …VerifyOrExit(otDatasetGetActive(mInstance, &dataset) == OT_ERROR_NONE, error = OTBR_ERROR_NOT_FOUN… in GetDataset()
662 …VerifyOrExit(otDatasetGetPending(mInstance, &dataset) == OT_ERROR_NONE, error = OTBR_ERROR_NOT_FOU… in GetDataset()
701 …VerifyOrExit(otThreadGetDeviceRole(mInstance) == OT_DEVICE_ROLE_DISABLED, error = OTBR_ERROR_INVAL… in SetDataset()
702 errorOt = otDatasetGetActiveTlvs(mInstance, &datasetTlvs); in SetDataset()
706 errorOt = otDatasetGetPendingTlvs(mInstance, &datasetTlvs); in SetDataset()
712 …VerifyOrExit(otDatasetCreateNewNetwork(mInstance, &dataset) == OT_ERROR_NONE, error = OTBR_ERROR_R… in SetDataset()
746 …VerifyOrExit(otDatasetSetActiveTlvs(mInstance, &datasetTlvs) == OT_ERROR_NONE, error = OTBR_ERROR_… in SetDataset()
750 …VerifyOrExit(otDatasetSetPendingTlvs(mInstance, &datasetTlvs) == OT_ERROR_NONE, error = OTBR_ERROR… in SetDataset()
835 struct otIp6Address rloc16address = *otThreadGetRloc(mInstance); in Diagnostic()
838 …VerifyOrExit(otThreadSendDiagnosticGet(mInstance, &rloc16address, kAllTlvTypes, sizeof(kAllTlvType… in Diagnostic()
844 …VerifyOrExit(otThreadSendDiagnosticGet(mInstance, &multicastAddress, kAllTlvTypes, sizeof(kAllTlvT… in Diagnostic()