/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/core/ |
D | nstackx_congestion.c | 95 static inline uint32_t GetThetaByLinkSpeed(uint32_t speedByte, uint32_t mtu) in GetThetaByLinkSpeed() argument 98 uint32_t effectiveSize = mtu * assembleNum; in GetThetaByLinkSpeed() 99 …uint32_t allSize = (GetWifiNonDataPacketConsumeTime() * speedByte + (PACKET_HEAD_BYTES + mtu) * as… in GetThetaByLinkSpeed() 118 const WifiStationInfo *rxWifiStationInfo, uint16_t *sendRateResult, uint32_t mtu) in GetWlanConngestSendRate() argument 128 uint32_t thetaTx = GetThetaByLinkSpeed(speedTX, mtu); in GetWlanConngestSendRate() 129 uint32_t thetaRx = GetThetaByLinkSpeed(speedRX, mtu); in GetWlanConngestSendRate() 134 *sendRateResult = (uint16_t)(sendRateOri * MB_SIZE / (mtu + GetProtocolHead()) * in GetWlanConngestSendRate() 144 const WifiStationInfo *rxWifiStationInfo, uint16_t *sendRateResult, uint32_t mtu) in GetP2pCongestSendRate() argument 152 uint32_t thetaTx = GetThetaByLinkSpeed(speedTX, mtu); in GetP2pCongestSendRate() 157 …(uint16_t)(sendRateOri * MB_SIZE / (uint32_t)mtu * DATA_FRAME_SEND_INTERVAL_MS / MS_NUM_PER_SECOND… in GetP2pCongestSendRate() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/gatt/ |
D | gatt_connection.h | 35 GattConnection(const GattDevice &device, uint16_t mtu, uint16_t handle) in GattConnection() argument 36 : connectionHandle_(handle), mtu_(mtu), device_(device) in GattConnection() 59 void SetMtu(uint16_t mtu) in SetMtu() argument 61 mtu_ = mtu; in SetMtu()
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/att/ |
D | att_send_response.c | 41 static void AttAssignMTU(uint16_t *mtu, AttConnectInfo *connect); 91 void AttAssignMTU(uint16_t *mtu, AttConnectInfo *connect) in AttAssignMTU() argument 103 *mtu = DEFAULTBREDRMTU; in AttAssignMTU() 106 *mtu = DEFAULTLEATTMTU; in AttAssignMTU() 109 *mtu = connect->mtu; in AttAssignMTU() 242 packet = PacketMalloc(0, 0, sizeof(uint8_t) + sizeof(exchangeMtuResPtr->mtu)); in AttExchangeMTUResponseAsync() 249 ((uint16_t *)(data + 1))[0] = exchangeMtuResPtr->mtu; in AttExchangeMTUResponseAsync() 250 connect->mtu = Min(connect->receiveMtu, exchangeMtuResPtr->mtu); in AttExchangeMTUResponseAsync() 297 exchangeMtuResPtr->mtu = serverRxMTU; in ATT_ExchangeMTUResponse() 368 uint16_t mtu = 0; in AttFindInformationResponseAsync() local [all …]
|
D | att_connect.c | 342 connecting->remotel2capConfigInfoObj.mtu = cfg->mtu; in AttRecvConfigReqAssignBredrConnect() 345 …connecting->mtu = Min(connecting->locall2capConfigInfoObj.mtu, connecting->remotel2capConfigInfoOb… in AttRecvConfigReqAssignBredrConnect() 362 connecting->mtu = 0; in AttClearConnectingInfo() 398 connect->mtu = 0; in AttClearConnectInfo() 482 connecting->mtu = DEFAULTBREDRMTU; in AttCopyToConnectingInfo() 514 bredrConnectCallback.mtu = DEFAULTBREDRMTU; in GAPSecCallbackAsync() 641 (*connecting)->locall2capConfigInfoObj.mtu = connParaPtr->bredrConnParaVar.mtu; in AttConnectReqAssignBredrConnect() 644 (*connecting)->mtu = DEFAULTBREDRMTU; in AttConnectReqAssignBredrConnect() 746 bredrConnectCallback.mtu = connecting->mtu; in AttConnectCompletedCallback() 804 (*connect)->mtu = connecting->mtu; in AttCopyToConnectInfo() [all …]
|
D | att_receive.c | 432 connect->mtu = Min(connect->sendMtu, attExchangeMTUObj.mtuSize); in AttExchangeMTUResponse() 472 if ((connect->transportType == BT_TRANSPORT_LE && connect->mtu == DEFAULTLEATTMTU) || in AttFindInformationRequest() 473 (connect->transportType == BT_TRANSPORT_BR_EDR && connect->mtu == DEFAULTBREDRMTU)) { in AttFindInformationRequest() 602 if ((connect->transportType == BT_TRANSPORT_LE && connect->mtu == DEFAULTLEATTMTU) || in AttFindByTypeValueRequest() 603 (connect->transportType == BT_TRANSPORT_BR_EDR && connect->mtu == DEFAULTBREDRMTU)) { in AttFindByTypeValueRequest() 734 if ((connect->transportType == BT_TRANSPORT_LE && connect->mtu == DEFAULTLEATTMTU) || in AttReadByTypeRequest() 735 (connect->transportType == BT_TRANSPORT_BR_EDR && connect->mtu == DEFAULTBREDRMTU)) { in AttReadByTypeRequest() 857 if ((connect->transportType == BT_TRANSPORT_LE && connect->mtu == DEFAULTLEATTMTU) || in AttReadRequest() 858 (connect->transportType == BT_TRANSPORT_BR_EDR && connect->mtu == DEFAULTBREDRMTU)) { in AttReadRequest() 938 if ((connect->transportType == BT_TRANSPORT_LE && connect->mtu == DEFAULTLEATTMTU) || in AttReadBlobRequest() [all …]
|
D | att_common.h | 106 uint16_t mtu; member 120 uint16_t mtu; member 157 uint16_t mtu; member
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
D | nstackx_dfile_config.c | 58 static void GetFileConfigP2p(DFileConfig *dFileConfig, uint16_t mtu) in GetFileConfigP2p() argument 60 dFileConfig->dataFrameSize = NSTACKX_P2P_FRAME_SIZE_TIMES * mtu; in GetFileConfigP2p() 71 static void GetFileConfigWlan(DFileConfig *dFileConfig, uint16_t mtu) in GetFileConfigWlan() argument 73 dFileConfig->dataFrameSize = NSTACKX_WLAN_FRAME_SIZE_TIMES * mtu; in GetFileConfigWlan() 92 int32_t GetDFileConfig(DFileConfig *dFileConfig, uint16_t mtu, uint16_t connType) in GetDFileConfig() argument 94 if ((dFileConfig == NULL) || CheckConnType(connType) != NSTACKX_EOK || (mtu == 0)) { in GetDFileConfig() 98 GetFileConfigP2p(dFileConfig, mtu); in GetDFileConfig() 100 GetFileConfigWlan(dFileConfig, mtu); in GetDFileConfig()
|
D | nstackx_dfile_frame.c | 296 settingFrame->mtu = htons(settingFramePara->mtu); in EncodeSettingFrame() 531 if (payloadLength == sizeof(hostSettingFrame->mtu) + sizeof(hostSettingFrame->connType)) { in IsSettingFrameLengthValid() 535 if (payloadLength == sizeof(hostSettingFrame->mtu) + sizeof(hostSettingFrame->connType) + in IsSettingFrameLengthValid() 540 if (payloadLength == sizeof(hostSettingFrame->mtu) + sizeof(hostSettingFrame->connType) + in IsSettingFrameLengthValid() 545 if (payloadLength == sizeof(hostSettingFrame->mtu) + sizeof(hostSettingFrame->connType) + in IsSettingFrameLengthValid() 551 if (payloadLength == sizeof(hostSettingFrame->mtu) + sizeof(hostSettingFrame->connType) + in IsSettingFrameLengthValid() 569 if (ntohs(netSettingFrame->mtu) < NSTACKX_MIN_MTU_SIZE || in IsSettingFrameMtuAndTypeValid() 597 hostSettingFrame->mtu = ntohs(netSettingFrame->mtu); in DecodeSettingFrame() 599 if (payloadLength == sizeof(hostSettingFrame->mtu) + sizeof(hostSettingFrame->connType)) { in DecodeSettingFrame() 607 } else if (payloadLength == sizeof(hostSettingFrame->mtu) + sizeof(hostSettingFrame->connType) + in DecodeSettingFrame() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/transport/ |
D | transport_factory.cpp | 23 …const RawAddress *addr, uint8_t scn, uint16_t mtu, DataTransportObserver &observer, utility::Dispa… in CreateRfcommTransport() argument 26 return std::make_unique<RfcommTransport>(addr, scn, mtu, observer, dispatcher); in CreateRfcommTransport()
|
D | transport_factory.h | 39 …:unique_ptr<DataTransport> CreateRfcommTransport(const RawAddress *addr, uint8_t scn, uint16_t mtu,
|
D | transport_def.h | 53 uint16_t mtu; member
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/rfcomm/ |
D | rfcomm_server.c | 72 uint8_t scn, uint16_t mtu, uint32_t eventMask, RFCOMM_EventCallback callback, void *context) in RfcommCreateServer() argument 74 LOG_INFO("%{public}s scn:%hhu, mtu:%hu", __func__, scn, mtu); in RfcommCreateServer() 83 server->maxRevSize = mtu; in RfcommCreateServer()
|
D | rfcomm_defs.h | 136 #define IS_MTU_VALID(mtu) ((mtu) >= 23 && (mtu) <= 32767) argument 356 uint16_t mtu; member 365 uint16_t mtu; member 418 uint16_t mtu; member 497 int RfcommRegisterServer(uint8_t scn, uint16_t mtu, uint32_t eventMask, RFCOMM_EventCallback callba… 606 uint8_t scn, uint16_t mtu, uint32_t eventMask, RFCOMM_EventCallback callback, void *context);
|
D | rfcomm.c | 159 createChannelInfo.mtu = reqInfo->mtu; in RfcommConnectChannel() 186 int RfcommRegisterServer(uint8_t scn, uint16_t mtu, uint32_t eventMask, in RfcommRegisterServer() argument 205 server = RfcommCreateServer(scn, mtu, eventMask, callback, context); in RfcommRegisterServer()
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/avrcp_tg/ |
D | avrcp_tg_connection.cpp | 261 uint16_t mtu = AVRC_TG_DEFAULT_CONTROL_MTU_SIZE; in GetControlMtu() local 265 mtu = info->controlMtu_; in GetControlMtu() 270 return mtu; in GetControlMtu() 273 void AvrcTgConnectManager::SetControlMtu(const RawAddress &rawAddr, uint16_t mtu) in SetControlMtu() argument 276 LOG_DEBUG("[AVRCP TG] mtu[%u]", mtu); in SetControlMtu() 280 info->controlMtu_ = mtu; in SetControlMtu() 290 uint16_t mtu = AVRC_TG_DEFAULT_BROWSE_MTU_SIZE; in GetBrowseMtu() local 294 mtu = info->browseMtu_; in GetBrowseMtu() 299 return mtu; in GetBrowseMtu() 302 void AvrcTgConnectManager::SetBrowseMtu(const RawAddress &rawAddr, uint16_t mtu) in SetBrowseMtu() argument [all …]
|
D | avrcp_tg_browse.h | 173 AvrcTgSbpPacket(uint16_t mtu, uint8_t status, uint16_t uidCounter, uint32_t numOfItems, 410 …uint16_t mtu, uint8_t status, uint32_t uidCounter, const std::vector<AvrcMpItem> &items, uint8_t l… 419 …uint16_t mtu, uint8_t status, uint32_t uidCounter, const std::vector<AvrcMeItem> &items, uint8_t l… 627 AvrcTgGiaPacket(uint16_t mtu, uint8_t status, const std::vector<uint32_t> &attributes,
|
/foundation/communication/bluetooth/interfaces/innerkits/native_cpp/include/ |
D | bluetooth_gatt_client.h | 125 virtual void OnMtuUpdate(int mtu, int ret) in OnMtuUpdate() argument 266 int RequestBleMtuSize(int mtu);
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/interface/ |
D | nstackx_congestion.h | 70 …RT int32_t GetConngestSendRate(WifiStationInfo *rxWifiStationInfo, uint16_t connType, uint32_t mtu, 74 uint32_t *sendRateResult, uint32_t mtu);
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/l2cap/ |
D | l2cap.c | 131 if ((cfg->mtu < L2CAP_MIN_MTU) || (cfg->flushTimeout == 0)) { in L2CAP_ConfigReq() 144 chan->lcfg.mtu = cfg->mtu; in L2CAP_ConfigReq() 158 if (chan->lcfg.rfc.mps > cfg->mtu) { in L2CAP_ConfigReq() 159 chan->lcfg.rfc.mps = cfg->mtu; in L2CAP_ConfigReq() 168 if (chan->lcfg.rfc.mps > cfg->mtu) { in L2CAP_ConfigReq() 169 chan->lcfg.rfc.mps = cfg->mtu; in L2CAP_ConfigReq() 196 if (cfg->mtu < L2CAP_MIN_MTU) { in L2CAP_ConfigRsp() 355 if (length > chan->rcfg.mtu) { in L2CAP_SendData()
|
/foundation/communication/netmanager_base/test/netmanagernative/unit_test/ |
D | resolver_config.cpp | 190 int mtu = 1200; in TestInterfaceSetMtu() local 195 ret = netsysServiceK_->InterfaceSetMtu(ifName, mtu); in TestInterfaceSetMtu() 206 int mtu = 1200; in TestInterfaceGetMtu() local 211 ret = netsysServiceK_->InterfaceSetMtu(ifName, mtu); in TestInterfaceGetMtu()
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/gavdp/a2dp_codec/sbccodecctrl/src/ |
D | a2dp_encoder_sbc.cpp | 325 …const uint16_t mtu = A2DP_SBC_MAX_PACKET_SIZE - A2DP_SBC_PACKET_HEAD_SIZE - A2DP_SBC_MEDIA_PAYLOAD… in UpdateEncoderParam() local 326 if (mtu < a2dpSbcEncoderCb_.peerMtu) { in UpdateEncoderParam() 327 a2dpSbcEncoderCb_.mtuSize = mtu; in UpdateEncoderParam() 663 uint16_t mtu = a2dpSbcEncoderCb_.mtuSize; in UpdateMtuSize() local 667 if (mtu > MAX_2MBPS_SBC_PAYLOAD_MTU) { // MTU is only payload. in UpdateMtuSize() 668 mtu = MAX_2MBPS_SBC_PAYLOAD_MTU; in UpdateMtuSize() 669 a2dpSbcEncoderCb_.mtuSize = mtu; in UpdateMtuSize() 672 if (mtu > MAX_3MBPS_SBC_PAYLOAD_MTU) { // MTU is only payload. in UpdateMtuSize() 673 mtu = MAX_3MBPS_SBC_PAYLOAD_MTU; in UpdateMtuSize() 674 a2dpSbcEncoderCb_.mtuSize = mtu; in UpdateMtuSize()
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/include/ |
D | interface_profile_gatt_client.h | 121 virtual void OnMtuChanged(int state, int mtu) = 0; 257 virtual int RequestExchangeMtu(int appId, int mtu) = 0;
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/avctp/ |
D | avctp_api.h | 24 uint16_t mtu; member 85 void AvctRegister(uint16_t mtu, uint16_t mtuBr, uint16_t role);
|
D | avctp_api.c | 40 void AVCT_Register(uint16_t mtu, uint16_t mtuBr, uint16_t role) in AVCT_Register() argument 42 LOG_INFO("[AVCT] %{public}s: Regist mut(%hu) mtuBr(%hu) role(%hu)", __func__, mtu, mtuBr, role); in AVCT_Register() 51 param->mtu = mtu; in AVCT_Register() 66 AvctRegister(param->mtu, param->mtuBr, param->role); in AvctRegisterTsk() 71 void AvctRegister(uint16_t mtu, uint16_t mtuBr, uint16_t role) in AvctRegister() argument 73 … LOG_DEBUG("[AVCT] %{public}s: Regist mut(%hu) mtuBr(%hu) role(%hu)", __func__, mtu, mtuBr, role); in AvctRegister() 76 g_avctMng.rxMtu = mtu; in AvctRegister()
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/include/ |
D | rfcomm.h | 200 uint16_t mtu; member 250 int BTSTACK_API RFCOMM_RegisterServer(uint8_t scn, uint16_t mtu, uint32_t eventMask,
|