Home
last modified time | relevance | path

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

1234

/system/bt/stack/rfcomm/
Dport_rfc.cc77 RFCOMM_ParameterNegotiationRequest(p_mcb, p_port->dlci, p_port->mtu); in port_open_continue()
199 RFCOMM_ParameterNegotiationRequest(p_mcb, p_port->dlci, p_port->mtu); in PORT_StartCnf()
272 void PORT_ParNegInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, uint8_t cl, in PORT_ParNegInd() argument
275 p_mcb->bd_addr.ToString().c_str(), dlci, mtu); in PORT_ParNegInd()
302 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegInd()
303 p_port->peer_mtu = p_port->mtu; in PORT_ParNegInd()
347 RFCOMM_ParameterNegotiationResponse(p_mcb, dlci, p_port->mtu, our_cl, our_k); in PORT_ParNegInd()
361 void PORT_ParNegCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, uint8_t cl, in PORT_ParNegCnf() argument
363 RFCOMM_TRACE_EVENT("PORT_ParNegCnf dlci:%d mtu:%d cl: %d k: %d", dlci, mtu, in PORT_ParNegCnf()
397 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegCnf()
[all …]
Dport_utils.cc144 if (p_port->mtu == 0) { in port_select_mtu()
150 p_port->mtu = RFCOMM_DEFAULT_MTU; in port_select_mtu()
166 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * in port_select_mtu()
170 __func__, p_port->mtu); in port_select_mtu()
172 p_port->mtu = L2CAP_MTU_SIZE - RFCOMM_DATA_OVERHEAD; in port_select_mtu()
174 p_port->mtu); in port_select_mtu()
178 RFCOMM_TRACE_DEBUG("%s: application selected %d", __func__, p_port->mtu); in port_select_mtu()
180 p_port->credit_rx_max = (PORT_RX_HIGH_WM / p_port->mtu); in port_select_mtu()
183 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 …]
Drfc_port_if.cc78 UNUSED_ATTR uint16_t mtu) { in RFCOMM_DlcEstablishReq() argument
102 UNUSED_ATTR uint16_t mtu, uint16_t result) { in RFCOMM_DlcEstablishRsp() argument
128 uint16_t mtu) { in RFCOMM_ParameterNegotiationRequest() argument
163 rfc_send_pn(p_mcb, dlci, true, mtu, cl, k); in RFCOMM_ParameterNegotiationRequest()
177 uint16_t mtu, uint8_t cl, uint8_t k) { in RFCOMM_ParameterNegotiationResponse() argument
181 rfc_send_pn(p_mcb, dlci, false, mtu, cl, k); in RFCOMM_ParameterNegotiationResponse()
Drfc_int.h51 extern void RFCOMM_DlcEstablishReq(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu);
52 extern void RFCOMM_DlcEstablishRsp(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu,
60 uint16_t mtu);
62 uint16_t mtu, uint8_t cl,
102 uint16_t mtu; member
329 uint16_t mtu, uint8_t cl, uint8_t k);
354 extern void PORT_DlcEstablishInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu);
355 extern void PORT_DlcEstablishCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu,
362 extern void PORT_ParNegInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu,
364 extern void PORT_ParNegCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu,
Dport_api.cc116 uint16_t mtu, const RawAddress& bd_addr, in RFCOMM_CreateConnection() argument
125 << ", mtu=" << static_cast<int>(mtu) in RFCOMM_CreateConnection()
154 << ", is_server=" << is_server << ", mtu=" << mtu in RFCOMM_CreateConnection()
169 << ", mtu=" << mtu << ", uuid=" << loghex(uuid) in RFCOMM_CreateConnection()
208 if (mtu) { in RFCOMM_CreateConnection()
209 p_port->mtu = (mtu < rfcomm_mtu) ? mtu : rfcomm_mtu; in RFCOMM_CreateConnection()
211 p_port->mtu = rfcomm_mtu; in RFCOMM_CreateConnection()
220 p_port->keep_mtu = p_port->mtu; in RFCOMM_CreateConnection()
229 << ", mtu=" << mtu << ", uuid=" << loghex(uuid) in RFCOMM_CreateConnection()
1673 if (len > ((p_port->mtu == 0) ? RFCOMM_DEFAULT_MTU : p_port->mtu)) { in PORT_Test()
/system/bt/service/ipc/binder/
Dbluetooth_low_energy_binder_server.cc103 const String16& address, int mtu, in SetMtu() argument
106 << " mtu: " << mtu; in SetMtu()
116 *_aidl_return = client->SetMtu(std::string(String8(address).string()), mtu); in SetMtu()
138 int mtu) { in OnMtuChanged() argument
140 << " mtu: " << mtu; in OnMtuChanged()
149 cb->OnMtuChanged(status, String16(address, std::strlen(address)), mtu); in OnMtuChanged()
Dbluetooth_low_energy_binder_server.h62 Status SetMtu(int client_id, const String16& address, int mtu,
69 const char* address, int mtu) override;
/system/bt/packet/avrcp/
Dget_folder_items.h28 Status status, uint16_t uid_counter, size_t mtu);
30 Status status, uint16_t uid_counter, size_t mtu);
32 Status status, uint16_t uid_counter, size_t mtu);
51 uint16_t uid_counter, size_t mtu) in GetFolderItemsResponseBuilder() argument
56 mtu_(mtu){}; in GetFolderItemsResponseBuilder()
Dget_element_attributes_packet.h66 size_t mtu);
79 GetElementAttributesResponseBuilder(size_t mtu) in GetElementAttributesResponseBuilder() argument
82 mtu_(mtu){}; in GetElementAttributesResponseBuilder()
Dget_item_attributes.h31 Status status, size_t mtu);
45 GetItemAttributesResponseBuilder(Status status, size_t mtu) in GetItemAttributesResponseBuilder() argument
48 mtu_(mtu) {} in GetItemAttributesResponseBuilder()
Dget_folder_items.cc25 size_t mtu) { in MakePlayerListBuilder() argument
28 uid_counter, mtu)); in MakePlayerListBuilder()
36 size_t mtu) { in MakeVFSBuilder() argument
38 new GetFolderItemsResponseBuilder(Scope::VFS, status, uid_counter, mtu)); in MakeVFSBuilder()
46 size_t mtu) { in MakeNowPlayingBuilder() argument
49 mtu)); in MakeNowPlayingBuilder()
/system/bt/service/
Dlow_energy_client.cc97 bool LowEnergyClient::SetMtu(const std::string& address, int mtu) { in SetMtu() argument
98 VLOG(2) << __func__ << "Address: " << address << " MTU: " << mtu; in SetMtu()
115 ->configure_mtu(conn_id->second, mtu); in SetMtu()
174 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status, int mtu) { in MtuChangedCallback() argument
176 << " mtu: " << mtu; in MtuChangedCallback()
192 if (delegate_) delegate_->OnMtuChanged(this, status, addr.c_str(), mtu); in MtuChangedCallback()
Dlow_energy_client.h63 const char* address, int mtu) = 0;
91 bool SetMtu(const std::string& address, int mtu);
112 int status, int mtu) override;
/system/bt/stack/avct/
Davct_l2c_br.cc143 cfg.mtu = avct_cb.mtu_br; in avct_l2c_br_connect_ind_cback()
209 cfg.mtu = avct_cb.mtu_br; in avct_l2c_br_connect_cfm_cback()
283 p_lcb->peer_mtu = p_cfg->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()
301 p_cfg->mtu = AVCT_MIN_BROWSE_MTU; in avct_l2c_br_config_ind_cback()
Davct_api.cc54 void AVCT_Register(uint16_t mtu, UNUSED_ATTR uint16_t mtu_br, in AVCT_Register() argument
91 if (mtu < AVCT_MIN_CONTROL_MTU) mtu = AVCT_MIN_CONTROL_MTU; in AVCT_Register()
93 avct_cb.mtu = mtu; in AVCT_Register()
Davct_l2c.cc149 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_ind_cback()
188 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_cfm_cback()
287 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_config_ind_cback()
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test.cc133 void StartServerPort(uint16_t uuid, uint8_t scn, uint16_t mtu, in StartServerPort() argument
138 ASSERT_EQ(RFCOMM_CreateConnection(uuid, scn, true, mtu, RawAddress::kAny, in StartServerPort()
153 tL2CAP_CFG_INFO cfg_req = {.mtu_present = true, .mtu = L2CAP_MTU_SIZE}; in ConnectServerL2cap()
186 uint8_t scn, uint16_t mtu, uint16_t acl_handle, in ConnectServerPort() argument
191 CreateQuickPnPacket(true, GetDlci(false, scn), true, mtu, in ConnectServerPort()
195 CreateQuickPnPacket(false, GetDlci(false, scn), false, mtu, in ConnectServerPort()
265 uint8_t scn, uint16_t mtu, in StartClientPort() argument
273 true, GetDlci(false, scn), true, mtu, RFCOMM_PN_CONV_LAYER_TYPE_1, in StartClientPort()
283 ASSERT_EQ(RFCOMM_CreateConnection(uuid, scn, false, mtu, peer_bd_addr, in StartClientPort()
295 tL2CAP_CFG_INFO cfg_req = {.mtu_present = true, .mtu = L2CAP_MTU_SIZE}; in TestConnectClientPortL2cap()
[all …]
/system/bt/bta/include/
Dbta_av_co.h119 const RawAddress& peer_address, uint16_t mtu);
225 const RawAddress& peer_address, uint16_t mtu);
Dbta_ar_api.h101 extern void bta_ar_reg_avct(uint16_t mtu, uint16_t mtu_br, uint8_t sec_mask,
/system/bt/stack/bnep/
Dbnep_main.cc83 bnep_cb.l2cap_my_cfg.mtu = BNEP_MTU_SIZE; in bnep_register_with_l2cap()
210 uint16_t result, mtu = 0; in bnep_config_ind() local
223 if ((!p_cfg->mtu_present) || (p_cfg->mtu < BNEP_MIN_MTU_SIZE)) { in bnep_config_ind()
224 mtu = p_cfg->mtu; in bnep_config_ind()
227 p_cfg->mtu = BNEP_MIN_MTU_SIZE; in bnep_config_ind()
230 if (p_cfg->mtu > BNEP_MTU_SIZE) in bnep_config_ind()
233 p_bcb->rem_mtu_size = p_cfg->mtu; in bnep_config_ind()
244 BNEP_TRACE_EVENT("BNEP - Rcvd cfg ind with bad MTU %d, CID: 0x%x", mtu, in bnep_config_ind()
/system/bt/service/common/android/bluetooth/
DIBluetoothLowEnergyCallback.aidl25 void OnMtuChanged(int status, String address, int mtu); in OnMtuChanged() argument
DIBluetoothLowEnergy.aidl32 boolean SetMtu(int client_id, String address, int mtu); in SetMtu() argument
/system/bt/stack/avdt/
Davdt_l2c.cc105 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_term()
146 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()
301 cfg.mtu = p_tbl->my_mtu; in avdt_l2c_connect_cfm_cback()
404 p_tbl->peer_mtu = p_cfg->mtu; in avdt_l2c_config_ind_cback()
/system/bt/btif/co/
Dbta_av_co.cc98 mtu(0),
155 uint16_t mtu; // Maximum Transmit Unit size member in BtaAvCoPeer
312 uint16_t mtu);
382 uint16_t mtu);
736 mtu = 0; in Reset()
1252 const RawAddress& peer_address, uint16_t mtu) { in ProcessOpen() argument
1254 peer_address.ToString().c_str(), bta_av_handle, mtu); in ProcessOpen()
1265 p_peer->mtu = mtu; in ProcessOpen()
1376 const RawAddress& peer_address, uint16_t mtu) { in UpdateMtu() argument
1378 peer_address.ToString().c_str(), bta_av_handle, mtu); in UpdateMtu()
[all …]
/system/bt/stack/avrc/
Davrc_bld_tg.cc837 uint16_t mtu; in avrc_bld_set_browsed_player_rsp() local
842 BE_STREAM_TO_UINT16(mtu, p_data); in avrc_bld_set_browsed_player_rsp()
843 if (len_left > mtu) { in avrc_bld_set_browsed_player_rsp()
844 len_left = mtu; in avrc_bld_set_browsed_player_rsp()
847 AVRC_TRACE_DEBUG("len_left:%d, mtu:%d ", len_left, mtu); in avrc_bld_set_browsed_player_rsp()
921 uint16_t mtu; in avrc_bld_get_folder_items_rsp() local
928 BE_STREAM_TO_UINT16(mtu, p); in avrc_bld_get_folder_items_rsp()
929 if (len_left > mtu) len_left = mtu; in avrc_bld_get_folder_items_rsp()
1137 uint16_t mtu; in avrc_bld_get_item_attrs_rsp() local
1138 BE_STREAM_TO_UINT16(mtu, p_data); in avrc_bld_get_item_attrs_rsp()
[all …]

1234