Lines Matching refs:bdaddr

698 		bacpy(&hdev->bdaddr, &rp->bdaddr);  in hci_cc_read_bd_addr()
701 bacpy(&hdev->setup_addr, &rp->bdaddr); in hci_cc_read_bd_addr()
870 mgmt_pin_code_reply_complete(hdev, &rp->bdaddr, rp->status); in hci_cc_pin_code_reply()
879 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); in hci_cc_pin_code_reply()
896 mgmt_pin_code_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_pin_code_neg_reply()
955 mgmt_user_confirm_reply_complete(hdev, &rp->bdaddr, ACL_LINK, 0, in hci_cc_user_confirm_reply()
971 mgmt_user_confirm_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_user_confirm_neg_reply()
986 mgmt_user_passkey_reply_complete(hdev, &rp->bdaddr, ACL_LINK, in hci_cc_user_passkey_reply()
1002 mgmt_user_passkey_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_user_passkey_neg_reply()
1085 bacpy(&hdev->random_addr, &cp->bdaddr); in hci_cc_le_set_adv_set_random_addr()
1090 bacpy(&adv_instance->random_addr, &cp->bdaddr); in hci_cc_le_set_adv_set_random_addr()
1226 static void store_pending_adv_report(struct hci_dev *hdev, bdaddr_t *bdaddr, in store_pending_adv_report() argument
1232 bacpy(&d->last_adv_addr, bdaddr); in store_pending_adv_report()
1388 hci_bdaddr_list_add(&hdev->le_white_list, &sent->bdaddr, in hci_cc_le_add_to_white_list()
1407 hci_bdaddr_list_del(&hdev->le_white_list, &sent->bdaddr, in hci_cc_le_del_from_white_list()
1700 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); in hci_cs_create_conn()
1702 BT_DBG("%s bdaddr %pMR hcon %p", hdev->name, &cp->bdaddr, conn); in hci_cs_create_conn()
1715 conn = hci_conn_add(hdev, ACL_LINK, &cp->bdaddr, in hci_cs_create_conn()
1843 bacpy(&cp.bdaddr, &e->data.bdaddr); in hci_resolve_name()
1872 bdaddr_t *bdaddr, u8 *name, u8 name_len) in hci_check_pending_name() argument
1896 e = hci_inquiry_cache_lookup_resolve(hdev, bdaddr, NAME_PENDING); in hci_check_pending_name()
1907 mgmt_remote_name(hdev, bdaddr, ACL_LINK, 0x00, in hci_check_pending_name()
1938 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); in hci_cs_remote_name_req()
1941 hci_check_pending_name(hdev, conn, &cp->bdaddr, NULL, 0); in hci_cs_remote_name_req()
2147 bacpy(&conn->init_addr, &hdev->bdaddr); in cs_le_create_conn()
2286 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); in hci_cs_switch_role()
2371 bacpy(&data.bdaddr, &info->bdaddr); in hci_inquiry_result_evt()
2382 mgmt_device_found(hdev, &info->bdaddr, ACL_LINK, 0x00, in hci_inquiry_result_evt()
2399 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_conn_complete_evt()
2404 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); in hci_conn_complete_evt()
2419 !hci_find_link_key(hdev, &ev->bdaddr)) in hci_conn_complete_evt()
2475 static void hci_reject_conn(struct hci_dev *hdev, bdaddr_t *bdaddr) in hci_reject_conn() argument
2479 bacpy(&cp.bdaddr, bdaddr); in hci_reject_conn()
2492 BT_DBG("%s bdaddr %pMR type 0x%x", hdev->name, &ev->bdaddr, in hci_conn_request_evt()
2495 mask |= hci_proto_connect_ind(hdev, &ev->bdaddr, ev->link_type, in hci_conn_request_evt()
2499 hci_reject_conn(hdev, &ev->bdaddr); in hci_conn_request_evt()
2503 if (hci_bdaddr_list_lookup(&hdev->blacklist, &ev->bdaddr, in hci_conn_request_evt()
2505 hci_reject_conn(hdev, &ev->bdaddr); in hci_conn_request_evt()
2515 !hci_bdaddr_list_lookup(&hdev->whitelist, &ev->bdaddr, in hci_conn_request_evt()
2517 hci_reject_conn(hdev, &ev->bdaddr); in hci_conn_request_evt()
2525 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); in hci_conn_request_evt()
2530 &ev->bdaddr); in hci_conn_request_evt()
2532 conn = hci_conn_add(hdev, ev->link_type, &ev->bdaddr, in hci_conn_request_evt()
2550 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_conn_request_evt()
2562 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_conn_request_evt()
2760 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_remote_name_evt()
2766 hci_check_pending_name(hdev, conn, &ev->bdaddr, ev->name, in hci_remote_name_evt()
2769 hci_check_pending_name(hdev, conn, &ev->bdaddr, NULL, 0); in hci_remote_name_evt()
3009 bacpy(&cp.bdaddr, &conn->dst); in hci_remote_features_evt()
3489 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_role_change_evt()
3678 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_pin_code_request_evt()
3691 sizeof(ev->bdaddr), &ev->bdaddr); in hci_pin_code_request_evt()
3700 mgmt_pin_code_request(hdev, &ev->bdaddr, secure); in hci_pin_code_request_evt()
3753 key = hci_find_link_key(hdev, &ev->bdaddr); in hci_link_key_request_evt()
3756 &ev->bdaddr); in hci_link_key_request_evt()
3761 &ev->bdaddr); in hci_link_key_request_evt()
3763 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_link_key_request_evt()
3785 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_link_key_request_evt()
3795 hci_send_cmd(hdev, HCI_OP_LINK_KEY_NEG_REPLY, 6, &ev->bdaddr); in hci_link_key_request_evt()
3811 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_link_key_notify_evt()
3825 key = hci_add_link_key(hdev, conn, &ev->bdaddr, ev->link_key, in hci_link_key_notify_evt()
3907 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); in hci_pscan_rep_mode_evt()
3939 bacpy(&data.bdaddr, &info->bdaddr); in hci_inquiry_result_with_rssi_evt()
3950 mgmt_device_found(hdev, &info->bdaddr, ACL_LINK, 0x00, in hci_inquiry_result_with_rssi_evt()
3960 bacpy(&data.bdaddr, &info->bdaddr); in hci_inquiry_result_with_rssi_evt()
3971 mgmt_device_found(hdev, &info->bdaddr, ACL_LINK, 0x00, in hci_inquiry_result_with_rssi_evt()
4028 bacpy(&cp.bdaddr, &conn->dst); in hci_remote_ext_features_evt()
4054 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_sync_conn_complete_evt()
4068 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); in hci_sync_conn_complete_evt()
4150 bacpy(&data.bdaddr, &info->bdaddr); in hci_extended_inquiry_result_evt()
4170 mgmt_device_found(hdev, &info->bdaddr, ACL_LINK, 0x00, in hci_extended_inquiry_result_evt()
4297 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_io_capa_request_evt()
4314 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_io_capa_request_evt()
4346 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_io_capa_request_evt()
4366 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_io_capa_reply_evt()
4391 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_user_confirm_request_evt()
4407 sizeof(ev->bdaddr), &ev->bdaddr); in hci_user_confirm_request_evt()
4440 sizeof(ev->bdaddr), &ev->bdaddr); in hci_user_confirm_request_evt()
4445 mgmt_user_confirm_request(hdev, &ev->bdaddr, ACL_LINK, 0, in hci_user_confirm_request_evt()
4460 mgmt_user_passkey_request(hdev, &ev->bdaddr, ACL_LINK, 0); in hci_user_passkey_request_evt()
4471 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_user_passkey_notify_evt()
4491 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_keypress_notify_evt()
4532 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_simple_pair_complete_evt()
4564 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_remote_host_features_evt()
4568 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); in hci_remote_host_features_evt()
4588 data = hci_find_remote_oob_data(hdev, &ev->bdaddr, BDADDR_BREDR); in hci_remote_oob_data_request_evt()
4592 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_remote_oob_data_request_evt()
4601 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_remote_oob_data_request_evt()
4617 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_remote_oob_data_request_evt()
4772 bdaddr_t *bdaddr, u8 bdaddr_type, u8 role, u16 handle, in le_conn_complete_evt() argument
4789 conn = hci_conn_add(hdev, LE_LINK, bdaddr, role); in le_conn_complete_evt()
4807 bacpy(&conn->resp_addr, bdaddr); in le_conn_complete_evt()
4833 bacpy(&conn->resp_addr, &hdev->bdaddr); in le_conn_complete_evt()
4837 bacpy(&conn->init_addr, bdaddr); in le_conn_complete_evt()
4859 bacpy(&conn->dst, &irk->bdaddr); in le_conn_complete_evt()
4943 le_conn_complete_evt(hdev, ev->status, &ev->bdaddr, ev->bdaddr_type, in hci_le_conn_complete_evt()
4957 le_conn_complete_evt(hdev, ev->status, &ev->bdaddr, ev->bdaddr_type, in hci_le_enh_conn_complete_evt()
5104 static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr, in process_adv_report() argument
5174 irk = hci_get_irk(hdev, bdaddr, bdaddr_type); in process_adv_report()
5176 bdaddr = &irk->bdaddr; in process_adv_report()
5185 conn = check_pending_le_conn(hdev, bdaddr, bdaddr_type, type, in process_adv_report()
5204 bdaddr, bdaddr_type)) in process_adv_report()
5211 mgmt_device_found(hdev, bdaddr, LE_LINK, bdaddr_type, NULL, in process_adv_report()
5246 store_pending_adv_report(hdev, bdaddr, bdaddr_type, in process_adv_report()
5251 mgmt_device_found(hdev, bdaddr, LE_LINK, bdaddr_type, NULL, in process_adv_report()
5257 match = (!bacmp(bdaddr, &d->last_adv_addr) && in process_adv_report()
5277 store_pending_adv_report(hdev, bdaddr, bdaddr_type, in process_adv_report()
5286 mgmt_device_found(hdev, bdaddr, LE_LINK, bdaddr_type, NULL, in process_adv_report()
5314 process_adv_report(hdev, ev->evt_type, &ev->bdaddr, in hci_le_adv_report_evt()
5388 process_adv_report(hdev, legacy_evt_type, &ev->bdaddr, in hci_le_ext_adv_report_evt()
5586 process_adv_report(hdev, ev->evt_type, &ev->bdaddr, in hci_le_direct_adv_report_evt()