Home
last modified time | relevance | path

Searched refs:lcid (Results 1 – 25 of 51) sorted by relevance

123

/system/bt/stack/rfcomm/
Drfc_l2cap_if.cc44 static void RFCOMM_ConnectInd(const RawAddress& bd_addr, uint16_t lcid,
46 static void RFCOMM_ConnectCnf(uint16_t lcid, uint16_t err);
47 static void RFCOMM_ConfigInd(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg);
48 static void RFCOMM_ConfigCnf(uint16_t lcid, uint16_t result,
50 static void RFCOMM_DisconnectInd(uint16_t lcid, bool is_clear);
51 static void RFCOMM_BufDataInd(uint16_t lcid, BT_HDR* p_buf);
52 static void RFCOMM_CongestionStatusInd(uint16_t lcid, bool is_congested);
88 void RFCOMM_ConnectInd(const RawAddress& bd_addr, uint16_t lcid, in RFCOMM_ConnectInd() argument
95 p_mcb->pending_lcid = lcid; in RFCOMM_ConnectInd()
105 p_mcb->lcid, p_mcb->pending_lcid); in RFCOMM_ConnectInd()
[all …]
Drfc_mx_fsm.cc130 uint16_t lcid = L2CA_ConnectReq(BT_PSM_RFCOMM, p_mcb->bd_addr); in rfc_mx_sm_state_idle() local
131 if (lcid == 0) { in rfc_mx_sm_state_idle()
134 rfc_save_lcid_mcb(nullptr, p_mcb->lcid); in rfc_mx_sm_state_idle()
135 p_mcb->lcid = 0; in rfc_mx_sm_state_idle()
139 p_mcb->lcid = lcid; in rfc_mx_sm_state_idle()
141 rfc_save_lcid_mcb(p_mcb, p_mcb->lcid); in rfc_mx_sm_state_idle()
222 L2CA_DisconnectReq(p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
234 rfc_save_lcid_mcb(NULL, p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
235 p_mcb->lcid = p_mcb->pending_lcid; in rfc_mx_sm_state_wait_conn_cnf()
236 rfc_save_lcid_mcb(p_mcb, p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
[all …]
Drfc_utils.cc200 rfc_save_lcid_mcb(NULL, p_mcb->lcid); in rfc_release_multiplexer_channel()
421 __func__, p_mcb, p_mcb->lcid, rfc_find_lcid_mcb(p_mcb->lcid)); in rfc_check_send_cmd()
430 L2CA_DataWrite(p_mcb->lcid, p); in rfc_check_send_cmd()
/system/bt/stack/avdt/
Davdt_l2c.cc37 void avdt_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid,
39 void avdt_l2c_connect_cfm_cback(uint16_t lcid, uint16_t result);
40 void avdt_l2c_config_cfm_cback(uint16_t lcid, uint16_t result,
42 void avdt_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg);
43 void avdt_l2c_disconnect_ind_cback(uint16_t lcid, bool ack_needed);
44 void avdt_l2c_congestion_ind_cback(uint16_t lcid, bool is_congested);
45 void avdt_l2c_data_ind_cback(uint16_t lcid, BT_HDR* p_buf);
46 static void avdt_on_l2cap_error(uint16_t lcid, uint16_t result);
80 avdtp_cb.ad.lcid_tbl[p_tbl->lcid] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_sec_check_complete_term()
81 avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid; in avdt_sec_check_complete_term()
[all …]
Davdt_ad.cc195 AvdtpTransportChannel* avdt_ad_tc_tbl_by_lcid(uint16_t lcid) { in avdt_ad_tc_tbl_by_lcid() argument
196 if (avdtp_cb.ad.lcid_tbl.count(lcid) != 0) { in avdt_ad_tc_tbl_by_lcid()
197 uint8_t idx = avdtp_cb.ad.lcid_tbl[lcid]; in avdt_ad_tc_tbl_by_lcid()
359 L2CA_SetTxPriority(avdtp_cb.ad.rt_tbl[p_tbl->ccb_idx][AVDT_CHAN_SIG].lcid, in avdt_ad_tc_open_ind()
384 open.lcid = avdtp_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].lcid; in avdt_ad_tc_open_ind()
490 return L2CA_DataWrite(avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid, in avdt_ad_write_req()
513 uint16_t lcid; in avdt_ad_open_req() local
549 lcid = in avdt_ad_open_req()
551 if (lcid != 0) { in avdt_ad_open_req()
553 avdtp_cb.ad.lcid_tbl[lcid] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_ad_open_req()
[all …]
/system/bt/stack/avct/
Davct_l2c.cc34 void avct_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid,
36 void avct_l2c_connect_cfm_cback(uint16_t lcid, uint16_t result);
37 void avct_l2c_config_cfm_cback(uint16_t lcid, uint16_t result,
39 void avct_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg);
40 void avct_l2c_disconnect_ind_cback(uint16_t lcid, bool ack_needed);
41 void avct_l2c_congestion_ind_cback(uint16_t lcid, bool is_congested);
42 void avct_l2c_data_ind_cback(uint16_t lcid, BT_HDR* p_buf);
43 static void avct_on_l2cap_error(uint16_t lcid, uint16_t result);
92 void avct_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, in avct_l2c_connect_ind_cback() argument
123 lcid, result, p_lcb->ch_state); in avct_l2c_connect_ind_cback()
[all …]
Davct_l2c_br.cc35 void avct_l2c_br_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid,
37 void avct_l2c_br_connect_cfm_cback(uint16_t lcid, uint16_t result);
38 void avct_l2c_br_config_cfm_cback(uint16_t lcid, uint16_t result,
40 void avct_l2c_br_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg);
41 void avct_l2c_br_disconnect_ind_cback(uint16_t lcid, bool ack_needed);
42 void avct_l2c_br_congestion_ind_cback(uint16_t lcid, bool is_congested);
43 void avct_l2c_br_data_ind_cback(uint16_t lcid, BT_HDR* p_buf);
44 void avct_br_on_l2cap_error(uint16_t lcid, uint16_t result);
66 void avct_l2c_br_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, in avct_l2c_br_connect_ind_cback() argument
95 L2CA_DisconnectReq(lcid); in avct_l2c_br_connect_ind_cback()
[all …]
Davct_int.h151 extern tAVCT_BCB* avct_bcb_by_lcid(uint16_t lcid);
155 extern tAVCT_LCB* avct_lcb_by_lcid(uint16_t lcid);
217 void avct_l2c_disconnect(uint16_t lcid, uint16_t result);
218 void avct_l2c_br_disconnect(uint16_t lcid, uint16_t result);
Davct_lcb.cc328 tAVCT_LCB* avct_lcb_by_lcid(uint16_t lcid) { in avct_lcb_by_lcid() argument
334 ((p_lcb->ch_lcid == lcid) || (p_lcb->conflict_lcid == lcid))) { in avct_lcb_by_lcid()
342 AVCT_TRACE_WARNING("No lcb for lcid %x", lcid); in avct_lcb_by_lcid()
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test.cc146 uint16_t lcid) { in ConnectServerL2cap() argument
151 ConnectResponse(peer_addr, cmd_id, lcid, L2CAP_CONN_OK, 0)); in ConnectServerL2cap()
154 ConfigRequest(lcid, PointerMemoryEqual(&cfg_req))) in ConnectServerL2cap()
156 l2cap_appl_info_.pL2CA_ConnectInd_Cb(peer_addr, lcid, BT_PSM_RFCOMM, in ConnectServerL2cap()
162 l2cap_appl_info_.pL2CA_ConfigCfm_Cb(lcid, L2CAP_CFG_OK, {}); in ConnectServerL2cap()
167 ConfigResponse(lcid, PointerMemoryEqual(&cfg_req))) in ConnectServerL2cap()
169 l2cap_appl_info_.pL2CA_ConfigInd_Cb(lcid, &cfg_req); in ConnectServerL2cap()
174 CreateQuickSabmPacket(RFCOMM_MX_DLCI, lcid, acl_handle)); in ConnectServerL2cap()
176 CreateQuickUaPacket(RFCOMM_MX_DLCI, lcid, acl_handle)); in ConnectServerL2cap()
177 EXPECT_CALL(l2cap_interface_, DataWrite(lcid, BtHdrEqual(ua_channel_0))) in ConnectServerL2cap()
[all …]
/system/bt/stack/eatt/
Deatt_impl.h68 eatt_device* find_device_by_cid(uint16_t lcid) { in find_device_by_cid()
72 [&lcid](const eatt_device& ed) { in find_device_by_cid()
73 auto it = ed.eatt_channels.find(lcid); in find_device_by_cid()
80 EattChannel* find_channel_by_cid(uint16_t lcid) { in find_channel_by_cid()
81 eatt_device* eatt_dev = find_device_by_cid(lcid); in find_channel_by_cid()
84 auto it = eatt_dev->eatt_channels.find(lcid); in find_channel_by_cid()
88 EattChannel* find_channel_by_cid(const RawAddress& bdaddr, uint16_t lcid) { in find_channel_by_cid()
92 auto it = eatt_dev->eatt_channels.find(lcid); in find_channel_by_cid()
96 void remove_channel_by_cid(eatt_device* eatt_dev, uint16_t lcid) { in remove_channel_by_cid()
97 eatt_dev->eatt_channels.erase(lcid); in remove_channel_by_cid()
[all …]
Deatt.cc77 static void eatt_connect_cfm(const RawAddress& bda, uint16_t lcid, in eatt_connect_cfm()
81 p_eatt_impl->eatt_l2cap_connect_cfm(bda, lcid, peer_mtu, result); in eatt_connect_cfm()
84 static void eatt_reconfig_completed(const RawAddress& bda, uint16_t lcid, in eatt_reconfig_completed()
89 p_eatt_impl->eatt_l2cap_reconfig_completed(bda, lcid, is_local_cfg, in eatt_reconfig_completed()
93 static void eatt_error_cb(uint16_t lcid, uint16_t reason) { in eatt_error_cb()
95 if (p_eatt_impl) p_eatt_impl->eatt_l2cap_error_cb(lcid, reason); in eatt_error_cb()
98 static void eatt_disconnect_ind(uint16_t lcid, bool please_confirm) { in eatt_disconnect_ind()
101 p_eatt_impl->eatt_l2cap_disconnect_ind(lcid, please_confirm); in eatt_disconnect_ind()
104 static void eatt_data_ind(uint16_t lcid, BT_HDR* data_p) { in eatt_data_ind()
106 if (p_eatt_impl) p_eatt_impl->eatt_l2cap_data_ind(lcid, data_p); in eatt_data_ind()
/system/bt/stack/gatt/
Dgatt_main.cc60 static void gatt_l2cif_config_cfm_cback(uint16_t lcid, uint16_t result,
68 static void gatt_on_l2cap_error(uint16_t lcid, uint16_t result);
596 uint16_t lcid, in gatt_l2cif_connect_ind_cback() argument
599 LOG(INFO) << "Connection indication cid = " << +lcid; in gatt_l2cif_connect_ind_cback()
610 p_tcb->att_lcid = lcid; in gatt_l2cif_connect_ind_cback()
619 L2CA_DisconnectReq(lcid); in gatt_l2cif_connect_ind_cback()
627 static void gatt_on_l2cap_error(uint16_t lcid, uint16_t result) { in gatt_on_l2cap_error() argument
628 tGATT_TCB* p_tcb = gatt_find_tcb_by_cid(lcid); in gatt_on_l2cap_error()
634 gatt_l2cif_disconnect(lcid); in gatt_on_l2cap_error()
639 static void gatt_l2cif_connect_cfm_cback(uint16_t lcid, uint16_t result) { in gatt_l2cif_connect_cfm_cback() argument
[all …]
/system/bt/stack/l2cap/
Dl2c_main.cc345 uint16_t lcid, rcid; in process_l2cap_cmd() local
351 STREAM_TO_UINT16(lcid, p); in process_l2cap_cmd()
354 lcid, rcid); in process_l2cap_cmd()
357 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
428 uint16_t lcid; in process_l2cap_cmd() local
434 STREAM_TO_UINT16(lcid, p); in process_l2cap_cmd()
438 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
440 LOG_WARN("no CCB for conn rsp, LCID: %d RCID: %d", lcid, in process_l2cap_cmd()
473 uint16_t lcid; in process_l2cap_cmd() local
478 STREAM_TO_UINT16(lcid, p); in process_l2cap_cmd()
[all …]
Dl2c_api.cc598 bool L2CA_GetPeerLECocConfig(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg) { in L2CA_GetPeerLECocConfig() argument
600 return bluetooth::shim::L2CA_GetPeerLECocConfig(lcid, peer_cfg); in L2CA_GetPeerLECocConfig()
603 L2CAP_TRACE_API("%s CID: 0x%04x", __func__, lcid); in L2CA_GetPeerLECocConfig()
605 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(NULL, lcid); in L2CA_GetPeerLECocConfig()
607 L2CAP_TRACE_ERROR("%s No CCB for CID:0x%04x", __func__, lcid); in L2CA_GetPeerLECocConfig()
910 bool L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid) { in L2CA_GetRemoteCid() argument
912 return bluetooth::shim::L2CA_GetRemoteCid(lcid, rcid); in L2CA_GetRemoteCid()
915 tL2C_CCB* control_block = l2cu_find_ccb_by_cid(NULL, lcid); in L2CA_GetRemoteCid()
1543 uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush) { in L2CA_FlushChannel() argument
1545 return bluetooth::shim::L2CA_FlushChannel(lcid, num_to_flush); in L2CA_FlushChannel()
[all …]
/system/bt/test/mock/
Dmock_stack_l2cap_api.h200 std::function<bool(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg)> body{
201 [](uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg) { return false; }};
202 bool operator()(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg) { in operator()
203 return body(lcid, peer_cfg); in operator()
273 std::function<bool(uint16_t lcid, uint16_t* rcid)> body{
274 [](uint16_t lcid, uint16_t* rcid) { return false; }};
275 bool operator()(uint16_t lcid, uint16_t* rcid) { return body(lcid, rcid); }; in operator()
435 std::function<uint16_t(uint16_t lcid, uint16_t num_to_flush)> body{
436 [](uint16_t lcid, uint16_t num_to_flush) { return 0; }};
437 uint16_t operator()(uint16_t lcid, uint16_t num_to_flush) { in operator()
[all …]
Dmock_stack_gatt_main.cc82 void gatt_l2cif_config_cfm_cback(uint16_t lcid, uint16_t initiator, in gatt_l2cif_config_cfm_cback() argument
86 void gatt_l2cif_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in gatt_l2cif_config_ind_cback() argument
89 void gatt_l2cif_disconnect_ind_cback(uint16_t lcid, bool ack_needed) { in gatt_l2cif_disconnect_ind_cback() argument
Dmock_stack_l2cap_api.cc162 bool L2CA_GetPeerLECocConfig(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg) { in L2CA_GetPeerLECocConfig() argument
164 return test::mock::stack_l2cap_api::L2CA_GetPeerLECocConfig(lcid, peer_cfg); in L2CA_GetPeerLECocConfig()
195 bool L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid) { in L2CA_GetRemoteCid() argument
197 return test::mock::stack_l2cap_api::L2CA_GetRemoteCid(lcid, rcid); in L2CA_GetRemoteCid()
260 uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush) { in L2CA_FlushChannel() argument
262 return test::mock::stack_l2cap_api::L2CA_FlushChannel(lcid, num_to_flush); in L2CA_FlushChannel()
Dmock_main_shim_l2cap_api.h351 std::function<bool(uint16_t lcid, uint16_t* rcid)> body{
352 [](uint16_t lcid, uint16_t* rcid) { return false; }};
353 bool operator()(uint16_t lcid, uint16_t* rcid) { return body(lcid, rcid); }; in operator()
393 std::function<uint16_t(uint16_t lcid, uint16_t num_to_flush)> body{
394 [](uint16_t lcid, uint16_t num_to_flush) { return 0; }};
395 uint16_t operator()(uint16_t lcid, uint16_t num_to_flush) { in operator()
396 return body(lcid, num_to_flush); in operator()
/system/bt/stack/test/common/
Dmock_gatt_main.cc82 void gatt_l2cif_config_cfm_cback(uint16_t lcid, uint16_t initiator, in gatt_l2cif_config_cfm_cback() argument
86 void gatt_l2cif_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in gatt_l2cif_config_ind_cback() argument
89 void gatt_l2cif_disconnect_ind_cback(uint16_t lcid, bool ack_needed) { in gatt_l2cif_disconnect_ind_cback() argument
Dstack_test_packet_utils.cc27 std::vector<uint8_t> CreateL2capDataPacket(uint16_t lcid, in CreateL2capDataPacket() argument
34 result.push_back(static_cast<uint8_t>(lcid)); in CreateL2capDataPacket()
35 result.push_back(static_cast<uint8_t>(lcid >> 8)); in CreateL2capDataPacket()
Dmock_l2cap_layer.cc39 bool L2CA_ConnectRsp(const RawAddress& bd_addr, uint8_t id, uint16_t lcid, in L2CA_ConnectRsp() argument
41 return l2cap_interface->ConnectResponse(bd_addr, id, lcid, result, status); in L2CA_ConnectRsp()
Dstack_test_packet_utils.h31 std::vector<uint8_t> CreateL2capDataPacket(uint16_t lcid,
/system/bt/stack/include/
Dl2c_api.h283 uint16_t lcid,
294 const RawAddress& bdaddr, uint16_t lcid, bool is_local_cfg,
467 extern bool L2CA_GetPeerLECocConfig(uint16_t lcid,
548 bool L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid);
599 extern uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush);
/system/bt/main/shim/
Dl2c_api.h151 bool L2CA_GetPeerLECocConfig(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg);
233 bool L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid);
283 uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush);

123