• Home
  • Raw
  • Download

Lines Matching refs:ev

1671 	struct hci_ev_conn_complete *ev = (void *) skb->data;  in hci_conn_complete_evt()  local
1678 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_conn_complete_evt()
1680 if (ev->link_type != SCO_LINK) in hci_conn_complete_evt()
1683 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); in hci_conn_complete_evt()
1690 if (!ev->status) { in hci_conn_complete_evt()
1691 conn->handle = __le16_to_cpu(ev->handle); in hci_conn_complete_evt()
1698 !hci_find_link_key(hdev, &ev->bdaddr)) in hci_conn_complete_evt()
1716 cp.handle = ev->handle; in hci_conn_complete_evt()
1724 cp.handle = ev->handle; in hci_conn_complete_evt()
1732 mgmt_connect_failed(hdev, &ev->bdaddr, conn->type, in hci_conn_complete_evt()
1733 conn->dst_type, ev->status); in hci_conn_complete_evt()
1737 hci_sco_setup(conn, ev->status); in hci_conn_complete_evt()
1739 if (ev->status) { in hci_conn_complete_evt()
1740 hci_proto_connect_cfm(conn, ev->status); in hci_conn_complete_evt()
1742 } else if (ev->link_type != ACL_LINK) in hci_conn_complete_evt()
1743 hci_proto_connect_cfm(conn, ev->status); in hci_conn_complete_evt()
1762 struct hci_ev_conn_request *ev = (void *) skb->data; in hci_conn_request_evt() local
1766 BT_DBG("%s bdaddr %pMR type 0x%x", hdev->name, &ev->bdaddr, in hci_conn_request_evt()
1767 ev->link_type); in hci_conn_request_evt()
1769 mask |= hci_proto_connect_ind(hdev, &ev->bdaddr, ev->link_type, in hci_conn_request_evt()
1773 !hci_blacklist_lookup(hdev, &ev->bdaddr)) { in hci_conn_request_evt()
1780 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); in hci_conn_request_evt()
1782 memcpy(ie->data.dev_class, ev->dev_class, 3); in hci_conn_request_evt()
1784 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, in hci_conn_request_evt()
1785 &ev->bdaddr); in hci_conn_request_evt()
1788 conn = hci_conn_add(hdev, ev->link_type, 0, &ev->bdaddr); in hci_conn_request_evt()
1796 memcpy(conn->dev_class, ev->dev_class, 3); in hci_conn_request_evt()
1800 if (ev->link_type == ACL_LINK || in hci_conn_request_evt()
1805 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_conn_request_evt()
1819 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_conn_request_evt()
1838 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_conn_request_evt()
1862 struct hci_ev_disconn_complete *ev = (void *) skb->data; in hci_disconn_complete_evt() local
1865 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_disconn_complete_evt()
1869 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_disconn_complete_evt()
1873 if (ev->status == 0) in hci_disconn_complete_evt()
1878 if (ev->status) { in hci_disconn_complete_evt()
1880 conn->dst_type, ev->status); in hci_disconn_complete_evt()
1882 u8 reason = hci_to_mgmt_reason(ev->reason); in hci_disconn_complete_evt()
1889 if (ev->status == 0) { in hci_disconn_complete_evt()
1892 hci_proto_disconn_cfm(conn, ev->reason); in hci_disconn_complete_evt()
1902 struct hci_ev_auth_complete *ev = (void *) skb->data; in hci_auth_complete_evt() local
1905 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_auth_complete_evt()
1909 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_auth_complete_evt()
1913 if (!ev->status) { in hci_auth_complete_evt()
1923 ev->status); in hci_auth_complete_evt()
1930 if (!ev->status && hci_conn_ssp_enabled(conn)) { in hci_auth_complete_evt()
1932 cp.handle = ev->handle; in hci_auth_complete_evt()
1938 hci_proto_connect_cfm(conn, ev->status); in hci_auth_complete_evt()
1942 hci_auth_cfm(conn, ev->status); in hci_auth_complete_evt()
1950 if (!ev->status) { in hci_auth_complete_evt()
1952 cp.handle = ev->handle; in hci_auth_complete_evt()
1958 hci_encrypt_cfm(conn, ev->status, 0x00); in hci_auth_complete_evt()
1968 struct hci_ev_remote_name *ev = (void *) skb->data; in hci_remote_name_evt() local
1977 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_remote_name_evt()
1982 if (ev->status == 0) in hci_remote_name_evt()
1983 hci_check_pending_name(hdev, conn, &ev->bdaddr, ev->name, in hci_remote_name_evt()
1984 strnlen(ev->name, HCI_MAX_NAME_LENGTH)); in hci_remote_name_evt()
1986 hci_check_pending_name(hdev, conn, &ev->bdaddr, NULL, 0); in hci_remote_name_evt()
2007 struct hci_ev_encrypt_change *ev = (void *) skb->data; in hci_encrypt_change_evt() local
2010 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_encrypt_change_evt()
2014 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_encrypt_change_evt()
2016 if (!ev->status) { in hci_encrypt_change_evt()
2017 if (ev->encrypt) { in hci_encrypt_change_evt()
2028 if (ev->status && conn->state == BT_CONNECTED) { in hci_encrypt_change_evt()
2035 if (!ev->status) in hci_encrypt_change_evt()
2038 hci_proto_connect_cfm(conn, ev->status); in hci_encrypt_change_evt()
2041 hci_encrypt_cfm(conn, ev->status, ev->encrypt); in hci_encrypt_change_evt()
2051 struct hci_ev_change_link_key_complete *ev = (void *) skb->data; in hci_change_link_key_complete_evt() local
2054 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_change_link_key_complete_evt()
2058 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_change_link_key_complete_evt()
2060 if (!ev->status) in hci_change_link_key_complete_evt()
2065 hci_key_change_cfm(conn, ev->status); in hci_change_link_key_complete_evt()
2074 struct hci_ev_remote_features *ev = (void *) skb->data; in hci_remote_features_evt() local
2077 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_remote_features_evt()
2081 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_remote_features_evt()
2085 if (!ev->status) in hci_remote_features_evt()
2086 memcpy(conn->features[0], ev->features, 8); in hci_remote_features_evt()
2091 if (!ev->status && lmp_ssp_capable(hdev) && lmp_ssp_capable(conn)) { in hci_remote_features_evt()
2093 cp.handle = ev->handle; in hci_remote_features_evt()
2100 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { in hci_remote_features_evt()
2113 hci_proto_connect_cfm(conn, ev->status); in hci_remote_features_evt()
2123 struct hci_ev_cmd_complete *ev = (void *) skb->data; in hci_cmd_complete_evt() local
2124 u8 status = skb->data[sizeof(*ev)]; in hci_cmd_complete_evt()
2127 skb_pull(skb, sizeof(*ev)); in hci_cmd_complete_evt()
2129 opcode = __le16_to_cpu(ev->opcode); in hci_cmd_complete_evt()
2350 if (ev->ncmd && !test_bit(HCI_RESET, &hdev->flags)) { in hci_cmd_complete_evt()
2359 struct hci_ev_cmd_status *ev = (void *) skb->data; in hci_cmd_status_evt() local
2362 skb_pull(skb, sizeof(*ev)); in hci_cmd_status_evt()
2364 opcode = __le16_to_cpu(ev->opcode); in hci_cmd_status_evt()
2368 hci_cs_inquiry(hdev, ev->status); in hci_cmd_status_evt()
2372 hci_cs_create_conn(hdev, ev->status); in hci_cmd_status_evt()
2376 hci_cs_add_sco(hdev, ev->status); in hci_cmd_status_evt()
2380 hci_cs_auth_requested(hdev, ev->status); in hci_cmd_status_evt()
2384 hci_cs_set_conn_encrypt(hdev, ev->status); in hci_cmd_status_evt()
2388 hci_cs_remote_name_req(hdev, ev->status); in hci_cmd_status_evt()
2392 hci_cs_read_remote_features(hdev, ev->status); in hci_cmd_status_evt()
2396 hci_cs_read_remote_ext_features(hdev, ev->status); in hci_cmd_status_evt()
2400 hci_cs_setup_sync_conn(hdev, ev->status); in hci_cmd_status_evt()
2404 hci_cs_sniff_mode(hdev, ev->status); in hci_cmd_status_evt()
2408 hci_cs_exit_sniff_mode(hdev, ev->status); in hci_cmd_status_evt()
2412 hci_cs_disconnect(hdev, ev->status); in hci_cmd_status_evt()
2416 hci_cs_le_create_conn(hdev, ev->status); in hci_cmd_status_evt()
2420 hci_cs_create_phylink(hdev, ev->status); in hci_cmd_status_evt()
2424 hci_cs_accept_phylink(hdev, ev->status); in hci_cmd_status_evt()
2435 if (ev->status || in hci_cmd_status_evt()
2437 hci_req_cmd_complete(hdev, opcode, ev->status); in hci_cmd_status_evt()
2439 if (ev->ncmd && !test_bit(HCI_RESET, &hdev->flags)) { in hci_cmd_status_evt()
2448 struct hci_ev_role_change *ev = (void *) skb->data; in hci_role_change_evt() local
2451 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_role_change_evt()
2455 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_role_change_evt()
2457 if (!ev->status) { in hci_role_change_evt()
2458 if (ev->role) in hci_role_change_evt()
2466 hci_role_switch_cfm(conn, ev->status, ev->role); in hci_role_change_evt()
2474 struct hci_ev_num_comp_pkts *ev = (void *) skb->data; in hci_num_comp_pkts_evt() local
2482 if (skb->len < sizeof(*ev) || skb->len < sizeof(*ev) + in hci_num_comp_pkts_evt()
2483 ev->num_hndl * sizeof(struct hci_comp_pkts_info)) { in hci_num_comp_pkts_evt()
2488 BT_DBG("%s num_hndl %d", hdev->name, ev->num_hndl); in hci_num_comp_pkts_evt()
2490 for (i = 0; i < ev->num_hndl; i++) { in hci_num_comp_pkts_evt()
2491 struct hci_comp_pkts_info *info = &ev->handles[i]; in hci_num_comp_pkts_evt()
2561 struct hci_ev_num_comp_blocks *ev = (void *) skb->data; in hci_num_comp_blocks_evt() local
2569 if (skb->len < sizeof(*ev) || skb->len < sizeof(*ev) + in hci_num_comp_blocks_evt()
2570 ev->num_hndl * sizeof(struct hci_comp_blocks_info)) { in hci_num_comp_blocks_evt()
2575 BT_DBG("%s num_blocks %d num_hndl %d", hdev->name, ev->num_blocks, in hci_num_comp_blocks_evt()
2576 ev->num_hndl); in hci_num_comp_blocks_evt()
2578 for (i = 0; i < ev->num_hndl; i++) { in hci_num_comp_blocks_evt()
2579 struct hci_comp_blocks_info *info = &ev->handles[i]; in hci_num_comp_blocks_evt()
2611 struct hci_ev_mode_change *ev = (void *) skb->data; in hci_mode_change_evt() local
2614 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_mode_change_evt()
2618 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_mode_change_evt()
2620 conn->mode = ev->mode; in hci_mode_change_evt()
2621 conn->interval = __le16_to_cpu(ev->interval); in hci_mode_change_evt()
2632 hci_sco_setup(conn, ev->status); in hci_mode_change_evt()
2640 struct hci_ev_pin_code_req *ev = (void *) skb->data; in hci_pin_code_request_evt() local
2647 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_pin_code_request_evt()
2659 sizeof(ev->bdaddr), &ev->bdaddr); in hci_pin_code_request_evt()
2668 mgmt_pin_code_request(hdev, &ev->bdaddr, secure); in hci_pin_code_request_evt()
2677 struct hci_ev_link_key_req *ev = (void *) skb->data; in hci_link_key_request_evt() local
2689 key = hci_find_link_key(hdev, &ev->bdaddr); in hci_link_key_request_evt()
2692 &ev->bdaddr); in hci_link_key_request_evt()
2697 &ev->bdaddr); in hci_link_key_request_evt()
2705 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_link_key_request_evt()
2724 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_link_key_request_evt()
2734 hci_send_cmd(hdev, HCI_OP_LINK_KEY_NEG_REPLY, 6, &ev->bdaddr); in hci_link_key_request_evt()
2740 struct hci_ev_link_key_notify *ev = (void *) skb->data; in hci_link_key_notify_evt() local
2748 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_link_key_notify_evt()
2754 if (ev->key_type != HCI_LK_CHANGED_COMBINATION) in hci_link_key_notify_evt()
2755 conn->key_type = ev->key_type; in hci_link_key_notify_evt()
2761 hci_add_link_key(hdev, conn, 1, &ev->bdaddr, ev->link_key, in hci_link_key_notify_evt()
2762 ev->key_type, pin_len); in hci_link_key_notify_evt()
2769 struct hci_ev_clock_offset *ev = (void *) skb->data; in hci_clock_offset_evt() local
2772 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_clock_offset_evt()
2776 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_clock_offset_evt()
2777 if (conn && !ev->status) { in hci_clock_offset_evt()
2782 ie->data.clock_offset = ev->clock_offset; in hci_clock_offset_evt()
2792 struct hci_ev_pkt_type_change *ev = (void *) skb->data; in hci_pkt_type_change_evt() local
2795 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_pkt_type_change_evt()
2799 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_pkt_type_change_evt()
2800 if (conn && !ev->status) in hci_pkt_type_change_evt()
2801 conn->pkt_type = __le16_to_cpu(ev->pkt_type); in hci_pkt_type_change_evt()
2808 struct hci_ev_pscan_rep_mode *ev = (void *) skb->data; in hci_pscan_rep_mode_evt() local
2815 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); in hci_pscan_rep_mode_evt()
2817 ie->data.pscan_rep_mode = ev->pscan_rep_mode; in hci_pscan_rep_mode_evt()
2887 struct hci_ev_remote_ext_features *ev = (void *) skb->data; in hci_remote_ext_features_evt() local
2894 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_remote_ext_features_evt()
2898 if (ev->page < HCI_MAX_PAGES) in hci_remote_ext_features_evt()
2899 memcpy(conn->features[ev->page], ev->features, 8); in hci_remote_ext_features_evt()
2901 if (!ev->status && ev->page == 0x01) { in hci_remote_ext_features_evt()
2906 ie->data.ssp_mode = (ev->features[0] & LMP_HOST_SSP); in hci_remote_ext_features_evt()
2908 if (ev->features[0] & LMP_HOST_SSP) { in hci_remote_ext_features_evt()
2926 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { in hci_remote_ext_features_evt()
2939 hci_proto_connect_cfm(conn, ev->status); in hci_remote_ext_features_evt()
2950 struct hci_ev_sync_conn_complete *ev = (void *) skb->data; in hci_sync_conn_complete_evt() local
2953 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_sync_conn_complete_evt()
2957 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_sync_conn_complete_evt()
2959 if (ev->link_type == ESCO_LINK) in hci_sync_conn_complete_evt()
2962 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); in hci_sync_conn_complete_evt()
2969 switch (ev->status) { in hci_sync_conn_complete_evt()
2971 conn->handle = __le16_to_cpu(ev->handle); in hci_sync_conn_complete_evt()
2995 hci_proto_connect_cfm(conn, ev->status); in hci_sync_conn_complete_evt()
2996 if (ev->status) in hci_sync_conn_complete_evt()
3054 struct hci_ev_key_refresh_complete *ev = (void *) skb->data; in hci_key_refresh_complete_evt() local
3057 BT_DBG("%s status 0x%2.2x handle 0x%4.4x", hdev->name, ev->status, in hci_key_refresh_complete_evt()
3058 __le16_to_cpu(ev->handle)); in hci_key_refresh_complete_evt()
3062 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_key_refresh_complete_evt()
3066 if (!ev->status) in hci_key_refresh_complete_evt()
3071 if (ev->status && conn->state == BT_CONNECTED) { in hci_key_refresh_complete_evt()
3078 if (!ev->status) in hci_key_refresh_complete_evt()
3081 hci_proto_connect_cfm(conn, ev->status); in hci_key_refresh_complete_evt()
3084 hci_auth_cfm(conn, ev->status); in hci_key_refresh_complete_evt()
3116 struct hci_ev_io_capa_request *ev = (void *) skb->data; in hci_io_capa_request_evt() local
3123 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_io_capa_request_evt()
3136 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_io_capa_request_evt()
3155 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_io_capa_request_evt()
3168 struct hci_ev_io_capa_reply *ev = (void *) skb->data; in hci_io_capa_reply_evt() local
3175 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_io_capa_reply_evt()
3179 conn->remote_cap = ev->capability; in hci_io_capa_reply_evt()
3180 conn->remote_auth = ev->authentication; in hci_io_capa_reply_evt()
3181 if (ev->oob_data) in hci_io_capa_reply_evt()
3191 struct hci_ev_user_confirm_req *ev = (void *) skb->data; in hci_user_confirm_request_evt() local
3202 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_user_confirm_request_evt()
3217 sizeof(ev->bdaddr), &ev->bdaddr); in hci_user_confirm_request_evt()
3244 sizeof(ev->bdaddr), &ev->bdaddr); in hci_user_confirm_request_evt()
3249 mgmt_user_confirm_request(hdev, &ev->bdaddr, ACL_LINK, 0, ev->passkey, in hci_user_confirm_request_evt()
3259 struct hci_ev_user_passkey_req *ev = (void *) skb->data; in hci_user_passkey_request_evt() local
3264 mgmt_user_passkey_request(hdev, &ev->bdaddr, ACL_LINK, 0); in hci_user_passkey_request_evt()
3270 struct hci_ev_user_passkey_notify *ev = (void *) skb->data; in hci_user_passkey_notify_evt() local
3275 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_user_passkey_notify_evt()
3279 conn->passkey_notify = __le32_to_cpu(ev->passkey); in hci_user_passkey_notify_evt()
3290 struct hci_ev_keypress_notify *ev = (void *) skb->data; in hci_keypress_notify_evt() local
3295 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_keypress_notify_evt()
3299 switch (ev->type) { in hci_keypress_notify_evt()
3329 struct hci_ev_simple_pair_complete *ev = (void *) skb->data; in hci_simple_pair_complete_evt() local
3336 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_simple_pair_complete_evt()
3345 if (!test_bit(HCI_CONN_AUTH_PEND, &conn->flags) && ev->status) in hci_simple_pair_complete_evt()
3347 ev->status); in hci_simple_pair_complete_evt()
3358 struct hci_ev_remote_host_features *ev = (void *) skb->data; in hci_remote_host_features_evt() local
3366 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); in hci_remote_host_features_evt()
3368 memcpy(conn->features[1], ev->features, 8); in hci_remote_host_features_evt()
3370 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); in hci_remote_host_features_evt()
3372 ie->data.ssp_mode = (ev->features[0] & LMP_HOST_SSP); in hci_remote_host_features_evt()
3380 struct hci_ev_remote_oob_data_request *ev = (void *) skb->data; in hci_remote_oob_data_request_evt() local
3390 data = hci_find_remote_oob_data(hdev, &ev->bdaddr); in hci_remote_oob_data_request_evt()
3394 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_remote_oob_data_request_evt()
3403 bacpy(&cp.bdaddr, &ev->bdaddr); in hci_remote_oob_data_request_evt()
3415 struct hci_ev_phy_link_complete *ev = (void *) skb->data; in hci_phy_link_complete_evt() local
3418 BT_DBG("%s handle 0x%2.2x status 0x%2.2x", hdev->name, ev->phy_handle, in hci_phy_link_complete_evt()
3419 ev->status); in hci_phy_link_complete_evt()
3423 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_phy_link_complete_evt()
3429 if (ev->status) { in hci_phy_link_complete_evt()
3453 struct hci_ev_logical_link_complete *ev = (void *) skb->data; in hci_loglink_complete_evt() local
3459 hdev->name, le16_to_cpu(ev->handle), ev->phy_handle, in hci_loglink_complete_evt()
3460 ev->status); in hci_loglink_complete_evt()
3462 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_loglink_complete_evt()
3471 hchan->handle = le16_to_cpu(ev->handle); in hci_loglink_complete_evt()
3492 struct hci_ev_disconn_logical_link_complete *ev = (void *) skb->data; in hci_disconn_loglink_complete_evt() local
3496 le16_to_cpu(ev->handle), ev->status); in hci_disconn_loglink_complete_evt()
3498 if (ev->status) in hci_disconn_loglink_complete_evt()
3503 hchan = hci_chan_lookup_handle(hdev, le16_to_cpu(ev->handle)); in hci_disconn_loglink_complete_evt()
3507 amp_destroy_logical_link(hchan, ev->reason); in hci_disconn_loglink_complete_evt()
3516 struct hci_ev_disconn_phy_link_complete *ev = (void *) skb->data; in hci_disconn_phylink_complete_evt() local
3519 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_disconn_phylink_complete_evt()
3521 if (ev->status) in hci_disconn_phylink_complete_evt()
3526 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_disconn_phylink_complete_evt()
3537 struct hci_ev_le_conn_complete *ev = (void *) skb->data; in hci_le_conn_complete_evt() local
3540 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_conn_complete_evt()
3546 conn = hci_conn_add(hdev, LE_LINK, 0, &ev->bdaddr); in hci_le_conn_complete_evt()
3552 conn->dst_type = ev->bdaddr_type; in hci_le_conn_complete_evt()
3554 if (ev->role == LE_CONN_ROLE_MASTER) { in hci_le_conn_complete_evt()
3560 if (ev->status) { in hci_le_conn_complete_evt()
3562 conn->dst_type, ev->status); in hci_le_conn_complete_evt()
3563 hci_proto_connect_cfm(conn, ev->status); in hci_le_conn_complete_evt()
3570 mgmt_device_connected(hdev, &ev->bdaddr, conn->type, in hci_le_conn_complete_evt()
3574 conn->handle = __le16_to_cpu(ev->handle); in hci_le_conn_complete_evt()
3579 hci_proto_connect_cfm(conn, ev->status); in hci_le_conn_complete_evt()
3592 struct hci_ev_le_advertising_info *ev = ptr; in hci_le_adv_report_evt() local
3594 rssi = ev->data[ev->length]; in hci_le_adv_report_evt()
3595 mgmt_device_found(hdev, &ev->bdaddr, LE_LINK, ev->bdaddr_type, in hci_le_adv_report_evt()
3596 NULL, rssi, 0, 1, ev->data, ev->length); in hci_le_adv_report_evt()
3598 ptr += sizeof(*ev) + ev->length + 1; in hci_le_adv_report_evt()
3604 struct hci_ev_le_ltk_req *ev = (void *) skb->data; in hci_le_ltk_request_evt() local
3610 BT_DBG("%s handle 0x%4.4x", hdev->name, __le16_to_cpu(ev->handle)); in hci_le_ltk_request_evt()
3614 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); in hci_le_ltk_request_evt()
3618 ltk = hci_find_ltk(hdev, ev->ediv, ev->random); in hci_le_ltk_request_evt()
3640 neg.handle = ev->handle; in hci_le_ltk_request_evt()
3671 struct hci_ev_channel_selected *ev = (void *) skb->data; in hci_chan_selected_evt() local
3674 BT_DBG("%s handle 0x%2.2x", hdev->name, ev->phy_handle); in hci_chan_selected_evt()
3676 skb_pull(skb, sizeof(*ev)); in hci_chan_selected_evt()
3678 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_chan_selected_evt()