Home
last modified time | relevance | path

Searched refs:local_cid (Results 1 – 23 of 23) sorted by relevance

/system/bt/stack/l2cap/
Dl2c_csm.cc132 uint16_t local_cid = p_ccb->local_cid; in l2c_csm_closed() local
138 p_ccb->local_cid, l2c_csm_get_event_name(event)); in l2c_csm_closed()
146 p_ccb->local_cid, l2c_csm_get_event_name(event)); in l2c_csm_closed()
152 p_ccb->local_cid); in l2c_csm_closed()
154 (*disconnect_ind)(local_cid, false); in l2c_csm_closed()
176 p_ccb->local_cid, p_ci->status); in l2c_csm_closed()
178 (*connect_cfm)(local_cid, p_ci->status); in l2c_csm_closed()
216 (*p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb)(local_cid, in l2c_csm_closed()
230 p_ccb->local_cid, L2CAP_CONN_TIMEOUT); in l2c_csm_closed()
232 (*connect_cfm)(local_cid, L2CAP_CONN_SECURITY_BLOCK); in l2c_csm_closed()
[all …]
Dl2c_fcr.cc231 if ((p_ccb->local_cid >= L2CAP_BASE_APPL_CID) && in l2c_fcr_cleanup()
243 p_ccb->local_cid, dur); in l2c_fcr_cleanup()
476 p_ccb->local_cid, p_buf->len, in prepare_I_frame()
485 p_ccb->local_cid, p_buf->len, in prepare_I_frame()
564 p_ccb->local_cid, ctrl_word, in l2c_fcr_send_S_frame()
574 p_ccb->local_cid, ctrl_word, in l2c_fcr_send_S_frame()
615 p_ccb->local_cid, p_buf->len); in l2c_fcr_proc_pdu()
636 p_ccb->local_cid, p_buf->len, in l2c_fcr_proc_pdu()
645 p_ccb->local_cid, p_buf->len, in l2c_fcr_proc_pdu()
655 p_ccb->local_cid, p_buf->len, in l2c_fcr_proc_pdu()
[all …]
Dl2c_utils.cc447 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_connect_req()
485 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_connect_rsp()
873 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_disc_req()
904 uint16_t local_cid, uint16_t remote_cid) { in l2cu_send_peer_disc_rsp() argument
918 UINT16_TO_STREAM(p, local_cid); in l2cu_send_peer_disc_rsp()
1185 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb); in l2cu_enqueue_ccb()
1190 p_ccb->local_cid, p_ccb->ccb_priority); in l2cu_enqueue_ccb()
1260 L2CAP_TRACE_DEBUG("l2cu_dequeue_ccb CID: 0x%04x", p_ccb->local_cid); in l2cu_dequeue_ccb()
1270 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb, p_q, in l2cu_dequeue_ccb()
1419 p_ccb->local_cid = L2CAP_BASE_APPL_CID + (uint16_t)(p_ccb - l2cb.ccb_pool); in l2cu_allocate_ccb()
[all …]
Dl2c_main.cc403 p_lcb->handle, p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd()
406 p_lcb->handle, p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd()
443 p_lcb->handle, p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd()
446 p_lcb->handle, p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd()
999 p_ccb->local_cid, fixed_queue_length(p_ccb->xmit_hold_q), in l2c_data_write()
Dl2c_int.h286 uint16_t local_cid; /* Local CID */ member
549 uint16_t local_cid; member
609 extern tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid);
626 uint16_t local_cid, uint16_t remote_cid);
Dl2c_api.cc414 psm, p_ccb->local_cid); in L2CA_ErtmConnectReq()
417 return p_ccb->local_cid; in L2CA_ErtmConnectReq()
625 p_ccb->local_cid); in L2CA_ConnectLECocReq()
628 return p_ccb->local_cid; in L2CA_ConnectLECocReq()
1889 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, num_flushed2); in L2CA_FlushChannel()
Dl2c_link.cc815 p_ccb->local_cid, p_ccb->peer_cfg.fcr.mode, p_ccb->ccb_priority, in l2c_link_adjust_chnl_allocation()
980 p_buf->event = p_ccb->local_cid; in l2c_link_check_send_pkts()
/system/bt/hci/include/
Dbtsnoop.h35 void (*whitelist_l2c_channel)(uint16_t conn_handle, uint16_t local_cid,
43 void (*whitelist_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_whitelist)(uint16_t conn_handle, uint16_t local_cid,
Dbt_vendor_lib.h369 uint16_t local_cid; member
/system/bt/gd/l2cap/internal/
Ddynamic_channel_allocator_test.cc70 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()
Dilink.h32 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) = 0;
36 virtual void SendLeCredit(Cid local_cid, uint16_t credit) = 0;
/system/bt/hci/src/
Dbtsnoop.cc115 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 whitelist_l2c_channel(uint16_t conn_handle, uint16_t local_cid, in whitelist_l2c_channel() argument
297 << " cid=" << loghex(local_cid) << ":" << loghex(remote_cid); in whitelist_l2c_channel()
305 filter_list[conn_handle].addL2cCid(local_cid, remote_cid); in whitelist_l2c_channel()
[all …]
/system/bt/gd/l2cap/classic/internal/
Dlink.cc130 void Link::SendConnectionRequest(Psm psm, Cid local_cid) { in SendConnectionRequest() argument
131 signalling_manager_.SendConnectionRequest(psm, local_cid); in SendConnectionRequest()
134 void Link::SendConnectionRequest(Psm psm, Cid local_cid, in SendConnectionRequest() argument
142 dynamic_channel_allocator_.FreeChannel(local_cid); in SendConnectionRequest()
152 dynamic_channel_allocator_.FreeChannel(local_cid); in SendConnectionRequest()
155 …local_cid_to_pending_dynamic_channel_connection_map_[local_cid] = std::move(pending_dynamic_channe… in SendConnectionRequest()
156 signalling_manager_.SendConnectionRequest(psm, local_cid); in SendConnectionRequest()
178 for (auto local_cid : pending_outgoing_configuration_request_list_) { in send_pending_configuration_requests() local
179 signalling_manager_.SendInitialConfigRequest(local_cid); in send_pending_configuration_requests()
184 void Link::OnOutgoingConnectionRequestFail(Cid local_cid, ConnectionResult result) { in OnOutgoingConnectionRequestFail() argument
[all …]
Dsignalling_manager.h67 void SendConnectionRequest(Psm psm, Cid local_cid);
69 void SendInitialConfigRequest(Cid local_cid);
71 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid);
105 …void send_connection_response(SignalId signal_id, Cid remote_cid, Cid local_cid, ConnectionRespons…
115 void on_security_result_for_outgoing(Psm psm, Cid local_cid, bool result);
Dlink.h105 virtual void SendConnectionRequest(Psm psm, Cid local_cid);
106 virtual void SendConnectionRequest(Psm psm, Cid local_cid,
114 …virtual void OnOutgoingConnectionRequestFail(Cid local_cid, DynamicChannelManager::ConnectionResul…
116 virtual void SendInitialConfigRequestOrQueue(Cid local_cid);
120 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override;
148 void SendLeCredit(Cid local_cid, uint16_t credit) override {} in SendLeCredit() argument
Dsignalling_manager.cc91 void ClassicSignallingManager::SendConnectionRequest(Psm psm, Cid local_cid) { in SendConnectionRequest() argument
95 …er_->BindOnceOn(this, &ClassicSignallingManager::on_security_result_for_outgoing, psm, local_cid)); in SendConnectionRequest()
98 void ClassicSignallingManager::on_security_result_for_outgoing(Psm psm, Cid local_cid, bool result)… in on_security_result_for_outgoing() argument
110 link_->OnOutgoingConnectionRequestFail(local_cid, connection_result); in on_security_result_for_outgoing()
114 …d pending_command = {next_signal_id_, CommandCode::CONNECTION_REQUEST, psm, local_cid, {}, {}, {}}; in on_security_result_for_outgoing()
133 void ClassicSignallingManager::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument
135 next_signal_id_, CommandCode::DISCONNECTION_REQUEST, {}, local_cid, remote_cid, {}, {}}; in SendDisconnectionRequest()
374 void ClassicSignallingManager::SendInitialConfigRequest(Cid local_cid) { in SendInitialConfigRequest() argument
375 auto channel = channel_allocator_->FindChannelByCid(local_cid); in SendInitialConfigRequest()
377 auto& configuration_state = channel_configuration_[local_cid]; in SendInitialConfigRequest()
[all …]
/system/bt/gd/l2cap/le/internal/
Dlink.cc162 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument
163 auto channel = dynamic_channel_allocator_.FindChannelByCid(local_cid); in SendDisconnectionRequest()
167 signalling_manager_.SendDisconnectRequest(local_cid, remote_cid); in SendDisconnectionRequest()
170 void Link::OnOutgoingConnectionRequestFail(Cid local_cid, LeCreditBasedConnectionResponseResult res… in OnOutgoingConnectionRequestFail() argument
171 if (local_cid_to_pending_dynamic_channel_connection_map_.find(local_cid) != in OnOutgoingConnectionRequestFail()
180 NotifyChannelFail(local_cid, result); in OnOutgoingConnectionRequestFail()
182 dynamic_channel_allocator_.FreeChannel(local_cid); in OnOutgoingConnectionRequestFail()
257 void Link::SendLeCredit(Cid local_cid, uint16_t credit) { in SendLeCredit() argument
258 signalling_manager_.SendCredit(local_cid, credit); in SendLeCredit()
Dsignalling_manager.h102 void SendConnectionRequest(Psm psm, Cid local_cid, Mtu mtu);
104 void SendDisconnectRequest(Cid local_cid, Cid remote_cid);
112 void SendCredit(Cid local_cid, uint16_t credits);
144 …void send_connection_response(SignalId signal_id, Cid local_cid, Mtu mtu, uint16_t mps, uint16_t i…
149 void on_security_result_for_outgoing(Psm psm, Cid local_cid, Mtu mtu, bool result);
Dlink.h106 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override;
109 …virtual void OnOutgoingConnectionRequestFail(Cid local_cid, LeCreditBasedConnectionResponseResult …
132 void SendLeCredit(Cid local_cid, uint16_t credit) override;
Dsignalling_manager.cc59 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()
452 void LeSignallingManager::send_connection_response(SignalId signal_id, Cid local_cid, Mtu mtu, uint… in send_connection_response() argument
456 …LeCreditBasedConnectionResponseBuilder::Create(signal_id.Value(), local_cid, mtu, mps, initial_cre… in send_connection_response()
/system/bt/gd/shim/
Dl2cap_test.cc63 void SendLeCredit(l2cap::Cid local_cid, uint16_t credit) {} in SendLeCredit() argument
367 l2cap::Cid local_cid = kCid; in TEST_F() local
371 …std::make_shared<l2cap::internal::DynamicChannelImpl>(psm, local_cid, remote_cid, &test_link_, han… in TEST_F()
/system/bt/main/shim/
Dl2c_api.h212 bool L2CA_SetConnectionCallbacks(uint16_t local_cid,
/system/bt/stack/include/
Dl2c_api.h270 typedef void(tL2CA_CREDITS_RECEIVED_CB)(uint16_t local_cid,