Home
last modified time | relevance | path

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

/system/bt/stack/avct/
Davct_api.c351 UINT16 peer_mtu = AVCT_MIN_BROWSE_MTU; in AVCT_GetBrowseMtu() local
357 peer_mtu = p_ccb->p_bcb->peer_mtu; in AVCT_GetBrowseMtu()
362 return peer_mtu; in AVCT_GetBrowseMtu()
377 UINT16 peer_mtu = L2CAP_DEFAULT_MTU; in AVCT_GetPeerMtu() local
385 peer_mtu = p_ccb->p_lcb->peer_mtu; in AVCT_GetPeerMtu()
389 return peer_mtu; in AVCT_GetPeerMtu()
Davct_lcb_act.c536 UINT16 buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg()
543 if (curr_msg_len <= (p_lcb->peer_mtu - AVCT_HDR_LEN_SINGLE)) in avct_lcb_send_msg()
550 temp = (curr_msg_len + AVCT_HDR_LEN_START - p_lcb->peer_mtu); in avct_lcb_send_msg()
551 nosp = temp / (p_lcb->peer_mtu - 1) + 1; in avct_lcb_send_msg()
552 if ( (temp % (p_lcb->peer_mtu - 1)) != 0) in avct_lcb_send_msg()
564 if (p_data->ul_msg.p_buf->len > (p_lcb->peer_mtu - hdr_len)) in avct_lcb_send_msg()
571 p_buf->len = p_lcb->peer_mtu - hdr_len; in avct_lcb_send_msg()
617 if (curr_msg_len > (p_lcb->peer_mtu - AVCT_HDR_LEN_END)) in avct_lcb_send_msg()
Davct_int.h64 UINT16 peer_mtu; /* peer l2c mtu */ member
75 UINT16 peer_mtu; /* peer l2c mtu */ member
91 UINT16 peer_mtu; /* peer l2c mtu */ member
Davct_l2c.c300 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_config_ind_cback()
304 p_lcb->peer_mtu = L2CAP_DEFAULT_MTU; in avct_l2c_config_ind_cback()
/system/bt/stack/avdt/
Davdt_ad.c117 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_init()
284 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_tc_tbl_alloc()
334 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_tc_close_ind()
404 open.peer_mtu = p_tbl->peer_mtu; in avdt_ad_tc_open_ind()
Davdt_l2c.c424 p_tbl->peer_mtu = p_cfg->mtu; in avdt_l2c_config_ind_cback()
428 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_l2c_config_ind_cback()
430 AVDT_TRACE_DEBUG("peer_mtu: %d, lcid: x%x",p_tbl->peer_mtu, lcid); in avdt_l2c_config_ind_cback()
Davdt_msg.c1232 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) in avdt_msg_send()
1240 (p_ccb->p_curr_msg->len > p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) in avdt_msg_send()
1244 nosp = (p_ccb->p_curr_msg->len + AVDT_LEN_TYPE_START - p_tbl->peer_mtu) / in avdt_msg_send()
1245 (p_tbl->peer_mtu - 1) + 2; in avdt_msg_send()
1252 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
1258 (p_ccb->p_curr_msg->len > (p_tbl->peer_mtu - AVDT_LEN_TYPE_CONT))) in avdt_msg_send()
1268 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
Davdt_int.h519 UINT16 peer_mtu; /* L2CAP mtu of the peer device */ member
Davdt_scb_act.c2115 buf_size = p_tbl->peer_mtu + BT_HDR_SIZE; in avdt_scb_queue_frags()
2117 p_tbl->peer_mtu, buf_size, num_frag); in avdt_scb_queue_frags()
Davdt_api.c1211 BT_HDR *p_pkt = (BT_HDR *)osi_malloc(p_tbl->peer_mtu); in AVDT_SendReport()
/system/bt/stack/mcap/
Dmca_main.c140 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in mca_tc_tbl_calloc()
181 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in mca_tc_tbl_dalloc()
320 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in mca_tc_close_ind()
361 open.peer_mtu = p_tbl->peer_mtu; in mca_tc_open_ind()
Dmca_l2c.c419 p_tbl->peer_mtu = p_cfg->mtu; in mca_l2c_config_ind_cback()
420 if (p_tbl->peer_mtu < MCA_MIN_MTU) in mca_l2c_config_ind_cback()
427 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in mca_l2c_config_ind_cback()
429 …MCA_TRACE_DEBUG("peer_mtu: %d, lcid: x%x mtu_present:%d",p_tbl->peer_mtu, lcid, p_cfg->mtu_present… in mca_l2c_config_ind_cback()
Dmca_dact.c72 evt_data.open_cfm.mtu = p_data->open.peer_mtu; in mca_dcb_tc_open()
Dmca_int.h58 UINT16 peer_mtu; /* Transport channel L2CAP MTU of the peer */ member
168 UINT16 peer_mtu; /* L2CAP mtu of the peer device */ member
Dmca_cact.c557 evt_data.connect_ind.mtu = p_data->open.peer_mtu; in mca_ccb_ll_open()
/system/bt/stack/rfcomm/
Dport_api.c1109 p_status->mtu_size = (UINT16) p_port->peer_mtu; in PORT_GetQueueStatus()
1531 if (!p_port->peer_mtu) in PORT_WriteDataCO()
1533 RFCOMM_TRACE_ERROR ("PORT_WriteDataByFd() peer_mtu:%d", p_port->peer_mtu); in PORT_WriteDataCO()
1555 && (((int)p_buf->len + available) <= (int)p_port->peer_mtu) in PORT_WriteDataCO()
1602 if (p_port->peer_mtu < length) in PORT_WriteDataCO()
1603 length = p_port->peer_mtu; in PORT_WriteDataCO()
1685 if (!max_len || !p_port->peer_mtu) in PORT_WriteData()
1687 RFCOMM_TRACE_ERROR ("PORT_WriteData() peer_mtu:%d", p_port->peer_mtu); in PORT_WriteData()
1700 && ((p_buf->len + max_len) <= p_port->peer_mtu) in PORT_WriteData()
1728 if (p_port->peer_mtu < length) in PORT_WriteData()
[all …]
Dport_rfc.c327 p_port->peer_mtu = p_port->mtu; in PORT_ParNegInd()
422 p_port->peer_mtu = p_port->mtu; in PORT_ParNegCnf()
469 if (mtu && (mtu < p_port->peer_mtu)) in PORT_DlcEstablishInd()
470 p_port->peer_mtu = mtu; in PORT_DlcEstablishInd()
516 if (mtu && (mtu < p_port->peer_mtu)) in PORT_DlcEstablishCnf()
517 p_port->peer_mtu = mtu; in PORT_DlcEstablishCnf()
Dport_int.h171 UINT16 peer_mtu; /* Max MTU that port can send */ member
Dport_utils.c120 p_port->peer_mtu = RFCOMM_DEFAULT_MTU; in port_set_defaults()
Drfc_port_fsm.c404 && (((BT_HDR *)p_data)->len < p_port->peer_mtu) in rfc_port_sm_opened()
/system/bt/stack/include/
Dsdp_api.h78 UINT16 peer_mtu; member
Davdt_api.h301 UINT16 peer_mtu; /* Transport channel L2CAP MTU of the peer */ member
/system/bt/bta/av/
Dbta_av_aact.c1392 p_scb->stream_mtu = p_data->str_msg.msg.open_ind.peer_mtu - AVDT_MEDIA_HDR_SIZE; in bta_av_str_opened()