Home
last modified time | relevance | path

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

123

/hal_espressif-3.7.0/components/bt/host/bluedroid/api/
Desp_gatt_common_api.c24 esp_err_t esp_ble_gatt_set_local_mtu (uint16_t mtu) in esp_ble_gatt_set_local_mtu() argument
31 if ((mtu < ESP_GATT_DEF_BLE_MTU_SIZE) || (mtu > ESP_GATT_MAX_MTU_SIZE)) { in esp_ble_gatt_set_local_mtu()
38 arg.set_mtu.mtu = mtu; in esp_ble_gatt_set_local_mtu()
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/rfcomm/
Dport_rfc.c77 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu); in port_open_continue()
212 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu); in PORT_StartCnf()
289 void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in PORT_ParNegInd() argument
295 RFCOMM_TRACE_EVENT ("PORT_ParNegInd dlci:%d mtu:%d", dlci, mtu); in PORT_ParNegInd()
318 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegInd()
319 p_port->peer_mtu = p_port->mtu; in PORT_ParNegInd()
354 RFCOMM_ParNegRsp (p_mcb, dlci, p_port->mtu, our_cl, our_k); in PORT_ParNegInd()
369 void PORT_ParNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in PORT_ParNegCnf() argument
373 RFCOMM_TRACE_EVENT ("PORT_ParNegCnf dlci:%d mtu:%d cl: %d k: %d", dlci, mtu, cl, k); in PORT_ParNegCnf()
401 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegCnf()
[all …]
Drfc_port_if.c85 void RFCOMM_DlcEstablishReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu) in RFCOMM_DlcEstablishReq() argument
87 UNUSED(mtu); in RFCOMM_DlcEstablishReq()
112 void RFCOMM_DlcEstablishRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result) in RFCOMM_DlcEstablishRsp() argument
114 UNUSED(mtu); in RFCOMM_DlcEstablishRsp()
141 void RFCOMM_ParNegReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu) in RFCOMM_ParNegReq() argument
177 rfc_send_pn (p_mcb, dlci, TRUE, mtu, cl, k); in RFCOMM_ParNegReq()
191 void RFCOMM_ParNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in RFCOMM_ParNegRsp() argument
198 rfc_send_pn (p_mcb, dlci, FALSE, mtu, cl, k); in RFCOMM_ParNegRsp()
Dport_utils.c151 if (p_port->mtu == 0) { in port_select_mtu()
157 p_port->mtu = RFCOMM_DEFAULT_MTU; in port_select_mtu()
168 …p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * packet_size) - RFCOMM_DATA_OV… in port_select_mtu()
169 … RFCOMM_TRACE_DEBUG ("port_select_mtu selected %d based on connection speed", p_port->mtu); in port_select_mtu()
171 p_port->mtu = L2CAP_MTU_SIZE - RFCOMM_DATA_OVERHEAD; in port_select_mtu()
172 … RFCOMM_TRACE_DEBUG ("port_select_mtu selected %d based on l2cap PDU size", p_port->mtu); in port_select_mtu()
176 RFCOMM_TRACE_DEBUG ("port_select_mtu application selected %d", p_port->mtu); in port_select_mtu()
178 p_port->credit_rx_max = (PORT_RX_HIGH_WM / p_port->mtu); in port_select_mtu()
182 p_port->credit_rx_low = (PORT_RX_LOW_WM / p_port->mtu); in port_select_mtu()
186 p_port->rx_buf_critical = (PORT_RX_CRITICAL_WM / p_port->mtu); in port_select_mtu()
[all …]
Dport_api.c105 UINT16 mtu, BD_ADDR bd_addr, UINT16 *p_handle, in RFCOMM_CreateConnection() argument
133 scn, dlci, is_server, mtu, p_mcb); in RFCOMM_CreateConnection()
151 scn, dlci, is_server, mtu, p_mcb, p_port); in RFCOMM_CreateConnection()
189 if (mtu) { in RFCOMM_CreateConnection()
190 p_port->mtu = (mtu < rfcomm_mtu) ? mtu : rfcomm_mtu; in RFCOMM_CreateConnection()
192 p_port->mtu = rfcomm_mtu; in RFCOMM_CreateConnection()
200 p_port->keep_mtu = p_port->mtu; in RFCOMM_CreateConnection()
1762 if (len > ((p_port->mtu == 0) ? RFCOMM_DEFAULT_MTU : p_port->mtu)) { in PORT_Test()
/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gatt_common.c19 static void btc_set_local_mtu(uint16_t mtu) in btc_set_local_mtu() argument
21 BTA_GATT_SetLocalMTU(mtu); in btc_set_local_mtu()
31 btc_set_local_mtu(arg->set_mtu.mtu); in btc_gatt_com_call_handler()
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/gatt/
Dbta_gatt_common.c17 void BTA_GATT_SetLocalMTU(uint16_t mtu) in BTA_GATT_SetLocalMTU() argument
19 gatt_set_local_mtu(mtu); in BTA_GATT_SetLocalMTU()
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/rfcomm/include/
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);
93 UINT16 mtu; member
322 extern void rfc_send_pn (tRFC_MCB *p_mcb, UINT8 dlci, BOOLEAN is_command, UINT16 mtu,
352 extern void PORT_DlcEstablishInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu);
353 extern void PORT_DlcEstablishCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result);
359 extern void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k);
360 extern void PORT_ParNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k);
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/include/bta/
Dbta_av_co.h197 UINT16 mtu);
212 UINT16 mtu);
229 UINT16 mtu);
243 UINT16 mtu);
Dbta_gatt_common.h22 extern void BTA_GATT_SetLocalMTU(uint16_t mtu);
Dbta_ar_api.h101 extern void bta_ar_reg_avct(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask, tBTA_SYS_ID sys_id);
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/avct/
Davct_api.c59 void AVCT_Register(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask) in AVCT_Register() argument
94 if (mtu < AVCT_MIN_CONTROL_MTU) { in AVCT_Register()
95 mtu = AVCT_MIN_CONTROL_MTU; in AVCT_Register()
98 avct_cb.mtu = mtu; in AVCT_Register()
Davct_l2c.c149 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_ind_cback()
190 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_cfm_cback()
280 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_config_ind_cback()
/hal_espressif-3.7.0/components/bt/common/btc/profile/esp/blufi/nimble_host/
Desp_blufi.c324 event->mtu.conn_handle, in esp_blufi_gap_event()
325 event->mtu.channel_id, in esp_blufi_gap_event()
326 event->mtu.value); in esp_blufi_gap_event()
327 …blufi_env.frag_size = (event->mtu.value < BLUFI_MAX_DATA_LEN ? event->mtu.value : BLUFI_MAX_DATA_L… in esp_blufi_gap_event()
534 blufi_env.frag_size = (event->mtu.value < BLUFI_MAX_DATA_LEN ? event->mtu.value : in esp_blufi_handle_gap_events()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/
Dproxy_client.c334 uint16_t mtu = 0U; in proxy_segment_and_send() local
345 mtu = bt_mesh_gattc_get_mtu_info(conn); in proxy_segment_and_send()
346 if (!mtu) { in proxy_segment_and_send()
352 mtu -= 3; in proxy_segment_and_send()
353 if (mtu > msg->len) { in proxy_segment_and_send()
359 err = proxy_send(conn, msg->data, mtu); in proxy_segment_and_send()
360 net_buf_simple_pull(msg, mtu); in proxy_segment_and_send()
363 if (msg->len + 1 < mtu) { in proxy_segment_and_send()
370 err = proxy_send(conn, msg->data, mtu); in proxy_segment_and_send()
371 net_buf_simple_pull(msg, mtu); in proxy_segment_and_send()
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/avdt/
Davdt_l2c.c110 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()
251 cfg.mtu = p_tbl->my_mtu; in avdt_l2c_connect_ind_cback()
289 cfg.mtu = p_tbl->my_mtu; in avdt_l2c_connect_cfm_cback()
377 p_tbl->peer_mtu = p_cfg->mtu; in avdt_l2c_config_ind_cback()
/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/profile/std/include/
Dbtc_gatt_common.h24 uint16_t mtu; member
/hal_espressif-3.7.0/components/bt/host/bluedroid/api/include/api/
Desp_gatt_common_api.h37 extern esp_err_t esp_ble_gatt_set_local_mtu (uint16_t mtu);
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/sdp/
Dsdp_main.c95 sdp_cb.l2cap_my_cfg.mtu = SDP_MTU_SIZE; in sdp_init()
165 if (max_size > (sdp_cb.l2cap_my_cfg.mtu - 16) ) { in sdp_set_max_attr_list_size()
166 max_size = sdp_cb.l2cap_my_cfg.mtu - 16; in sdp_set_max_attr_list_size()
331 if (p_cfg->mtu > SDP_MTU_SIZE) { in sdp_config_ind()
334 p_ccb->rem_mtu_size = p_cfg->mtu; in sdp_config_ind()
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/gatt/
Dgatt_sr.c161 tGATTS_RSP *p_msg, UINT16 mtu) in process_read_multi_rsp() argument
167 GATT_TRACE_DEBUG ("process_read_multi_rsp status=%d mtu=%d", status, mtu); in process_read_multi_rsp()
190 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu; in process_read_multi_rsp()
226 if (total_len > mtu) { in process_read_multi_rsp()
228 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp()
281 tGATTS_RSP *p_msg, UINT16 mtu) in process_read_multi_var_rsp() argument
288 GATT_TRACE_DEBUG ("process_read_multi_var rsp status=%d mtu=%d", status, mtu); in process_read_multi_var_rsp()
311 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu; in process_read_multi_var_rsp()
347 if (total_len > mtu) { in process_read_multi_var_rsp()
351 len = MIN(p_rsp->attr_value.len, (mtu - total_len)); // attribute value length in process_read_multi_var_rsp()
[all …]
Dgatt_main.c647 cfg.mtu = gatt_default.local_mtu; in gatt_l2cif_connect_ind_cback()
683 cfg.mtu = gatt_default.local_mtu; in gatt_l2cif_connect_cfm_cback()
768 (p_cfg->mtu >= GATT_MIN_BR_MTU_SIZE && p_cfg->mtu < L2CAP_DEFAULT_MTU)) { in gatt_l2cif_config_ind_cback()
769 p_tcb->payload_size = p_cfg->mtu; in gatt_l2cif_config_ind_cback()
1231 void gatt_set_local_mtu(uint16_t mtu) in gatt_set_local_mtu() argument
1233 gatt_default.local_mtu = mtu; in gatt_set_local_mtu()
Datt_protocol.c443 p_cmd = attp_build_mtu_cmd(op_code, p_msg->mtu); in attp_build_sr_msg()
552 if (p_msg->mtu <= GATT_MAX_MTU_SIZE) { in attp_send_cl_msg()
553 p_tcb->payload_size = p_msg->mtu; in attp_send_cl_msg()
554 p_cmd = attp_build_mtu_cmd(GATT_REQ_MTU, p_msg->mtu); in attp_send_cl_msg()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/nimble_host/
Dmesh_bearer_adapt.c133 uint16_t mtu; member
467 bt_mesh_gattc_info[i].mtu = BLE_ATT_MTU_DFLT; in disc_cb()
476 if (bt_mesh_gattc_info[i].conn.handle == event->mtu.conn_handle) { in disc_cb()
477 bt_mesh_gattc_info[i].mtu = event->mtu.value; in disc_cb()
721 event->mtu.conn_handle, in gap_event_cb()
722 event->mtu.channel_id, in gap_event_cb()
723 event->mtu.value); in gap_event_cb()
1452 uint16_t mtu, void *arg) in mtu_cb() argument
1459 bt_mesh_gattc_info[i].mtu = mtu; in mtu_cb()
1485 return bt_mesh_gattc_info[i].mtu; in bt_mesh_gattc_get_mtu_info()
[all …]
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/ar/
Dbta_ar.c193 void bta_ar_reg_avct(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask, tBTA_SYS_ID sys_id) in bta_ar_reg_avct() argument
199 AVCT_Register(mtu, mtu_br, sec_mask); in bta_ar_reg_avct()
/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/profile/std/a2dp/
Dbta_av_co.c845 UINT16 mtu) in bta_av_co_audio_open() argument
852 APPL_TRACE_DEBUG("bta_av_co_audio_open mtu:%d codec_type:%d", mtu, codec_type); in bta_av_co_audio_open()
860 p_peer->mtu = mtu; in bta_av_co_audio_open()
875 void bta_av_co_audio_close(tBTA_AV_HNDL hndl, tBTA_AV_CODEC codec_type, UINT16 mtu) in bta_av_co_audio_close() argument
880 UNUSED(mtu); in bta_av_co_audio_close()
1601 if (p_peer->mtu < *p_minmtu) { in bta_av_co_audio_get_sbc_config()
1602 *p_minmtu = p_peer->mtu; in bta_av_co_audio_get_sbc_config()

123