Home
last modified time | relevance | path

Searched refs:remote_cid (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/l2cap/internal/
Ddynamic_channel_allocator.cc33 …:shared_ptr<DynamicChannelImpl> DynamicChannelAllocator::AllocateChannel(Psm psm, Cid remote_cid) { in AllocateChannel() argument
34 if (used_remote_cid_.find(remote_cid) != used_remote_cid_.end()) { in AllocateChannel()
35 log::info("Remote cid 0x{:x} is used", remote_cid); in AllocateChannel()
47 …channels_.try_emplace(cid, std::make_shared<DynamicChannelImpl>(psm, cid, remote_cid, link_, l2cap… in AllocateChannel()
54 used_remote_cid_.insert(remote_cid); in AllocateChannel()
60 … Cid remote_cid) { in AllocateReservedChannel() argument
61 if (used_remote_cid_.find(remote_cid) != used_remote_cid_.end()) { in AllocateReservedChannel()
62 log::info("Remote cid 0x{:x} is used", remote_cid); in AllocateReservedChannel()
66 …reserved_cid, std::make_shared<DynamicChannelImpl>(psm, reserved_cid, remote_cid, link_, l2cap_han… in AllocateReservedChannel()
73 used_remote_cid_.insert(remote_cid); in AllocateReservedChannel()
[all …]
Ddynamic_channel_allocator_test.cc68 Cid remote_cid = kFirstDynamicChannel; in TEST_F() local
69 auto channel = channel_allocator_->AllocateChannel(psm, remote_cid); in TEST_F()
79 Cid remote_cid = kFirstDynamicChannel; in TEST_F() local
81 auto channel = channel_allocator_->AllocateReservedChannel(reserved, psm, remote_cid); in TEST_F()
Dbasic_mode_channel_data_controller.cc27 BasicModeDataController::BasicModeDataController(Cid cid, Cid remote_cid, UpperQueueDownEnd* channe… in BasicModeDataController() argument
29 …: cid_(cid), remote_cid_(remote_cid), enqueue_buffer_(channel_queue_end), handler_(handler), sched… in BasicModeDataController()
Ddynamic_channel_impl.cc35 DynamicChannelImpl::DynamicChannelImpl(Psm psm, Cid cid, Cid remote_cid, l2cap::internal::ILink* li… in DynamicChannelImpl() argument
37 : psm_(psm), cid_(cid), remote_cid_(remote_cid), link_(link), l2cap_handler_(l2cap_handler), in DynamicChannelImpl()
Ddynamic_channel_allocator.h55 std::shared_ptr<DynamicChannelImpl> AllocateChannel(Psm psm, Cid remote_cid);
57 …:shared_ptr<DynamicChannelImpl> AllocateReservedChannel(Cid reserved_cid, Psm psm, Cid remote_cid);
Dle_credit_based_channel_data_controller.cc30 LeCreditBasedDataController::LeCreditBasedDataController(ILink* link, Cid cid, Cid remote_cid, in LeCreditBasedDataController() argument
33 …: cid_(cid), remote_cid_(remote_cid), enqueue_buffer_(channel_queue_end), handler_(handler), sched… in LeCreditBasedDataController()
Dilink.h32 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) = 0;
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/
Dsignalling_manager.h71 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid);
79 void OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid);
81 …void OnConnectionResponse(SignalId signal_id, Cid remote_cid, Cid cid, ConnectionResponseResult re…
84 void OnDisconnectionRequest(SignalId signal_id, Cid cid, Cid remote_cid);
86 void OnDisconnectionResponse(SignalId signal_id, Cid cid, Cid remote_cid);
111 …void send_connection_response(SignalId signal_id, Cid remote_cid, Cid local_cid, ConnectionRespons…
119 …void send_configuration_request(Cid remote_cid, std::vector<std::unique_ptr<ConfigurationOption>> …
120 void on_security_result_for_incoming(Psm psm, Cid remote_cid, SignalId signal_id, bool result);
Dsignalling_manager.cc136 void ClassicSignallingManager::send_configuration_request(Cid remote_cid, in send_configuration_request() argument
138 …nd pending_command = {next_signal_id_, CommandCode::CONFIGURATION_REQUEST, {}, {}, remote_cid, {}, in send_configuration_request()
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()
174 void ClassicSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid) { in OnConnectionRequest() argument
176 log::warn("Invalid psm received from remote psm:{} remote_cid:{}", psm, remote_cid); in OnConnectionRequest()
177 …send_connection_response(signal_id, remote_cid, kInvalidCid, ConnectionResponseResult::PSM_NOT_SUP… in OnConnectionRequest()
182 if (remote_cid == kInvalidCid) { in OnConnectionRequest()
183 log::warn("Invalid remote cid received from remote psm:{} remote_cid:{}", psm, remote_cid); in OnConnectionRequest()
184 …send_connection_response(signal_id, remote_cid, kInvalidCid, ConnectionResponseResult::INVALID_CID, in OnConnectionRequest()
[all …]
Dlink.cc222 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument
223 signalling_manager_.SendDisconnectionRequest(local_cid, remote_cid); in SendDisconnectionRequest()
230 …ed_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChannel(Psm psm, Cid remote_cid) { in AllocateDynamicChannel() argument
231 auto channel = dynamic_channel_allocator_.AllocateChannel(psm, remote_cid); in AllocateDynamicChannel()
240 … Cid remote_cid) { in AllocateReservedDynamicChannel() argument
241 auto channel = dynamic_channel_allocator_.AllocateReservedChannel(reserved_cid, psm, remote_cid); in AllocateReservedDynamicChannel()
Dlink.h129 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override;
131 …d::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid remote_cid);
134 … Cid remote_cid);
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/
Dsignalling_manager.cc182 void LeSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu,… in OnConnectionRequest() argument
184 if (remote_cid == kInvalidCid) { in OnConnectionRequest()
185 log::warn("Invalid remote cid received from remote psm:{} remote_cid:{}", psm, remote_cid); in OnConnectionRequest()
206 .remote_cid = remote_cid, in OnConnectionRequest()
250 auto new_channel = link_->AllocateDynamicChannel(psm, request.remote_cid); in on_security_result_for_incoming()
271 void LeSignallingManager::OnConnectionResponse(SignalId signal_id, Cid remote_cid, Mtu mtu, uint16_… in OnConnectionResponse() argument
290 …llocateReservedDynamicChannel(command_just_sent_.source_cid_, command_just_sent_.psm_, remote_cid); in OnConnectionResponse()
309 void LeSignallingManager::OnDisconnectionRequest(SignalId signal_id, Cid cid, Cid remote_cid) { in OnDisconnectionRequest() argument
315 if (channel->GetRemoteCid() != remote_cid) { in OnDisconnectionRequest()
319 auto builder = LeDisconnectionResponseBuilder::Create(signal_id.Value(), cid, remote_cid); in OnDisconnectionRequest()
[all …]
Dsignalling_manager.h108 void SendDisconnectRequest(Cid local_cid, Cid remote_cid);
134 void OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu, uint16_t mps,
137 …void OnConnectionResponse(SignalId signal_id, Cid remote_cid, Mtu mtu, uint16_t mps, uint16_t init…
140 void OnDisconnectionRequest(SignalId signal_id, Cid cid, Cid remote_cid);
142 void OnDisconnectionResponse(SignalId signal_id, Cid cid, Cid remote_cid);
144 void OnCredit(Cid remote_cid, uint16_t credits);
148 Cid remote_cid; member
Dlink.cc225 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument
227 if (channel == nullptr || channel->GetRemoteCid() != remote_cid) { in SendDisconnectionRequest()
230 signalling_manager_.SendDisconnectRequest(local_cid, remote_cid); in SendDisconnectionRequest()
248 …ed_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChannel(Psm psm, Cid remote_cid) { in AllocateDynamicChannel() argument
249 auto channel = dynamic_channel_allocator_.AllocateChannel(psm, remote_cid); in AllocateDynamicChannel()
260 … Cid remote_cid) { in AllocateReservedDynamicChannel() argument
261 auto channel = dynamic_channel_allocator_.AllocateReservedChannel(reserved_cid, psm, remote_cid); in AllocateReservedDynamicChannel()
Dlink.h132 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override;
137 …d::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid remote_cid);
140 … Cid remote_cid);
/packages/modules/Bluetooth/system/gd/hal/
Dsnoop_logger.h52 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);
192 uint16_t remote_cid; member
230 void AcceptlistL2capChannel(uint16_t conn_handle, uint16_t local_cid, uint16_t remote_cid);
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);
261 uint16_t handle, uint16_t local_cid, uint16_t remote_cid, uint16_t psm, bool flow);
263 void SetL2capChannelClose(uint16_t handle, uint16_t local_cid, uint16_t remote_cid);
Dsnoop_logger_test.cc630 uint16_t remote_cid = 0x41; in TEST_F() local
633 filter_list[handle].AddL2capCid(local_cid, remote_cid); in TEST_F()
635 ASSERT_TRUE(filter_list[handle].IsAcceptlistedL2cap(false, remote_cid)); in TEST_F()
637 filter_list[handle].RemoveL2capCid(local_cid, remote_cid); in TEST_F()
639 ASSERT_FALSE(filter_list[handle].IsAcceptlistedL2cap(false, remote_cid)); in TEST_F()
644 filter_list[handle].SetRfcommCid(local_cid, remote_cid); in TEST_F()
646 ASSERT_TRUE(filter_list[handle].IsRfcommChannel(false, remote_cid)); in TEST_F()
648 filter_list[handle].RemoveL2capCid(local_cid, remote_cid); in TEST_F()
650 ASSERT_FALSE(filter_list[handle].IsAcceptlistedL2cap(false, remote_cid)); in TEST_F()
658 uint16_t remote_cid = 0xa040; in TEST_F() local
[all …]
Dsnoop_logger.cc47 void FilterTracker::AddL2capCid(uint16_t local_cid, uint16_t remote_cid) { in AddL2capCid() argument
49 l2c_remote_cid.insert(remote_cid); in AddL2capCid()
53 void FilterTracker::SetRfcommCid(uint16_t local_cid, uint16_t remote_cid) { in SetRfcommCid() argument
55 rfcomm_remote_cid = remote_cid; in SetRfcommCid()
59 void FilterTracker::RemoveL2capCid(uint16_t local_cid, uint16_t remote_cid) { in RemoveL2capCid() argument
68 l2c_remote_cid.erase(remote_cid); in RemoveL2capCid()
876 uint16_t conn_handle, uint16_t local_cid, uint16_t remote_cid) { in AcceptlistL2capChannel() argument
886 remote_cid); in AcceptlistL2capChannel()
891 filter_tracker_list[conn_handle].AddL2capCid(local_cid, remote_cid); in AcceptlistL2capChannel()
907 uint16_t conn_handle, uint16_t local_cid, uint16_t remote_cid) { in AddRfcommL2capChannel() argument
[all …]
/packages/modules/Bluetooth/system/hci/include/
Dbtsnoop.h37 uint16_t remote_cid);
50 uint16_t remote_cid);
54 uint16_t remote_cid);
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_main.cc346 if ((p_ccb != NULL) && (p_ccb->remote_cid == rcid)) { in process_l2cap_cmd()
400 p_ccb->remote_cid = rcid; in process_l2cap_cmd()
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()
421 STREAM_TO_UINT16(con_info.remote_cid, p); in process_l2cap_cmd()
429 con_info.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()
729 if (p_ccb->remote_cid == rcid) { in process_l2cap_cmd()
750 if ((p_ccb->remote_cid == rcid) && (p_ccb->local_id == id)) { in process_l2cap_cmd()
Dl2c_ble.cc431 temp_p_ccb->remote_cid = rcid; in l2cble_process_sig_cmd()
576 temp_p_ccb->remote_cid = rcid; in l2cble_process_sig_cmd()
579 temp_p_ccb->remote_cid); in l2cble_process_sig_cmd()
584 if (temp_p_ccb->remote_cid == 0) { in l2cble_process_sig_cmd()
772 p_ccb->remote_cid = rcid; in l2cble_process_sig_cmd()
813 STREAM_TO_UINT16(p_ccb->remote_cid, p); in l2cble_process_sig_cmd()
818 con_info.remote_cid = p_ccb->remote_cid; in l2cble_process_sig_cmd()
823 p_ccb->remote_cid, p_ccb->peer_conn_cfg.mtu, in l2cble_process_sig_cmd()
881 if (p_ccb->remote_cid == rcid) { in l2cble_process_sig_cmd()
900 if ((p_ccb->remote_cid == rcid) && (p_ccb->local_id == id)) in l2cble_process_sig_cmd()
Dl2c_csm.cc603 p_ccb->remote_cid); in l2c_csm_term_w4_sec_comp()
672 p_ccb->remote_cid = p_ci->remote_cid; in l2c_csm_w4_l2cap_connect_rsp()
693 p_ccb->remote_cid = p_ci->remote_cid; in l2c_csm_w4_l2cap_connect_rsp()
768 if (p_ccb->remote_cid != 0) { in l2c_csm_w4_l2cap_connect_rsp()
1117 p_ccb->p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid, in l2c_csm_config()
1201 p_ccb->p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid, in l2c_csm_config()
1519 p_ccb->remote_cid); in l2c_csm_w4_l2cap_disconnect_rsp()
1576 p_ccb->remote_cid); in l2c_csm_w4_l2ca_disconnect_rsp()
1586 p_ccb->remote_cid); in l2c_csm_w4_l2ca_disconnect_rsp()
1746 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2c_enqueue_peer_data()
[all …]
Dl2c_utils.cc460 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_connect_rsp()
478 void l2cu_reject_connection(tL2C_LCB* p_lcb, uint16_t remote_cid, in l2cu_reject_connection() argument
494 UINT16_TO_STREAM(p, remote_cid); in l2cu_reject_connection()
599 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_config_req()
693 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_config_rsp()
799 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_config_rej()
893 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_disc_req()
925 uint16_t local_cid, uint16_t remote_cid) { in l2cu_send_peer_disc_rsp() argument
940 UINT16_TO_STREAM(p, remote_cid); in l2cu_send_peer_disc_rsp()
1559 p_ccb->p_lcb->Handle(), p_ccb->local_cid, p_ccb->remote_cid); in l2cu_release_ccb()
[all …]
Dl2c_int.h296 uint16_t remote_cid; /* Remote CID */ member
662 uint16_t remote_cid; /* Remote CID */ member
726 tL2C_CCB* l2cu_find_ccb_by_remote_cid(tL2C_LCB* p_lcb, uint16_t remote_cid);
740 uint16_t local_cid, uint16_t remote_cid);
744 void l2cu_reject_connection(tL2C_LCB* p_lcb, uint16_t remote_cid,
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_l2cap.cc81 uint16_t remote_cid; // The remote CID member
517 accept_rs->remote_cid = p_open->remote_cid; in on_srv_l2cap_psm_connect_l()
559 sock->remote_cid = p_open->remote_cid; in on_cl_l2cap_psm_connect_l()
1062 *cid = sock->remote_cid; in btsock_l2cap_get_l2cap_remote_cid()

12