Home
last modified time | relevance | path

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

12

/system/bt/stack/a2dp/
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,
183 a2dp_aptx_hd_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_vendor_aptx_hd_encoder_init()
206 a2dp_vendor_aptx_hd_encoder_update(a2dp_aptx_hd_encoder_cb.peer_mtu, in a2dp_vendor_aptx_hd_encoder_init()
217 a2dp_aptx_hd_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
220 if (a2dp_aptx_hd_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
228 a2dp_vendor_aptx_hd_encoder_update(a2dp_aptx_hd_encoder_cb.peer_mtu, this, in updateEncoderUserConfig()
238 uint16_t peer_mtu, A2dpCodecConfig* a2dp_codec_config, in a2dp_vendor_aptx_hd_encoder_update() argument
481 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,
182 a2dp_aptx_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_vendor_aptx_encoder_init()
205 a2dp_vendor_aptx_encoder_update(a2dp_aptx_encoder_cb.peer_mtu, in a2dp_vendor_aptx_encoder_init()
215 a2dp_aptx_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
218 if (a2dp_aptx_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
226 a2dp_vendor_aptx_encoder_update(a2dp_aptx_encoder_cb.peer_mtu, this, in updateEncoderUserConfig()
235 static void a2dp_vendor_aptx_encoder_update(uint16_t peer_mtu, in a2dp_vendor_aptx_encoder_update() argument
484 return a2dp_aptx_encoder_cb.peer_mtu; in getEffectiveMtu()
Da2dp_aac_encoder.cc84 uint16_t peer_mtu; // MTU of the A2DP peer member
101 static void a2dp_aac_encoder_update(uint16_t peer_mtu,
139 a2dp_aac_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_aac_encoder_init()
152 a2dp_aac_encoder_update(a2dp_aac_encoder_cb.peer_mtu, a2dp_codec_config, in a2dp_aac_encoder_init()
161 a2dp_aac_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
164 if (a2dp_aac_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
172 a2dp_aac_encoder_update(a2dp_aac_encoder_cb.peer_mtu, this, p_restart_input, in updateEncoderUserConfig()
180 static void a2dp_aac_encoder_update(uint16_t peer_mtu, in a2dp_aac_encoder_update() argument
239 if (peer_mtu > MAX_2MBPS_AVDTP_MTU) { in a2dp_aac_encoder_update()
241 peer_mtu, MAX_2MBPS_AVDTP_MTU); in a2dp_aac_encoder_update()
[all …]
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,
295 a2dp_ldac_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_vendor_ldac_encoder_init()
312 a2dp_vendor_ldac_encoder_update(a2dp_ldac_encoder_cb.peer_mtu, in a2dp_vendor_ldac_encoder_init()
322 a2dp_ldac_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
325 if (a2dp_ldac_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
333 a2dp_vendor_ldac_encoder_update(a2dp_ldac_encoder_cb.peer_mtu, this, in updateEncoderUserConfig()
342 static void a2dp_vendor_ldac_encoder_update(uint16_t peer_mtu, in a2dp_vendor_ldac_encoder_update() argument
396 if (mtu_size < peer_mtu) { in a2dp_vendor_ldac_encoder_update()
399 a2dp_ldac_encoder_cb.TxAaMtuSize = peer_mtu; in a2dp_vendor_ldac_encoder_update()
[all …]
Da2dp_sbc_encoder.cc101 uint16_t peer_mtu; /* MTU of the A2DP peer */ member
113 static void a2dp_sbc_encoder_update(uint16_t peer_mtu,
149 a2dp_sbc_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in a2dp_sbc_encoder_init()
157 a2dp_sbc_encoder_update(a2dp_sbc_encoder_cb.peer_mtu, a2dp_codec_config, in a2dp_sbc_encoder_init()
166 a2dp_sbc_encoder_cb.peer_mtu = p_peer_params->peer_mtu; in updateEncoderUserConfig()
169 if (a2dp_sbc_encoder_cb.peer_mtu == 0) { in updateEncoderUserConfig()
177 a2dp_sbc_encoder_update(a2dp_sbc_encoder_cb.peer_mtu, this, p_restart_input, in updateEncoderUserConfig()
185 static void a2dp_sbc_encoder_update(uint16_t peer_mtu, in a2dp_sbc_encoder_update() argument
255 if (mtu_size < peer_mtu) { in a2dp_sbc_encoder_update()
258 a2dp_sbc_encoder_cb.TxAaMtuSize = peer_mtu; in a2dp_sbc_encoder_update()
[all …]
Da2dp_vendor_ldac_decoder.cc100 uint16_t peer_mtu; // MTU of the A2DP peer member
/system/bt/stack/avct/
Davct_api.cc338 uint16_t peer_mtu = AVCT_MIN_BROWSE_MTU; in AVCT_GetBrowseMtu() local
343 peer_mtu = p_ccb->p_bcb->peer_mtu; in AVCT_GetBrowseMtu()
346 return peer_mtu; in AVCT_GetBrowseMtu()
360 uint16_t peer_mtu = L2CAP_DEFAULT_MTU; in AVCT_GetPeerMtu() local
367 peer_mtu = p_ccb->p_lcb->peer_mtu; in AVCT_GetPeerMtu()
371 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/rfcomm/
Dport_api.cc852 if (!p_port->peer_mtu) { in PORT_WriteDataCO()
853 RFCOMM_TRACE_ERROR("PORT_WriteDataByFd() peer_mtu:%d", p_port->peer_mtu); in PORT_WriteDataCO()
879 (((int)p_buf->len + available) <= (int)p_port->peer_mtu) && in PORT_WriteDataCO()
931 if (p_port->peer_mtu < length) length = p_port->peer_mtu; in PORT_WriteDataCO()
1010 if (!max_len || !p_port->peer_mtu) { in PORT_WriteData()
1011 RFCOMM_TRACE_ERROR("PORT_WriteData() peer_mtu:%d", p_port->peer_mtu); in PORT_WriteData()
1025 if ((p_buf != NULL) && ((p_buf->len + max_len) <= p_port->peer_mtu) && in PORT_WriteData()
1051 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.h149 uint16_t peer_mtu; /* Max MTU that port can send */ member
/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.cc1090 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) { in avdt_msg_send()
1098 p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) { in avdt_msg_send()
1101 nosp = (p_ccb->p_curr_msg->len + AVDT_LEN_TYPE_START - p_tbl->peer_mtu) / in avdt_msg_send()
1102 (p_tbl->peer_mtu - 1) + in avdt_msg_send()
1110 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
1118 (p_tbl->peer_mtu - AVDT_LEN_TYPE_CONT))) { in avdt_msg_send()
1127 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/audio_hal_interface/
Dclient_interface_unittest.cc339 for (auto peer_mtu : kPeerMtus) { in SbcCodecConfigurationsGenerator() local
344 codec_config.peerMtu = peer_mtu; in SbcCodecConfigurationsGenerator()
419 for (auto peer_mtu : kPeerMtus) { in AacCodecConfigurationsGenerator() local
423 codec_config.peerMtu = peer_mtu; in AacCodecConfigurationsGenerator()
489 for (auto peer_mtu : kPeerMtus) { in LdacCodecConfigurationsGenerator() local
492 codec_config.peerMtu = peer_mtu; in LdacCodecConfigurationsGenerator()
558 for (auto peer_mtu : kPeerMtus) { in AptxCodecConfigurationsGenerator() local
560 codec_config.peerMtu = peer_mtu; in AptxCodecConfigurationsGenerator()
Da2dp_encoding.cc276 if (effectiveMtu > 0 && effectiveMtu < peer_param.peer_mtu) { in a2dp_get_selected_hal_codec_config()
279 codec_config->peerMtu = peer_param.peer_mtu; in a2dp_get_selected_hal_codec_config()
/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 peer_param.peer_mtu, effectiveMtu, p_codec_info->peerMtu); in btif_a2dp_get_codec_configuration()
/system/bt/stack/avrc/
Davrc_api.cc1111 uint16_t peer_mtu; in AVRC_MsgReq() local
1160 peer_mtu = AVCT_GetBrowseMtu(handle); in AVRC_MsgReq()
1162 peer_mtu = AVCT_GetPeerMtu(handle); in AVRC_MsgReq()
1164 if (p_pkt->len > (peer_mtu - AVCT_HDR_LEN_SINGLE)) { in AVRC_MsgReq()
1167 __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
Da2dp_codec_api.h46 uint16_t peer_mtu; // MTU of the A2DP peer member

12