/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_csm.cc | 104 (*p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb)(p_ccb->local_cid, L2CAP_CONN_OK); in l2c_csm_indicate_connection_open() 108 p_ccb->p_lcb->remote_bd_addr, p_ccb->local_cid, p_ccb->p_rcb->psm, in l2c_csm_indicate_connection_open() 116 p_ccb->local_cid, p_ccb->connection_initiator, &p_ccb->peer_cfg); in l2c_csm_indicate_connection_open() 119 p_ccb->p_rcb->psm, p_ccb->local_cid, p_ccb->remote_id, in l2c_csm_indicate_connection_open() 207 uint16_t local_cid = p_ccb->local_cid; in l2c_csm_closed() local 212 p_ccb->local_cid, l2c_csm_get_event_name(event)); in l2c_csm_closed() 218 log::debug("LCID: 0x{:04x} st: CLOSED evt: {}", p_ccb->local_cid, in l2c_csm_closed() 224 p_ccb->local_cid); in l2c_csm_closed() 226 (*disconnect_ind)(local_cid, false); in l2c_csm_closed() 247 (*p_ccb->p_rcb->api.pL2CA_Error_Cb)(local_cid, in l2c_csm_closed() [all …]
|
D | l2c_fcr.cc | 355 p_ccb->local_cid, p_buf->len, in prepare_I_frame() 364 p_ccb->local_cid, p_buf->len, in prepare_I_frame() 433 p_ccb->local_cid, ctrl_word, in l2c_fcr_send_S_frame() 443 p_ccb->local_cid, ctrl_word, in l2c_fcr_send_S_frame() 482 p_ccb->local_cid, p_buf->len); in l2c_fcr_proc_pdu() 498 p_ccb->local_cid, p_buf->len, in l2c_fcr_proc_pdu() 507 p_ccb->local_cid, p_buf->len, in l2c_fcr_proc_pdu() 517 p_ccb->local_cid, p_buf->len, in l2c_fcr_proc_pdu() 539 log::warn("Rx L2CAP PDU: CID: 0x{:04x} BAD FCS", p_ccb->local_cid); in l2c_fcr_proc_pdu() 625 p_ccb->local_cid, in l2c_fcr_proc_pdu() [all …]
|
D | l2c_utils.cc | 422 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_connect_req() 459 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_connect_rsp() 548 UINT16_TO_STREAM(p, p_ccb_temp->local_cid); in l2cu_send_credit_based_reconfig_req() 894 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_disc_req() 903 l2c_link_check_send_pkts(p_ccb->p_lcb, p_ccb->local_cid, p_buf2); in l2cu_send_peer_disc_req() 925 uint16_t local_cid, uint16_t remote_cid) { in l2cu_send_peer_disc_rsp() argument 939 UINT16_TO_STREAM(p, local_cid); in l2cu_send_peer_disc_rsp() 1165 log::error("CID: 0x{:04x} ERROR in_use: {} p_lcb: {}", p_ccb->local_cid, in l2cu_enqueue_ccb() 1170 log::verbose("l2cu_enqueue_ccb CID: 0x{:04x} priority: {}", p_ccb->local_cid, in l2cu_enqueue_ccb() 1239 log::verbose("l2cu_dequeue_ccb CID: 0x{:04x}", p_ccb->local_cid); in l2cu_dequeue_ccb() [all …]
|
D | l2c_api.cc | 375 psm, p_ccb->local_cid); in L2CA_ConnectReq() 378 return p_ccb->local_cid; in L2CA_ConnectReq() 587 log::verbose("(psm: 0x{:04x}) returned CID: 0x{:04x}", psm, p_ccb->local_cid); in L2CA_ConnectLECocReq() 590 return p_ccb->local_cid; in L2CA_ConnectLECocReq() 817 allocated_cids.push_back(p_ccb->local_cid); in L2CA_ConnectCreditBasedReq() 827 p_ccb_primary->local_cid); in L2CA_ConnectCreditBasedReq() 1620 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, num_flushed2); in L2CA_FlushChannel() 1698 av_media_channels[set_channel].local_cid = local_media_cid; in L2CA_SetMediaStreamChannel() 1702 av_media_channels[set_channel].local_cid, in L2CA_SetMediaStreamChannel() 1711 av_media_channels[i].local_cid == local_media_cid) { in L2CA_SetMediaStreamChannel() [all …]
|
D | l2c_link.cc | 706 p_ccb->local_cid, p_ccb->peer_cfg.fcr.mode, p_ccb->ccb_priority, in l2c_link_adjust_chnl_allocation() 835 void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid, in l2c_link_check_send_pkts() argument 841 p_buf->event = local_cid; in l2c_link_check_send_pkts() 842 if (local_cid != 0) { in l2c_link_check_send_pkts() 1200 p_ccb->ccb_priority, p_ccb->local_cid, in l2cu_get_next_channel_in_rr() 1260 p_serve_ccb->local_cid); in l2cu_get_next_channel_in_rr() 1320 p_cbi->local_cid = p_ccb->local_cid; in l2cu_get_next_buffer_to_send() 1367 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, 1); in l2cu_get_next_buffer_to_send()
|
D | l2c_int.h | 295 uint16_t local_cid; /* Local CID */ member 669 uint16_t local_cid; /* Remote CID */ member 678 uint16_t local_cid; member 725 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid); 740 uint16_t local_cid, uint16_t remote_cid); 817 void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid,
|
D | l2c_main.cc | 405 p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 408 p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 447 p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 450 p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 943 p_ccb->local_cid, fixed_queue_length(p_ccb->xmit_hold_q), in l2c_data_write()
|
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/ |
D | link.cc | 146 void Link::SendConnectionRequest(Psm psm, Cid local_cid) { in SendConnectionRequest() argument 147 signalling_manager_.SendConnectionRequest(psm, local_cid); in SendConnectionRequest() 150 void Link::SendConnectionRequest(Psm psm, Cid local_cid, in SendConnectionRequest() argument 158 dynamic_channel_allocator_.FreeChannel(local_cid); in SendConnectionRequest() 168 dynamic_channel_allocator_.FreeChannel(local_cid); in SendConnectionRequest() 171 …local_cid_to_pending_dynamic_channel_connection_map_[local_cid] = std::move(pending_dynamic_channe… in SendConnectionRequest() 172 signalling_manager_.SendConnectionRequest(psm, local_cid); in SendConnectionRequest() 176 void Link::SetChannelTxPriority(Cid local_cid, bool high_priority) { in SetChannelTxPriority() argument 177 data_pipeline_manager_.SetChannelTxPriority(local_cid, high_priority); in SetChannelTxPriority() 200 for (auto local_cid : pending_outgoing_configuration_request_list_) { in send_pending_configuration_requests() local [all …]
|
D | signalling_manager.h | 67 void SendConnectionRequest(Psm psm, Cid local_cid); 69 void SendInitialConfigRequest(Cid local_cid); 71 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid); 106 …void on_security_result_for_outgoing(SecurityEnforcementType type, Psm psm, Cid local_cid, bool re… 111 …void send_connection_response(SignalId signal_id, Cid remote_cid, Cid local_cid, ConnectionRespons…
|
D | link.h | 113 virtual void SendConnectionRequest(Psm psm, Cid local_cid); 114 virtual void SendConnectionRequest(Psm psm, Cid local_cid, 116 void SetChannelTxPriority(Cid local_cid, bool high_priority) override; 123 …virtual void OnOutgoingConnectionRequestFail(Cid local_cid, DynamicChannelManager::ConnectionResul… 125 virtual void SendInitialConfigRequestOrQueue(Cid local_cid); 129 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override; 218 void OnPendingPacketChange(Cid local_cid, bool has_packet) override;
|
D | signalling_manager.cc | 93 void ClassicSignallingManager::SendConnectionRequest(Psm psm, Cid local_cid) { in SendConnectionRequest() argument 102 local_cid)); in SendConnectionRequest() 106 SecurityEnforcementType type, Psm psm, Cid local_cid, bool result) { in on_security_result_for_outgoing() argument 118 link_->OnOutgoingConnectionRequestFail(local_cid, connection_result); in on_security_result_for_outgoing() 128 …d pending_command = {next_signal_id_, CommandCode::CONNECTION_REQUEST, psm, local_cid, {}, {}, {}}; in on_security_result_for_outgoing() 147 void ClassicSignallingManager::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument 149 next_signal_id_, CommandCode::DISCONNECTION_REQUEST, {}, local_cid, remote_cid, {}, {}}; in SendDisconnectionRequest() 397 void ClassicSignallingManager::SendInitialConfigRequest(Cid local_cid) { in SendInitialConfigRequest() argument 398 auto channel = channel_allocator_->FindChannelByCid(local_cid); in SendInitialConfigRequest() 400 auto& configuration_state = channel_configuration_[local_cid]; in SendInitialConfigRequest() [all …]
|
/packages/modules/Bluetooth/system/gd/hal/ |
D | snoop_logger.h | 52 void AddL2capCid(uint16_t local_cid, uint16_t remote_cid); 55 void SetRfcommCid(uint16_t local_cid, uint16_t remote_cid); 58 void RemoveL2capCid(uint16_t local_cid, uint16_t remote_cid); 191 uint16_t local_cid; member 230 void AcceptlistL2capChannel(uint16_t conn_handle, uint16_t local_cid, uint16_t remote_cid); 237 void AcceptlistRfcommDlci(uint16_t conn_handle, uint16_t local_cid, uint8_t dlci); 242 void AddRfcommL2capChannel(uint16_t conn_handle, uint16_t local_cid, uint16_t remote_cid); 245 void ClearL2capAcceptlist(uint16_t conn_handle, uint16_t local_cid, uint16_t remote_cid); 248 void AddA2dpMediaChannel(uint16_t conn_handle, uint16_t local_cid, uint16_t remote_cid); 251 void RemoveA2dpMediaChannel(uint16_t conn_handle, uint16_t local_cid); [all …]
|
D | snoop_logger.cc | 47 void FilterTracker::AddL2capCid(uint16_t local_cid, uint16_t remote_cid) { in AddL2capCid() argument 48 l2c_local_cid.insert(local_cid); in AddL2capCid() 53 void FilterTracker::SetRfcommCid(uint16_t local_cid, uint16_t remote_cid) { in SetRfcommCid() argument 54 rfcomm_local_cid = local_cid; in SetRfcommCid() 59 void FilterTracker::RemoveL2capCid(uint16_t local_cid, uint16_t remote_cid) { in RemoveL2capCid() argument 60 if (rfcomm_local_cid == local_cid) { in RemoveL2capCid() 67 l2c_local_cid.erase(local_cid); in RemoveL2capCid() 876 uint16_t conn_handle, uint16_t local_cid, uint16_t remote_cid) { in AcceptlistL2capChannel() argument 885 local_cid, in AcceptlistL2capChannel() 891 filter_tracker_list[conn_handle].AddL2capCid(local_cid, remote_cid); in AcceptlistL2capChannel() [all …]
|
D | snoop_logger_test.cc | 629 uint16_t local_cid = 0x40; in TEST_F() local 633 filter_list[handle].AddL2capCid(local_cid, remote_cid); in TEST_F() 634 ASSERT_TRUE(filter_list[handle].IsAcceptlistedL2cap(true, local_cid)); in TEST_F() 637 filter_list[handle].RemoveL2capCid(local_cid, remote_cid); in TEST_F() 638 ASSERT_FALSE(filter_list[handle].IsAcceptlistedL2cap(true, local_cid)); in TEST_F() 644 filter_list[handle].SetRfcommCid(local_cid, remote_cid); in TEST_F() 645 ASSERT_TRUE(filter_list[handle].IsRfcommChannel(true, local_cid)); in TEST_F() 648 filter_list[handle].RemoveL2capCid(local_cid, remote_cid); in TEST_F() 649 ASSERT_FALSE(filter_list[handle].IsAcceptlistedL2cap(true, local_cid)); in TEST_F() 657 uint16_t local_cid = 0x0001; in TEST_F() local [all …]
|
/packages/modules/Bluetooth/system/gd/l2cap/internal/ |
D | dynamic_channel_allocator_test.cc | 70 Cid local_cid = channel->GetCid(); in TEST_F() local 72 EXPECT_EQ(channel, channel_allocator_->FindChannelByCid(local_cid)); in TEST_F() 73 ASSERT_NO_FATAL_FAILURE(channel_allocator_->FreeChannel(local_cid)); in TEST_F() 82 Cid local_cid = channel->GetCid(); in TEST_F() local 83 EXPECT_EQ(local_cid, reserved); in TEST_F() 85 EXPECT_EQ(channel, channel_allocator_->FindChannelByCid(local_cid)); in TEST_F() 86 ASSERT_NO_FATAL_FAILURE(channel_allocator_->FreeChannel(local_cid)); in TEST_F()
|
D | ilink.h | 32 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) = 0;
|
/packages/modules/Bluetooth/system/hci/include/ |
D | btsnoop.h | 36 void (*allowlist_l2c_channel)(uint16_t conn_handle, uint16_t local_cid, 44 void (*allowlist_rfc_dlci)(uint16_t local_cid, uint8_t dlci); 49 void (*add_rfc_l2c_channel)(uint16_t conn_handle, uint16_t local_cid, 53 void (*clear_l2cap_allowlist)(uint16_t conn_handle, uint16_t local_cid,
|
D | bt_vendor_lib.h | 369 uint16_t local_cid; member
|
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/ |
D | signalling_manager.h | 106 void SendConnectionRequest(Psm psm, Cid local_cid, Mtu mtu); 108 void SendDisconnectRequest(Cid local_cid, Cid remote_cid); 116 void SendCredit(Cid local_cid, uint16_t credits); 118 void SendEnhancedConnectionRequest(Psm psm, std::vector<Cid> local_cid, Mtu mtu); 120 void SendEnhancedReconfigureRequest(std::vector<Cid> local_cid, Mtu mtu); 156 …void send_connection_response(SignalId signal_id, Cid local_cid, Mtu mtu, uint16_t mps, uint16_t i… 161 void on_security_result_for_outgoing(Psm psm, Cid local_cid, Mtu mtu, bool result);
|
D | link.cc | 225 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument 226 auto channel = dynamic_channel_allocator_.FindChannelByCid(local_cid); in SendDisconnectionRequest() 230 signalling_manager_.SendDisconnectRequest(local_cid, remote_cid); in SendDisconnectionRequest() 233 void Link::OnOutgoingConnectionRequestFail(Cid local_cid, LeCreditBasedConnectionResponseResult res… in OnOutgoingConnectionRequestFail() argument 234 if (local_cid_to_pending_dynamic_channel_connection_map_.find(local_cid) != in OnOutgoingConnectionRequestFail() 243 NotifyChannelFail(local_cid, result); in OnOutgoingConnectionRequestFail() 245 dynamic_channel_allocator_.FreeChannel(local_cid); in OnOutgoingConnectionRequestFail() 326 void Link::SendLeCredit(Cid local_cid, uint16_t credit) { in SendLeCredit() argument 327 signalling_manager_.SendCredit(local_cid, credit); in SendLeCredit()
|
D | signalling_manager.cc | 61 void LeSignallingManager::SendConnectionRequest(Psm psm, Cid local_cid, Mtu mtu) { in SendConnectionRequest() argument 65 …er_->BindOnceOn(this, &LeSignallingManager::on_security_result_for_outgoing, psm, local_cid, mtu)); in SendConnectionRequest() 68 void LeSignallingManager::on_security_result_for_outgoing(Psm psm, Cid local_cid, Mtu mtu, bool res… in on_security_result_for_outgoing() argument 75 next_signal_id_, psm, local_cid, mtu, link_->GetMps(), link_->GetInitialCredit()); in on_security_result_for_outgoing() 109 void LeSignallingManager::SendCredit(Cid local_cid, uint16_t credits) { in SendCredit() argument 110 auto builder = LeFlowControlCreditBuilder::Create(next_signal_id_.Value(), local_cid, credits); in SendCredit() 498 void LeSignallingManager::send_connection_response(SignalId signal_id, Cid local_cid, Mtu mtu, uint… in send_connection_response() argument 502 …LeCreditBasedConnectionResponseBuilder::Create(signal_id.Value(), local_cid, mtu, mps, initial_cre… in send_connection_response()
|
D | link.h | 132 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override; 135 …virtual void OnOutgoingConnectionRequestFail(Cid local_cid, LeCreditBasedConnectionResponseResult … 166 void SendLeCredit(Cid local_cid, uint16_t credit) override; 174 void OnPendingPacketChange(Cid local_cid, bool has_packet) override;
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_sock_l2cap.cc | 80 uint16_t local_cid; // The local CID member 516 accept_rs->local_cid = p_open->local_cid; in on_srv_l2cap_psm_connect_l() 558 sock->local_cid = p_open->local_cid; in on_cl_l2cap_psm_connect_l() 1048 *cid = sock->local_cid; in btsock_l2cap_get_l2cap_local_cid()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | gap_api.h | 77 uint16_t local_cid; member
|
/packages/modules/Bluetooth/system/stack/test/common/ |
D | mock_l2cap_layer.cc | 33 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid) { in l2cu_find_ccb_by_cid() argument
|