Lines Matching refs:bdaddr

697 		bacpy(&hdev->bdaddr, &rp->bdaddr);  in hci_cc_read_bd_addr()
700 bacpy(&hdev->setup_addr, &rp->bdaddr); in hci_cc_read_bd_addr()
869 mgmt_pin_code_reply_complete(hdev, &rp->bdaddr, rp->status); in hci_cc_pin_code_reply()
878 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); in hci_cc_pin_code_reply()
895 mgmt_pin_code_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_pin_code_neg_reply()
954 mgmt_user_confirm_reply_complete(hdev, &rp->bdaddr, ACL_LINK, 0, in hci_cc_user_confirm_reply()
970 mgmt_user_confirm_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_user_confirm_neg_reply()
985 mgmt_user_passkey_reply_complete(hdev, &rp->bdaddr, ACL_LINK, in hci_cc_user_passkey_reply()
1001 mgmt_user_passkey_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_user_passkey_neg_reply()
1115 static void store_pending_adv_report(struct hci_dev *hdev, bdaddr_t *bdaddr, in store_pending_adv_report() argument
1121 bacpy(&d->last_adv_addr, bdaddr); in store_pending_adv_report()
1239 hci_bdaddr_list_add(&hdev->le_white_list, &sent->bdaddr, in hci_cc_le_add_to_white_list()
1258 hci_bdaddr_list_del(&hdev->le_white_list, &sent->bdaddr, in hci_cc_le_del_from_white_list()
1470 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); in hci_cs_create_conn()
1472 BT_DBG("%s bdaddr %pMR hcon %p", hdev->name, &cp->bdaddr, conn); in hci_cs_create_conn()
1485 conn = hci_conn_add(hdev, ACL_LINK, &cp->bdaddr, in hci_cs_create_conn()
1613 bacpy(&cp.bdaddr, &e->data.bdaddr); in hci_resolve_name()
1642 bdaddr_t *bdaddr, u8 *name, u8 name_len) in hci_check_pending_name() argument
1666 e = hci_inquiry_cache_lookup_resolve(hdev, bdaddr, NAME_PENDING); in hci_check_pending_name()
1677 mgmt_remote_name(hdev, bdaddr, ACL_LINK, 0x00, in hci_check_pending_name()
1708 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); in hci_cs_remote_name_req()
1711 hci_check_pending_name(hdev, conn, &cp->bdaddr, NULL, 0); in hci_cs_remote_name_req()
1931 bacpy(&conn->init_addr, &hdev->bdaddr); in hci_cs_le_create_conn()
2023 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); in hci_cs_switch_role()
2108 bacpy(&data.bdaddr, &info->bdaddr); in hci_inquiry_result_evt()
2119 mgmt_device_found(hdev, &info->bdaddr, ACL_LINK, 0x00, in hci_inquiry_result_evt()
2136 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_conn_complete_evt()
2141 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); in hci_conn_complete_evt()
2156 !hci_find_link_key(hdev, &ev->bdaddr)) in hci_conn_complete_evt()
2212 static void hci_reject_conn(struct hci_dev *hdev, bdaddr_t *bdaddr) in hci_reject_conn() argument
2216 bacpy(&cp.bdaddr, bdaddr); in hci_reject_conn()
2229 BT_DBG("%s bdaddr %pMR type 0x%x", hdev->name, &ev->bdaddr, in hci_conn_request_evt()
2232 mask |= hci_proto_connect_ind(hdev, &ev->bdaddr, ev->link_type, in hci_conn_request_evt()
2236 hci_reject_conn(hdev, &ev->bdaddr); in hci_conn_request_evt()
2240 if (hci_bdaddr_list_lookup(&hdev->blacklist, &ev->bdaddr, in hci_conn_request_evt()
2242 hci_reject_conn(hdev, &ev->bdaddr); in hci_conn_request_evt()
2252 !hci_bdaddr_list_lookup(&hdev->whitelist, &ev->bdaddr, in hci_conn_request_evt()
2254 hci_reject_conn(hdev, &ev->bdaddr); in hci_conn_request_evt()
2262 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); in hci_conn_request_evt()
2267 &ev->bdaddr); in hci_conn_request_evt()
2269 conn = hci_conn_add(hdev, ev->link_type, &ev->bdaddr, in hci_conn_request_evt()
2287 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_conn_request_evt()
2299 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_conn_request_evt()
2486 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_remote_name_evt()
2492 hci_check_pending_name(hdev, conn, &ev->bdaddr, ev->name, in hci_remote_name_evt()
2495 hci_check_pending_name(hdev, conn, &ev->bdaddr, NULL, 0); in hci_remote_name_evt()
2731 bacpy(&cp.bdaddr, &conn->dst); in hci_remote_features_evt()
3167 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_role_change_evt()
3354 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_pin_code_request_evt()
3367 sizeof(ev->bdaddr), &ev->bdaddr); in hci_pin_code_request_evt()
3376 mgmt_pin_code_request(hdev, &ev->bdaddr, secure); in hci_pin_code_request_evt()
3429 key = hci_find_link_key(hdev, &ev->bdaddr); in hci_link_key_request_evt()
3432 &ev->bdaddr); in hci_link_key_request_evt()
3437 &ev->bdaddr); in hci_link_key_request_evt()
3439 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_link_key_request_evt()
3461 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_link_key_request_evt()
3471 hci_send_cmd(hdev, HCI_OP_LINK_KEY_NEG_REPLY, 6, &ev->bdaddr); in hci_link_key_request_evt()
3487 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_link_key_notify_evt()
3501 key = hci_add_link_key(hdev, conn, &ev->bdaddr, ev->link_key, in hci_link_key_notify_evt()
3583 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); in hci_pscan_rep_mode_evt()
3615 bacpy(&data.bdaddr, &info->bdaddr); in hci_inquiry_result_with_rssi_evt()
3626 mgmt_device_found(hdev, &info->bdaddr, ACL_LINK, 0x00, in hci_inquiry_result_with_rssi_evt()
3636 bacpy(&data.bdaddr, &info->bdaddr); in hci_inquiry_result_with_rssi_evt()
3647 mgmt_device_found(hdev, &info->bdaddr, ACL_LINK, 0x00, in hci_inquiry_result_with_rssi_evt()
3704 bacpy(&cp.bdaddr, &conn->dst); in hci_remote_ext_features_evt()
3730 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_sync_conn_complete_evt()
3744 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); in hci_sync_conn_complete_evt()
3826 bacpy(&data.bdaddr, &info->bdaddr); in hci_extended_inquiry_result_evt()
3846 mgmt_device_found(hdev, &info->bdaddr, ACL_LINK, 0x00, in hci_extended_inquiry_result_evt()
3973 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_io_capa_request_evt()
3990 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_io_capa_request_evt()
4022 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_io_capa_request_evt()
4042 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_io_capa_reply_evt()
4067 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_user_confirm_request_evt()
4083 sizeof(ev->bdaddr), &ev->bdaddr); in hci_user_confirm_request_evt()
4116 sizeof(ev->bdaddr), &ev->bdaddr); in hci_user_confirm_request_evt()
4121 mgmt_user_confirm_request(hdev, &ev->bdaddr, ACL_LINK, 0, in hci_user_confirm_request_evt()
4136 mgmt_user_passkey_request(hdev, &ev->bdaddr, ACL_LINK, 0); in hci_user_passkey_request_evt()
4147 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_user_passkey_notify_evt()
4167 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_keypress_notify_evt()
4208 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_simple_pair_complete_evt()
4240 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_remote_host_features_evt()
4244 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); in hci_remote_host_features_evt()
4264 data = hci_find_remote_oob_data(hdev, &ev->bdaddr, BDADDR_BREDR); in hci_remote_oob_data_request_evt()
4268 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_remote_oob_data_request_evt()
4277 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_remote_oob_data_request_evt()
4293 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_remote_oob_data_request_evt()
4466 conn = hci_conn_add(hdev, LE_LINK, &ev->bdaddr, ev->role); in hci_le_conn_complete_evt()
4484 bacpy(&conn->resp_addr, &ev->bdaddr); in hci_le_conn_complete_evt()
4506 bacpy(&conn->resp_addr, &hdev->bdaddr); in hci_le_conn_complete_evt()
4509 bacpy(&conn->init_addr, &ev->bdaddr); in hci_le_conn_complete_evt()
4531 bacpy(&conn->dst, &irk->bdaddr); in hci_le_conn_complete_evt()
4719 static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr, in process_adv_report() argument
4777 irk = hci_get_irk(hdev, bdaddr, bdaddr_type); in process_adv_report()
4779 bdaddr = &irk->bdaddr; in process_adv_report()
4784 conn = check_pending_le_conn(hdev, bdaddr, bdaddr_type, type); in process_adv_report()
4802 bdaddr, bdaddr_type)) in process_adv_report()
4809 mgmt_device_found(hdev, bdaddr, LE_LINK, bdaddr_type, NULL, in process_adv_report()
4844 store_pending_adv_report(hdev, bdaddr, bdaddr_type, in process_adv_report()
4849 mgmt_device_found(hdev, bdaddr, LE_LINK, bdaddr_type, NULL, in process_adv_report()
4855 match = (!bacmp(bdaddr, &d->last_adv_addr) && in process_adv_report()
4875 store_pending_adv_report(hdev, bdaddr, bdaddr_type, in process_adv_report()
4884 mgmt_device_found(hdev, bdaddr, LE_LINK, bdaddr_type, NULL, in process_adv_report()
4911 process_adv_report(hdev, ev->evt_type, &ev->bdaddr, in hci_le_adv_report_evt()
5108 process_adv_report(hdev, ev->evt_type, &ev->bdaddr, in hci_le_direct_adv_report_evt()