Home
last modified time | relevance | path

Searched refs:hci_handle (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sco.cc205 if (active_sco != nullptr && active_sco->hci_handle == handle) { in btm_route_sco_data()
223 BT_HDR* packet = btm_sco_make_packet(std::move(data), active_sco->hci_handle); in btm_send_sco_packet()
498 p->hci_handle = HCI_INVALID_HANDLE; in BTM_CreateSco()
559 void btm_sco_chk_pend_unpark(tHCI_STATUS hci_status, uint16_t hci_handle) { in btm_sco_chk_pend_unpark() argument
564 if ((p->state == SCO_ST_PEND_UNPARK) && (acl_handle == hci_handle)) { in btm_sco_chk_pend_unpark()
591 void btm_sco_chk_pend_rolechange(uint16_t hci_handle) { in btm_sco_chk_pend_rolechange() argument
599 p->esco.data.bd_addr, BT_TRANSPORT_BR_EDR)) == hci_handle)) in btm_sco_chk_pend_rolechange()
624 void btm_sco_disc_chk_pend_for_modechange(uint16_t hci_handle) { in btm_sco_disc_chk_pend_for_modechange() argument
630 hci_handle, sco_state_text(p->state).c_str()); in btm_sco_disc_chk_pend_for_modechange()
635 hci_handle) in btm_sco_disc_chk_pend_for_modechange()
[all …]
Dbtm_sco.h111 uint16_t hci_handle; /* HCI Handle */ member
114 uint16_t Handle() const { return hci_handle; } in Handle()
134 if (p_sco->hci_handle == handle) { in get_sco_connection_from_handle()
160 extern void btm_sco_chk_pend_rolechange(uint16_t hci_handle);
161 extern void btm_sco_disc_chk_pend_for_modechange(uint16_t hci_handle);
Dbtm_sec.cc664 (p_dev_rec->hci_handle == HCI_INVALID_HANDLE) && in BTM_PINCodeReply()
751 if (((p_dev_rec->hci_handle != HCI_INVALID_HANDLE) && in btm_sec_bond_by_transport()
816 p_dev_rec->sm4, p_dev_rec->hci_handle); in btm_sec_bond_by_transport()
952 BTM_TRACE_DEBUG("hci_handle:0x%x sec_state:%d", p_dev_rec->hci_handle, in BTM_SecBondCancel()
965 if (p_dev_rec->hci_handle != HCI_INVALID_HANDLE) { in BTM_SecBondCancel()
974 p_dev_rec, HCI_ERR_PEER_USER, p_dev_rec->hci_handle, in BTM_SecBondCancel()
1066 if (p_dev_rec->hci_handle == HCI_INVALID_HANDLE) { in BTM_SetEncryption()
1139 p_dev_rec->hci_handle, p_dev_rec->ble_hci_handle, p_dev_rec->sec_state, in BTM_SetEncryption()
1202 if (conn_handle == p_dev_rec->hci_handle) { in btm_sec_send_hci_disconnect()
1224 p_dev_rec->sec_state = (conn_handle == p_dev_rec->hci_handle) in btm_sec_send_hci_disconnect()
[all …]
Dsecurity_device_record.h220 uint16_t hci_handle; /* Handle to connection when exists */ member
229 uint16_t get_br_edr_hci_handle() const { return hci_handle; } in get_br_edr_hci_handle()
384 friend void btm_sec_set_peer_sec_caps(uint16_t hci_handle, bool ssp_supported,
Dbtm_dev.cc78 p_dev_rec->hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_BR_EDR); in BTM_SecAddDevice()
265 p_dev_rec->hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_BR_EDR); in btm_sec_alloc_dev()
321 if (p_dev_rec->hci_handle == *handle || p_dev_rec->ble_hci_handle == *handle) in is_handle_equal()
Dbtm_ble.cc97 p_dev_rec->hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_BR_EDR); in BTM_SecAddBleDevice()
719 uint16_t hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_LE); in BTM_SetBleDataLength() local
721 if (!acl_peer_supports_ble_packet_extension(hci_handle)) { in BTM_SetBleDataLength()
732 btsnd_hcic_ble_set_data_length(hci_handle, tx_pdu_length, tx_time); in BTM_SetBleDataLength()
2180 bool btm_ble_get_acl_remote_addr(uint16_t hci_handle, RawAddress& conn_addr, in btm_ble_get_acl_remote_addr() argument
2182 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(hci_handle); in btm_ble_get_acl_remote_addr()
2185 hci_handle); in btm_ble_get_acl_remote_addr()
Dbtm_sec.h791 void btm_sec_set_peer_sec_caps(uint16_t hci_handle, bool ssp_supported,
/packages/modules/Bluetooth/system/stack/include/
Dacl_api.h86 bool BTM_IsAclConnectionUpFromHandle(uint16_t hci_handle);
209 bool acl_peer_supports_ble_packet_extension(uint16_t hci_handle);
210 bool acl_peer_supports_ble_2m_phy(uint16_t hci_handle);
211 bool acl_peer_supports_ble_coded_phy(uint16_t hci_handle);
216 bool acl_peer_supports_ble_packet_extension(uint16_t hci_handle);
241 bool BTM_IsBleConnection(uint16_t hci_handle);
243 const RawAddress acl_address_from_handle(uint16_t hci_handle);
248 void btm_cont_rswitch_from_handle(uint16_t hci_handle);
258 bool acl_set_peer_le_features_from_handle(uint16_t hci_handle,
292 void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
[all …]
Dsco_hci_link_interface.h30 uint16_t hci_handle);
33 extern void btm_sco_connected(const RawAddress& bda, uint16_t hci_handle,
37 uint16_t hci_handle,
39 extern bool btm_sco_removed(uint16_t hci_handle, tHCI_REASON reason);
41 void btm_sco_on_disconnected(uint16_t hci_handle, tHCI_REASON reason);
Dacl_hci_link_interface.h50 void btm_pm_proc_mode_change(tHCI_STATUS hci_status, uint16_t hci_handle,
Dbtm_ble_api.h667 bool btm_ble_get_acl_remote_addr(uint16_t hci_handle, RawAddress& conn_addr,
/packages/modules/Bluetooth/system/stack/test/
Dstack_acl_test.cc77 const uint16_t hci_handle = 0x123; in TEST_F() local
81 btm_acl_created(kRawAddress, hci_handle, link_role, transport); in TEST_F()
90 acl_process_extended_features(hci_handle, 1, max_page, 0xf123456789abcde); in TEST_F()
91 acl_process_extended_features(hci_handle, 2, max_page, 0xef123456789abcd); in TEST_F()
92 acl_process_extended_features(hci_handle, 3, max_page, 0xdef123456789abc); in TEST_F()
107 acl_process_extended_features(hci_handle, static_cast<uint8_t>(i), in TEST_F()
121 acl_process_extended_features(hci_handle, 1, 0, 0xdef123456789abc); in TEST_F()
128 btm_acl_removed(hci_handle); in TEST_F()
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_acl.h106 std::function<bool(uint16_t hci_handle)> body{
107 [](uint16_t hci_handle) { return false; }};
108 bool operator()(uint16_t hci_handle) { return body(hci_handle); }; in operator()
115 std::function<bool(uint16_t hci_handle)> body{
116 [](uint16_t hci_handle) { return false; }};
117 bool operator()(uint16_t hci_handle) { return body(hci_handle); }; in operator()
227 std::function<bool(uint16_t hci_handle)> body{
228 [](uint16_t hci_handle) { return false; }};
229 bool operator()(uint16_t hci_handle) { return body(hci_handle); }; in operator()
236 std::function<bool(uint16_t hci_handle)> body{
[all …]
Dmock_stack_btm_sco.cc48 bool btm_sco_removed(uint16_t hci_handle, tHCI_REASON reason) { in btm_sco_removed() argument
90 void btm_sco_chk_pend_rolechange(uint16_t hci_handle) { in btm_sco_chk_pend_rolechange() argument
93 void btm_sco_chk_pend_unpark(tHCI_STATUS hci_status, uint16_t hci_handle) { in btm_sco_chk_pend_unpark() argument
100 void btm_sco_connected(const RawAddress& bda, uint16_t hci_handle, in btm_sco_connected() argument
105 uint16_t hci_handle, in btm_sco_connection_failed() argument
109 void btm_sco_disc_chk_pend_for_modechange(uint16_t hci_handle) { in btm_sco_disc_chk_pend_for_modechange() argument
120 void btm_sco_on_disconnected(uint16_t hci_handle, tHCI_REASON reason) { in btm_sco_on_disconnected() argument
Dmock_stack_acl.cc199 bool BTM_IsAclConnectionUpFromHandle(uint16_t hci_handle) { in BTM_IsAclConnectionUpFromHandle() argument
201 return test::mock::stack_acl::BTM_IsAclConnectionUpFromHandle(hci_handle); in BTM_IsAclConnectionUpFromHandle()
203 bool BTM_IsBleConnection(uint16_t hci_handle) { in BTM_IsBleConnection() argument
205 return test::mock::stack_acl::BTM_IsBleConnection(hci_handle); in BTM_IsBleConnection()
246 bool acl_peer_supports_ble_2m_phy(uint16_t hci_handle) { in acl_peer_supports_ble_2m_phy() argument
248 return test::mock::stack_acl::acl_peer_supports_ble_2m_phy(hci_handle); in acl_peer_supports_ble_2m_phy()
250 bool acl_peer_supports_ble_coded_phy(uint16_t hci_handle) { in acl_peer_supports_ble_coded_phy() argument
252 return test::mock::stack_acl::acl_peer_supports_ble_coded_phy(hci_handle); in acl_peer_supports_ble_coded_phy()
260 bool acl_peer_supports_ble_packet_extension(uint16_t hci_handle) { in acl_peer_supports_ble_packet_extension() argument
263 hci_handle); in acl_peer_supports_ble_packet_extension()
[all …]
Dmock_stack_acl_btm_pm.cc93 void btm_pm_proc_mode_change(tHCI_STATUS hci_status, uint16_t hci_handle, in btm_pm_proc_mode_change() argument
Dmock_stack_btm_ble.cc67 bool btm_ble_get_acl_remote_addr(uint16_t hci_handle, RawAddress& conn_addr, in btm_ble_get_acl_remote_addr() argument
/packages/modules/Bluetooth/system/stack/acl/
Dbtm_acl.cc196 p_acl.hci_handle, p_acl.is_transport_br_edr(), reason, comment); in hci_btsnd_hcic_disconnect()
318 uint8_t btm_handle_to_acl_index(uint16_t hci_handle) { in btm_handle_to_acl_index() argument
322 if ((p->in_use) && (p->hci_handle == hci_handle)) { in btm_handle_to_acl_index()
331 tACL_CONN* StackAclBtmAcl::acl_get_connection_from_handle(uint16_t hci_handle) { in acl_get_connection_from_handle() argument
332 uint8_t index = btm_handle_to_acl_index(hci_handle); in acl_get_connection_from_handle()
380 void btm_acl_created(const RawAddress& bda, uint16_t hci_handle, in btm_acl_created() argument
384 p_acl->hci_handle = hci_handle; in btm_acl_created()
393 hci_handle, RoleText(link_role).c_str(), in btm_acl_created()
405 p_acl->hci_handle = hci_handle; in btm_acl_created()
416 PRIVATE_ADDRESS(bda), RoleText(p_acl->link_role).c_str(), hci_handle, in btm_acl_created()
[all …]
Dbtm_pm.cc53 void btm_cont_rswitch_from_handle(uint16_t hci_handle);
727 void btm_pm_proc_mode_change(tHCI_STATUS hci_status, uint16_t hci_handle, in btm_pm_proc_mode_change() argument
732 if (pm_mode_db.count(hci_handle) == 0) { in btm_pm_proc_mode_change()
733 LOG_WARN("Unable to find active acl for handle %d", hci_handle); in btm_pm_proc_mode_change()
736 tBTM_PM_MCB* p_cb = &pm_mode_db[hci_handle]; in btm_pm_proc_mode_change()
756 btm_pm_snd_md_req(hci_handle, BTM_PM_SET_ONLY_ID, hci_handle, NULL); in btm_pm_proc_mode_change()
772 btm_sco_disc_chk_pend_for_modechange(hci_handle); in btm_pm_proc_mode_change()
775 btm_cont_rswitch_from_handle(hci_handle); in btm_pm_proc_mode_change()
Dacl.h204 uint16_t hci_handle; member
208 uint16_t Handle() const { return hci_handle; } in Handle()
219 btsnd_hcic_set_conn_encrypt(hci_handle, false); in set_encryption_off()
225 btsnd_hcic_set_conn_encrypt(hci_handle, true); in set_encryption_on()
385 friend uint8_t btm_handle_to_acl_index(uint16_t hci_handle);
Dacl.cc35 hci_handle = 0; in Reset()
/packages/modules/Bluetooth/system/main/shim/
Dacl.h93 bool HoldMode(uint16_t hci_handle, uint16_t max_interval,
95 bool SniffMode(uint16_t hci_handle, uint16_t max_interval,
98 bool ExitSniffMode(uint16_t hci_handle) override;
99 bool SniffSubrating(uint16_t hci_handle, uint16_t maximum_latency,
103 void WriteData(uint16_t hci_handle,
116 void write_data_sync(uint16_t hci_handle,
Dlink_policy.cc43 void btm_cont_rswitch_from_handle(uint16_t hci_handle);
44 void btm_pm_proc_mode_change(tHCI_STATUS hci_status, uint16_t hci_handle,
46 void btm_sco_chk_pend_unpark(tHCI_STATUS hci_status, uint16_t hci_handle);
58 p_acl.hci_handle); in set_active_mode()
64 p_acl.hci_handle, max, min); in set_hold_mode()
72 p_acl.hci_handle, max_interval, min_interval, attempt, timeout); in set_sniff_mode()
Dacl.cc1127 link.remote_addr.ToString().c_str(), link.hci_handle, in DumpsysAcl()
1616 bool shim::legacy::Acl::HoldMode(uint16_t hci_handle, uint16_t max_interval, in HoldMode() argument
1618 handler_->CallOn(pimpl_.get(), &Acl::impl::HoldMode, hci_handle, max_interval, in HoldMode()
1623 bool shim::legacy::Acl::SniffMode(uint16_t hci_handle, uint16_t max_interval, in SniffMode() argument
1626 handler_->CallOn(pimpl_.get(), &Acl::impl::SniffMode, hci_handle, in SniffMode()
1631 bool shim::legacy::Acl::ExitSniffMode(uint16_t hci_handle) { in ExitSniffMode() argument
1632 handler_->CallOn(pimpl_.get(), &Acl::impl::ExitSniffMode, hci_handle); in ExitSniffMode()
1636 bool shim::legacy::Acl::SniffSubrating(uint16_t hci_handle, in SniffSubrating() argument
1640 handler_->CallOn(pimpl_.get(), &Acl::impl::SniffSubrating, hci_handle, in SniffSubrating()
/packages/modules/Bluetooth/system/stack/test/btm/
Dstack_btm_test.cc351 device_record->hci_handle = classic_handle; in TEST_F()
392 device_record->hci_handle = 0x1234; in TEST_F()

12