Home
last modified time | relevance | path

Searched refs:peer_mtu (Results 1 – 25 of 40) sorted by relevance

12

/packages/modules/Bluetooth/system/stack/avct/
Davct_api.cc314 uint16_t peer_mtu = AVCT_MIN_BROWSE_MTU; in AVCT_GetBrowseMtu() local
319 peer_mtu = p_ccb->p_bcb->peer_mtu; in AVCT_GetBrowseMtu()
322 return peer_mtu; in AVCT_GetBrowseMtu()
336 uint16_t peer_mtu = L2CAP_DEFAULT_MTU; in AVCT_GetPeerMtu() local
343 peer_mtu = p_ccb->p_lcb->peer_mtu; in AVCT_GetPeerMtu()
347 return peer_mtu; in AVCT_GetPeerMtu()
Davct_l2c_br.cc200 p_lcb->peer_mtu = L2CAP_DEFAULT_MTU; in avct_l2c_br_config_ind_cback()
202 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_br_config_ind_cback()
205 if (p_lcb->peer_mtu > max_mtu) { in avct_l2c_br_config_ind_cback()
206 p_lcb->peer_mtu = max_mtu; in avct_l2c_br_config_ind_cback()
209 AVCT_TRACE_DEBUG("%s peer_mtu:%d use:%d", __func__, p_lcb->peer_mtu, max_mtu); in avct_l2c_br_config_ind_cback()
Davct_lcb_act.cc490 uint16_t buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg()
496 if (curr_msg_len <= (p_lcb->peer_mtu - AVCT_HDR_LEN_SINGLE)) { in avct_lcb_send_msg()
500 temp = (curr_msg_len + AVCT_HDR_LEN_START - p_lcb->peer_mtu); in avct_lcb_send_msg()
501 nosp = temp / (p_lcb->peer_mtu - 1) + 1; in avct_lcb_send_msg()
502 if ((temp % (p_lcb->peer_mtu - 1)) != 0) nosp++; in avct_lcb_send_msg()
513 if (p_data->ul_msg.p_buf->len > (p_lcb->peer_mtu - hdr_len)) { in avct_lcb_send_msg()
519 p_buf->len = p_lcb->peer_mtu - hdr_len; in avct_lcb_send_msg()
561 if (curr_msg_len > (p_lcb->peer_mtu - AVCT_HDR_LEN_END)) { in avct_lcb_send_msg()
Davct_int.h64 uint16_t peer_mtu; /* peer l2c mtu */ member
74 uint16_t peer_mtu; /* peer l2c mtu */ member
89 uint16_t peer_mtu; /* peer l2c mtu */ member
Davct_l2c.cc276 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_config_ind_cback()
278 p_lcb->peer_mtu = L2CAP_DEFAULT_MTU; in avct_l2c_config_ind_cback()
Davct_bcb_act.cc454 if (curr_msg_len > (p_bcb->peer_mtu - AVCT_HDR_LEN_SINGLE)) { in avct_bcb_send_msg()
456 curr_msg_len, p_bcb->peer_mtu, AVCT_HDR_LEN_SINGLE); in avct_bcb_send_msg()
/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_vendor_opus_encoder.cc73 uint16_t peer_mtu; // MTU of the A2DP peer member
88 static bool a2dp_vendor_opus_encoder_update(uint16_t peer_mtu,
133 a2dp_opus_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_vendor_opus_encoder_init()
165 a2dp_vendor_opus_encoder_update(a2dp_opus_encoder_cb.peer_mtu, in a2dp_vendor_opus_encoder_init()
175 if (a2dp_opus_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
183 return a2dp_vendor_opus_encoder_update(a2dp_opus_encoder_cb.peer_mtu, this, in updateEncoderUserConfig()
188 static bool a2dp_vendor_opus_encoder_update(uint16_t peer_mtu, in a2dp_vendor_opus_encoder_update() argument
243 if (mtu_size < peer_mtu) { in a2dp_vendor_opus_encoder_update()
246 a2dp_opus_encoder_cb.TxAaMtuSize = peer_mtu; in a2dp_vendor_opus_encoder_update()
Da2dp_vendor_ldac_encoder.cc304 a2dp_ldac_encoder_cb.TxAaMtuSize, peer_params.peer_mtu); in a2dp_vendor_ldac_encoder_update()
573 if (mtu_size > peer_params.peer_mtu) { in adjust_effective_mtu()
574 mtu_size = peer_params.peer_mtu; in adjust_effective_mtu()
Da2dp_aac_encoder.cc207 peer_params.peer_mtu); in a2dp_aac_encoder_update()
693 if (mtu_size > peer_params.peer_mtu) { in adjust_effective_mtu()
694 mtu_size = peer_params.peer_mtu; in adjust_effective_mtu()
Da2dp_sbc_encoder.cc244 a2dp_sbc_encoder_cb.TxAaMtuSize, peer_params.peer_mtu, min_bitpool, in a2dp_sbc_encoder_update()
725 if (mtu_size > peer_params.peer_mtu) { in adjust_effective_mtu()
726 mtu_size = peer_params.peer_mtu; in adjust_effective_mtu()
/packages/modules/Bluetooth/system/stack/rfcomm/
Dport_api.cc911 if (!p_port->peer_mtu) { in PORT_WriteDataCO()
912 RFCOMM_TRACE_ERROR("PORT_WriteDataByFd() peer_mtu:%d", p_port->peer_mtu); in PORT_WriteDataCO()
938 (((int)p_buf->len + available) <= (int)p_port->peer_mtu) && in PORT_WriteDataCO()
990 if (p_port->peer_mtu < length) length = p_port->peer_mtu; in PORT_WriteDataCO()
1073 if (!max_len || !p_port->peer_mtu) { in PORT_WriteData()
1074 RFCOMM_TRACE_ERROR("PORT_WriteData() peer_mtu:%d", p_port->peer_mtu); in PORT_WriteData()
1088 if ((p_buf != NULL) && ((p_buf->len + max_len) <= p_port->peer_mtu) && in PORT_WriteData()
1114 if (p_port->peer_mtu < length) length = p_port->peer_mtu; in PORT_WriteData()
Dport_rfc.cc315 p_port->peer_mtu = p_port->mtu; in PORT_ParNegInd()
410 p_port->peer_mtu = p_port->mtu; in PORT_ParNegCnf()
452 if (mtu && (mtu < p_port->peer_mtu)) p_port->peer_mtu = mtu; in PORT_DlcEstablishInd()
503 if (mtu && (mtu < p_port->peer_mtu)) p_port->peer_mtu = mtu; in PORT_DlcEstablishCnf()
Dport_int.h152 uint16_t peer_mtu; /* Max MTU that port can send */ member
/packages/modules/Bluetooth/system/stack/eatt/
Deatt.cc75 uint16_t peer_mtu, uint8_t identifier) { in eatt_connect_ind()
78 p_eatt_impl->eatt_l2cap_connect_ind(bda, lcids, psm, peer_mtu, in eatt_connect_ind()
83 uint16_t peer_mtu, uint16_t result) { in eatt_connect_cfm()
86 p_eatt_impl->eatt_l2cap_connect_cfm(bda, lcid, peer_mtu, result); in eatt_connect_cfm()
Deatt_impl.h135 uint16_t peer_mtu, uint8_t identifier) { in eatt_l2cap_connect_ind_common()
173 auto chan = std::make_shared<EattChannel>(eatt_dev->bda_, cid, peer_mtu, in eatt_l2cap_connect_ind_common()
259 uint16_t psm, uint16_t peer_mtu, in upper_tester_l2cap_connect_ind()
277 if (!eatt_l2cap_connect_ind_common(bda, lcids, psm, peer_mtu, identifier)) { in upper_tester_l2cap_connect_ind()
310 uint16_t peer_mtu, uint8_t identifier) { in eatt_l2cap_connect_ind()
313 peer_mtu); in eatt_l2cap_connect_ind()
332 return upper_tester_l2cap_connect_ind(bda, lcids, psm, peer_mtu, in eatt_l2cap_connect_ind()
336 eatt_l2cap_connect_ind_common(bda, lcids, psm, peer_mtu, identifier); in eatt_l2cap_connect_ind()
389 uint16_t peer_mtu, uint16_t result) { in eatt_l2cap_connect_cfm()
391 << "peer mtu: " << +peer_mtu << " result " << +result; in eatt_l2cap_connect_cfm()
[all …]
/packages/modules/Bluetooth/system/stack/avdt/
Davdt_ad.cc126 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_init()
261 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_tc_tbl_alloc()
307 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_tc_close_ind()
383 open.peer_mtu = p_tbl->peer_mtu; in avdt_ad_tc_open_ind()
Davdt_l2c.cc338 p_tbl->peer_mtu = p_cfg->mtu; in avdt_l2c_config_ind_cback()
340 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_l2c_config_ind_cback()
342 AVDT_TRACE_DEBUG("%s: peer_mtu: %d, lcid: %d", __func__, p_tbl->peer_mtu, in avdt_l2c_config_ind_cback()
Davdt_msg.cc1087 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) { in avdt_msg_send()
1095 p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) { in avdt_msg_send()
1098 nosp = (p_ccb->p_curr_msg->len + AVDT_LEN_TYPE_START - p_tbl->peer_mtu) / in avdt_msg_send()
1099 (p_tbl->peer_mtu - 1) + in avdt_msg_send()
1107 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
1115 (p_tbl->peer_mtu - AVDT_LEN_TYPE_CONT))) { in avdt_msg_send()
1124 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
Davdt_int.h645 : peer_mtu(0), in AvdtpTransportChannel()
654 peer_mtu = 0; in Reset()
663 uint16_t peer_mtu; // L2CAP MTU of the peer device variable
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl_unittest.cc439 for (auto peer_mtu : kPeerMtus) { in SbcCodecConfigurationsGenerator() local
444 codec_config.peerMtu = peer_mtu; in SbcCodecConfigurationsGenerator()
521 for (auto peer_mtu : kPeerMtus) { in AacCodecConfigurationsGenerator() local
525 codec_config.peerMtu = peer_mtu; in AacCodecConfigurationsGenerator()
593 for (auto peer_mtu : kPeerMtus) { in LdacCodecConfigurationsGenerator() local
596 codec_config.peerMtu = peer_mtu; in LdacCodecConfigurationsGenerator()
664 for (auto peer_mtu : kPeerMtus) { in AptxCodecConfigurationsGenerator() local
666 codec_config.peerMtu = peer_mtu; in AptxCodecConfigurationsGenerator()
Da2dp_encoding_hidl.cc283 if (effectiveMtu > 0 && effectiveMtu < peer_param.peer_mtu) { in a2dp_get_selected_hal_codec_config()
286 codec_config->peerMtu = peer_param.peer_mtu; in a2dp_get_selected_hal_codec_config()
/packages/modules/Bluetooth/system/stack/include/
Dl2c_api.h292 uint16_t psm, uint16_t peer_mtu,
311 uint16_t peer_mtu,
/packages/modules/Bluetooth/system/stack/avrc/
Davrc_api.cc1192 uint16_t peer_mtu; in AVRC_MsgReq() local
1241 peer_mtu = AVCT_GetBrowseMtu(handle); in AVRC_MsgReq()
1243 peer_mtu = AVCT_GetPeerMtu(handle); in AVRC_MsgReq()
1245 if (p_pkt->len > (peer_mtu - AVCT_HDR_LEN_SINGLE)) { in AVRC_MsgReq()
1248 __func__, p_pkt->len, peer_mtu, AVCT_HDR_LEN_SINGLE); in AVRC_MsgReq()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Da2dp_encoding_aidl.cc297 if (effectiveMtu > 0 && effectiveMtu < peer_param.peer_mtu) { in a2dp_get_selected_hal_codec_config()
300 codec_config->peerMtu = peer_param.peer_mtu; in a2dp_get_selected_hal_codec_config()
/packages/modules/Bluetooth/system/stack/test/fuzzers/a2dp/codec/
Da2dpCodecHelperFunctions.h119 params.peer_mtu = fdp->ConsumeIntegral<uint16_t>(); in getArbitraryA2dpEncoderInitPeerParams()

12