Home
last modified time | relevance | path

Searched refs:chanInfo (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/support/platform/src/dma/
H A Ddmac_core.c135 if (chanInfo != NULL && chanInfo->lli != NULL) { in DmacFreeLli()
182 chanInfo->callback(chanInfo->callbackData, chanInfo->status); in DmacCallbackHandle()
273 …chan, chanInfo->transType, chanInfo->srcWidth, chanInfo->destWidth, chanInfo->config, chanInfo->ll… in DmacRequestChannel()
275 return chanInfo; in DmacRequestChannel()
314 if (chanInfo == NULL || chanInfo->lli == NULL) { in DmacFillLli()
321 chanInfo->srcWidth, chanInfo->destWidth); in DmacFillLli()
324 plli = chanInfo->lli; in DmacFillLli()
353 plli = chanInfo->lli; in DmacFillLli()
463 chanInfo->callback(chanInfo->callbackData, DMAC_CHN_ERROR); in DmacM2mTransfer()
472 chanInfo->callback(chanInfo->callbackData, ret); in DmacM2mTransfer()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/
H A Dsoftbus_proxychannel_manager_test.cpp260 chanInfo->channelId = TEST_NUMBER_TEN;
270 SoftBusFree(chanInfo);
494 ProxyChannelInfo chanInfo; variable
519 ProxyChannelInfo chanInfo; variable
638 ProxyChannelInfo chanInfo; variable
743 ProxyChannelInfo chanInfo; variable
759 ProxyChannelInfo chanInfo; variable
798 SoftBusFree(chanInfo);
827 ASSERT_TRUE(NULL != chanInfo);
832 ret = TransProxyGetSendMsgChanInfo(chanInfo->channelId, chanInfo);
[all …]
H A Dtrans_proxy_message_test.cpp698 ProxyChannelInfo chanInfo; variable
712 TransProxyKeepalive(connId, &chanInfo);
714 TransProxyKeepalive(connId, &chanInfo);
717 TransProxyKeepalive(connId, &chanInfo);
723 ret = TransProxyAckKeepalive(&chanInfo);
726 ret = TransProxyAckKeepalive(&chanInfo);
729 ret = TransProxyAckKeepalive(&chanInfo);
741 ProxyChannelInfo chanInfo; variable
754 ret = TransProxyResetPeer(&chanInfo);
757 ret = TransProxyResetPeer(&chanInfo);
[all …]
H A Dtrans_proxy_manager_test.cpp564 ProxyChannelInfo chanInfo; variable
566 int32_t ret = TransProxyGetSendMsgChanInfo(channelId, &chanInfo);
570 ret = TransProxyGetSendMsgChanInfo(channelId, &chanInfo);
599 ProxyChannelInfo chanInfo; variable
774 ProxyChannelInfo chanInfo; variable
775 ret = TransProxyGetSendMsgChanInfo(channelId, &chanInfo);
777 EXPECT_EQ(PROXY_CHANNEL_STATUS_COMPLETED, chanInfo.status);
781 ret = TransProxyGetSendMsgChanInfo(channelId, &chanInfo);
783 EXPECT_EQ(PROXY_CHANNEL_STATUS_COMPLETED, chanInfo.status);
855 ProxyChannelInfo chanInfo; variable
[all …]
H A Dsoftbus_proxychannel_message_test.cpp670 ProxyChannelInfo chanInfo; variable
675 TransProxyKeepalive(connId, &chanInfo);
677 TransProxyKeepalive(connId, &chanInfo);
680 TransProxyKeepalive(connId, &chanInfo);
686 ret = TransProxyAckKeepalive(&chanInfo);
689 ret = TransProxyAckKeepalive(&chanInfo);
692 ret = TransProxyAckKeepalive(&chanInfo);
704 ProxyChannelInfo chanInfo; variable
711 ret = TransProxyResetPeer(&chanInfo);
714 ret = TransProxyResetPeer(&chanInfo);
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_session.c43 int32_t TransProxyTransDataSendMsg(ProxyChannelInfo *chanInfo, const unsigned char *payLoad,
110 ProxyChannelInfo *chanInfo = (ProxyChannelInfo *)SoftBusCalloc(sizeof(ProxyChannelInfo)); in TransProxyPostPacketData() local
111 if (chanInfo == NULL) { in TransProxyPostPacketData()
115 if (TransProxyGetSendMsgChanInfo(channelId, chanInfo) != SOFTBUS_OK) { in TransProxyPostPacketData()
116 SoftBusFree(chanInfo); in TransProxyPostPacketData()
120 (void)memset_s(chanInfo->appInfo.sessionKey, sizeof(chanInfo->appInfo.sessionKey), 0, in TransProxyPostPacketData()
121 sizeof(chanInfo->appInfo.sessionKey)); in TransProxyPostPacketData()
122 int32_t ret = TransProxyTransDataSendMsg(chanInfo, data, len, flags); in TransProxyPostPacketData()
127 SoftBusFree(chanInfo); in TransProxyPostPacketData()
H A Dsoftbus_proxychannel_message.c632 int32_t TransProxyUnpackHandshakeAckMsg(const char *msg, ProxyChannelInfo *chanInfo, in TransProxyUnpackHandshakeAckMsg() argument
643 …if (!GetJsonObjectStringItem(root, JSON_KEY_IDENTITY, chanInfo->identity, sizeof(chanInfo->identit… in TransProxyUnpackHandshakeAckMsg()
645 sizeof(chanInfo->appInfo.peerData.deviceId))) { in TransProxyUnpackHandshakeAckMsg()
653 chanInfo->appInfo.encrypt = APP_INFO_FILE_FEATURES_SUPPORT; in TransProxyUnpackHandshakeAckMsg()
654 chanInfo->appInfo.algorithm = APP_INFO_ALGORITHM_AES_GCM_256; in TransProxyUnpackHandshakeAckMsg()
655 chanInfo->appInfo.crc = APP_INFO_FILE_FEATURES_NO_SUPPORT; in TransProxyUnpackHandshakeAckMsg()
657 …int32_t ret = TransProxyGetAppInfoType(chanInfo->myId, chanInfo->identity, &chanInfo->appInfo.appT… in TransProxyUnpackHandshakeAckMsg()
663 if (chanInfo->appInfo.appType == APP_TYPE_NORMAL) { in TransProxyUnpackHandshakeAckMsg()
668 !GetJsonObjectNumberItem(root, JSON_KEY_CRC, &chanInfo->appInfo.crc) || in TransProxyUnpackHandshakeAckMsg()
677 chanInfo->appInfo.peerHandleId = -1; in TransProxyUnpackHandshakeAckMsg()
[all …]
H A Dsoftbus_proxychannel_manager.c453 static int32_t TransProxyResetChan(ProxyChannelInfo *chanInfo) in TransProxyResetChan() argument
464 if (ResetChanIsEqual(removeNode->status, removeNode, chanInfo)) { in TransProxyResetChan()
465 … if (memcpy_s(chanInfo, sizeof(ProxyChannelInfo), removeNode, sizeof(ProxyChannelInfo)) != EOK) { in TransProxyResetChan()
478 TRANS_LOGI(TRANS_CTRL, "trans proxy reset channelId=%{public}d", chanInfo->channelId); in TransProxyResetChan()
487 …atic int32_t TransProxyGetRecvMsgChanInfo(int16_t myId, int16_t peerId, ProxyChannelInfo *chanInfo) in TransProxyGetRecvMsgChanInfo() argument
501 … if (memcpy_s(chanInfo, sizeof(ProxyChannelInfo), item, sizeof(ProxyChannelInfo)) != EOK) { in TransProxyGetRecvMsgChanInfo()
514 static int32_t TransProxyKeepAliveChan(ProxyChannelInfo *chanInfo) in TransProxyKeepAliveChan() argument
524 if (ChanIsEqual(item, chanInfo)) { in TransProxyKeepAliveChan()
529 … if (memcpy_s(chanInfo, sizeof(ProxyChannelInfo), item, sizeof(ProxyChannelInfo)) != EOK) { in TransProxyKeepAliveChan()
542 int32_t TransProxyGetSendMsgChanInfo(int32_t channelId, ProxyChannelInfo *chanInfo) in TransProxyGetSendMsgChanInfo() argument
[all …]
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/test/unittest/common/distributedcameramgr/
H A Ddcamera_source_controller_test.cpp187 std::shared_ptr<DCameraChannelInfo> chanInfo = std::make_shared<DCameraChannelInfo>(); variable
188 int32_t ret = GetLocalDeviceNetworkId(chanInfo->sourceDevId_);
191 chanInfo->detail_.push_back(continueChInfo);
192 chanInfo->detail_.push_back(snapShotChInfo);
199 ret = controller_->ChannelNeg(chanInfo);
213 std::shared_ptr<DCameraChannelInfo> chanInfo = std::make_shared<DCameraChannelInfo>(); variable
328 std::shared_ptr<DCameraChannelInfo> chanInfo = std::make_shared<DCameraChannelInfo>(); variable
329 int32_t ret = GetLocalDeviceNetworkId(chanInfo->sourceDevId_);
332 chanInfo->detail_.push_back(continueChInfo);
333 chanInfo->detail_.push_back(snapShotChInfo);
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/qos/
H A Dsoftbus_qos_virtual.c20 int32_t NotifyQosChannelOpened(const ChannelInfo *chanInfo) in NotifyQosChannelOpened() argument
22 (void)chanInfo; in NotifyQosChannelOpened()
/ohos5.0/drivers/hdf_core/framework/support/platform/include/dma/
H A Ddmac_core.h140 …int32_t (*getChanInfo)(struct DmaCntlr *cntlr, struct DmacChanInfo *chanInfo, struct DmacMsg *msg);
141 int32_t (*dmaChanEnable)(struct DmaCntlr *cntlr, struct DmacChanInfo *chanInfo);
142 int32_t (*dmaM2mChanEnable)(struct DmaCntlr *cntlr, struct DmacChanInfo *chanInfo,
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/qos/interface/
H A Dsoftbus_qos.h25 int32_t NotifyQosChannelOpened(const ChannelInfo *chanInfo);
/ohos5.0/drivers/peripheral/wlan/test/hdi_service/
H A Dwlan_hdi_hal_services_c_test.cpp1001 struct AdjustChannelInfo chanInfo; variable
1002 chanInfo.msgId = 5;
1003 chanInfo.chanNumber = 36;
1004 chanInfo.bandwidth = 80;
1005 chanInfo.switchType = 0;
1006 …rc = g_wlanObj->WifiSendCmdIoctl(g_wlanObj, ifName, CMD_SET_CHAN_ADJUST, (const int8_t *)&chanInfo,
1007 sizeof(chanInfo));
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/include/
H A Dsoftbus_proxychannel_manager.h55 int32_t TransProxyGetSendMsgChanInfo(int32_t channelId, ProxyChannelInfo *chanInfo);
H A Dsoftbus_proxychannel_message.h164 int32_t TransProxyUnpackHandshakeAckMsg(const char *msg, ProxyChannelInfo *chanInfo,
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/
H A Ddcamera_source_dev.cpp517 std::shared_ptr<DCameraChannelInfo> chanInfo = std::make_shared<DCameraChannelInfo>(); in ConfigStreams() local
518 ret = GetLocalDeviceNetworkId(chanInfo->sourceDevId_); in ConfigStreams()
526 chanInfo->detail_.push_back(continueChInfo); in ConfigStreams()
527 chanInfo->detail_.push_back(snapShotChInfo); in ConfigStreams()
529 ret = controller_->ChannelNeg(chanInfo); in ConfigStreams()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/
H A Dtrans_auth_manager.c1176 AuthChannelInfo chanInfo; in TransAuthGetConnOptionByChanId() local
1177 int32_t ret = GetAuthChannelInfoByChanId(channelId, &chanInfo); in TransAuthGetConnOptionByChanId()
1183 if (!chanInfo.isClient) { in TransAuthGetConnOptionByChanId()
1188 … if (memcpy_s(connOpt, sizeof(ConnectOption), &(chanInfo.connOpt), sizeof(ConnectOption)) != EOK) { in TransAuthGetConnOptionByChanId()