/system/bt/stack/rfcomm/ |
D | rfc_l2cap_if.cc | 44 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, tL2CAP_CFG_INFO* p_cfg); 49 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); 90 void RFCOMM_ConnectInd(const RawAddress& bd_addr, uint16_t lcid, in RFCOMM_ConnectInd() argument 97 p_mcb->pending_lcid = lcid; in RFCOMM_ConnectInd() 108 p_mcb->lcid, p_mcb->pending_lcid); in RFCOMM_ConnectInd() [all …]
|
D | rfc_mx_fsm.cc | 124 uint16_t lcid = L2CA_ConnectReq(BT_PSM_RFCOMM, p_mcb->bd_addr); in rfc_mx_sm_state_idle() local 125 if (lcid == 0) { in rfc_mx_sm_state_idle() 128 rfc_save_lcid_mcb(nullptr, p_mcb->lcid); in rfc_mx_sm_state_idle() 129 p_mcb->lcid = 0; in rfc_mx_sm_state_idle() 133 p_mcb->lcid = lcid; in rfc_mx_sm_state_idle() 135 rfc_save_lcid_mcb(p_mcb, p_mcb->lcid); in rfc_mx_sm_state_idle() 151 L2CA_ConnectRsp(p_mcb->bd_addr, *((uint8_t*)p_data), p_mcb->lcid, in rfc_mx_sm_state_idle() 221 L2CA_DisconnectReq(p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf() 233 rfc_save_lcid_mcb(NULL, p_mcb->lcid); in rfc_mx_sm_state_wait_conn_cnf() 234 p_mcb->lcid = p_mcb->pending_lcid; in rfc_mx_sm_state_wait_conn_cnf() [all …]
|
D | rfc_utils.cc | 201 rfc_save_lcid_mcb(NULL, p_mcb->lcid); in rfc_release_multiplexer_channel() 422 __func__, p_mcb, p_mcb->lcid, rfc_find_lcid_mcb(p_mcb->lcid)); in rfc_check_send_cmd() 431 L2CA_DataWrite(p_mcb->lcid, p); in rfc_check_send_cmd()
|
/system/bt/stack/avdt/ |
D | avdt_l2c.cc | 41 void avdt_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, 43 void avdt_l2c_connect_cfm_cback(uint16_t lcid, uint16_t result); 44 void avdt_l2c_config_cfm_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 45 void avdt_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 46 void avdt_l2c_disconnect_ind_cback(uint16_t lcid, bool ack_needed); 47 void avdt_l2c_disconnect_cfm_cback(uint16_t lcid, uint16_t result); 48 void avdt_l2c_congestion_ind_cback(uint16_t lcid, bool is_congested); 49 void avdt_l2c_data_ind_cback(uint16_t lcid, BT_HDR* p_buf); 91 L2CA_ConnectRsp(*bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, in avdt_sec_check_complete_term() 95 avdtp_cb.ad.lcid_tbl[p_tbl->lcid - L2CAP_BASE_APPL_CID] = in avdt_sec_check_complete_term() [all …]
|
D | avdt_ad.cc | 194 AvdtpTransportChannel* avdt_ad_tc_tbl_by_lcid(uint16_t lcid) { in avdt_ad_tc_tbl_by_lcid() argument 197 idx = avdtp_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID]; in avdt_ad_tc_tbl_by_lcid() 362 L2CA_SetTxPriority(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 554 lcid = L2CA_ConnectReq(AVDT_PSM, p_ccb->peer_addr); in avdt_ad_open_req() 555 if (lcid != 0) { in avdt_ad_open_req() 557 avdtp_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID] = in avdt_ad_open_req() 560 (lcid - L2CAP_BASE_APPL_CID), in avdt_ad_open_req() [all …]
|
D | avdt_int.h | 652 lcid(0), in AvdtpTransportChannel() 663 lcid = 0; in Reset() 674 uint16_t lcid; variable 688 AvdtpRoutingEntry() : lcid(0), scb_hdl(0) {} in AvdtpRoutingEntry() 691 lcid = 0; in Reset() 695 uint16_t lcid; // L2CAP LCID of the associated transport channel variable 957 extern AvdtpTransportChannel* avdt_ad_tc_tbl_by_lcid(uint16_t lcid);
|
/system/bt/stack/avct/ |
D | avct_l2c.cc | 40 void avct_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, 42 void avct_l2c_connect_cfm_cback(uint16_t lcid, uint16_t result); 43 void avct_l2c_config_cfm_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 44 void avct_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 45 void avct_l2c_disconnect_ind_cback(uint16_t lcid, bool ack_needed); 46 void avct_l2c_disconnect_cfm_cback(uint16_t lcid, uint16_t result); 47 void avct_l2c_congestion_ind_cback(uint16_t lcid, bool is_congested); 48 void avct_l2c_data_ind_cback(uint16_t lcid, BT_HDR* p_buf); 101 void avct_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, in avct_l2c_connect_ind_cback() argument 133 lcid, result, p_lcb->ch_state); in avct_l2c_connect_ind_cback() [all …]
|
D | avct_l2c_br.cc | 73 void avct_l2c_br_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, 75 void avct_l2c_br_connect_cfm_cback(uint16_t lcid, uint16_t result); 76 void avct_l2c_br_config_cfm_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 77 void avct_l2c_br_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 78 void avct_l2c_br_disconnect_ind_cback(uint16_t lcid, bool ack_needed); 79 void avct_l2c_br_disconnect_cfm_cback(uint16_t lcid, uint16_t result); 80 void avct_l2c_br_congestion_ind_cback(uint16_t lcid, bool is_congested); 81 void avct_l2c_br_data_ind_cback(uint16_t lcid, BT_HDR* p_buf); 119 void avct_l2c_br_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, in avct_l2c_br_connect_ind_cback() argument 160 L2CA_ErtmConnectRsp(bd_addr, id, lcid, result, 0, &ertm_info); in avct_l2c_br_connect_ind_cback() [all …]
|
D | avct_lcb.cc | 327 tAVCT_LCB* avct_lcb_by_lcid(uint16_t lcid) { in avct_lcb_by_lcid() argument 333 ((p_lcb->ch_lcid == lcid) || (p_lcb->conflict_lcid == lcid))) { in avct_lcb_by_lcid() 341 AVCT_TRACE_WARNING("No lcb for lcid %x", lcid); in avct_lcb_by_lcid()
|
D | avct_int.h | 156 extern tAVCT_BCB* avct_bcb_by_lcid(uint16_t lcid); 160 extern tAVCT_LCB* avct_lcb_by_lcid(uint16_t lcid);
|
D | avct_bcb_act.cc | 684 tAVCT_BCB* avct_bcb_by_lcid(uint16_t lcid) { in avct_bcb_by_lcid() argument 689 if (p_bcb->allocated && (p_bcb->ch_lcid == lcid)) { in avct_bcb_by_lcid() 695 AVCT_TRACE_WARNING("No bcb for lcid %x", lcid); in avct_bcb_by_lcid()
|
/system/bt/stack/test/rfcomm/ |
D | stack_rfcomm_test.cc | 147 uint16_t lcid) { in ConnectServerL2cap() argument 152 ConnectResponse(peer_addr, cmd_id, lcid, L2CAP_CONN_OK, 0)); in ConnectServerL2cap() 155 ConfigRequest(lcid, PointerMemoryEqual(&cfg_req))) in ConnectServerL2cap() 157 l2cap_appl_info_.pL2CA_ConnectInd_Cb(peer_addr, lcid, BT_PSM_RFCOMM, in ConnectServerL2cap() 163 l2cap_appl_info_.pL2CA_ConfigCfm_Cb(lcid, &cfg_req); in ConnectServerL2cap() 168 ConfigResponse(lcid, PointerMemoryEqual(&cfg_req))) in ConnectServerL2cap() 170 l2cap_appl_info_.pL2CA_ConfigInd_Cb(lcid, &cfg_req); in ConnectServerL2cap() 175 CreateQuickSabmPacket(RFCOMM_MX_DLCI, lcid, acl_handle)); in ConnectServerL2cap() 177 CreateQuickUaPacket(RFCOMM_MX_DLCI, lcid, acl_handle)); in ConnectServerL2cap() 178 EXPECT_CALL(l2cap_interface_, DataWrite(lcid, BtHdrEqual(ua_channel_0))) in ConnectServerL2cap() [all …]
|
/system/bt/stack/gatt/ |
D | gatt_main.cc | 569 uint16_t lcid, in gatt_l2cif_connect_ind_cback() argument 572 LOG(INFO) << "Connection indication cid = " << +lcid; in gatt_l2cif_connect_ind_cback() 583 p_tcb->att_lcid = lcid; in gatt_l2cif_connect_ind_cback() 591 L2CA_ConnectRsp(bd_addr, id, lcid, result, 0); in gatt_l2cif_connect_ind_cback() 605 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_ind_cback() 609 static void gatt_l2cif_connect_cfm_cback(uint16_t lcid, uint16_t result) { in gatt_l2cif_connect_cfm_cback() argument 614 p_tcb = gatt_find_tcb_by_cid(lcid); in gatt_l2cif_connect_cfm_cback() 632 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_cfm_cback() 643 L2CA_DisconnectReq(lcid); in gatt_l2cif_connect_cfm_cback() 649 void gatt_l2cif_config_cfm_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in gatt_l2cif_config_cfm_cback() argument [all …]
|
/system/bt/main/shim/ |
D | l2c_api.h | 119 bool L2CA_ConnectRsp(const RawAddress& p_bd_addr, uint8_t id, uint16_t lcid, 193 uint16_t lcid, uint16_t result, uint16_t status, 205 bool L2CA_GetPeerLECocConfig(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg); 227 bool L2CA_ErtmConnectRsp(const RawAddress& p_bd_addr, uint8_t id, uint16_t lcid, 295 bool L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid); 381 uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush);
|
D | l2c_api.cc | 114 uint8_t id, uint16_t lcid, in L2CA_ErtmConnectRsp() argument 117 return shim_l2cap.ConnectResponse(p_bd_addr, id, lcid, result, status, in L2CA_ErtmConnectRsp() 122 uint16_t lcid, uint16_t result, in L2CA_ConnectRsp() argument 124 return bluetooth::shim::L2CA_ErtmConnectRsp(p_bd_addr, id, lcid, result, in L2CA_ConnectRsp() 166 uint8_t id, uint16_t lcid, in L2CA_ConnectLECocRsp() argument 172 __func__, p_bd_addr.ToString().c_str(), id, lcid, result, status, p_cfg); in L2CA_ConnectLECocRsp() 176 bool bluetooth::shim::L2CA_GetPeerLECocConfig(uint16_t lcid, in L2CA_GetPeerLECocConfig() argument 178 LOG_INFO("UNIMPLEMENTED %s lcid:%hd peer_cfg:%p", __func__, lcid, peer_cfg); in L2CA_GetPeerLECocConfig() 433 bool bluetooth::shim::L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid) { in L2CA_GetRemoteCid() argument 434 return shim_l2cap.GetRemoteCid(lcid, rcid); in L2CA_GetRemoteCid() [all …]
|
/system/bt/stack/l2cap/ |
D | l2c_main.cc | 336 uint16_t lcid, rcid; in process_l2cap_cmd() local 339 STREAM_TO_UINT16(lcid, p); in process_l2cap_cmd() 342 "L2CAP - rej with CID invalid, LCID: 0x%04x RCID: 0x%04x", lcid, in process_l2cap_cmd() 346 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd() 414 uint16_t lcid; in process_l2cap_cmd() local 417 STREAM_TO_UINT16(lcid, p); in process_l2cap_cmd() 421 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd() 424 lcid, con_info.remote_cid); in process_l2cap_cmd() 457 uint16_t lcid; in process_l2cap_cmd() local 459 STREAM_TO_UINT16(lcid, p); in process_l2cap_cmd() [all …]
|
D | l2c_api.cc | 643 uint16_t lcid, uint16_t result, uint16_t status, in L2CA_ConnectLECocRsp() argument 646 return bluetooth::shim::L2CA_ConnectLECocRsp(p_bd_addr, id, lcid, result, in L2CA_ConnectLECocRsp() 651 << StringPrintf(" CID: 0x%04x Result: %d Status: %d", lcid, result, in L2CA_ConnectLECocRsp() 663 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in L2CA_ConnectLECocRsp() 707 bool L2CA_GetPeerLECocConfig(uint16_t lcid, tL2CAP_LE_CFG_INFO* peer_cfg) { in L2CA_GetPeerLECocConfig() argument 709 return bluetooth::shim::L2CA_GetPeerLECocConfig(lcid, peer_cfg); in L2CA_GetPeerLECocConfig() 712 L2CAP_TRACE_API("%s CID: 0x%04x", __func__, lcid); in L2CA_GetPeerLECocConfig() 714 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(NULL, lcid); in L2CA_GetPeerLECocConfig() 716 L2CAP_TRACE_ERROR("%s No CCB for CID:0x%04x", __func__, lcid); in L2CA_GetPeerLECocConfig() 737 bool L2CA_ConnectRsp(const RawAddress& p_bd_addr, uint8_t id, uint16_t lcid, in L2CA_ConnectRsp() argument [all …]
|
D | l2c_ble.cc | 478 uint16_t lcid = 0, rcid = 0, mtu = 0, mps = 0, initial_credit = 0; in l2cble_process_sig_cmd() local 708 STREAM_TO_UINT16(lcid, p); in l2cble_process_sig_cmd() 709 p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, lcid); in l2cble_process_sig_cmd() 712 __func__, lcid); in l2cble_process_sig_cmd() 726 STREAM_TO_UINT16(lcid, p); in l2cble_process_sig_cmd() 729 p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in l2cble_process_sig_cmd() 736 l2cu_send_peer_disc_rsp(p_lcb, id, lcid, rcid); in l2cble_process_sig_cmd() 747 STREAM_TO_UINT16(lcid, p); in l2cble_process_sig_cmd() 749 p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in l2cble_process_sig_cmd()
|
/system/bt/stack/include/ |
D | l2c_api.h | 403 uint16_t lcid, uint16_t result, uint16_t status); 476 uint16_t lcid, uint16_t result, 488 extern bool L2CA_GetPeerLECocConfig(uint16_t lcid, 504 uint16_t lcid, uint16_t result, uint16_t status, 571 bool L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid); 658 extern uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush);
|
/system/bt/stack/test/common/ |
D | stack_test_packet_utils.cc | 27 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()
|
D | mock_l2cap_layer.cc | 39 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()
|
D | mock_l2cap_layer.h | 34 uint16_t lcid, uint16_t result, 52 bool(const RawAddress& bd_addr, uint8_t id, uint16_t lcid,
|
D | stack_test_packet_utils.h | 31 std::vector<uint8_t> CreateL2capDataPacket(uint16_t lcid,
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_rfc.cc | 102 uint16_t lcid = 0; in bta_hf_client_mgmt_cback() local 103 int status = PORT_CheckConnection(port_handle, &peer_addr, &lcid); in bta_hf_client_mgmt_cback()
|
D | bta_hf_client_act.cc | 173 uint16_t lcid = 0; in bta_hf_client_rfc_acp_open() local 175 int status = PORT_CheckConnection(client_cb->conn_handle, &dev_addr, &lcid); in bta_hf_client_rfc_acp_open()
|