Home
last modified time | relevance | path

Searched refs:laneHandle (Results 1 – 25 of 28) sorted by relevance

12

/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_ctrl_lane.c32 uint32_t laneHandle; member
125 if (item->laneHandle == laneHandle) { in GetCtrlReqInfo()
148 if (item->laneHandle == laneHandle) { in DeleteCtrlRequestNode()
169 FreeLaneReqId(laneHandle); in CtrlLinkFail()
173 CtrlTriggerLink(laneHandle); in CtrlLinkFail()
184 if (item->laneHandle == laneHandle) { in UpdateCtrlReqInfo()
277 newNode->laneHandle = laneHandle; in CreateCtrlReqNode()
295 if (item->laneHandle == laneHandle) { in GetCtrlReqInfoWithoutLock()
400 FreeLaneReqId(laneHandle); in CtrlAlloc()
472 if (item->laneHandle == laneHandle) { in CtrlFree()
[all …]
H A Dlnn_lane.c329 static int32_t LnnAllocRawLane(uint32_t laneHandle, const RawLaneAllocInfo *allocInfo, in LnnAllocRawLane() argument
344 int32_t result = g_laneObject[allocInfo->type]->allocRawLane(laneHandle, allocInfo, listener); in LnnAllocRawLane()
346 …LOGE(LNN_LANE, "alloc raw lane fail, laneReqId=%{public}u, result=%{public}d", laneHandle, result); in LnnAllocRawLane()
377 static int32_t LnnAllocTargetLane(uint32_t laneHandle, const LaneAllocInfoExt *allocInfo, in LnnAllocTargetLane() argument
380 if (allocInfo == NULL || listener == NULL || laneHandle == INVALID_LANE_REQ_ID) { in LnnAllocTargetLane()
391 … int32_t result = g_laneObject[allocInfo->type]->allocTargetLane(laneHandle, allocInfo, listener); in LnnAllocTargetLane()
393 …LOGE(LNN_LANE, "alloc target lane fail, handle=%{public}u, result=%{public}d", laneHandle, result); in LnnAllocTargetLane()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/common/src/
H A Dtrans_lane_pending_ctl.c226 if (laneItem->laneHandle == laneHandle) { in TransDelLaneReqFromPendingList()
259 item->laneHandle = laneHandle; in TransAddLaneReqFromPendingList()
387 item->laneHandle = laneHandle; in TransAddAsyncLaneReqFromPendingList()
431 if (item->laneHandle == laneHandle) { in TransGetLaneReqItemByLaneHandle()
466 if (item->laneHandle == laneHandle) { in TransGetLaneReqItemParamByLaneHandle()
501 if (item->laneHandle == laneHandle) { in TransUpdateLaneConnInfoByLaneHandle()
767 if (freeItem->laneHandle == laneHandle) { in TransUpdateFreeLaneStatus()
1160 if (item->laneHandle == laneHandle) { in TransWaitingRequestCallback()
1620 if (item->laneHandle == laneHandle) { in TransCancelLaneItemCondByLaneHandle()
1851 if (freeItem->laneHandle == laneHandle) { in CheckLaneHandleIsExited()
[all …]
H A Dtrans_channel_common.c374 uint32_t laneHandle = 0; in CancelWaitLaneState() local
381 if (isQosLane && laneHandle != INVALID_LANE_REQ_ID) { in CancelWaitLaneState()
386 ret = GetLaneManager()->lnnCancelLane(laneHandle); in CancelWaitLaneState()
390 TransFreeLane(laneHandle, isQosLane, isAsync); in CancelWaitLaneState()
393 if (isAsync && laneHandle != INVALID_LANE_REQ_ID) { in CancelWaitLaneState()
394 (void)TransDeleteLaneReqItemByLaneHandle(laneHandle, isAsync); in CancelWaitLaneState()
543 void TransFreeLane(uint32_t laneHandle, bool isQosLane, bool isAsync) in TransFreeLane() argument
546 laneHandle, isQosLane, isAsync); in TransFreeLane()
547 if (laneHandle == INVALID_LANE_REQ_ID) { in TransFreeLane()
551 TransFreeLaneByLaneHandle(laneHandle, isAsync); in TransFreeLane()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/common/
H A Dtrans_lane_test.cpp143 uint32_t laneHandle = 1; variable
171 uint32_t laneHandle = 1; variable
215 uint32_t laneHandle = 1; variable
254 uint32_t laneHandle = 1; variable
281 uint32_t laneHandle = 1; variable
439 uint32_t laneHandle = 1; variable
491 uint32_t laneHandle = 1; variable
525 uint32_t laneHandle = 1; variable
547 (void)LnnFreeLane(laneHandle);
561 uint32_t laneHandle = 1; variable
[all …]
H A Dtrans_lane_pending_test.cpp390 uint32_t laneHandle; variable
470 uint32_t laneHandle; variable
490 uint32_t laneHandle; variable
544 uint32_t laneHandle; variable
564 uint32_t laneHandle; variable
804 uint32_t laneHandle = 0; variable
814 laneHandle = TEST_NEW_LANE_ID;
849 uint32_t laneHandle = 0; variable
856 laneHandle = TEST_LANE_ID;
1352 uint32_t laneHandle; variable
[all …]
H A Dtrans_lane_common_test.cpp633 uint32_t laneHandle = TEST_LANE_ID; variable
658 laneHandle, isQosLane, isAsync);
663 laneHandle, isQosLane, isAsync);
893 uint32_t laneHandle = TEST_LANE_ID; variable
901 TransFreeLane(laneHandle, isQosLane, true);
906 TransFreeLane(laneHandle, isQosLane, false);
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_lane.c38 uint32_t laneHandle; member
174 newItem->laneHandle = laneHandle; in AddAuthReqNode()
214 uint32_t laneHandle = INVALID_LANE_REQ_ID; in AuthFreeLane() local
223 laneHandle = item->laneHandle; in AuthFreeLane()
229 if (laneHandle != INVALID_LANE_REQ_ID) { in AuthFreeLane()
244 if (item->laneHandle == laneHandle) { in DelAuthRequestItem()
281 uint32_t laneHandle = 0; in OnAuthConnOpenedFail() local
292 laneHandle = item->laneHandle; in OnAuthConnOpenedFail()
317 if (item->laneHandle == laneHandle) { in AuthOnLaneAllocSuccess()
348 DelAuthRequestItem(laneHandle); in AuthOnLaneAllocSuccess()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/include/
H A Dlnn_lane_assign.h30 …int32_t (*allocLane)(uint32_t laneHandle, const LaneRequestOption *request, const ILaneListener *l…
31 …int32_t (*allocLaneByQos)(uint32_t laneHandle, const LaneAllocInfo *allocInfo, const LaneAllocList…
32 …int32_t (*allocRawLane)(uint32_t laneHandle, const RawLaneAllocInfo *allocInfo, const LaneAllocLis…
33 … int32_t (*reallocLaneByQos)(uint32_t laneHandle, uint64_t laneId, const LaneAllocInfo *allocInfo,
35 int32_t (*allocTargetLane)(uint32_t laneHandle, const LaneAllocInfoExt *allocInfo,
37 int32_t (*cancelLane)(uint32_t laneHandle);
38 int32_t (*freeLane)(uint32_t laneHandle);
H A Dlnn_lane_interface.h147 void (*onLaneAllocSuccess)(uint32_t laneHandle, const LaneConnInfo *info);
148 void (*onLaneAllocFail)(uint32_t laneHandle, int32_t errCode);
149 void (*onLaneFreeSuccess)(uint32_t laneHandle);
150 void (*onLaneFreeFail)(uint32_t laneHandle, int32_t errCode);
151 void (*onLaneQosEvent)(uint32_t laneHandle, LaneOwner laneOwner, LaneQosEvent qosEvent);
270 …int32_t (*lnnAllocLane)(uint32_t laneHandle, const LaneAllocInfo *allocInfo, const LaneAllocListen…
273 int32_t (*lnnReAllocLane)(uint32_t laneHandle, uint64_t laneId, const LaneAllocInfo *allocInfo,
275 int32_t (*lnnAllocTargetLane)(uint32_t laneHandle, const LaneAllocInfoExt *allocInfo,
277 int32_t (*lnnCancelLane)(uint32_t laneHandle);
278 int32_t (*lnnFreeLane)(uint32_t laneHandle);
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/common/include/
H A Dtrans_lane_pending_ctl.h66 int32_t TransGetLaneInfo(const SessionParam *param, LaneConnInfo *connInfo, uint32_t *laneHandle);
68 const SessionParam *param, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart);
69 …InfoByOption(const LaneRequestOption *requestOption, LaneConnInfo *connInfo, uint32_t *laneHandle);
70 …ransGetLaneInfoByQos(const LaneAllocInfo *allocInfo, LaneConnInfo *connInfo, uint32_t *laneHandle);
72 int32_t TransCancelLaneItemCondByLaneHandle(uint32_t laneHandle, bool bSucc, bool isAsync, int32_t …
73 int32_t TransDeleteLaneReqItemByLaneHandle(uint32_t laneHandle, bool isAsync);
80 int32_t TransUpdateAuthWithParaLaneConnInfo(uint32_t laneHandle, bool bSucc, const LaneConnInfo *co…
83 int32_t TransFreeLaneByLaneHandle(uint32_t laneHandle, bool isAsync);
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/
H A Dtrans_lane_manager.c41 uint32_t laneHandle; member
198 newLane->laneHandle = laneHandle; in TransLaneMgrAddLane()
249 uint32_t laneHandle = 0; in TransLaneMgrDelLane() local
257 laneHandle = laneItem->laneHandle; in TransLaneMgrDelLane()
274 LnnFreeLane(laneHandle); in TransLaneMgrDelLane()
325 *laneHandle = item->laneHandle; in TransGetLaneHandleByChannelId()
364 if (item->laneHandle == laneHandle) { in TransGetChannelInfoByLaneHandle()
509 socketItem->laneHandle = laneHandle; in TransUpdateSocketChannelLaneInfoBySession()
713 if (laneHandle != NULL) { in TransGetSocketChannelLaneInfoBySession()
714 *laneHandle = socketItem->laneHandle; in TransGetSocketChannelLaneInfoBySession()
[all …]
H A Dtrans_channel_manager.c226 TransFreeLaneByLaneHandle(laneHandle, isAsync); in TransFreeLaneInner()
228 LnnFreeLane(laneHandle); in TransFreeLaneInner()
245 uint32_t laneHandle = INVALID_LANE_REQ_ID; in TransOpenChannel() local
292 ret = TransGetLaneInfo(param, &connInfo, &laneHandle); in TransOpenChannel()
300 tmpName, param->sessionId, laneHandle, connInfo.type); in TransOpenChannel()
363 TransFreeLaneInner(laneHandle, param->isQosLane, param->isAsync); in TransOpenChannel()
494 uint32_t laneHandle; in TransStreamStats() local
495 int32_t ret = TransGetLaneHandleByChannelId(channelId, &laneHandle); in TransStreamStats()
517 uint32_t laneHandle; in TransRequestQos() local
518 int32_t ret = TransGetLaneHandleByChannelId(channelId, &laneHandle); in TransRequestQos()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/include/
H A Dtrans_lane_manager.h45 uint32_t laneHandle; member
58 …const TransInfo *transInfo, const LaneConnInfo *connInfo, uint32_t laneHandle, bool isQosLane, App…
64 int32_t TransGetLaneHandleByChannelId(int32_t channelId, uint32_t *laneHandle);
68 int32_t TransGetChannelInfoByLaneHandle(uint32_t laneHandle, int32_t *channelId, int32_t *channelTy…
77 const char *sessionName, int32_t sessionId, uint32_t laneHandle, bool isQosLane, bool isAsync);
94 … const char *sessionName, int32_t sessionId, uint32_t *laneHandle, bool *isQosLane, bool *isAsync);
100 int32_t TransGetTransLaneInfoByLaneHandle(uint32_t laneHandle, TransLaneInfo *laneInfo);
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/trans_lane_manager_test/
H A Dtrans_lane_manager_test.cpp138 uint32_t laneHandle = 1; variable
150 int32_t ret = TransLaneMgrAddLane(&transInfo, connInfo, laneHandle, isQosLane, myData);
155 ret = TransLaneMgrAddLane(&transInfo, connInfo, laneHandle, isQosLane, myData);
161 ret = TransLaneMgrAddLane(&transInfo, NULL, laneHandle, isQosLane, myData);
166 ret = TransLaneMgrAddLane(&transInfo, connInfo, laneHandle, isQosLane, myData);
231 uint32_t laneHandle = 22; variable
239 ret = TransGetLaneHandleByChannelId(channelId, &laneHandle);
253 uint32_t laneHandle = 0; variable
259 ret = TransGetChannelInfoByLaneHandle(laneHandle, NULL, &channelType);
262 ret = TransGetChannelInfoByLaneHandle(laneHandle, &channelId, NULL);
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/mock/
H A Dtrans_manager_mock.cpp65 const SessionParam *param, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart) in TransAsyncGetLaneInfo() argument
67 …return GetTransManagerInterface()->TransAsyncGetLaneInfo(param, laneHandle, callingTokenId, timeSt… in TransAsyncGetLaneInfo()
70 int32_t TransGetLaneInfo(const SessionParam *param, LaneConnInfo *connInfo, uint32_t *laneHandle) in TransGetLaneInfo() argument
72 return GetTransManagerInterface()->TransGetLaneInfo(param, connInfo, laneHandle); in TransGetLaneInfo()
H A Dtrans_manager_mock.h41 … const SessionParam *param, uint32_t *laneHandle, uint32_t callingTokenId, int64_t timeStart) = 0;
42 …32_t TransGetLaneInfo(const SessionParam *param, LaneConnInfo *connInfo, uint32_t *laneHandle) = 0;
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/common/mock/
H A Dtrans_lane_pending_test_mock.cpp79 int32_t TransWaitingRequestCallback(uint32_t laneHandle) in TransWaitingRequestCallback() argument
81 return GetTransLanePendingTestInterface()->TransWaitingRequestCallback(laneHandle); in TransWaitingRequestCallback()
102 …const TransInfo *transInfo, const LaneConnInfo *connInfo, uint32_t laneHandle, bool isQosLane, App… in TransLaneMgrAddLane() argument
104 …return GetTransLanePendingTestInterface()->TransLaneMgrAddLane(transInfo, connInfo, laneHandle, is… in TransLaneMgrAddLane()
H A Dtrans_lane_pending_test_mock.h42 virtual int32_t TransWaitingRequestCallback(uint32_t laneHandle) = 0;
49 uint32_t laneHandle, bool isQosLane, AppInfoData *myData) = 0;
70 MOCK_METHOD1(TransWaitingRequestCallback, int32_t (uint32_t laneHandle));
76 uint32_t laneHandle, bool isQosLane, AppInfoData *myData));
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/unittest/
H A Dlane_test.cpp180 static void OnLaneAllocSuccess(uint32_t laneHandle, const LaneConnInfo *info) in OnLaneAllocSuccess() argument
182 printf("LaneAllocSucc: laneReqId:0x%x, linkType:%s\n", laneHandle, GetLinkType(info->type)); in OnLaneAllocSuccess()
184 int32_t ret = laneManager->lnnFreeLane(laneHandle); in OnLaneAllocSuccess()
188 static void OnLaneAllocFail(uint32_t laneHandle, int32_t errCode) in OnLaneAllocFail() argument
190 printf("LaneAllocFail: laneReqId:0x%x, reason:%d\n", laneHandle, errCode); in OnLaneAllocFail()
192 int32_t ret = laneManager->lnnFreeLane(laneHandle); in OnLaneAllocFail()
196 static void OnLaneFreeSuccess(uint32_t laneHandle) in OnLaneFreeSuccess() argument
198 GTEST_LOG_(INFO) << "free lane success, laneReqId=" << laneHandle; in OnLaneFreeSuccess()
201 static void OnLaneFreeFail(uint32_t laneHandle, int32_t errCode) in OnLaneFreeFail() argument
203 GTEST_LOG_(INFO) << "free lane failed, laneReqId=" << laneHandle << ", errCode=" << errCode; in OnLaneFreeFail()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/src/
H A Dlnn_lane_test.cpp78 static void OnLaneFreeSuccess(uint32_t laneHandle);
181 int32_t ret = laneManager->lnnFreeLane(laneHandle); in OnLaneAllocSuccess()
197 static void OnLaneFreeSuccess(uint32_t laneHandle) in OnLaneFreeSuccess() argument
243 (void)laneHandle; in OnLaneAllocSuccessForHml()
252 (void)laneHandle; in OnLaneAllocSuccessForP2p()
261 (void)laneHandle; in OnLaneAllocSuccessForBr()
270 (void)laneHandle; in OnLaneAllocSuccessForWlan5g()
279 (void)laneHandle; in OnLaneAllocSuccessForBle()
3014 ret = laneManager->lnnFreeLane(laneHandle);
3041 ret = laneManager->lnnFreeLane(laneHandle);
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/trans_lane/
H A Dlnn_trans_lane_test.cpp69 static void OnLaneAllocSuccess(uint32_t laneHandle, const LaneConnInfo *info) in OnLaneAllocSuccess() argument
71 (void)laneHandle; in OnLaneAllocSuccess()
77 static void OnLaneAllocFail(uint32_t laneHandle, int32_t errCode) in OnLaneAllocFail() argument
79 GTEST_LOG_(INFO) << "alloc lane failed, laneReqId=" << laneHandle << ", errCode=" << errCode; in OnLaneAllocFail()
83 (void)transObj->freeLane(laneHandle); in OnLaneAllocFail()
86 static void OnLaneFreeSuccess(uint32_t laneHandle) in OnLaneFreeSuccess() argument
88 GTEST_LOG_(INFO) << "free lane success, laneReqId=" << laneHandle; in OnLaneFreeSuccess()
91 static void OnLaneFreeFail(uint32_t laneHandle, int32_t errCode) in OnLaneFreeFail() argument
93 GTEST_LOG_(INFO) << "free lane failed, laneReqId=" << laneHandle << ", errCode=" << errCode; in OnLaneFreeFail()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/trans_channel_manager_mock_test/
H A Dtrans_manager_test_mock.cpp38 int32_t TransGetLaneHandleByChannelId(int32_t channelId, uint32_t *laneHandle) in TransGetLaneHandleByChannelId() argument
40 return GetTransManagerTestInterface()->TransGetLaneHandleByChannelId(channelId, laneHandle); in TransGetLaneHandleByChannelId()
H A Dtrans_manager_test_mock.h29 virtual int32_t TransGetLaneHandleByChannelId(int32_t channelId, uint32_t *laneHandle) = 0;
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_listener.c406 uint32_t laneHandle = INVALID_LANE_REQ_ID; in TransGetConnectOption() local
427 if (TransGetLaneInfoByOption(&option, &connInfo, &laneHandle) != SOFTBUS_OK) { in TransGetConnectOption()
430 …_CTRL, "net channel lane info. laneHandle=%{public}u, type=%{public}d", laneHandle, connInfo.type); in TransGetConnectOption()
434 LnnFreeLane(laneHandle); in TransGetConnectOption()
437 if (laneHandle != 0) { in TransGetConnectOption()
438 LnnFreeLane(laneHandle); in TransGetConnectOption()

12