Home
last modified time | relevance | path

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

123456

/device/soc/esp/esp32/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, 1, 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, 0, 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()
1761 if (len > ((p_port->mtu == 0) ? RFCOMM_DEFAULT_MTU : p_port->mtu)) { in PORT_Test()
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/src/
Dble_l2cap_sig_priv.h64 uint16_t mtu; member
71 uint16_t mtu; member
79 uint16_t mtu; member
86 uint16_t mtu; member
94 uint16_t mtu; member
129 int ble_l2cap_sig_coc_connect(uint16_t conn_handle, uint16_t psm, uint16_t mtu,
136 static inline int ble_l2cap_sig_coc_connect(uint16_t conn_handle, uint16_t psm, uint16_t mtu, in ble_l2cap_sig_coc_connect() argument
151 uint16_t psm, uint16_t mtu,
158 uint16_t psm, uint16_t mtu, in ble_l2cap_sig_ecoc_connect() argument
Dble_l2cap_coc_priv.h42 uint16_t mtu; member
51 uint16_t mtu; member
58 int ble_l2cap_coc_create_server(uint16_t psm, uint16_t mtu,
63 uint16_t psm, uint16_t mtu,
73 void ble_l2cap_coc_set_new_mtu_mps(struct ble_l2cap_chan *chan, uint16_t mtu, uint16_t mps);
80 static inline int ble_l2cap_coc_create_server(uint16_t psm, uint16_t mtu, ble_l2cap_event_fn *cb, v… in ble_l2cap_coc_create_server() argument
Dble_l2cap_coc.c60 int ble_l2cap_coc_create_server(uint16_t psm, uint16_t mtu, in ble_l2cap_coc_create_server() argument
70 srv->mtu = mtu; in ble_l2cap_coc_create_server()
172 if (sdu_len > rx->mtu) { in ble_l2cap_coc_rx_fn()
174 sdu_len, rx->mtu); in ble_l2cap_coc_rx_fn()
238 void ble_l2cap_coc_set_new_mtu_mps(struct ble_l2cap_chan *chan, uint16_t mtu, uint16_t mps) in ble_l2cap_coc_set_new_mtu_mps() argument
241 chan->coc_rx.mtu = mtu; in ble_l2cap_coc_set_new_mtu_mps()
242 chan->initial_credits = mtu / chan->my_coc_mps; in ble_l2cap_coc_set_new_mtu_mps()
244 if (mtu % chan->my_coc_mps) { in ble_l2cap_coc_set_new_mtu_mps()
249 …ruct ble_l2cap_chan *ble_l2cap_coc_chan_alloc(struct ble_hs_conn *conn, uint16_t psm, uint16_t mtu, in ble_l2cap_coc_chan_alloc() argument
265 chan->coc_rx.mtu = mtu; in ble_l2cap_coc_chan_alloc()
[all …]
Dble_att.c385 uint16_t mtu; in ble_att_truncate_to_mtu() local
386 mtu = ble_att_chan_mtu(att_chan); in ble_att_truncate_to_mtu()
387 extra_len = OS_MBUF_PKTLEN(txom) - mtu; in ble_att_truncate_to_mtu()
397 uint16_t mtu; in ble_att_mtu() local
402 mtu = ble_att_chan_mtu(chan); in ble_att_mtu()
404 mtu = 0; in ble_att_mtu()
408 return mtu; in ble_att_mtu()
422 uint16_t mtu; in ble_att_chan_mtu() local
429 mtu = BLE_ATT_MTU_DFLT; in ble_att_chan_mtu()
431 mtu = min(chan->my_mtu, chan->peer_mtu); in ble_att_chan_mtu()
[all …]
Dble_att_svr.c631 uint16_t mtu; in ble_att_svr_build_mtu_rsp() local
638 mtu = chan->my_mtu; in ble_att_svr_build_mtu_rsp()
658 cmd->bamc_mtu = htole16(mtu); in ble_att_svr_build_mtu_rsp()
671 uint16_t mtu; in ble_att_svr_rx_mtu() local
675 mtu = 0; in ble_att_svr_rx_mtu()
682 mtu = le16toh(cmd->bamc_mtu); in ble_att_svr_rx_mtu()
696 ble_att_set_peer_mtu(chan, mtu); in ble_att_svr_rx_mtu()
698 mtu = ble_att_chan_mtu(chan); in ble_att_svr_rx_mtu()
704 ble_gap_mtu_event(conn_handle, BLE_L2CAP_CID_ATT, mtu); in ble_att_svr_rx_mtu()
728 struct os_mbuf *om, uint16_t mtu, uint8_t *format) in ble_att_svr_fill_info() argument
[all …]
Dble_l2cap_sig.c730 if ((req->mps < BLE_L2CAP_ECOC_MIN_MTU) || (req->mtu < BLE_L2CAP_ECOC_MIN_MTU)) { in ble_l2cap_sig_credit_base_reconfig_req_rx()
759 if (chan[i]->coc_tx.mtu > req->mtu) { in ble_l2cap_sig_credit_base_reconfig_req_rx()
768 chan[i]->coc_tx.mtu = req->mtu; in ble_l2cap_sig_credit_base_reconfig_req_rx()
867 rsp->mtu = htole16(BLE_L2CAP_ECOC_MIN_MTU); in ble_l2cap_sig_credit_base_con_req_rx()
881 if ((req->mtu < BLE_L2CAP_ECOC_MIN_MTU) || (req->mps < BLE_L2CAP_ECOC_MIN_MTU)) { in ble_l2cap_sig_credit_base_con_req_rx()
927 chans[i]->coc_tx.mtu = le16toh(req->mtu); in ble_l2cap_sig_credit_base_con_req_rx()
931 rc = ble_l2cap_event_coc_accept(chans[i], le16toh(req->mtu)); in ble_l2cap_sig_credit_base_con_req_rx()
941 rsp->mtu = htole16(chans[i]->coc_rx.mtu); in ble_l2cap_sig_credit_base_con_req_rx()
1038 chan->coc_tx.mtu = le16toh(rsp->mtu); in ble_l2cap_sig_credit_base_con_rsp_rx()
1107 chan->coc_tx.mtu = le16toh(req->mtu); in ble_l2cap_sig_coc_req_rx()
[all …]
Dble_l2cap.c129 int ble_l2cap_create_server(uint16_t psm, uint16_t mtu, in ble_l2cap_create_server() argument
132 return ble_l2cap_coc_create_server(psm, mtu, cb, cb_arg); in ble_l2cap_create_server()
135 int ble_l2cap_connect(uint16_t conn_handle, uint16_t psm, uint16_t mtu, in ble_l2cap_connect() argument
138 return ble_l2cap_sig_coc_connect(conn_handle, psm, mtu, sdu_rx, cb, cb_arg); in ble_l2cap_connect()
154 chan_info->our_coc_mtu = chan->coc_rx.mtu; in ble_l2cap_get_chan_info()
155 chan_info->peer_coc_mtu = chan->coc_tx.mtu; in ble_l2cap_get_chan_info()
161 uint16_t psm, uint16_t mtu, in ble_l2cap_enhanced_connect() argument
165 return ble_l2cap_sig_ecoc_connect(conn_handle, psm, mtu, in ble_l2cap_enhanced_connect()
Dble_att_clt.c52 int ble_att_clt_tx_mtu(uint16_t conn_handle, uint16_t mtu) in ble_att_clt_tx_mtu() argument
60 if (mtu < BLE_ATT_MTU_DFLT) { in ble_att_clt_tx_mtu()
85 req->bamc_mtu = htole16(mtu); in ble_att_clt_tx_mtu()
105 uint16_t mtu; in ble_att_clt_rx_mtu() local
107 mtu = 0; in ble_att_clt_rx_mtu()
115 mtu = ble_att_chan_mtu(chan); in ble_att_clt_rx_mtu()
121 ble_gap_mtu_event(conn_handle, BLE_L2CAP_CID_ATT, mtu); in ble_att_clt_rx_mtu()
125 ble_gattc_rx_mtu(conn_handle, rc, mtu); in ble_att_clt_rx_mtu()
/device/soc/esp/esp32/components/bt/host/bluedroid/api/
Desp_gatt_common_api.c32 esp_err_t esp_ble_gatt_set_local_mtu (uint16_t mtu) in esp_ble_gatt_set_local_mtu() argument
39 if ((mtu < ESP_GATT_DEF_BLE_MTU_SIZE) || (mtu > ESP_GATT_MAX_MTU_SIZE)) { in esp_ble_gatt_set_local_mtu()
46 arg.set_mtu.mtu = mtu; in esp_ble_gatt_set_local_mtu()
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gatt_common.c27 static void btc_set_local_mtu(uint16_t mtu) in btc_set_local_mtu() argument
29 BTA_GATT_SetLocalMTU(mtu); in btc_set_local_mtu()
39 btc_set_local_mtu(arg->set_mtu.mtu); in btc_gatt_com_call_handler()
/device/soc/esp/esp32/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);
/device/soc/telink/b91/b91_ble_sdk/stack/ble/host/l2cap/
Dl2cap_signal.h35 #define BLC_L2CAP_COC_MTU_NEEDLEN(srvCount, chCount, mtu) (srvCount * chCount * mtu) argument
171 int blc_l2cap_registerService(u16 spsm, u8 srvCount, u8 chCount, u16 mtu, u16 mps, u16 credits, u8 …
223 int blc_l2cap_reconfigService(u8 srvNum, u16 mtu, u16 mps);
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/gatt/
Dbta_gatt_common.c27 void BTA_GATT_SetLocalMTU(uint16_t mtu) in BTA_GATT_SetLocalMTU() argument
29 gatt_set_local_mtu(mtu); in BTA_GATT_SetLocalMTU()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/sdk/
Dble_gatt.h87 void (*app_gatt_mtu_exchange_cb)(uint8_t conn_idx, uint8_t status, uint16_t mtu);
111 uint16_t ble_gatt_mtu_set(uint16_t mtu);
Dble_l2cap.h84 …uint16_t mtu; /**< The MTU field specifies the maximum SDU size (in octets) that th… member
109 …uint16_t mtu; /**< The MTU field specifies the maximum SDU size (in octets) that the L2C… member
/device/board/osware/imx8mm/drivers/wifi/ap6212/hdfadapter/
Dnet_adpater.c43 extern int dhd_netdev_changemtu_wrapper(struct net_device *netdev, int mtu);
244 int32_t hdf_netdev_changemtu(struct NetDevice *netDev, int32_t mtu) in hdf_netdev_changemtu() argument
254 HDF_LOGE("%s: change mtu to %d\n", __FUNCTION__, mtu); in hdf_netdev_changemtu()
256 retVal = (int32_t)dhd_netdev_changemtu_wrapper(netDev, mtu); in hdf_netdev_changemtu()
/device/soc/esp/esp32/components/bt/common/btc/profile/esp/blufi/nimble_host/
Desp_blufi.c313 event->mtu.conn_handle, in esp_blufi_gap_event()
314 event->mtu.channel_id, in esp_blufi_gap_event()
315 event->mtu.value); in esp_blufi_gap_event()
316 …blufi_env.frag_size = (event->mtu.value < BLUFI_MAX_DATA_LEN ? event->mtu.value : BLUFI_MAX_DATA_L… in esp_blufi_gap_event()
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/
Dcoap_session.h77 unsigned mtu; /**< path or CSM mtu */ member
176 void coap_session_set_mtu(coap_session_t *session, unsigned mtu);
336 void coap_endpoint_set_default_mtu(coap_endpoint_t *endpoint, unsigned mtu);
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/hdf/
Dnet_bdh_adpater.c530 int32_t hdf_bdh6_netdev_changemtu(struct NetDevice *netDev, int32_t mtu) in hdf_bdh6_netdev_changemtu() argument
539 HDF_LOGE("%s: change mtu to %d\n", __FUNCTION__, mtu); in hdf_bdh6_netdev_changemtu()
540 retVal = (int32_t)dhd_netdev_changemtu_wrapper(netdev, mtu); in hdf_bdh6_netdev_changemtu()
548 int32_t hdf_p2p_netdev_changemtu(struct NetDevice *netDev, int32_t mtu) in hdf_p2p_netdev_changemtu() argument
552 netdev->mtu = mtu; in hdf_p2p_netdev_changemtu()
/device/board/hihope/rk3568/wifi/bcmdhd_wifi6/hdfadapt/
Dnet_bdh_adpater.c508 int32_t hdf_bdh6_netdev_changemtu(struct NetDevice *netDev, int32_t mtu) in hdf_bdh6_netdev_changemtu() argument
517 HDF_LOGI("%s: change mtu to %d\n", __FUNCTION__, mtu); in hdf_bdh6_netdev_changemtu()
518 retVal = (int32_t)dhd_netdev_changemtu_wrapper(netdev, mtu); in hdf_bdh6_netdev_changemtu()
526 int32_t hdf_p2p_netdev_changemtu(struct NetDevice *netDev, int32_t mtu) in hdf_p2p_netdev_changemtu() argument
530 netdev->mtu = mtu; in hdf_p2p_netdev_changemtu()
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/include/host/
Dble_l2cap.h250 int ble_l2cap_create_server(uint16_t psm, uint16_t mtu,
253 int ble_l2cap_connect(uint16_t conn_handle, uint16_t psm, uint16_t mtu,

123456