Home
last modified time | relevance | path

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

123

/packages/modules/Bluetooth/system/stack/avdt/
Davdt_l2c.cc43 void avdt_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid,
45 void avdt_l2c_connect_cfm_cback(uint16_t lcid, uint16_t result);
46 void avdt_l2c_config_cfm_cback(uint16_t lcid, uint16_t result,
48 void avdt_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg);
49 void avdt_l2c_disconnect_ind_cback(uint16_t lcid, bool ack_needed);
50 void avdt_l2c_congestion_ind_cback(uint16_t lcid, bool is_congested);
51 void avdt_l2c_data_ind_cback(uint16_t lcid, BT_HDR* p_buf);
52 static void avdt_on_l2cap_error(uint16_t lcid, uint16_t result);
92 avdtp_cb.ad.lcid_tbl[p_tbl->lcid] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_sec_check_complete_term()
93 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 avdtp_cb.ad.rt_tbl[p_tbl->ccb_idx][AVDT_CHAN_SIG].lcid, in avdt_ad_tc_open_ind()
362 avdtp_cb.ad.rt_tbl[p_tbl->ccb_idx][AVDT_CHAN_SIG].lcid); in avdt_ad_tc_open_ind()
387 open.lcid = avdtp_cb.ad.rt_tbl[p_tbl->ccb_idx][p_tbl->tcid].lcid; in avdt_ad_tc_open_ind()
493 return L2CA_DataWrite(avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid, in avdt_ad_write_req()
516 uint16_t lcid; in avdt_ad_open_req() local
551 lcid = L2CA_ConnectReqWithSecurity(AVDT_PSM, p_ccb->peer_addr, in avdt_ad_open_req()
553 if (lcid != 0) { in avdt_ad_open_req()
[all …]
Davdt_int.h647 lcid(0), in AvdtpTransportChannel()
656 lcid = 0; in Reset()
665 uint16_t lcid; variable
678 AvdtpRoutingEntry() : lcid(0), scb_hdl(0) {} in AvdtpRoutingEntry()
681 lcid = 0; in Reset()
685 uint16_t lcid; // L2CAP LCID of the associated transport channel variable
923 AvdtpTransportChannel* avdt_ad_tc_tbl_by_lcid(uint16_t lcid);
971 void avdt_l2c_disconnect(uint16_t lcid);
/packages/modules/Bluetooth/system/stack/rfcomm/
Drfc_l2cap_if.cc46 static void RFCOMM_ConnectInd(const RawAddress& bd_addr, uint16_t lcid,
48 static void RFCOMM_ConnectCnf(uint16_t lcid, uint16_t err);
49 static void RFCOMM_ConfigInd(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg);
50 static void RFCOMM_ConfigCnf(uint16_t lcid, uint16_t result,
52 static void RFCOMM_DisconnectInd(uint16_t lcid, bool is_clear);
53 static void RFCOMM_BufDataInd(uint16_t lcid, BT_HDR* p_buf);
54 static void RFCOMM_CongestionStatusInd(uint16_t lcid, bool is_congested);
93 void RFCOMM_ConnectInd(const RawAddress& bd_addr, uint16_t lcid, in RFCOMM_ConnectInd() argument
100 p_mcb->pending_lcid = lcid; in RFCOMM_ConnectInd()
110 p_mcb->lcid, p_mcb->pending_lcid); in RFCOMM_ConnectInd()
[all …]
Drfc_mx_fsm.cc133 uint16_t lcid = L2CA_ConnectReq(BT_PSM_RFCOMM, p_mcb->bd_addr); in rfc_mx_sm_state_idle() local
134 if (lcid == 0) { in rfc_mx_sm_state_idle()
136 rfc_save_lcid_mcb(nullptr, p_mcb->lcid); in rfc_mx_sm_state_idle()
137 p_mcb->lcid = 0; in rfc_mx_sm_state_idle()
141 p_mcb->lcid = lcid; in rfc_mx_sm_state_idle()
143 rfc_save_lcid_mcb(p_mcb, p_mcb->lcid); in rfc_mx_sm_state_idle()
220 if (!L2CA_DisconnectReq(p_mcb->lcid)) { in rfc_mx_sm_state_wait_conn_cnf()
222 p_mcb->bd_addr, p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
235 rfc_save_lcid_mcb(NULL, p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf()
236 p_mcb->lcid = p_mcb->pending_lcid; in rfc_mx_sm_state_wait_conn_cnf()
[all …]
Drfc_port_fsm.cc232 l2cu_find_ccb_by_cid(nullptr, p_port->rfc.p_mcb->lcid); in rfc_port_sm_sabme_wait_ua()
235 p_ccb->p_lcb->Handle(), p_port->rfc.p_mcb->lcid, p_port->dlci); in rfc_port_sm_sabme_wait_ua()
239 uint16_t lcid; in rfc_port_sm_sabme_wait_ua() local
242 lcid = p_port->rfc.p_mcb->lcid; in rfc_port_sm_sabme_wait_ua()
243 ccb = l2cu_find_ccb_by_cid(nullptr, lcid); in rfc_port_sm_sabme_wait_ua()
247 ccb->p_lcb->Handle(), lcid, p_port->dlci, p_port->uuid, in rfc_port_sm_sabme_wait_ua()
367 l2cu_find_ccb_by_cid(nullptr, p_port->rfc.p_mcb->lcid); in rfc_port_sm_term_wait_sec_check()
370 p_ccb->p_lcb->Handle(), p_port->rfc.p_mcb->lcid, p_port->dlci); in rfc_port_sm_term_wait_sec_check()
374 uint16_t lcid; in rfc_port_sm_term_wait_sec_check() local
377 lcid = p_port->rfc.p_mcb->lcid; in rfc_port_sm_term_wait_sec_check()
[all …]
Drfc_utils.cc197 rfc_save_lcid_mcb(NULL, p_mcb->lcid); in rfc_release_multiplexer_channel()
419 fmt::ptr(p_mcb), p_mcb->lcid, in rfc_check_send_cmd()
420 fmt::ptr(rfc_find_lcid_mcb(p_mcb->lcid))); in rfc_check_send_cmd()
429 if (L2CA_DataWrite(p_mcb->lcid, p) != L2CAP_DW_SUCCESS) { in rfc_check_send_cmd()
431 p_mcb->bd_addr, p_mcb->lcid, p->len); in rfc_check_send_cmd()
Dport_rfc.cc89 p_port->bd_addr, p_mcb->state, p_mcb->lcid); in port_open_continue()
99 p_port->bd_addr, p_mcb->state, p_mcb->lcid); in port_open_continue()
106 p_port->bd_addr, p_mcb->state, p_mcb->lcid); in port_open_continue()
990 uint16_t lcid; in port_rfc_closed() local
993 lcid = p_mcb->lcid; in port_rfc_closed()
994 ccb = l2cu_find_ccb_by_cid(nullptr, lcid); in port_rfc_closed()
998 ccb->p_lcb->Handle(), lcid, p_port->dlci, p_port->uuid); in port_rfc_closed()
/packages/modules/Bluetooth/system/stack/avct/
Davct_l2c.cc42 void avct_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid,
44 void avct_l2c_connect_cfm_cback(uint16_t lcid, uint16_t result);
45 void avct_l2c_config_cfm_cback(uint16_t lcid, uint16_t result,
47 void avct_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg);
48 void avct_l2c_disconnect_ind_cback(uint16_t lcid, bool ack_needed);
49 void avct_l2c_congestion_ind_cback(uint16_t lcid, bool is_congested);
50 void avct_l2c_data_ind_cback(uint16_t lcid, BT_HDR* p_buf);
51 static void avct_on_l2cap_error(uint16_t lcid, uint16_t result);
108 void avct_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, in avct_l2c_connect_ind_cback() argument
139 lcid, result, p_lcb->ch_state); in avct_l2c_connect_ind_cback()
[all …]
Davct_l2c_br.cc44 void avct_l2c_br_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid,
46 void avct_l2c_br_connect_cfm_cback(uint16_t lcid, uint16_t result);
47 void avct_l2c_br_config_cfm_cback(uint16_t lcid, uint16_t result,
49 void avct_l2c_br_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg);
50 void avct_l2c_br_disconnect_ind_cback(uint16_t lcid, bool ack_needed);
51 void avct_l2c_br_congestion_ind_cback(uint16_t lcid, bool is_congested);
52 void avct_l2c_br_data_ind_cback(uint16_t lcid, BT_HDR* p_buf);
53 void avct_br_on_l2cap_error(uint16_t lcid, uint16_t result);
111 void avct_l2c_br_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, in avct_l2c_br_connect_ind_cback() argument
150 log::verbose("Connection rejected to lcid:0x{:x}", lcid); in avct_l2c_br_connect_ind_cback()
[all …]
Davct_int.h149 tAVCT_BCB* avct_bcb_by_lcid(uint16_t lcid);
153 tAVCT_LCB* avct_lcb_by_lcid(uint16_t lcid);
219 void avct_l2c_disconnect(uint16_t lcid, uint16_t result);
220 void avct_l2c_br_disconnect(uint16_t lcid, uint16_t result);
Davct_lcb.cc338 tAVCT_LCB* avct_lcb_by_lcid(uint16_t lcid) { in avct_lcb_by_lcid() argument
344 ((p_lcb->ch_lcid == lcid) || (p_lcb->conflict_lcid == lcid))) { in avct_lcb_by_lcid()
352 log::warn("No lcb for lcid {:x}", lcid); in avct_lcb_by_lcid()
/packages/modules/Bluetooth/system/stack/test/rfcomm/
Dstack_rfcomm_test.cc150 uint16_t lcid) { in ConnectServerL2cap() argument
155 ConnectResponse(peer_addr, cmd_id, lcid, L2CAP_CONN_OK, 0)); in ConnectServerL2cap()
158 ConfigRequest(lcid, PointerMemoryEqual(&cfg_req))) in ConnectServerL2cap()
160 l2cap_appl_info_.pL2CA_ConnectInd_Cb(peer_addr, lcid, BT_PSM_RFCOMM, in ConnectServerL2cap()
166 l2cap_appl_info_.pL2CA_ConfigCfm_Cb(lcid, L2CAP_CFG_OK, {}); in ConnectServerL2cap()
171 ConfigResponse(lcid, PointerMemoryEqual(&cfg_req))) in ConnectServerL2cap()
173 l2cap_appl_info_.pL2CA_ConfigInd_Cb(lcid, &cfg_req); in ConnectServerL2cap()
178 CreateQuickSabmPacket(RFCOMM_MX_DLCI, lcid, acl_handle)); in ConnectServerL2cap()
180 CreateQuickUaPacket(RFCOMM_MX_DLCI, lcid, acl_handle)); in ConnectServerL2cap()
181 EXPECT_CALL(l2cap_interface_, DataWrite(lcid, BtHdrEqual(ua_channel_0))) in ConnectServerL2cap()
[all …]
/packages/modules/Bluetooth/system/stack/eatt/
Deatt_impl.h77 eatt_device* find_device_by_cid(uint16_t lcid) { in find_device_by_cid()
81 [&lcid](const eatt_device& ed) { in find_device_by_cid()
82 auto it = ed.eatt_channels.find(lcid); in find_device_by_cid()
89 EattChannel* find_channel_by_cid(uint16_t lcid) { in find_channel_by_cid()
90 eatt_device* eatt_dev = find_device_by_cid(lcid); in find_channel_by_cid()
93 auto it = eatt_dev->eatt_channels.find(lcid); in find_channel_by_cid()
106 EattChannel* find_channel_by_cid(const RawAddress& bdaddr, uint16_t lcid) { in find_channel_by_cid()
110 auto it = eatt_dev->eatt_channels.find(lcid); in find_channel_by_cid()
114 void remove_channel_by_cid(eatt_device* eatt_dev, uint16_t lcid) { in remove_channel_by_cid()
115 auto channel = eatt_dev->eatt_channels[lcid]; in remove_channel_by_cid()
[all …]
Deatt.cc82 static void eatt_connect_cfm(const RawAddress& bda, uint16_t lcid, in eatt_connect_cfm()
86 p_eatt_impl->eatt_l2cap_connect_cfm(bda, lcid, peer_mtu, result); in eatt_connect_cfm()
89 static void eatt_reconfig_completed(const RawAddress& bda, uint16_t lcid, in eatt_reconfig_completed()
94 p_eatt_impl->eatt_l2cap_reconfig_completed(bda, lcid, is_local_cfg, in eatt_reconfig_completed()
103 static void eatt_error_cb(uint16_t lcid, uint16_t reason) { in eatt_error_cb()
105 if (p_eatt_impl) p_eatt_impl->eatt_l2cap_error_cb(lcid, reason); in eatt_error_cb()
108 static void eatt_disconnect_ind(uint16_t lcid, bool please_confirm) { in eatt_disconnect_ind()
111 p_eatt_impl->eatt_l2cap_disconnect_ind(lcid, please_confirm); in eatt_disconnect_ind()
114 static void eatt_data_ind(uint16_t lcid, BT_HDR* data_p) { in eatt_data_ind()
116 if (p_eatt_impl) p_eatt_impl->eatt_l2cap_data_ind(lcid, data_p); in eatt_data_ind()
/packages/modules/Bluetooth/system/stack/fuzzers/
Dsdp_fuzzer.cc45 .pL2CA_ConnectInd_Cb = [](const RawAddress& bd_addr, uint16_t lcid,
48 .pL2CA_ConnectCfm_Cb = [](uint16_t lcid,
50 .pL2CA_ConfigInd_Cb = [](uint16_t lcid,
52 .pL2CA_ConfigCfm_Cb = [](uint16_t lcid, uint16_t initiator,
55 [](uint16_t lcid, bool should_ack) {}, // tL2CA_DISCONNECT_IND_CB in __anon580d385b0602()
57 [](uint16_t lcid, uint16_t result) {}, // tL2CA_DISCONNECT_CFM_CB in __anon580d385b0702()
58 .pL2CA_DataInd_Cb = [](uint16_t lcid,
61 [](uint16_t lcid, bool is_congested) {}, // tL2CA_CONGESTION_STATUS_CB in __anon580d385b0902()
62 .pL2CA_TxComplete_Cb = [](uint16_t lcid,
64 .pL2CA_Error_Cb = [](uint16_t lcid,
[all …]
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_main.cc73 static void gatt_l2cif_config_cfm_cback(uint16_t lcid, uint16_t result,
81 static void gatt_on_l2cap_error(uint16_t lcid, uint16_t result);
774 uint16_t lcid, uint16_t /* psm */, in gatt_l2cif_connect_ind_cback() argument
777 log::info("Connection indication cid = {}", lcid); in gatt_l2cif_connect_ind_cback()
788 p_tcb->att_lcid = lcid; in gatt_l2cif_connect_ind_cback()
797 if (!L2CA_DisconnectReq(lcid)) { in gatt_l2cif_connect_ind_cback()
798 log::warn("Unable to disconnect L2CAP peer:{} cid:{}", bd_addr, lcid); in gatt_l2cif_connect_ind_cback()
807 static void gatt_on_l2cap_error(uint16_t lcid, uint16_t /* result */) { in gatt_on_l2cap_error() argument
808 tGATT_TCB* p_tcb = gatt_find_tcb_by_cid(lcid); in gatt_on_l2cap_error()
814 gatt_l2cif_disconnect(lcid); in gatt_on_l2cap_error()
[all …]
Datt_protocol.cc375 tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB& tcb, uint16_t lcid, in attp_send_msg_to_l2cap() argument
379 if (lcid == L2CAP_ATT_CID) { in attp_send_msg_to_l2cap()
381 l2cap_ret = L2CA_SendFixedChnlData(lcid, tcb.peer_bda, p_toL2CAP); in attp_send_msg_to_l2cap()
383 log::debug("Sending ATT message on lcid:{}", lcid); in attp_send_msg_to_l2cap()
384 l2cap_ret = (uint16_t)L2CA_DataWrite(lcid, p_toL2CAP); in attp_send_msg_to_l2cap()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_main.cc332 uint16_t lcid, rcid; in process_l2cap_cmd() local
338 STREAM_TO_UINT16(lcid, p); in process_l2cap_cmd()
342 lcid, rcid); in process_l2cap_cmd()
345 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
416 uint16_t lcid; in process_l2cap_cmd() local
422 STREAM_TO_UINT16(lcid, p); in process_l2cap_cmd()
426 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
428 log::warn("no CCB for conn rsp, LCID: {} RCID: {}", lcid, in process_l2cap_cmd()
462 uint16_t lcid; in process_l2cap_cmd() local
467 STREAM_TO_UINT16(lcid, p); in process_l2cap_cmd()
[all …]
Dl2c_api.cc606 bool L2CA_GetPeerLECocConfig(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg) { in L2CA_GetPeerLECocConfig() argument
607 log::verbose("CID: 0x{:04x}", lcid); in L2CA_GetPeerLECocConfig()
609 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(NULL, lcid); in L2CA_GetPeerLECocConfig()
611 log::error("No CCB for CID:0x{:04x}", lcid); in L2CA_GetPeerLECocConfig()
631 uint16_t L2CA_GetPeerLECocCredit(const RawAddress& bd_addr, uint16_t lcid) { in L2CA_GetPeerLECocCredit() argument
640 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in L2CA_GetPeerLECocCredit()
642 log::error("No CCB for CID:0x{:04x}", lcid); in L2CA_GetPeerLECocCredit()
946 bool L2CA_GetRemoteChannelId(uint16_t lcid, uint16_t* rcid) { in L2CA_GetRemoteChannelId() argument
949 log::verbose("LCID: 0x{:04x}", lcid); in L2CA_GetRemoteChannelId()
950 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(nullptr, lcid); in L2CA_GetRemoteChannelId()
[all …]
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_l2cap_api.h185 std::function<bool(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg)> body{
189 bool operator()(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg) { in operator()
190 return body(lcid, peer_cfg); in operator()
263 std::function<bool(uint16_t lcid, uint16_t* rcid)> body{
265 bool operator()(uint16_t lcid, uint16_t* rcid) { return body(lcid, rcid); }; in operator()
460 std::function<uint16_t(uint16_t lcid, uint16_t num_to_flush)> body{
462 uint16_t operator()(uint16_t lcid, uint16_t num_to_flush) { in operator()
463 return body(lcid, num_to_flush); in operator()
Dmock_stack_l2cap_api.cc143 bool L2CA_GetPeerLECocConfig(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg) { in L2CA_GetPeerLECocConfig() argument
145 return test::mock::stack_l2cap_api::L2CA_GetPeerLECocConfig(lcid, peer_cfg); in L2CA_GetPeerLECocConfig()
176 bool L2CA_GetRemoteChannelId(uint16_t lcid, uint16_t* rcid) { in L2CA_GetRemoteChannelId() argument
178 return test::mock::stack_l2cap_api::L2CA_GetRemoteChannelId(lcid, rcid); in L2CA_GetRemoteChannelId()
250 uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush) { in L2CA_FlushChannel() argument
252 return test::mock::stack_l2cap_api::L2CA_FlushChannel(lcid, num_to_flush); in L2CA_FlushChannel()
/packages/modules/Bluetooth/system/stack/include/
Dl2c_api.h311 uint16_t lcid,
322 const RawAddress& bdaddr, uint16_t lcid, bool is_local_cfg,
501 [[nodiscard]] bool L2CA_GetPeerLECocConfig(uint16_t lcid,
515 uint16_t lcid);
606 [[nodiscard]] bool L2CA_GetRemoteChannelId(uint16_t lcid, uint16_t* rcid);
645 [[nodiscard]] uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush);
/packages/modules/Bluetooth/system/stack/test/common/
Dstack_test_packet_utils.cc31 std::vector<uint8_t> CreateL2capDataPacket(uint16_t lcid, in CreateL2capDataPacket() argument
38 result.push_back(static_cast<uint8_t>(lcid)); in CreateL2capDataPacket()
39 result.push_back(static_cast<uint8_t>(lcid >> 8)); in CreateL2capDataPacket()
Dmock_l2cap_layer.cc49 bool L2CA_ConnectRsp(const RawAddress& bd_addr, uint8_t id, uint16_t lcid, in L2CA_ConnectRsp() argument
51 return l2cap_interface->ConnectResponse(bd_addr, id, lcid, result, status); in L2CA_ConnectRsp()

123