/system/bt/stack/l2cap/ |
D | l2c_csm.cc | 91 (*p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb)(p_ccb->local_cid, L2CAP_CONN_OK); in l2c_csm_indicate_connection_open() 94 p_ccb->p_lcb->remote_bd_addr, p_ccb->local_cid, p_ccb->p_rcb->psm, in l2c_csm_indicate_connection_open() 99 p_ccb->local_cid, p_ccb->connection_initiator, &p_ccb->peer_cfg); in l2c_csm_indicate_connection_open() 178 uint16_t local_cid = p_ccb->local_cid; in l2c_csm_closed() local 183 p_ccb->local_cid, l2c_csm_get_event_name(event)); in l2c_csm_closed() 189 LOG_DEBUG("LCID: 0x%04x st: CLOSED evt: %s", p_ccb->local_cid, in l2c_csm_closed() 195 p_ccb->local_cid); in l2c_csm_closed() 197 (*disconnect_ind)(local_cid, false); in l2c_csm_closed() 218 (*p_ccb->p_rcb->api.pL2CA_Error_Cb)(local_cid, L2CAP_CONN_OTHER_ERROR); in l2c_csm_closed() 251 (*p_ccb->p_rcb->api.pL2CA_Error_Cb)(local_cid, in l2c_csm_closed() [all …]
|
D | l2c_fcr.cc | 356 p_ccb->local_cid, p_buf->len, in prepare_I_frame() 365 p_ccb->local_cid, p_buf->len, in prepare_I_frame() 434 p_ccb->local_cid, ctrl_word, in l2c_fcr_send_S_frame() 444 p_ccb->local_cid, ctrl_word, in l2c_fcr_send_S_frame() 483 p_ccb->local_cid, p_buf->len); in l2c_fcr_proc_pdu() 499 p_ccb->local_cid, p_buf->len, in l2c_fcr_proc_pdu() 508 p_ccb->local_cid, p_buf->len, in l2c_fcr_proc_pdu() 518 p_ccb->local_cid, p_buf->len, in l2c_fcr_proc_pdu() 540 L2CAP_TRACE_WARNING("Rx L2CAP PDU: CID: 0x%04x BAD FCS", p_ccb->local_cid); in l2c_fcr_proc_pdu() 626 p_ccb->local_cid, in l2c_fcr_proc_pdu() [all …]
|
D | l2c_utils.cc | 421 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_connect_req() 458 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_connect_rsp() 547 UINT16_TO_STREAM(p, p_ccb_temp->local_cid); in l2cu_send_credit_based_reconfig_req() 897 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_disc_req() 906 l2c_link_check_send_pkts(p_ccb->p_lcb, p_ccb->local_cid, p_buf2); in l2cu_send_peer_disc_req() 928 uint16_t local_cid, uint16_t remote_cid) { in l2cu_send_peer_disc_rsp() argument 942 UINT16_TO_STREAM(p, local_cid); in l2cu_send_peer_disc_rsp() 1168 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb); in l2cu_enqueue_ccb() 1173 p_ccb->local_cid, p_ccb->ccb_priority); in l2cu_enqueue_ccb() 1241 L2CAP_TRACE_DEBUG("l2cu_dequeue_ccb CID: 0x%04x", p_ccb->local_cid); in l2cu_dequeue_ccb() [all …]
|
D | l2c_int.h | 302 uint16_t local_cid; /* Local CID */ member 689 extern tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid); 705 uint16_t local_cid, uint16_t remote_cid); 781 extern void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid,
|
D | l2c_api.cc | 359 psm, p_ccb->local_cid); in L2CA_ConnectReq() 362 return p_ccb->local_cid; in L2CA_ConnectReq() 579 p_ccb->local_cid); in L2CA_ConnectLECocReq() 582 return p_ccb->local_cid; in L2CA_ConnectLECocReq() 780 allocated_cids.push_back(p_ccb->local_cid); in L2CA_ConnectCreditBasedReq() 790 p_ccb_primary->local_cid); in L2CA_ConnectCreditBasedReq() 1611 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, num_flushed2); in L2CA_FlushChannel()
|
D | l2c_main.cc | 417 p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 420 p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 459 p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 462 p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 1036 p_ccb->local_cid, fixed_queue_length(p_ccb->xmit_hold_q), in l2c_data_write()
|
D | l2c_link.cc | 736 p_ccb->local_cid, p_ccb->peer_cfg.fcr.mode, p_ccb->ccb_priority, in l2c_link_adjust_chnl_allocation() 870 void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid, in l2c_link_check_send_pkts() argument 876 p_buf->event = local_cid; in l2c_link_check_send_pkts() 877 if (local_cid != 0) { in l2c_link_check_send_pkts() 1407 p_ccb->local_cid, fixed_queue_length(p_ccb->xmit_hold_q)); in l2cu_get_next_channel_in_rr() 1466 p_serve_ccb->local_cid); in l2cu_get_next_channel_in_rr() 1565 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, 1); in l2cu_get_next_buffer_to_send()
|
D | l2c_ble.cc | 598 p_lcb->pending_ecoc_connection_cids[i] = temp_p_ccb->local_cid; in l2cble_process_sig_cmd() 606 p_lcb->pending_lead_cid = p_ccb->local_cid; in l2cble_process_sig_cmd()
|
/system/bt/hci/include/ |
D | btsnoop.h | 35 void (*allowlist_l2c_channel)(uint16_t conn_handle, uint16_t local_cid, 43 void (*allowlist_rfc_dlci)(uint16_t local_cid, uint8_t dlci); 48 void (*add_rfc_l2c_channel)(uint16_t conn_handle, uint16_t local_cid, 52 void (*clear_l2cap_allowlist)(uint16_t conn_handle, uint16_t local_cid,
|
D | bt_vendor_lib.h | 369 uint16_t local_cid; member
|
/system/bt/gd/l2cap/internal/ |
D | ilink.h | 32 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) = 0; 37 virtual void OnPendingPacketChange(Cid local_cid, bool has_packet) {} in OnPendingPacketChange() argument 40 virtual void SendLeCredit(Cid local_cid, uint16_t credit) {} in SendLeCredit() argument 43 virtual void SetChannelTxPriority(Cid local_cid, bool high_priority) {} in SetChannelTxPriority() argument
|
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()
|
/system/bt/hci/src/ |
D | btsnoop.cc | 115 void addL2cCid(uint16_t local_cid, uint16_t remote_cid) { in addL2cCid() argument 116 l2c_local_cid.insert(local_cid); in addL2cCid() 121 void setRfcCid(uint16_t local_cid, uint16_t remote_cid) { in setRfcCid() argument 122 rfc_local_cid = local_cid; in setRfcCid() 127 void removeL2cCid(uint16_t local_cid, uint16_t remote_cid) { in removeL2cCid() argument 128 if (rfc_local_cid == local_cid) { in removeL2cCid() 135 l2c_local_cid.erase(local_cid); in removeL2cCid() 293 static void allowlist_l2c_channel(uint16_t conn_handle, uint16_t local_cid, in allowlist_l2c_channel() argument 297 << " cid=" << loghex(local_cid) << ":" << loghex(remote_cid); in allowlist_l2c_channel() 305 filter_list[conn_handle].addL2cCid(local_cid, remote_cid); in allowlist_l2c_channel() [all …]
|
/system/bt/gd/l2cap/classic/internal/ |
D | link.cc | 144 void Link::SendConnectionRequest(Psm psm, Cid local_cid) { in SendConnectionRequest() argument 145 signalling_manager_.SendConnectionRequest(psm, local_cid); in SendConnectionRequest() 148 void Link::SendConnectionRequest(Psm psm, Cid local_cid, in SendConnectionRequest() argument 156 dynamic_channel_allocator_.FreeChannel(local_cid); in SendConnectionRequest() 166 dynamic_channel_allocator_.FreeChannel(local_cid); in SendConnectionRequest() 169 …local_cid_to_pending_dynamic_channel_connection_map_[local_cid] = std::move(pending_dynamic_channe… in SendConnectionRequest() 170 signalling_manager_.SendConnectionRequest(psm, local_cid); in SendConnectionRequest() 174 void Link::SetChannelTxPriority(Cid local_cid, bool high_priority) { in SetChannelTxPriority() argument 175 data_pipeline_manager_.SetChannelTxPriority(local_cid, high_priority); in SetChannelTxPriority() 196 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 | 107 virtual void SendConnectionRequest(Psm psm, Cid local_cid); 108 virtual void SendConnectionRequest(Psm psm, Cid local_cid, 110 void SetChannelTxPriority(Cid local_cid, bool high_priority) override; 117 …virtual void OnOutgoingConnectionRequestFail(Cid local_cid, DynamicChannelManager::ConnectionResul… 119 virtual void SendInitialConfigRequestOrQueue(Cid local_cid); 123 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override; 151 void SendLeCredit(Cid local_cid, uint16_t credit) override {} in SendLeCredit() argument 204 void OnPendingPacketChange(Cid local_cid, bool has_packet) override;
|
D | signalling_manager.cc | 91 void ClassicSignallingManager::SendConnectionRequest(Psm psm, Cid local_cid) { in SendConnectionRequest() argument 100 local_cid)); in SendConnectionRequest() 104 SecurityEnforcementType type, Psm psm, Cid local_cid, bool result) { in on_security_result_for_outgoing() argument 116 link_->OnOutgoingConnectionRequestFail(local_cid, connection_result); in on_security_result_for_outgoing() 126 …d pending_command = {next_signal_id_, CommandCode::CONNECTION_REQUEST, psm, local_cid, {}, {}, {}}; in on_security_result_for_outgoing() 145 void ClassicSignallingManager::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument 147 next_signal_id_, CommandCode::DISCONNECTION_REQUEST, {}, local_cid, remote_cid, {}, {}}; in SendDisconnectionRequest() 386 void ClassicSignallingManager::SendInitialConfigRequest(Cid local_cid) { in SendInitialConfigRequest() argument 387 auto channel = channel_allocator_->FindChannelByCid(local_cid); in SendInitialConfigRequest() 389 auto& configuration_state = channel_configuration_[local_cid]; in SendInitialConfigRequest() [all …]
|
/system/bt/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 | 183 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument 184 auto channel = dynamic_channel_allocator_.FindChannelByCid(local_cid); in SendDisconnectionRequest() 188 signalling_manager_.SendDisconnectRequest(local_cid, remote_cid); in SendDisconnectionRequest() 191 void Link::OnOutgoingConnectionRequestFail(Cid local_cid, LeCreditBasedConnectionResponseResult res… in OnOutgoingConnectionRequestFail() argument 192 if (local_cid_to_pending_dynamic_channel_connection_map_.find(local_cid) != in OnOutgoingConnectionRequestFail() 201 NotifyChannelFail(local_cid, result); in OnOutgoingConnectionRequestFail() 203 dynamic_channel_allocator_.FreeChannel(local_cid); in OnOutgoingConnectionRequestFail() 278 void Link::SendLeCredit(Cid local_cid, uint16_t credit) { in SendLeCredit() argument 279 signalling_manager_.SendCredit(local_cid, credit); in SendLeCredit() 297 void Link::OnPendingPacketChange(Cid local_cid, bool has_packet) { in OnPendingPacketChange() argument
|
D | link.h | 118 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override; 121 …virtual void OnOutgoingConnectionRequestFail(Cid local_cid, LeCreditBasedConnectionResponseResult … 144 void SendLeCredit(Cid local_cid, uint16_t credit) override; 152 void OnPendingPacketChange(Cid local_cid, bool has_packet) override;
|
D | signalling_manager.cc | 59 void LeSignallingManager::SendConnectionRequest(Psm psm, Cid local_cid, Mtu mtu) { in SendConnectionRequest() argument 63 …er_->BindOnceOn(this, &LeSignallingManager::on_security_result_for_outgoing, psm, local_cid, mtu)); in SendConnectionRequest() 66 void LeSignallingManager::on_security_result_for_outgoing(Psm psm, Cid local_cid, Mtu mtu, bool res… in on_security_result_for_outgoing() argument 73 next_signal_id_, psm, local_cid, mtu, link_->GetMps(), link_->GetInitialCredit()); in on_security_result_for_outgoing() 107 void LeSignallingManager::SendCredit(Cid local_cid, uint16_t credits) { in SendCredit() argument 108 auto builder = LeFlowControlCreditBuilder::Create(next_signal_id_.Value(), local_cid, credits); in SendCredit() 113 void LeSignallingManager::SendEnhancedConnectionRequest(Psm psm, std::vector<Cid> local_cid, Mtu mt… in SendEnhancedConnectionRequest() argument 115 void LeSignallingManager::SendEnhancedReconfigureRequest(std::vector<Cid> local_cid, Mtu mtu) {} in SendEnhancedReconfigureRequest() argument 490 void LeSignallingManager::send_connection_response(SignalId signal_id, Cid local_cid, Mtu mtu, uint… in send_connection_response() argument 494 …LeCreditBasedConnectionResponseBuilder::Create(signal_id.Value(), local_cid, mtu, mps, initial_cre… in send_connection_response()
|
/system/bt/test/mock/ |
D | mock_stack_l2cap_link.cc | 55 void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid, in l2c_link_check_send_pkts() argument
|
D | mock_stack_l2cap_utils.cc | 78 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid) { in l2cu_find_ccb_by_cid() argument 258 uint16_t local_cid, uint16_t remote_cid) { in l2cu_send_peer_disc_rsp() argument
|
/system/bt/stack/test/common/ |
D | mock_stack_l2cap_link.cc | 55 void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid, in l2c_link_check_send_pkts() argument
|
/system/bt/main/shim/ |
D | acl.cc | 906 ccb->local_cid, ccb->remote_cid, common::ToString(ccb->ecoc).c_str(), in DumpsysL2cap()
|