Home
last modified time | relevance | path

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

12

/system/bt/stack/avct/
Davct_api.cc330 uint16_t peer_mtu = AVCT_MIN_BROWSE_MTU; in AVCT_GetBrowseMtu() local
335 peer_mtu = p_ccb->p_bcb->peer_mtu; in AVCT_GetBrowseMtu()
338 return peer_mtu; in AVCT_GetBrowseMtu()
352 uint16_t peer_mtu = L2CAP_DEFAULT_MTU; in AVCT_GetPeerMtu() local
359 peer_mtu = p_ccb->p_lcb->peer_mtu; in AVCT_GetPeerMtu()
363 return peer_mtu; in AVCT_GetPeerMtu()
Davct_l2c_br.cc281 p_lcb->peer_mtu = L2CAP_DEFAULT_MTU; in avct_l2c_br_config_ind_cback()
283 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_br_config_ind_cback()
286 if (p_lcb->peer_mtu > max_mtu) { in avct_l2c_br_config_ind_cback()
287 p_lcb->peer_mtu = p_cfg->mtu = max_mtu; in avct_l2c_br_config_ind_cback()
294 AVCT_TRACE_DEBUG("%s peer_mtu:%d use:%d", __func__, p_lcb->peer_mtu, max_mtu); in avct_l2c_br_config_ind_cback()
296 if (p_lcb->peer_mtu >= AVCT_MIN_BROWSE_MTU) in avct_l2c_br_config_ind_cback()
Davct_lcb_act.cc478 uint16_t buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg()
484 if (curr_msg_len <= (p_lcb->peer_mtu - AVCT_HDR_LEN_SINGLE)) { in avct_lcb_send_msg()
488 temp = (curr_msg_len + AVCT_HDR_LEN_START - p_lcb->peer_mtu); in avct_lcb_send_msg()
489 nosp = temp / (p_lcb->peer_mtu - 1) + 1; in avct_lcb_send_msg()
490 if ((temp % (p_lcb->peer_mtu - 1)) != 0) nosp++; in avct_lcb_send_msg()
501 if (p_data->ul_msg.p_buf->len > (p_lcb->peer_mtu - hdr_len)) { in avct_lcb_send_msg()
507 p_buf->len = p_lcb->peer_mtu - hdr_len; in avct_lcb_send_msg()
549 if (curr_msg_len > (p_lcb->peer_mtu - AVCT_HDR_LEN_END)) { in avct_lcb_send_msg()
Davct_int.h63 uint16_t peer_mtu; /* peer l2c mtu */ member
74 uint16_t peer_mtu; /* peer l2c mtu */ member
90 uint16_t peer_mtu; /* peer l2c mtu */ member
Davct_l2c.cc287 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_config_ind_cback()
289 p_lcb->peer_mtu = L2CAP_DEFAULT_MTU; in avct_l2c_config_ind_cback()
Davct_bcb_act.cc455 if (curr_msg_len > (p_bcb->peer_mtu - AVCT_HDR_LEN_SINGLE)) { in avct_bcb_send_msg()
457 curr_msg_len, p_bcb->peer_mtu, AVCT_HDR_LEN_SINGLE); in avct_bcb_send_msg()
/system/bt/stack/a2dp/
Da2dp_aac_encoder.cc83 uint16_t peer_mtu; // MTU of the A2DP peer member
98 static void a2dp_aac_encoder_update(uint16_t peer_mtu,
136 a2dp_aac_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_aac_encoder_init()
149 a2dp_aac_encoder_update(a2dp_aac_encoder_cb.peer_mtu, a2dp_codec_config, in a2dp_aac_encoder_init()
158 a2dp_aac_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
161 if (a2dp_aac_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
169 a2dp_aac_encoder_update(a2dp_aac_encoder_cb.peer_mtu, this, p_restart_input, in updateEncoderUserConfig()
177 static void a2dp_aac_encoder_update(uint16_t peer_mtu, in a2dp_aac_encoder_update() argument
238 if (peer_mtu > MAX_2MBPS_AVDTP_MTU) { in a2dp_aac_encoder_update()
240 __func__, peer_mtu, MAX_2MBPS_AVDTP_MTU); in a2dp_aac_encoder_update()
[all …]
Da2dp_vendor_aptx_hd_encoder.cc94 uint16_t peer_mtu; // MTU of the A2DP peer member
106 uint16_t peer_mtu, A2dpCodecConfig* a2dp_codec_config,
186 a2dp_aptx_hd_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_vendor_aptx_hd_encoder_init()
209 a2dp_vendor_aptx_hd_encoder_update(a2dp_aptx_hd_encoder_cb.peer_mtu, in a2dp_vendor_aptx_hd_encoder_init()
220 a2dp_aptx_hd_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
223 if (a2dp_aptx_hd_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
231 a2dp_vendor_aptx_hd_encoder_update(a2dp_aptx_hd_encoder_cb.peer_mtu, this, in updateEncoderUserConfig()
241 uint16_t peer_mtu, A2dpCodecConfig* a2dp_codec_config, in a2dp_vendor_aptx_hd_encoder_update() argument
487 return a2dp_aptx_hd_encoder_cb.peer_mtu; in getEffectiveMtu()
Da2dp_vendor_aptx_encoder.cc94 uint16_t peer_mtu; // MTU of the A2DP peer member
105 static void a2dp_vendor_aptx_encoder_update(uint16_t peer_mtu,
185 a2dp_aptx_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_vendor_aptx_encoder_init()
208 a2dp_vendor_aptx_encoder_update(a2dp_aptx_encoder_cb.peer_mtu, in a2dp_vendor_aptx_encoder_init()
218 a2dp_aptx_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
221 if (a2dp_aptx_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
229 a2dp_vendor_aptx_encoder_update(a2dp_aptx_encoder_cb.peer_mtu, this, in updateEncoderUserConfig()
238 static void a2dp_vendor_aptx_encoder_update(uint16_t peer_mtu, in a2dp_vendor_aptx_encoder_update() argument
490 return a2dp_aptx_encoder_cb.peer_mtu; in getEffectiveMtu()
Da2dp_vendor_ldac_encoder.cc153 uint16_t peer_mtu; // MTU of the A2DP peer member
175 static void a2dp_vendor_ldac_encoder_update(uint16_t peer_mtu,
296 a2dp_ldac_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_vendor_ldac_encoder_init()
313 a2dp_vendor_ldac_encoder_update(a2dp_ldac_encoder_cb.peer_mtu, in a2dp_vendor_ldac_encoder_init()
323 a2dp_ldac_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
326 if (a2dp_ldac_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
334 a2dp_vendor_ldac_encoder_update(a2dp_ldac_encoder_cb.peer_mtu, this, in updateEncoderUserConfig()
343 static void a2dp_vendor_ldac_encoder_update(uint16_t peer_mtu, in a2dp_vendor_ldac_encoder_update() argument
397 if (mtu_size < peer_mtu) { in a2dp_vendor_ldac_encoder_update()
400 a2dp_ldac_encoder_cb.TxAaMtuSize = peer_mtu; in a2dp_vendor_ldac_encoder_update()
[all …]
Da2dp_sbc_encoder.cc100 uint16_t peer_mtu; /* MTU of the A2DP peer */ member
112 static void a2dp_sbc_encoder_update(uint16_t peer_mtu,
148 a2dp_sbc_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_sbc_encoder_init()
156 a2dp_sbc_encoder_update(a2dp_sbc_encoder_cb.peer_mtu, a2dp_codec_config, in a2dp_sbc_encoder_init()
165 a2dp_sbc_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
168 if (a2dp_sbc_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
176 a2dp_sbc_encoder_update(a2dp_sbc_encoder_cb.peer_mtu, this, p_restart_input, in updateEncoderUserConfig()
184 static void a2dp_sbc_encoder_update(uint16_t peer_mtu, in a2dp_sbc_encoder_update() argument
254 if (mtu_size < peer_mtu) { in a2dp_sbc_encoder_update()
257 a2dp_sbc_encoder_cb.TxAaMtuSize = peer_mtu; in a2dp_sbc_encoder_update()
[all …]
Da2dp_vendor_ldac_decoder.cc107 uint16_t peer_mtu; // MTU of the A2DP peer member
/system/bt/audio_hal_interface/
Dclient_interface_unittest.cc240 for (auto peer_mtu : kPeerMtus) { in TEST_F() local
245 codec_config.peerMtu = peer_mtu; in TEST_F()
292 for (auto peer_mtu : kPeerMtus) { in TEST_F() local
296 codec_config.peerMtu = peer_mtu; in TEST_F()
334 for (auto peer_mtu : kPeerMtus) { in TEST_F() local
337 codec_config.peerMtu = peer_mtu; in TEST_F()
372 for (auto peer_mtu : kPeerMtus) { in TEST_F() local
374 codec_config.peerMtu = peer_mtu; in TEST_F()
404 for (auto peer_mtu : kPeerMtus) { in TEST_F() local
406 codec_config.peerMtu = peer_mtu; in TEST_F()
Da2dp_encoding.cc547 if (effectiveMtu > 0 && effectiveMtu < peer_param.peer_mtu) { in a2dp_get_selected_hal_codec_config()
550 codec_config->peerMtu = peer_param.peer_mtu; in a2dp_get_selected_hal_codec_config()
/system/bt/stack/avdt/
Davdt_ad.cc125 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_init()
263 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_tc_tbl_alloc()
310 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_tc_close_ind()
386 open.peer_mtu = p_tbl->peer_mtu; in avdt_ad_tc_open_ind()
Davdt_l2c.cc404 p_tbl->peer_mtu = p_cfg->mtu; in avdt_l2c_config_ind_cback()
406 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_l2c_config_ind_cback()
408 AVDT_TRACE_DEBUG("%s: peer_mtu: %d, lcid: %d", __func__, p_tbl->peer_mtu, in avdt_l2c_config_ind_cback()
Davdt_msg.cc1078 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) { in avdt_msg_send()
1086 p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) { in avdt_msg_send()
1089 nosp = (p_ccb->p_curr_msg->len + AVDT_LEN_TYPE_START - p_tbl->peer_mtu) / in avdt_msg_send()
1090 (p_tbl->peer_mtu - 1) + in avdt_msg_send()
1098 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
1106 (p_tbl->peer_mtu - AVDT_LEN_TYPE_CONT))) { in avdt_msg_send()
1115 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
Davdt_int.h649 : peer_mtu(0), in AvdtpTransportChannel()
660 peer_mtu = 0; in Reset()
671 uint16_t peer_mtu; // L2CAP MTU of the peer device variable
/system/bt/stack/rfcomm/
Dport_api.cc1032 p_status->mtu_size = (uint16_t)p_port->peer_mtu; in PORT_GetQueueStatus()
1415 if (!p_port->peer_mtu) { in PORT_WriteDataCO()
1416 RFCOMM_TRACE_ERROR("PORT_WriteDataByFd() peer_mtu:%d", p_port->peer_mtu); in PORT_WriteDataCO()
1442 (((int)p_buf->len + available) <= (int)p_port->peer_mtu) && in PORT_WriteDataCO()
1494 if (p_port->peer_mtu < length) length = p_port->peer_mtu; in PORT_WriteDataCO()
1573 if (!max_len || !p_port->peer_mtu) { in PORT_WriteData()
1574 RFCOMM_TRACE_ERROR("PORT_WriteData() peer_mtu:%d", p_port->peer_mtu); in PORT_WriteData()
1588 if ((p_buf != NULL) && ((p_buf->len + max_len) <= p_port->peer_mtu) && in PORT_WriteData()
1614 if (p_port->peer_mtu < length) length = p_port->peer_mtu; in PORT_WriteData()
Dport_rfc.cc303 p_port->peer_mtu = p_port->mtu; in PORT_ParNegInd()
398 p_port->peer_mtu = p_port->mtu; in PORT_ParNegCnf()
440 if (mtu && (mtu < p_port->peer_mtu)) p_port->peer_mtu = mtu; in PORT_DlcEstablishInd()
484 if (mtu && (mtu < p_port->peer_mtu)) p_port->peer_mtu = mtu; in PORT_DlcEstablishCnf()
Dport_int.h166 uint16_t peer_mtu; /* Max MTU that port can send */ member
/system/bt/btif/src/
Dbtif_a2dp_audio_interface.cc249 if (effectiveMtu > 0 && effectiveMtu < peer_param.peer_mtu) { in btif_a2dp_get_codec_configuration()
252 p_codec_info->peerMtu = peer_param.peer_mtu; in btif_a2dp_get_codec_configuration()
255 __func__, peer_param.peer_mtu, effectiveMtu, p_codec_info->peerMtu); in btif_a2dp_get_codec_configuration()
/system/bt/stack/avrc/
Davrc_api.cc1110 uint16_t peer_mtu; in AVRC_MsgReq() local
1154 peer_mtu = AVCT_GetBrowseMtu(handle); in AVRC_MsgReq()
1156 peer_mtu = AVCT_GetPeerMtu(handle); in AVRC_MsgReq()
1158 if (p_pkt->len > (peer_mtu - AVCT_HDR_LEN_SINGLE)) { in AVRC_MsgReq()
1161 __func__, p_pkt->len, peer_mtu, AVCT_HDR_LEN_SINGLE); in AVRC_MsgReq()
/system/bt/stack/include/
Dsdp_api.h73 uint16_t peer_mtu; member
Davdt_api.h381 uint16_t peer_mtu; /* Transport channel L2CAP MTU of the peer */ member

12