Home
last modified time | relevance | path

Searched refs:mtu (Results 1 – 25 of 74) sorted by relevance

123

/system/bt/stack/rfcomm/
Dport_rfc.c78 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu); in port_open_continue()
216 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu); in PORT_StartCnf()
294 void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in PORT_ParNegInd() argument
300 RFCOMM_TRACE_EVENT ("PORT_ParNegInd dlci:%d mtu:%d", dlci, mtu); in PORT_ParNegInd()
325 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegInd()
326 p_port->peer_mtu = p_port->mtu; in PORT_ParNegInd()
370 RFCOMM_ParNegRsp (p_mcb, dlci, p_port->mtu, our_cl, our_k); in PORT_ParNegInd()
385 void PORT_ParNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in PORT_ParNegCnf() argument
389 RFCOMM_TRACE_EVENT ("PORT_ParNegCnf dlci:%d mtu:%d cl: %d k: %d", dlci, mtu, cl, k); in PORT_ParNegCnf()
420 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegCnf()
[all …]
Drfc_port_if.c82 void RFCOMM_DlcEstablishReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu) in RFCOMM_DlcEstablishReq() argument
84 UNUSED(mtu); in RFCOMM_DlcEstablishReq()
110 void RFCOMM_DlcEstablishRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result) in RFCOMM_DlcEstablishRsp() argument
112 UNUSED(mtu); in RFCOMM_DlcEstablishRsp()
140 void RFCOMM_ParNegReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu) in RFCOMM_ParNegReq() argument
180 rfc_send_pn (p_mcb, dlci, TRUE, mtu, cl, k); in RFCOMM_ParNegReq()
194 void RFCOMM_ParNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in RFCOMM_ParNegRsp() argument
200 rfc_send_pn (p_mcb, dlci, FALSE, mtu, cl, k); in RFCOMM_ParNegRsp()
Dport_utils.c148 if (p_port->mtu == 0) in port_select_mtu()
156 p_port->mtu = RFCOMM_DEFAULT_MTU; in port_select_mtu()
170 …p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * packet_size) - RFCOMM_DATA_OV… in port_select_mtu()
171 … RFCOMM_TRACE_DEBUG ("port_select_mtu selected %d based on connection speed", p_port->mtu); in port_select_mtu()
175 p_port->mtu = L2CAP_MTU_SIZE - RFCOMM_DATA_OVERHEAD; in port_select_mtu()
176 … RFCOMM_TRACE_DEBUG ("port_select_mtu selected %d based on l2cap PDU size", p_port->mtu); in port_select_mtu()
182 RFCOMM_TRACE_DEBUG ("port_select_mtu application selected %d", p_port->mtu); in port_select_mtu()
184 p_port->credit_rx_max = (PORT_RX_HIGH_WM / p_port->mtu); in port_select_mtu()
187 p_port->credit_rx_low = (PORT_RX_LOW_WM / p_port->mtu); in port_select_mtu()
190 p_port->rx_buf_critical = (PORT_RX_CRITICAL_WM / p_port->mtu); in port_select_mtu()
[all …]
Drfc_int.h51 extern void RFCOMM_DlcEstablishReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu);
52 extern void RFCOMM_DlcEstablishRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result);
58 extern void RFCOMM_ParNegReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu);
59 extern void RFCOMM_ParNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k);
96 UINT16 mtu; member
330 extern void rfc_send_pn (tRFC_MCB *p_mcb, UINT8 dlci, BOOLEAN is_command, UINT16 mtu,
360 extern void PORT_DlcEstablishInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu);
361 extern void PORT_DlcEstablishCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result);
367 extern void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k);
368 extern void PORT_ParNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k);
Dport_api.c110 UINT16 mtu, BD_ADDR bd_addr, UINT16 *p_handle, in RFCOMM_CreateConnection() argument
140 scn, dlci, is_server, mtu, p_mcb); in RFCOMM_CreateConnection()
161 scn, dlci, is_server, mtu, p_mcb, p_port); in RFCOMM_CreateConnection()
200 if (mtu) in RFCOMM_CreateConnection()
201 p_port->mtu = (mtu < rfcomm_mtu) ? mtu : rfcomm_mtu; in RFCOMM_CreateConnection()
203 p_port->mtu = rfcomm_mtu; in RFCOMM_CreateConnection()
211 p_port->keep_mtu = p_port->mtu; in RFCOMM_CreateConnection()
1817 if (len > ((p_port->mtu == 0) ? RFCOMM_DEFAULT_MTU : p_port->mtu)) in PORT_Test()
Drfc_ts_frames.c235 void rfc_send_pn (tRFC_MCB *p_mcb, UINT8 dlci, BOOLEAN is_command, UINT16 mtu, UINT8 cl, UINT8 k) in rfc_send_pn() argument
261 *p_data++ = mtu & 0xFF; in rfc_send_pn()
262 *p_data++ = mtu >> 8; in rfc_send_pn()
753 p_rx_frame->u.pn.mtu = *p_data + (*(p_data + 1) << 8); in rfc_process_mx_message()
760 || (p_rx_frame->u.pn.mtu < RFCOMM_MIN_MTU) in rfc_process_mx_message()
761 || (p_rx_frame->u.pn.mtu > RFCOMM_MAX_MTU)) in rfc_process_mx_message()
/system/bt/bta/include/
Dbta_av_co.h197 UINT16 mtu);
212 UINT16 mtu);
229 UINT16 mtu);
243 UINT16 mtu);
Dbta_ar_api.h99 extern void bta_ar_reg_avct(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask, tBTA_SYS_ID sys_id);
/system/bt/stack/avct/
Davct_api.c55 void AVCT_Register(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask) in AVCT_Register() argument
89 if (mtu < AVCT_MIN_CONTROL_MTU) in AVCT_Register()
90 mtu = AVCT_MIN_CONTROL_MTU; in AVCT_Register()
92 avct_cb.mtu = mtu; in AVCT_Register()
Davct_l2c.c157 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_ind_cback()
200 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_cfm_cback()
300 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_config_ind_cback()
/system/bt/bta/hl/
Dbta_hl_utils.c175 UINT8 bta_hl_set_user_rx_pool_id(UINT16 mtu) in bta_hl_set_user_rx_pool_id() argument
179 if (mtu > GKI_get_pool_bufsize (HCI_ACL_POOL_ID)) in bta_hl_set_user_rx_pool_id()
190 pool_id, mtu, GKI_get_pool_bufsize (HCI_ACL_POOL_ID)); in bta_hl_set_user_rx_pool_id()
207 UINT8 bta_hl_set_tx_win_size(UINT16 mtu, UINT16 mps) in bta_hl_set_tx_win_size() argument
211 if (mtu <= mps) in bta_hl_set_tx_win_size()
219 tx_win_size = (mtu/mps)+1; in bta_hl_set_tx_win_size()
230 tx_win_size, mtu, mps); in bta_hl_set_tx_win_size()
244 UINT16 bta_hl_set_mps(UINT16 mtu) in bta_hl_set_mps() argument
247 if (mtu > BTA_HL_L2C_MPS) in bta_hl_set_mps()
253 mps = mtu; in bta_hl_set_mps()
[all …]
/system/bt/stack/bnep/
Dbnep_main.c86 bnep_cb.l2cap_my_cfg.mtu = BNEP_MTU_SIZE; in bnep_register_with_l2cap()
219 UINT16 result, mtu = 0; in bnep_config_ind() local
231 if ((!p_cfg->mtu_present) || (p_cfg->mtu < BNEP_MIN_MTU_SIZE)) in bnep_config_ind()
233 mtu = p_cfg->mtu; in bnep_config_ind()
236 p_cfg->mtu = BNEP_MIN_MTU_SIZE; in bnep_config_ind()
241 if (p_cfg->mtu > BNEP_MTU_SIZE) in bnep_config_ind()
244 p_bcb->rem_mtu_size = p_cfg->mtu; in bnep_config_ind()
256 BNEP_TRACE_EVENT ("BNEP - Rcvd cfg ind with bad MTU %d, CID: 0x%x", mtu, l2cap_cid); in bnep_config_ind()
/system/bt/stack/avdt/
Davdt_l2c.c109 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_term()
154 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_orig()
263 cfg.mtu = p_tbl->my_mtu; in avdt_l2c_connect_ind_cback()
305 cfg.mtu = p_tbl->my_mtu; in avdt_l2c_connect_cfm_cback()
406 p_tbl->peer_mtu = p_cfg->mtu; in avdt_l2c_config_ind_cback()
/system/core/libnetutils/
Ddhcp_utils.c98 char *mtu) in fill_ip_info() argument
166 property_get(prop_name, mtu, NULL); in fill_ip_info()
183 char *mtu) in dhcp_get_results() argument
202 server, lease, vendorInfo, domain, mtu) == -1) { in dhcp_get_results()
/system/core/toolbox/
Diftop.c57 unsigned int mtu; member
168 ifs->mtu = get_mtu(ifs->name); in get_interfaces()
203 new->name, new->mtu, in print_interfaces()
/system/netd/server/
DInterfaceController.cpp169 int InterfaceController::setMtu(const char *interface, const char *mtu) in setMtu() argument
175 return writeValueToPath(sys_net_path, interface, "mtu", mtu); in setMtu()
DInterfaceController.h27 int setMtu(const char *interface, const char *mtu);
/system/core/include/netutils/
Ddhcp.h37 char *mtu);
/system/extras/tests/net_test/
Dnet_test.sh8 ip link set lo mtu 16436
/system/bt/stack/sdp/
Dsdp_main.c88 sdp_cb.l2cap_my_cfg.mtu = SDP_MTU_SIZE; in sdp_init()
152 if (max_size > (sdp_cb.l2cap_my_cfg.mtu - 16) ) in sdp_set_max_attr_list_size()
153 max_size = sdp_cb.l2cap_my_cfg.mtu - 16; in sdp_set_max_attr_list_size()
327 if (p_cfg->mtu > SDP_MTU_SIZE) in sdp_config_ind()
330 p_ccb->rem_mtu_size = p_cfg->mtu; in sdp_config_ind()
/system/bt/btif/co/
Dbta_av_co.c143 UINT16 mtu; /* maximum transmit unit size */ member
896 UINT16 mtu) in bta_av_co_audio_open() argument
903 APPL_TRACE_DEBUG("bta_av_co_audio_open mtu:%d codec_type:%d", mtu, codec_type); in bta_av_co_audio_open()
914 p_peer->mtu = mtu; in bta_av_co_audio_open()
929 void bta_av_co_audio_close(tBTA_AV_HNDL hndl, tBTA_AV_CODEC codec_type, UINT16 mtu) in bta_av_co_audio_close() argument
934 UNUSED(mtu); in bta_av_co_audio_close()
1689 if (p_peer->mtu < *p_minmtu) in bta_av_co_audio_get_sbc_config()
1691 *p_minmtu = p_peer->mtu; in bta_av_co_audio_get_sbc_config()
/system/bt/stack/gatt/
Dgatt_sr.c124 tGATTS_RSP *p_msg, UINT16 mtu) in process_read_multi_rsp() argument
132 GATT_TRACE_DEBUG ("process_read_multi_rsp status=%d mtu=%d", status, mtu); in process_read_multi_rsp()
152 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu; in process_read_multi_rsp()
184 if (total_len > mtu) in process_read_multi_rsp()
187 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp()
910 UINT16 mtu = 0; in gatts_process_mtu_req() local
927 STREAM_TO_UINT16 (mtu, p); in gatts_process_mtu_req()
929 if (mtu < GATT_DEF_BLE_MTU_SIZE) in gatts_process_mtu_req()
931 else if (mtu > GATT_MAX_MTU_SIZE) in gatts_process_mtu_req()
934 p_tcb->payload_size = mtu; in gatts_process_mtu_req()
Datt_protocol.c426 p_cmd = attp_build_mtu_cmd(op_code, p_msg->mtu); in attp_build_sr_msg()
544 if (p_msg->mtu <= GATT_MAX_MTU_SIZE) in attp_send_cl_msg()
546 p_tcb->payload_size = p_msg->mtu; in attp_send_cl_msg()
547 p_cmd = attp_build_mtu_cmd(GATT_REQ_MTU, p_msg->mtu); in attp_send_cl_msg()
/system/bt/bta/ar/
Dbta_ar.c203 void bta_ar_reg_avct(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask, tBTA_SYS_ID sys_id) in bta_ar_reg_avct() argument
211 AVCT_Register(mtu, mtu_br, sec_mask); in bta_ar_reg_avct()
/system/bt/stack/include/
Dmca_api.h159 UINT16 mtu; /* peer mtu */ member
172 UINT16 mtu; /* peer mtu */ member

123