Lines Matching refs:bd_addr
63 bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, in BTM_SecAddDevice() argument
70 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in BTM_SecAddDevice()
74 bd_addr.ToString().c_str()); in BTM_SecAddDevice()
76 p_dev_rec->bd_addr = bd_addr; in BTM_SecAddDevice()
77 p_dev_rec->hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_BR_EDR); in BTM_SecAddDevice()
126 VLOG(2) << __func__ << ": BDA: " << bd_addr; in BTM_SecAddDevice()
170 bool BTM_SecDeleteDevice(const RawAddress& bd_addr) { in BTM_SecDeleteDevice() argument
172 return bluetooth::shim::BTM_SecDeleteDevice(bd_addr); in BTM_SecDeleteDevice()
175 if (BTM_IsAclConnectionUp(bd_addr, BT_TRANSPORT_LE) || in BTM_SecDeleteDevice()
176 BTM_IsAclConnectionUp(bd_addr, BT_TRANSPORT_BR_EDR)) { in BTM_SecDeleteDevice()
182 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in BTM_SecDeleteDevice()
184 RawAddress bda = p_dev_rec->bd_addr; in BTM_SecDeleteDevice()
204 extern void BTM_SecClearSecurityFlags(const RawAddress& bd_addr) { in BTM_SecClearSecurityFlags() argument
205 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in BTM_SecClearSecurityFlags()
223 char* BTM_SecReadDevName(const RawAddress& bd_addr) { in BTM_SecReadDevName() argument
227 p_srec = btm_find_dev(bd_addr); in BTM_SecReadDevName()
243 tBTM_SEC_DEV_REC* btm_sec_alloc_dev(const RawAddress& bd_addr) { in btm_sec_alloc_dev() argument
249 bd_addr.ToString().c_str()); in btm_sec_alloc_dev()
253 p_inq_info = BTM_InqDbRead(bd_addr); in btm_sec_alloc_dev()
259 } else if (bd_addr == btm_cb.connecting_bda) in btm_sec_alloc_dev()
265 p_dev_rec->bd_addr = bd_addr; in btm_sec_alloc_dev()
267 p_dev_rec->ble_hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_LE); in btm_sec_alloc_dev()
268 p_dev_rec->hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_BR_EDR); in btm_sec_alloc_dev()
285 bool btm_dev_support_switch(const RawAddress& bd_addr) { in btm_dev_support_switch() argument
291 if (btm_is_sco_active_by_bdaddr(bd_addr)) return (false); in btm_dev_support_switch()
292 p_dev_rec = btm_find_dev(bd_addr); in btm_dev_support_switch()
348 const RawAddress* bd_addr = ((RawAddress*)context); in is_address_equal() local
350 if (p_dev_rec->bd_addr == *bd_addr) return false; in is_address_equal()
352 if (p_dev_rec->ble.pseudo_addr == *bd_addr) return false; in is_address_equal()
354 if (btm_ble_addr_resolvable(*bd_addr, p_dev_rec)) return false; in is_address_equal()
368 tBTM_SEC_DEV_REC* btm_find_dev(const RawAddress& bd_addr) { in btm_find_dev() argument
370 list_foreach(btm_cb.sec_dev_rec, is_address_equal, (void*)&bd_addr); in btm_find_dev()
401 if (p_dev_rec->bd_addr == p_target_rec->bd_addr) { in btm_consolidate_dev()
422 if (btm_ble_addr_resolvable(p_dev_rec->bd_addr, p_target_rec)) { in btm_consolidate_dev()
423 if (p_target_rec->ble.pseudo_addr == p_dev_rec->bd_addr) { in btm_consolidate_dev()
444 tBTM_SEC_DEV_REC* btm_find_or_alloc_dev(const RawAddress& bd_addr) { in btm_find_or_alloc_dev() argument
447 p_dev_rec = btm_find_dev(bd_addr); in btm_find_or_alloc_dev()
450 p_dev_rec = btm_sec_alloc_dev(bd_addr); in btm_find_or_alloc_dev()
543 tBTM_BOND_TYPE btm_get_bond_type_dev(const RawAddress& bd_addr) { in btm_get_bond_type_dev() argument
544 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in btm_get_bond_type_dev()
561 bool btm_set_bond_type_dev(const RawAddress& bd_addr, in btm_set_bond_type_dev() argument
563 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in btm_set_bond_type_dev()