Lines Matching refs:handle
177 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery()
199 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy()
226 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_write_link_policy()
721 u16 handle; in hci_cc_read_enc_key_size() local
726 handle = le16_to_cpu(rp->handle); in hci_cc_read_enc_key_size()
730 conn = hci_conn_hash_lookup_handle(hdev, handle); in hci_cc_read_enc_key_size()
742 handle); in hci_cc_read_enc_key_size()
801 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_auth_payload_timeout()
825 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_write_auth_payload_timeout()
1082 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_clock()
1408 if (!cp || !cp->handle) in hci_cc_le_set_adv_set_random_addr()
1413 adv = hci_find_adv_instance(hdev, cp->handle); in hci_cc_le_set_adv_set_random_addr()
1592 adv = hci_find_adv_instance(hdev, set->handle); in hci_cc_le_set_ext_adv_enable()
2160 if (!cp->handle) { in hci_cc_set_ext_adv_param()
2164 adv_instance = hci_find_adv_instance(hdev, cp->handle); in hci_cc_set_ext_adv_param()
2169 hci_update_adv_data(hdev, cp->handle); in hci_cc_set_ext_adv_param()
2189 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_rssi()
2216 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_tx_power()
2303 __u16 handle; in hci_cs_add_sco() local
2314 handle = __le16_to_cpu(cp->handle); in hci_cs_add_sco()
2316 bt_dev_dbg(hdev, "handle 0x%4.4x", handle); in hci_cs_add_sco()
2320 acl = hci_conn_hash_lookup_handle(hdev, handle); in hci_cs_add_sco()
2351 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cs_auth_requested()
2378 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cs_set_conn_encrypt()
2530 auth_cp.handle = __cpu_to_le16(conn->handle); in hci_cs_remote_name_req()
2555 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cs_read_remote_features()
2582 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cs_read_remote_ext_features()
2593 static void hci_setup_sync_conn_status(struct hci_dev *hdev, __u16 handle, in hci_setup_sync_conn_status() argument
2599 bt_dev_dbg(hdev, "handle 0x%4.4x status 0x%2.2x", handle, status); in hci_setup_sync_conn_status()
2603 acl = hci_conn_hash_lookup_handle(hdev, handle); in hci_setup_sync_conn_status()
2631 hci_setup_sync_conn_status(hdev, __le16_to_cpu(cp->handle), status); in hci_cs_setup_sync_conn()
2647 hci_setup_sync_conn_status(hdev, __le16_to_cpu(cp->handle), status); in hci_cs_enhanced_setup_sync_conn()
2666 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cs_sniff_mode()
2693 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cs_exit_sniff_mode()
2725 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cs_disconnect()
2901 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cs_le_read_remote_features()
2928 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cs_le_start_enc()
3125 if (!HCI_CONN_HANDLE_UNSET(conn->handle)) { in hci_conn_complete_evt()
3131 status = hci_conn_set_handle(conn, __le16_to_cpu(ev->handle)); in hci_conn_complete_evt()
3169 cp.handle = cpu_to_le16(conn->handle); in hci_conn_complete_evt()
3184 cp.handle = ev->handle; in hci_conn_complete_evt()
3194 cp.handle = ev->handle; in hci_conn_complete_evt()
3368 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_disconn_complete_evt()
3450 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_auth_complete_evt()
3470 cp.handle = ev->handle; in hci_auth_complete_evt()
3490 cp.handle = ev->handle; in hci_auth_complete_evt()
3537 cp.handle = __cpu_to_le16(conn->handle); in hci_remote_name_evt()
3555 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_encrypt_change_evt()
3619 cp.handle = cpu_to_le16(conn->handle); in hci_encrypt_change_evt()
3643 cp.handle = cpu_to_le16(conn->handle); in hci_encrypt_change_evt()
3667 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_change_link_key_complete_evt()
3690 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_remote_features_evt()
3703 cp.handle = ev->handle; in hci_remote_features_evt()
3786 if (HCI_CONN_HANDLE_UNSET(conn->handle)) in hci_unbound_cis_failed()
3840 if (hci_conn_set_handle(conn, __le16_to_cpu(rp->handle[i]))) in hci_cc_le_set_cig_params()
3871 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle)); in hci_cc_le_setup_iso_path()
3950 adv = hci_find_adv_instance(hdev, cp->handle); in hci_cc_le_set_per_adv_enable()
4255 u16 handle; in hci_cs_le_create_cis() local
4257 handle = __le16_to_cpu(cp->cis[i].cis_handle); in hci_cs_le_create_cis()
4259 conn = hci_conn_hash_lookup_handle(hdev, handle); in hci_cs_le_create_cis()
4402 __u16 handle, count; in hci_num_comp_pkts_evt() local
4404 handle = __le16_to_cpu(info->handle); in hci_num_comp_pkts_evt()
4407 conn = hci_conn_hash_lookup_handle(hdev, handle); in hci_num_comp_pkts_evt()
4474 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_mode_change_evt()
4702 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_clock_offset_evt()
4726 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_pkt_type_change_evt()
4849 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_remote_ext_features_evt()
4953 if (!HCI_CONN_HANDLE_UNSET(conn->handle)) { in hci_sync_conn_complete_evt()
4960 status = hci_conn_set_handle(conn, __le16_to_cpu(ev->handle)); in hci_sync_conn_complete_evt()
4984 if (hci_setup_sync(conn, conn->parent->handle)) in hci_sync_conn_complete_evt()
5096 __le16_to_cpu(ev->handle)); in hci_key_refresh_complete_evt()
5100 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_key_refresh_complete_evt()
5608 bdaddr_t *local_rpa, u8 role, u16 handle, in le_conn_complete_evt() argument
5670 if (!HCI_CONN_HANDLE_UNSET(conn->handle)) { in le_conn_complete_evt()
5698 if (status || hci_conn_set_handle(conn, handle)) in le_conn_complete_evt()
5750 cp.handle = __cpu_to_le16(conn->handle); in le_conn_complete_evt()
5785 NULL, ev->role, le16_to_cpu(ev->handle), in hci_le_conn_complete_evt()
5799 &ev->local_rpa, ev->role, le16_to_cpu(ev->handle), in hci_le_enh_conn_complete_evt()
5828 adv = hci_find_adv_instance(hdev, ev->handle); in hci_le_ext_adv_term_evt()
5835 hci_remove_adv_instance(hdev, ev->handle); in hci_le_ext_adv_term_evt()
5836 mgmt_advertising_removed(NULL, hdev, ev->handle); in hci_le_ext_adv_term_evt()
5856 conn->adv_instance = ev->handle; in hci_le_ext_adv_term_evt()
5862 if (!ev->handle) { in hci_le_ext_adv_term_evt()
5888 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_le_conn_update_complete_evt()
6321 static int hci_le_pa_term_sync(struct hci_dev *hdev, __le16 handle) in hci_le_pa_term_sync() argument
6326 cp.handle = handle; in hci_le_pa_term_sync()
6347 hci_le_pa_term_sync(hdev, ev->handle); in hci_le_pa_sync_estabilished_evt()
6400 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_le_remote_feat_complete_evt()
6441 bt_dev_dbg(hdev, "handle 0x%4.4x", __le16_to_cpu(ev->handle)); in hci_le_ltk_request_evt()
6445 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_le_ltk_request_evt()
6465 cp.handle = cpu_to_le16(conn->handle); in hci_le_ltk_request_evt()
6492 neg.handle = ev->handle; in hci_le_ltk_request_evt()
6497 static void send_conn_param_neg_reply(struct hci_dev *hdev, u16 handle, in send_conn_param_neg_reply() argument
6502 cp.handle = cpu_to_le16(handle); in send_conn_param_neg_reply()
6515 u16 handle, min, max, latency, timeout; in hci_le_remote_conn_param_req_evt() local
6517 bt_dev_dbg(hdev, "handle 0x%4.4x", __le16_to_cpu(ev->handle)); in hci_le_remote_conn_param_req_evt()
6519 handle = le16_to_cpu(ev->handle); in hci_le_remote_conn_param_req_evt()
6525 hcon = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_remote_conn_param_req_evt()
6527 return send_conn_param_neg_reply(hdev, handle, in hci_le_remote_conn_param_req_evt()
6531 return send_conn_param_neg_reply(hdev, handle, in hci_le_remote_conn_param_req_evt()
6535 return send_conn_param_neg_reply(hdev, handle, in hci_le_remote_conn_param_req_evt()
6562 cp.handle = ev->handle; in hci_le_remote_conn_param_req_evt()
6614 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_le_phy_update_evt()
6632 u16 handle = __le16_to_cpu(ev->handle); in hci_le_cis_estabilished_evt() local
6639 conn = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_cis_estabilished_evt()
6643 handle); in hci_le_cis_estabilished_evt()
6650 handle); in hci_le_cis_estabilished_evt()
6725 static void hci_le_reject_cis(struct hci_dev *hdev, __le16 handle) in hci_le_reject_cis() argument
6730 cp.handle = handle; in hci_le_reject_cis()
6735 static void hci_le_accept_cis(struct hci_dev *hdev, __le16 handle) in hci_le_accept_cis() argument
6740 cp.handle = handle; in hci_le_accept_cis()
6797 u8 handle = PTR_UINT(data); in hci_iso_term_big_sync() local
6799 return hci_le_terminate_big_sync(hdev, handle, in hci_iso_term_big_sync()
6823 conn->iso_qos.bcast.big != ev->handle) in hci_le_create_big_complete_evt()
6856 UINT_PTR(ev->handle), NULL); in hci_le_create_big_complete_evt()
6878 pa_sync = hci_conn_hash_lookup_pa_sync_big_handle(hdev, ev->handle); in hci_le_big_sync_established_evt()
6887 u16 handle = le16_to_cpu(ev->bis[i]); in hci_le_big_sync_established_evt() local
6890 bis = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_big_sync_established_evt()
6892 if (handle > HCI_CONN_HANDLE_MAX) { in hci_le_big_sync_established_evt()
6893 bt_dev_dbg(hdev, "ignore too large handle %u", handle); in hci_le_big_sync_established_evt()
6897 HCI_ROLE_SLAVE, handle); in hci_le_big_sync_established_evt()
6906 bis->iso_qos.bcast.big = ev->handle; in hci_le_big_sync_established_evt()
6925 u16 handle = le16_to_cpu(ev->bis[i]); in hci_le_big_sync_established_evt() local
6927 bis = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_big_sync_established_evt()