Lines Matching refs:status

46 	__u8 status = *((__u8 *) skb->data);  in hci_cc_inquiry_cancel()  local
48 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_inquiry_cancel()
50 if (status) in hci_cc_inquiry_cancel()
66 __u8 status = *((__u8 *) skb->data); in hci_cc_periodic_inq() local
68 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_periodic_inq()
70 if (status) in hci_cc_periodic_inq()
78 __u8 status = *((__u8 *) skb->data); in hci_cc_exit_periodic_inq() local
80 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_exit_periodic_inq()
82 if (status) in hci_cc_exit_periodic_inq()
101 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_role_discovery()
103 if (rp->status) in hci_cc_role_discovery()
120 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_link_policy()
122 if (rp->status) in hci_cc_read_link_policy()
140 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_write_link_policy()
142 if (rp->status) in hci_cc_write_link_policy()
163 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_def_link_policy()
165 if (rp->status) in hci_cc_read_def_link_policy()
174 __u8 status = *((__u8 *) skb->data); in hci_cc_write_def_link_policy() local
177 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_def_link_policy()
179 if (status) in hci_cc_write_def_link_policy()
191 __u8 status = *((__u8 *) skb->data); in hci_cc_reset() local
193 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_reset()
197 if (status) in hci_cc_reset()
227 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_stored_link_key()
233 if (!rp->status && sent->read_all == 0x01) { in hci_cc_read_stored_link_key()
244 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_delete_stored_link_key()
246 if (rp->status) in hci_cc_delete_stored_link_key()
257 __u8 status = *((__u8 *) skb->data); in hci_cc_write_local_name() local
260 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_local_name()
269 mgmt_set_local_name_complete(hdev, sent, status); in hci_cc_write_local_name()
270 else if (!status) in hci_cc_write_local_name()
280 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_name()
282 if (rp->status) in hci_cc_read_local_name()
292 __u8 status = *((__u8 *) skb->data); in hci_cc_write_auth_enable() local
295 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_auth_enable()
303 if (!status) { in hci_cc_write_auth_enable()
313 mgmt_auth_enable_complete(hdev, status); in hci_cc_write_auth_enable()
320 __u8 status = *((__u8 *) skb->data); in hci_cc_write_encrypt_mode() local
324 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_encrypt_mode()
326 if (status) in hci_cc_write_encrypt_mode()
343 __u8 status = *((__u8 *) skb->data); in hci_cc_write_scan_enable() local
347 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_scan_enable()
357 if (status) { in hci_cc_write_scan_enable()
380 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_class_of_dev()
382 if (rp->status) in hci_cc_read_class_of_dev()
393 __u8 status = *((__u8 *) skb->data); in hci_cc_write_class_of_dev() local
396 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_class_of_dev()
404 if (status == 0) in hci_cc_write_class_of_dev()
408 mgmt_set_class_of_dev_complete(hdev, sent, status); in hci_cc_write_class_of_dev()
418 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_voice_setting()
420 if (rp->status) in hci_cc_read_voice_setting()
439 __u8 status = *((__u8 *) skb->data); in hci_cc_write_voice_setting() local
443 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_voice_setting()
445 if (status) in hci_cc_write_voice_setting()
470 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_num_supported_iac()
472 if (rp->status) in hci_cc_read_num_supported_iac()
482 __u8 status = *((__u8 *) skb->data); in hci_cc_write_ssp_mode() local
485 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_ssp_mode()
493 if (!status) { in hci_cc_write_ssp_mode()
501 mgmt_ssp_enable_complete(hdev, sent->mode, status); in hci_cc_write_ssp_mode()
502 else if (!status) { in hci_cc_write_ssp_mode()
514 u8 status = *((u8 *) skb->data); in hci_cc_write_sc_support() local
517 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_sc_support()
525 if (!status) { in hci_cc_write_sc_support()
532 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !status) { in hci_cc_write_sc_support()
546 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_version()
548 if (rp->status) in hci_cc_read_local_version()
566 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_commands()
568 if (rp->status) in hci_cc_read_local_commands()
581 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_features()
583 if (rp->status) in hci_cc_read_local_features()
631 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_ext_features()
633 if (rp->status) in hci_cc_read_local_ext_features()
648 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_flow_control_mode()
650 if (rp->status) in hci_cc_read_flow_control_mode()
660 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_buffer_size()
662 if (rp->status) in hci_cc_read_buffer_size()
686 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_bd_addr()
688 if (rp->status) in hci_cc_read_bd_addr()
703 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_page_scan_activity()
705 if (rp->status) in hci_cc_read_page_scan_activity()
717 u8 status = *((u8 *) skb->data); in hci_cc_write_page_scan_activity() local
720 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_page_scan_activity()
722 if (status) in hci_cc_write_page_scan_activity()
738 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_page_scan_type()
740 if (rp->status) in hci_cc_read_page_scan_type()
750 u8 status = *((u8 *) skb->data); in hci_cc_write_page_scan_type() local
753 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_page_scan_type()
755 if (status) in hci_cc_write_page_scan_type()
768 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_data_block_size()
770 if (rp->status) in hci_cc_read_data_block_size()
794 if (rp->status) in hci_cc_read_clock()
823 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_amp_info()
825 if (rp->status) in hci_cc_read_local_amp_info()
850 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_amp_assoc()
852 if (rp->status) in hci_cc_read_local_amp_assoc()
876 a2mp_send_getampassoc_rsp(hdev, rp->status); in hci_cc_read_local_amp_assoc()
877 a2mp_send_create_phy_link_req(hdev, rp->status); in hci_cc_read_local_amp_assoc()
885 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_inq_rsp_tx_power()
887 if (rp->status) in hci_cc_read_inq_rsp_tx_power()
899 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_pin_code_reply()
904 mgmt_pin_code_reply_complete(hdev, &rp->bdaddr, rp->status); in hci_cc_pin_code_reply()
906 if (rp->status) in hci_cc_pin_code_reply()
925 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_pin_code_neg_reply()
931 rp->status); in hci_cc_pin_code_neg_reply()
941 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_buffer_size()
943 if (rp->status) in hci_cc_le_read_buffer_size()
959 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_local_features()
961 if (rp->status) in hci_cc_le_read_local_features()
972 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_adv_tx_power()
974 if (rp->status) in hci_cc_le_read_adv_tx_power()
984 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_confirm_reply()
990 rp->status); in hci_cc_user_confirm_reply()
1000 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_confirm_neg_reply()
1006 ACL_LINK, 0, rp->status); in hci_cc_user_confirm_neg_reply()
1015 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_passkey_reply()
1021 0, rp->status); in hci_cc_user_passkey_reply()
1031 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_passkey_neg_reply()
1037 ACL_LINK, 0, rp->status); in hci_cc_user_passkey_neg_reply()
1047 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_oob_data()
1055 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_oob_ext_data()
1060 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_random_addr() local
1063 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_random_addr()
1065 if (status) in hci_cc_le_set_random_addr()
1081 __u8 *sent, status = *((__u8 *) skb->data); in hci_cc_le_set_adv_enable() local
1083 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_adv_enable()
1085 if (status) in hci_cc_le_set_adv_enable()
1117 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_scan_param() local
1119 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_scan_param()
1121 if (status) in hci_cc_le_set_scan_param()
1168 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_scan_enable() local
1170 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_scan_enable()
1172 if (status) in hci_cc_le_set_scan_enable()
1238 BT_DBG("%s status 0x%2.2x size %u", hdev->name, rp->status, rp->size); in hci_cc_le_read_white_list_size()
1240 if (rp->status) in hci_cc_le_read_white_list_size()
1249 __u8 status = *((__u8 *) skb->data); in hci_cc_le_clear_white_list() local
1251 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_clear_white_list()
1253 if (status) in hci_cc_le_clear_white_list()
1263 __u8 status = *((__u8 *) skb->data); in hci_cc_le_add_to_white_list() local
1265 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_add_to_white_list()
1267 if (status) in hci_cc_le_add_to_white_list()
1282 __u8 status = *((__u8 *) skb->data); in hci_cc_le_del_from_white_list() local
1284 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_del_from_white_list()
1286 if (status) in hci_cc_le_del_from_white_list()
1302 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_supported_states()
1304 if (rp->status) in hci_cc_le_read_supported_states()
1315 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_def_data_len()
1317 if (rp->status) in hci_cc_le_read_def_data_len()
1328 __u8 status = *((__u8 *) skb->data); in hci_cc_le_write_def_data_len() local
1330 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_write_def_data_len()
1332 if (status) in hci_cc_le_write_def_data_len()
1348 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_max_data_len()
1350 if (rp->status) in hci_cc_le_read_max_data_len()
1363 __u8 status = *((__u8 *) skb->data); in hci_cc_write_le_host_supported() local
1365 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_le_host_supported()
1367 if (status) in hci_cc_write_le_host_supported()
1396 u8 status = *((u8 *) skb->data); in hci_cc_set_adv_param() local
1398 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_set_adv_param()
1400 if (status) in hci_cc_set_adv_param()
1418 hdev->name, rp->status, rp->phy_handle); in hci_cc_write_remote_amp_assoc()
1420 if (rp->status) in hci_cc_write_remote_amp_assoc()
1431 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_rssi()
1433 if (rp->status) in hci_cc_read_rssi()
1451 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_tx_power()
1453 if (rp->status) in hci_cc_read_tx_power()
1481 u8 status = *((u8 *) skb->data); in hci_cc_write_ssp_debug_mode() local
1484 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_ssp_debug_mode()
1486 if (status) in hci_cc_write_ssp_debug_mode()
1494 static void hci_cs_inquiry(struct hci_dev *hdev, __u8 status) in hci_cs_inquiry() argument
1496 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_inquiry()
1498 if (status) { in hci_cs_inquiry()
1506 static void hci_cs_create_conn(struct hci_dev *hdev, __u8 status) in hci_cs_create_conn() argument
1511 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_create_conn()
1523 if (status) { in hci_cs_create_conn()
1525 if (status != 0x0c || conn->attempt > 2) { in hci_cs_create_conn()
1527 hci_connect_cfm(conn, status); in hci_cs_create_conn()
1544 static void hci_cs_add_sco(struct hci_dev *hdev, __u8 status) in hci_cs_add_sco() argument
1550 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_add_sco()
1552 if (!status) in hci_cs_add_sco()
1571 hci_connect_cfm(sco, status); in hci_cs_add_sco()
1579 static void hci_cs_auth_requested(struct hci_dev *hdev, __u8 status) in hci_cs_auth_requested() argument
1584 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_auth_requested()
1586 if (!status) in hci_cs_auth_requested()
1598 hci_connect_cfm(conn, status); in hci_cs_auth_requested()
1606 static void hci_cs_set_conn_encrypt(struct hci_dev *hdev, __u8 status) in hci_cs_set_conn_encrypt() argument
1611 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_set_conn_encrypt()
1613 if (!status) in hci_cs_set_conn_encrypt()
1625 hci_connect_cfm(conn, status); in hci_cs_set_conn_encrypt()
1739 static void hci_cs_remote_name_req(struct hci_dev *hdev, __u8 status) in hci_cs_remote_name_req() argument
1744 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_remote_name_req()
1748 if (!status) in hci_cs_remote_name_req()
1782 static void hci_cs_read_remote_features(struct hci_dev *hdev, __u8 status) in hci_cs_read_remote_features() argument
1787 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_read_remote_features()
1789 if (!status) in hci_cs_read_remote_features()
1801 hci_connect_cfm(conn, status); in hci_cs_read_remote_features()
1809 static void hci_cs_read_remote_ext_features(struct hci_dev *hdev, __u8 status) in hci_cs_read_remote_ext_features() argument
1814 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_read_remote_ext_features()
1816 if (!status) in hci_cs_read_remote_ext_features()
1828 hci_connect_cfm(conn, status); in hci_cs_read_remote_ext_features()
1836 static void hci_cs_setup_sync_conn(struct hci_dev *hdev, __u8 status) in hci_cs_setup_sync_conn() argument
1842 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_setup_sync_conn()
1844 if (!status) in hci_cs_setup_sync_conn()
1863 hci_connect_cfm(sco, status); in hci_cs_setup_sync_conn()
1871 static void hci_cs_sniff_mode(struct hci_dev *hdev, __u8 status) in hci_cs_sniff_mode() argument
1876 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_sniff_mode()
1878 if (!status) in hci_cs_sniff_mode()
1892 hci_sco_setup(conn, status); in hci_cs_sniff_mode()
1898 static void hci_cs_exit_sniff_mode(struct hci_dev *hdev, __u8 status) in hci_cs_exit_sniff_mode() argument
1903 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_exit_sniff_mode()
1905 if (!status) in hci_cs_exit_sniff_mode()
1919 hci_sco_setup(conn, status); in hci_cs_exit_sniff_mode()
1925 static void hci_cs_disconnect(struct hci_dev *hdev, u8 status) in hci_cs_disconnect() argument
1930 if (!status) in hci_cs_disconnect()
1942 conn->dst_type, status); in hci_cs_disconnect()
1947 static void hci_cs_create_phylink(struct hci_dev *hdev, u8 status) in hci_cs_create_phylink() argument
1951 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_create_phylink()
1959 if (status) { in hci_cs_create_phylink()
1972 static void hci_cs_accept_phylink(struct hci_dev *hdev, u8 status) in hci_cs_accept_phylink() argument
1976 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_accept_phylink()
1978 if (status) in hci_cs_accept_phylink()
1988 static void hci_cs_le_create_conn(struct hci_dev *hdev, u8 status) in hci_cs_le_create_conn() argument
1993 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_le_create_conn()
1999 if (status) in hci_cs_le_create_conn()
2039 static void hci_cs_le_read_remote_features(struct hci_dev *hdev, u8 status) in hci_cs_le_read_remote_features() argument
2044 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_le_read_remote_features()
2046 if (!status) in hci_cs_le_read_remote_features()
2058 hci_connect_cfm(conn, status); in hci_cs_le_read_remote_features()
2066 static void hci_cs_le_start_enc(struct hci_dev *hdev, u8 status) in hci_cs_le_start_enc() argument
2071 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_le_start_enc()
2073 if (!status) in hci_cs_le_start_enc()
2096 static void hci_cs_switch_role(struct hci_dev *hdev, u8 status) in hci_cs_switch_role() argument
2101 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_switch_role()
2103 if (!status) in hci_cs_switch_role()
2121 __u8 status = *((__u8 *) skb->data); in hci_inquiry_complete_evt() local
2125 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_inquiry_complete_evt()
2237 if (!ev->status) { in hci_conn_complete_evt()
2283 conn->dst_type, ev->status); in hci_conn_complete_evt()
2287 hci_sco_setup(conn, ev->status); in hci_conn_complete_evt()
2289 if (ev->status) { in hci_conn_complete_evt()
2290 hci_connect_cfm(conn, ev->status); in hci_conn_complete_evt()
2293 hci_connect_cfm(conn, ev->status); in hci_conn_complete_evt()
2430 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_disconn_complete_evt()
2438 if (ev->status) { in hci_disconn_complete_evt()
2440 conn->dst_type, ev->status); in hci_disconn_complete_evt()
2504 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_auth_complete_evt()
2512 if (!ev->status) { in hci_auth_complete_evt()
2521 mgmt_auth_failed(conn, ev->status); in hci_auth_complete_evt()
2528 if (!ev->status && hci_conn_ssp_enabled(conn)) { in hci_auth_complete_evt()
2536 hci_connect_cfm(conn, ev->status); in hci_auth_complete_evt()
2540 hci_auth_cfm(conn, ev->status); in hci_auth_complete_evt()
2548 if (!ev->status) { in hci_auth_complete_evt()
2556 hci_encrypt_cfm(conn, ev->status, 0x00); in hci_auth_complete_evt()
2580 if (ev->status == 0) in hci_remote_name_evt()
2611 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_encrypt_change_evt()
2619 if (!ev->status) { in hci_encrypt_change_evt()
2642 if (ev->status && conn->type == LE_LINK) in hci_encrypt_change_evt()
2647 if (ev->status && conn->state == BT_CONNECTED) { in hci_encrypt_change_evt()
2654 if (!ev->status) in hci_encrypt_change_evt()
2669 hci_connect_cfm(conn, ev->status); in hci_encrypt_change_evt()
2672 hci_encrypt_cfm(conn, ev->status, ev->encrypt); in hci_encrypt_change_evt()
2684 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_change_link_key_complete_evt()
2690 if (!ev->status) in hci_change_link_key_complete_evt()
2695 hci_key_change_cfm(conn, ev->status); in hci_change_link_key_complete_evt()
2707 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_remote_features_evt()
2715 if (!ev->status) in hci_remote_features_evt()
2721 if (!ev->status && lmp_ext_feat_capable(hdev) && in hci_remote_features_evt()
2731 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { in hci_remote_features_evt()
2742 hci_connect_cfm(conn, ev->status); in hci_remote_features_evt()
2751 u16 *opcode, u8 *status, in hci_cmd_complete_evt() argument
2758 *status = skb->data[sizeof(*ev)]; in hci_cmd_complete_evt()
3050 hci_req_cmd_complete(hdev, *opcode, *status, req_complete, in hci_cmd_complete_evt()
3058 u16 *opcode, u8 *status, in hci_cmd_status_evt() argument
3067 *status = ev->status; in hci_cmd_status_evt()
3071 hci_cs_inquiry(hdev, ev->status); in hci_cmd_status_evt()
3075 hci_cs_create_conn(hdev, ev->status); in hci_cmd_status_evt()
3079 hci_cs_disconnect(hdev, ev->status); in hci_cmd_status_evt()
3083 hci_cs_add_sco(hdev, ev->status); in hci_cmd_status_evt()
3087 hci_cs_auth_requested(hdev, ev->status); in hci_cmd_status_evt()
3091 hci_cs_set_conn_encrypt(hdev, ev->status); in hci_cmd_status_evt()
3095 hci_cs_remote_name_req(hdev, ev->status); in hci_cmd_status_evt()
3099 hci_cs_read_remote_features(hdev, ev->status); in hci_cmd_status_evt()
3103 hci_cs_read_remote_ext_features(hdev, ev->status); in hci_cmd_status_evt()
3107 hci_cs_setup_sync_conn(hdev, ev->status); in hci_cmd_status_evt()
3111 hci_cs_create_phylink(hdev, ev->status); in hci_cmd_status_evt()
3115 hci_cs_accept_phylink(hdev, ev->status); in hci_cmd_status_evt()
3119 hci_cs_sniff_mode(hdev, ev->status); in hci_cmd_status_evt()
3123 hci_cs_exit_sniff_mode(hdev, ev->status); in hci_cmd_status_evt()
3127 hci_cs_switch_role(hdev, ev->status); in hci_cmd_status_evt()
3131 hci_cs_le_create_conn(hdev, ev->status); in hci_cmd_status_evt()
3135 hci_cs_le_read_remote_features(hdev, ev->status); in hci_cmd_status_evt()
3139 hci_cs_le_start_enc(hdev, ev->status); in hci_cmd_status_evt()
3159 if (ev->status || in hci_cmd_status_evt()
3161 hci_req_cmd_complete(hdev, *opcode, ev->status, req_complete, in hci_cmd_status_evt()
3182 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_role_change_evt()
3188 if (!ev->status) in hci_role_change_evt()
3193 hci_role_switch_cfm(conn, ev->status, ev->role); in hci_role_change_evt()
3341 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_mode_change_evt()
3358 hci_sco_setup(conn, ev->status); in hci_mode_change_evt()
3559 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_clock_offset_evt()
3564 if (conn && !ev->status) { in hci_clock_offset_evt()
3582 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_pkt_type_change_evt()
3587 if (conn && !ev->status) in hci_pkt_type_change_evt()
3692 if (!ev->status && ev->page == 0x01) { in hci_remote_ext_features_evt()
3720 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { in hci_remote_ext_features_evt()
3731 hci_connect_cfm(conn, ev->status); in hci_remote_ext_features_evt()
3745 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_sync_conn_complete_evt()
3761 switch (ev->status) { in hci_sync_conn_complete_evt()
3790 hci_connect_cfm(conn, ev->status); in hci_sync_conn_complete_evt()
3791 if (ev->status) in hci_sync_conn_complete_evt()
3871 BT_DBG("%s status 0x%2.2x handle 0x%4.4x", hdev->name, ev->status, in hci_key_refresh_complete_evt()
3886 if (!ev->status) in hci_key_refresh_complete_evt()
3891 if (ev->status && conn->state == BT_CONNECTED) { in hci_key_refresh_complete_evt()
3898 if (!ev->status) in hci_key_refresh_complete_evt()
3901 hci_connect_cfm(conn, ev->status); in hci_key_refresh_complete_evt()
3904 hci_auth_cfm(conn, ev->status); in hci_key_refresh_complete_evt()
4231 if (!test_bit(HCI_CONN_AUTH_PEND, &conn->flags) && ev->status) in hci_simple_pair_complete_evt()
4232 mgmt_auth_failed(conn, ev->status); in hci_simple_pair_complete_evt()
4323 ev->status); in hci_phy_link_complete_evt()
4333 if (ev->status) { in hci_phy_link_complete_evt()
4365 ev->status); in hci_loglink_complete_evt()
4401 le16_to_cpu(ev->handle), ev->status); in hci_disconn_loglink_complete_evt()
4403 if (ev->status) in hci_disconn_loglink_complete_evt()
4424 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_disconn_phylink_complete_evt()
4426 if (ev->status) in hci_disconn_phylink_complete_evt()
4448 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_conn_complete_evt()
4528 if (ev->status) { in hci_le_conn_complete_evt()
4529 hci_le_conn_failed(conn, ev->status); in hci_le_conn_complete_evt()
4558 if (!ev->status) { in hci_le_conn_complete_evt()
4580 hci_connect_cfm(conn, ev->status); in hci_le_conn_complete_evt()
4583 hci_connect_cfm(conn, ev->status); in hci_le_conn_complete_evt()
4608 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_conn_update_complete_evt()
4610 if (ev->status) in hci_le_conn_update_complete_evt()
4892 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_remote_feat_complete_evt()
4898 if (!ev->status) in hci_le_remote_feat_complete_evt()
4902 __u8 status; in hci_le_remote_feat_complete_evt() local
4914 !conn->out && ev->status == 0x1a) in hci_le_remote_feat_complete_evt()
4915 status = 0x00; in hci_le_remote_feat_complete_evt()
4917 status = ev->status; in hci_le_remote_feat_complete_evt()
4920 hci_connect_cfm(conn, status); in hci_le_remote_feat_complete_evt()
5189 u8 status = 0, event = hdr->evt, req_evt = 0; in hci_event_packet() local
5195 hci_req_cmd_complete(hdev, opcode, status, &req_complete, in hci_event_packet()
5253 hci_cmd_complete_evt(hdev, skb, &opcode, &status, in hci_event_packet()
5258 hci_cmd_status_evt(hdev, skb, &opcode, &status, &req_complete, in hci_event_packet()
5392 req_complete(hdev, status, opcode); in hci_event_packet()
5398 req_complete_skb(hdev, status, opcode, orig_skb); in hci_event_packet()