Home
last modified time | relevance | path

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

12

/system/bt/gd/l2cap/internal/
Ddynamic_channel_allocator.cc30 …:shared_ptr<DynamicChannelImpl> DynamicChannelAllocator::AllocateChannel(Psm psm, Cid remote_cid) { in AllocateChannel() argument
31 if (used_remote_cid_.find(remote_cid) != used_remote_cid_.end()) { in AllocateChannel()
32 LOG_INFO("Remote cid 0x%x is used", remote_cid); in AllocateChannel()
44 …channels_.try_emplace(cid, std::make_shared<DynamicChannelImpl>(psm, cid, remote_cid, link_, l2cap… in AllocateChannel()
48 used_remote_cid_.insert(remote_cid); in AllocateChannel()
54 … Cid remote_cid) { in AllocateReservedChannel() argument
55 if (used_remote_cid_.find(remote_cid) != used_remote_cid_.end()) { in AllocateReservedChannel()
56 LOG_INFO("Remote cid 0x%x is used", remote_cid); in AllocateReservedChannel()
60 …reserved_cid, std::make_shared<DynamicChannelImpl>(psm, reserved_cid, remote_cid, link_, l2cap_han… in AllocateReservedChannel()
64 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.cc25 BasicModeDataController::BasicModeDataController(Cid cid, Cid remote_cid, UpperQueueDownEnd* channe… in BasicModeDataController() argument
27 …: cid_(cid), remote_cid_(remote_cid), enqueue_buffer_(channel_queue_end), handler_(handler), sched… in BasicModeDataController()
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);
Ddynamic_channel_impl.cc32 DynamicChannelImpl::DynamicChannelImpl(Psm psm, Cid cid, Cid remote_cid, l2cap::internal::ILink* li… in DynamicChannelImpl() argument
34 : psm_(psm), cid_(cid), remote_cid_(remote_cid), link_(link), l2cap_handler_(l2cap_handler), in DynamicChannelImpl()
Dilink.h32 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) = 0;
Dle_credit_based_channel_data_controller.cc28 LeCreditBasedDataController::LeCreditBasedDataController(ILink* link, Cid cid, Cid remote_cid, in LeCreditBasedDataController() argument
31 …: cid_(cid), remote_cid_(remote_cid), enqueue_buffer_(channel_queue_end), handler_(handler), sched… in LeCreditBasedDataController()
Dbasic_mode_channel_data_controller.h44 …BasicModeDataController(Cid cid, Cid remote_cid, UpperQueueDownEnd* channel_queue_end, os::Handler…
Ddynamic_channel_impl.h37 …DynamicChannelImpl(Psm psm, Cid cid, Cid remote_cid, l2cap::internal::ILink* link, os::Handler* l2…
/system/bt/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.cc134 void ClassicSignallingManager::send_configuration_request(Cid remote_cid, in send_configuration_request() argument
136 …nd pending_command = {next_signal_id_, CommandCode::CONFIGURATION_REQUEST, {}, {}, remote_cid, {}, in send_configuration_request()
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()
172 void ClassicSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid) { in OnConnectionRequest() argument
174 LOG_WARN("Invalid psm received from remote psm:%d remote_cid:%d", psm, remote_cid); in OnConnectionRequest()
175 …send_connection_response(signal_id, remote_cid, kInvalidCid, ConnectionResponseResult::PSM_NOT_SUP… in OnConnectionRequest()
180 if (remote_cid == kInvalidCid) { in OnConnectionRequest()
181 LOG_WARN("Invalid remote cid received from remote psm:%d remote_cid:%d", psm, remote_cid); in OnConnectionRequest()
182 …send_connection_response(signal_id, remote_cid, kInvalidCid, ConnectionResponseResult::INVALID_CID, in OnConnectionRequest()
[all …]
Dlink.cc218 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument
219 signalling_manager_.SendDisconnectionRequest(local_cid, remote_cid); in SendDisconnectionRequest()
226 …ed_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChannel(Psm psm, Cid remote_cid) { in AllocateDynamicChannel() argument
227 auto channel = dynamic_channel_allocator_.AllocateChannel(psm, remote_cid); in AllocateDynamicChannel()
236 … Cid remote_cid) { in AllocateReservedDynamicChannel() argument
237 auto channel = dynamic_channel_allocator_.AllocateReservedChannel(reserved_cid, psm, remote_cid); in AllocateReservedDynamicChannel()
Dlink.h123 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override;
125 …d::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid remote_cid);
128 … Cid remote_cid);
/system/bt/hci/include/
Dbtsnoop.h36 uint16_t remote_cid);
49 uint16_t remote_cid);
53 uint16_t remote_cid);
Dbt_vendor_lib.h370 uint16_t remote_cid; member
/system/bt/hci/src/
Dbtsnoop.cc115 void addL2cCid(uint16_t local_cid, uint16_t remote_cid) { in addL2cCid() argument
117 l2c_remote_cid.insert(remote_cid); in addL2cCid()
121 void setRfcCid(uint16_t local_cid, uint16_t remote_cid) { in setRfcCid() argument
123 rfc_remote_cid = remote_cid; in setRfcCid()
127 void removeL2cCid(uint16_t local_cid, uint16_t remote_cid) { in removeL2cCid() argument
136 l2c_remote_cid.erase(remote_cid); in removeL2cCid()
294 uint16_t remote_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()
322 uint16_t remote_cid) { in add_rfc_l2c_channel() argument
[all …]
/system/bt/gd/l2cap/le/internal/
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
Dsignalling_manager.cc178 void LeSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu,… in OnConnectionRequest() argument
180 if (remote_cid == kInvalidCid) { in OnConnectionRequest()
181 LOG_WARN("Invalid remote cid received from remote psm:%d remote_cid:%d", psm, remote_cid); in OnConnectionRequest()
202 .remote_cid = remote_cid, in OnConnectionRequest()
246 auto new_channel = link_->AllocateDynamicChannel(psm, request.remote_cid); in on_security_result_for_incoming()
267 void LeSignallingManager::OnConnectionResponse(SignalId signal_id, Cid remote_cid, Mtu mtu, uint16_… in OnConnectionResponse() argument
286 …llocateReservedDynamicChannel(command_just_sent_.source_cid_, command_just_sent_.psm_, remote_cid); in OnConnectionResponse()
305 void LeSignallingManager::OnDisconnectionRequest(SignalId signal_id, Cid cid, Cid remote_cid) { in OnDisconnectionRequest() argument
311 if (channel->GetRemoteCid() != remote_cid) { in OnDisconnectionRequest()
315 auto builder = LeDisconnectionResponseBuilder::Create(signal_id.Value(), cid, remote_cid); in OnDisconnectionRequest()
[all …]
Dlink.cc183 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument
185 if (channel == nullptr || channel->GetRemoteCid() != remote_cid) { in SendDisconnectionRequest()
188 signalling_manager_.SendDisconnectRequest(local_cid, remote_cid); in SendDisconnectionRequest()
206 …ed_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChannel(Psm psm, Cid remote_cid) { in AllocateDynamicChannel() argument
207 auto channel = dynamic_channel_allocator_.AllocateChannel(psm, remote_cid); in AllocateDynamicChannel()
218 … Cid remote_cid) { in AllocateReservedDynamicChannel() argument
219 auto channel = dynamic_channel_allocator_.AllocateReservedChannel(reserved_cid, psm, remote_cid); in AllocateReservedDynamicChannel()
Dlink.h118 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override;
123 …d::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid remote_cid);
126 … Cid remote_cid);
/system/bt/stack/l2cap/
Dl2c_main.cc358 if ((p_ccb != NULL) && (p_ccb->remote_cid == rcid)) { in process_l2cap_cmd()
412 p_ccb->remote_cid = rcid; in process_l2cap_cmd()
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()
433 STREAM_TO_UINT16(con_info.remote_cid, p); in process_l2cap_cmd()
441 con_info.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()
752 if (p_ccb->remote_cid == rcid) { in process_l2cap_cmd()
773 if ((p_ccb->remote_cid == rcid) && (p_ccb->local_id == id)) { in process_l2cap_cmd()
Dl2c_ble.cc585 temp_p_ccb->remote_cid = rcid; in l2cble_process_sig_cmd()
701 STREAM_TO_UINT16(temp_p_ccb->remote_cid, p); in l2cble_process_sig_cmd()
706 cid, temp_p_ccb->remote_cid); in l2cble_process_sig_cmd()
711 if (temp_p_ccb->remote_cid == 0) { in l2cble_process_sig_cmd()
905 p_ccb->remote_cid = rcid; in l2cble_process_sig_cmd()
945 STREAM_TO_UINT16(p_ccb->remote_cid, p); in l2cble_process_sig_cmd()
950 con_info.remote_cid = p_ccb->remote_cid; in l2cble_process_sig_cmd()
958 p_ccb->remote_cid, p_ccb->peer_conn_cfg.mtu, in l2cble_process_sig_cmd()
1019 if (p_ccb->remote_cid == rcid) { in l2cble_process_sig_cmd()
1039 if ((p_ccb->remote_cid == rcid) && (p_ccb->local_id == id)) in l2cble_process_sig_cmd()
Dl2c_csm.cc541 p_ccb->remote_cid); in l2c_csm_term_w4_sec_comp()
608 p_ccb->remote_cid = p_ci->remote_cid; in l2c_csm_w4_l2cap_connect_rsp()
629 p_ccb->remote_cid = p_ci->remote_cid; in l2c_csm_w4_l2cap_connect_rsp()
690 if (p_ccb->remote_cid != 0) { in l2c_csm_w4_l2cap_connect_rsp()
1356 p_ccb->remote_cid); in l2c_csm_w4_l2cap_disconnect_rsp()
1406 p_ccb->remote_cid); in l2c_csm_w4_l2ca_disconnect_rsp()
1416 p_ccb->remote_cid); in l2c_csm_w4_l2ca_disconnect_rsp()
1572 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2c_enqueue_peer_data()
1580 p_ccb->remote_cid); in l2c_enqueue_peer_data()
Dl2c_int.h303 uint16_t remote_cid; /* Remote CID */ member
641 uint16_t remote_cid; /* Remote CID */ member
691 uint16_t remote_cid);
705 uint16_t local_cid, uint16_t remote_cid);
710 extern void l2cu_reject_connection(tL2C_LCB* p_lcb, uint16_t remote_cid,
/system/bt/test/mock/
Dmock_stack_l2cap_utils.cc82 tL2C_CCB* l2cu_find_ccb_by_remote_cid(tL2C_LCB* p_lcb, uint16_t remote_cid) { in l2cu_find_ccb_by_remote_cid() argument
176 void l2cu_reject_connection(tL2C_LCB* p_lcb, uint16_t remote_cid, in l2cu_reject_connection() argument
258 uint16_t local_cid, uint16_t remote_cid) { in l2cu_send_peer_disc_rsp() argument

12