Searched refs:hci_dev_test_flag (Results 1 - 10 of 10) sorted by relevance

/linux-4.4.14/net/bluetooth/
H A Dmgmt.c361 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) read_index_list()
374 if (hci_dev_test_flag(d, HCI_SETUP) || read_index_list()
375 hci_dev_test_flag(d, HCI_CONFIG) || read_index_list()
376 hci_dev_test_flag(d, HCI_USER_CHANNEL)) read_index_list()
386 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { read_index_list()
421 hci_dev_test_flag(d, HCI_UNCONFIGURED)) read_unconf_index_list()
434 if (hci_dev_test_flag(d, HCI_SETUP) || read_unconf_index_list()
435 hci_dev_test_flag(d, HCI_CONFIG) || read_unconf_index_list()
436 hci_dev_test_flag(d, HCI_USER_CHANNEL)) read_unconf_index_list()
446 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { read_unconf_index_list()
493 if (hci_dev_test_flag(d, HCI_SETUP) || read_ext_index_list()
494 hci_dev_test_flag(d, HCI_CONFIG) || read_ext_index_list()
495 hci_dev_test_flag(d, HCI_USER_CHANNEL)) read_ext_index_list()
505 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) read_ext_index_list()
544 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) is_configured()
559 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) get_missing_options()
660 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) get_current_settings()
663 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) get_current_settings()
666 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) get_current_settings()
669 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) get_current_settings()
672 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) get_current_settings()
675 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) get_current_settings()
678 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) get_current_settings()
681 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) get_current_settings()
684 if (hci_dev_test_flag(hdev, HCI_HS_ENABLED)) get_current_settings()
687 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) get_current_settings()
690 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) get_current_settings()
693 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) get_current_settings()
696 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) get_current_settings()
711 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || get_current_settings()
712 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || get_current_settings()
850 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) && get_current_adv_instance()
851 !hci_dev_test_flag(hdev, HCI_ADVERTISING)) get_current_adv_instance()
907 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) update_inst_scan_rsp_data()
949 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) get_adv_discov_flags()
951 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) get_adv_discov_flags()
972 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); get_connectable()
989 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) get_adv_instance_flags()
1054 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) create_instance_adv_data()
1097 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) update_inst_adv_data()
1191 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) update_eir()
1194 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) update_eir()
1230 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) update_class()
1233 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) update_class()
1240 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) update_class()
1268 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) enable_advertising()
1344 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) rpa_expired()
1430 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { hci_stop_discovery()
1451 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { hci_stop_discovery()
1488 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || schedule_adv_instance()
1489 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) schedule_adv_instance()
1530 hci_dev_test_flag(hdev, HCI_LE_ADV)) schedule_adv_instance()
1612 hci_dev_test_flag(hdev, HCI_ADVERTISING)) clear_adv_instance()
1636 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) clean_up_hci_state()
1792 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) mgmt_bredr_support()
1802 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) mgmt_le_support()
1878 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && set_discoverable()
1879 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) set_discoverable()
1912 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { set_discoverable()
1925 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { set_discoverable()
1944 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && set_discoverable()
1945 (cp->val == 0x02) == hci_dev_test_flag(hdev, set_discoverable()
1984 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) set_discoverable()
2037 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) write_fast_connectable()
2122 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) set_connectable_update_settings()
2156 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && set_connectable()
2157 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) set_connectable()
2191 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { set_connectable()
2224 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || set_connectable()
2225 hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) set_connectable()
2298 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { set_link_security()
2398 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { set_ssp()
2409 if (!cp->val && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) set_ssp()
2441 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) set_hs()
2507 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { le_enable_complete()
2549 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { set_le()
2568 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { set_le()
2573 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { set_le()
2609 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) set_le()
4178 if (hci_dev_test_flag(hdev, HCI_INQUIRY)) { trigger_bredr_inquiry()
4206 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) { trigger_le_scan()
4223 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) trigger_le_scan()
4282 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { trigger_discovery()
4399 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { start_discovery()
4475 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { start_service_discovery()
4812 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) set_advertising_complete()
4828 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || set_advertising_complete()
4829 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) || set_advertising_complete()
4887 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && set_advertising()
4888 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || set_advertising()
4890 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && set_advertising()
5042 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && set_scan_params()
5103 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || set_fast_connectable()
5120 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { set_fast_connectable()
5203 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) set_bredr()
5213 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { set_bredr()
5257 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && set_bredr()
5259 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { set_bredr()
5359 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) set_secure_conn()
5363 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && set_secure_conn()
5365 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) set_secure_conn()
5376 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { set_secure_conn()
5410 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && set_secure_conn()
5411 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { set_secure_conn()
5464 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { set_debug_keys()
6559 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { set_external_config()
6611 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) set_public_address()
6693 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { read_local_oob_ext_data_complete()
6831 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { BIT()
6846 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && BIT()
6863 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) {
6869 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ||
6871 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) &&
6883 if (hci_dev_test_flag(hdev, HCI_ADVERTISING))
6891 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) {
6903 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED))
6971 instance = hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE); read_adv_features()
7240 hci_dev_test_flag(hdev, HCI_ADVERTISING) || add_advertising()
7332 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) { remove_advertising()
7351 hci_dev_test_flag(hdev, HCI_ADVERTISING)) { remove_advertising()
7474 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { mgmt_index_added()
7509 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { mgmt_index_removed()
7595 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && powered_update_hci()
7609 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && powered_update_hci()
7630 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && powered_update_hci()
7631 (hci_dev_test_flag(hdev, HCI_ADVERTISING) || powered_update_hci()
7632 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE))) { powered_update_hci()
7637 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) && powered_update_hci()
7645 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) powered_update_hci()
7647 else if (hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) && powered_update_hci()
7655 link_sec = hci_dev_test_flag(hdev, HCI_LINK_SECURITY); powered_update_hci()
7661 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) powered_update_hci()
7680 if (!hci_dev_test_flag(hdev, HCI_MGMT)) mgmt_powered()
7701 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) mgmt_powered()
7755 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { mgmt_discoverable_timeout()
7765 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) mgmt_discoverable_timeout()
8315 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { mgmt_ssp_enable_complete()
8316 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) mgmt_ssp_enable_complete()
8451 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) restart_le_scan()
8623 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && mgmt_reenable_advertising()
8624 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) mgmt_reenable_advertising()
H A Dhci_request.c293 if (hci_dev_test_flag(hdev, HCI_PRIVACY) && hci_req_add_le_passive_scan()
327 if (hci_dev_test_flag(hdev, HCI_LE_ADV) || set_random_addr()
347 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { hci_update_random_address()
406 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || hci_update_random_address()
408 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && hci_update_random_address()
448 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) __hci_update_page_scan()
457 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE) || __hci_update_page_scan()
466 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) __hci_update_page_scan()
493 hci_dev_test_flag(hdev, HCI_SETUP) || __hci_update_background_scan()
494 hci_dev_test_flag(hdev, HCI_CONFIG) || __hci_update_background_scan()
495 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || __hci_update_background_scan()
496 hci_dev_test_flag(hdev, HCI_UNREGISTER)) __hci_update_background_scan()
500 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) __hci_update_background_scan()
524 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) __hci_update_background_scan()
545 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) __hci_update_background_scan()
H A Dhci_core.c76 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y': 'N'; dut_mode_read()
101 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) dut_mode_write()
136 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y': 'N'; vendor_diag_read()
629 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { hci_init2_req()
668 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { hci_init2_req()
705 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { hci_set_le_support()
905 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && hci_init4_req()
922 if (hci_dev_test_flag(hdev, HCI_SETUP)) __hci_init()
956 if (!hci_dev_test_flag(hdev, HCI_SETUP) && __hci_init()
957 !hci_dev_test_flag(hdev, HCI_CONFIG)) __hci_init()
1000 if (hci_dev_test_flag(hdev, HCI_SETUP)) __hci_unconf_init()
1322 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_inquiry()
1327 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { hci_inquiry()
1337 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { hci_inquiry()
1409 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { hci_dev_do_open()
1414 if (!hci_dev_test_flag(hdev, HCI_SETUP) && hci_dev_do_open()
1415 !hci_dev_test_flag(hdev, HCI_CONFIG)) { hci_dev_do_open()
1419 if (hci_dev_test_flag(hdev, HCI_RFKILLED)) { hci_dev_do_open()
1436 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && hci_dev_do_open()
1461 if (hci_dev_test_flag(hdev, HCI_SETUP)) { hci_dev_do_open()
1485 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) hci_dev_do_open()
1489 if (hci_dev_test_flag(hdev, HCI_CONFIG)) { hci_dev_do_open()
1503 if (!hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && hci_dev_do_open()
1504 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_dev_do_open()
1516 hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) && hdev->set_diag) hci_dev_do_open()
1526 if (!hci_dev_test_flag(hdev, HCI_SETUP) && hci_dev_do_open()
1527 !hci_dev_test_flag(hdev, HCI_CONFIG) && hci_dev_do_open()
1528 !hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && hci_dev_do_open()
1529 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && hci_dev_do_open()
1584 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && hci_dev_open()
1585 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_dev_open()
1610 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && hci_dev_open()
1611 !hci_dev_test_flag(hdev, HCI_MGMT)) hci_dev_open()
1644 if (!hci_dev_test_flag(hdev, HCI_UNREGISTER) && hci_dev_do_close()
1645 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && hci_dev_do_close()
1680 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_dev_do_close()
1718 !auto_off && !hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { hci_dev_do_close()
1772 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_dev_close()
1835 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_dev_reset()
1840 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { hci_dev_reset()
1861 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_dev_reset_stat()
1866 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { hci_dev_reset_stat()
1900 if (!hci_dev_test_flag(hdev, HCI_MGMT)) hci_update_scan_state()
1907 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) hci_update_scan_state()
1927 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_dev_cmd()
1932 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { hci_dev_cmd()
1942 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { hci_dev_cmd()
2046 if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) hci_get_dev_list()
2084 if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) hci_get_dev_info()
2127 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) hci_rfkill_set_block()
2132 if (!hci_dev_test_flag(hdev, HCI_SETUP) && hci_rfkill_set_block()
2133 !hci_dev_test_flag(hdev, HCI_CONFIG)) hci_rfkill_set_block()
2165 if (hci_dev_test_flag(hdev, HCI_RFKILLED) || hci_power_on()
2166 hci_dev_test_flag(hdev, HCI_UNCONFIGURED) || hci_power_on()
2172 } else if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) { hci_power_on()
2181 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) hci_power_on()
2196 if (!hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) hci_power_on()
3185 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) le_scan_restart_work()
3218 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || hci_copy_identity_address()
3220 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && hci_copy_identity_address()
3452 !hci_dev_test_flag(hdev, HCI_SETUP) && hci_unregister_dev()
3453 !hci_dev_test_flag(hdev, HCI_CONFIG)) { hci_unregister_dev()
4027 if (!hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { __check_timeout()
4210 if (!hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { hci_sched_le()
4258 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_tx_work()
4449 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_rx_work()
H A Dhci_event.c61 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || hci_cc_inquiry_cancel()
273 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_write_local_name()
290 if (hci_dev_test_flag(hdev, HCI_SETUP) || hci_cc_read_local_name()
291 hci_dev_test_flag(hdev, HCI_CONFIG)) hci_cc_read_local_name()
317 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_write_auth_enable()
412 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_write_class_of_dev()
505 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_write_ssp_mode()
537 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !status) { hci_cc_write_sc_support()
556 if (hci_dev_test_flag(hdev, HCI_SETUP) || hci_cc_read_local_version()
557 hci_dev_test_flag(hdev, HCI_CONFIG)) { hci_cc_read_local_version()
576 if (hci_dev_test_flag(hdev, HCI_SETUP) || hci_cc_read_local_commands()
577 hci_dev_test_flag(hdev, HCI_CONFIG)) hci_cc_read_local_commands()
699 if (hci_dev_test_flag(hdev, HCI_SETUP)) hci_cc_read_bd_addr()
868 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_pin_code_reply()
894 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_pin_code_neg_reply()
953 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_user_confirm_reply()
969 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_user_confirm_neg_reply()
984 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_user_passkey_reply()
1000 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cc_user_passkey_neg_reply()
1184 else if (!hci_dev_test_flag(hdev, HCI_LE_ADV) && hci_cc_le_set_scan_enable()
1710 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_cs_remote_name_req()
2046 if (!hci_dev_test_flag(hdev, HCI_MGMT)) hci_inquiry_complete_evt()
2062 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || hci_inquiry_complete_evt()
2080 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || hci_inquiry_complete_evt()
2100 if (hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) hci_inquiry_result_evt()
2250 if (hci_dev_test_flag(hdev, HCI_MGMT) && hci_conn_request_evt()
2251 !hci_dev_test_flag(hdev, HCI_CONNECTABLE) && hci_conn_request_evt()
2488 if (!hci_dev_test_flag(hdev, HCI_MGMT)) hci_remote_name_evt()
2625 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && hci_encrypt_change_evt()
3364 if (!hci_dev_test_flag(hdev, HCI_BONDABLE) && hci_pin_code_request_evt()
3368 } else if (hci_dev_test_flag(hdev, HCI_MGMT)) { hci_pin_code_request_evt()
3424 if (!hci_dev_test_flag(hdev, HCI_MGMT)) hci_link_key_request_evt()
3498 if (!hci_dev_test_flag(hdev, HCI_MGMT)) hci_link_key_notify_evt()
3520 !hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) { hci_link_key_notify_evt()
3603 if (hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) hci_inquiry_result_with_rssi_evt()
3817 if (hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) hci_extended_inquiry_result_evt()
3835 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_extended_inquiry_result_evt()
3938 if (!hci_dev_test_flag(hdev, HCI_SC_ONLY)) bredr_oob_data_present()
3979 if (!hci_dev_test_flag(hdev, HCI_MGMT)) hci_io_capa_request_evt()
3985 if (hci_dev_test_flag(hdev, HCI_BONDABLE) || hci_io_capa_request_evt()
4011 if (!hci_dev_test_flag(hdev, HCI_BONDABLE)) hci_io_capa_request_evt()
4064 if (!hci_dev_test_flag(hdev, HCI_MGMT)) hci_user_confirm_request_evt()
4135 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_user_passkey_request_evt()
4154 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_user_passkey_notify_evt()
4192 if (hci_dev_test_flag(hdev, HCI_MGMT)) hci_keypress_notify_evt()
4261 if (!hci_dev_test_flag(hdev, HCI_MGMT)) hci_remote_oob_data_request_evt()
4278 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { hci_remote_oob_data_request_evt()
4485 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { hci_le_conn_complete_evt()
4765 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) process_adv_report()
H A Dhci_sock.c414 else if (hci_dev_test_flag(hdev, HCI_SETUP)) send_monitor_replay()
640 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) hci_sock_bound_ioctl()
643 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) hci_sock_bound_ioctl()
818 hci_dev_test_flag(hdev, HCI_SETUP) || hci_sock_bind()
819 hci_dev_test_flag(hdev, HCI_CONFIG) || hci_sock_bind()
820 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && hci_sock_bind()
1103 if (hci_dev_test_flag(hdev, HCI_SETUP) || hci_mgmt_cmd()
1104 hci_dev_test_flag(hdev, HCI_CONFIG) || hci_mgmt_cmd()
1105 hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { hci_mgmt_cmd()
1111 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && hci_mgmt_cmd()
H A Dsmp.c58 #define AUTH_REQ_MASK(dev) (hci_dev_test_flag(dev, HCI_SC_ENABLED) ? \
566 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { smp_generate_oob()
670 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { build_pairing_cmd()
678 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) build_pairing_cmd()
681 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) build_pairing_cmd()
684 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && build_pairing_cmd()
689 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { build_pairing_cmd()
776 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { smp_chan_destroy()
1120 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && smp_notify_keys()
1676 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { build_bredr_pairing_cmd()
1681 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) build_bredr_pairing_cmd()
1684 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) build_bredr_pairing_cmd()
1736 if (!hci_dev_test_flag(hdev, HCI_BONDABLE) && smp_cmd_pairing_req()
1740 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) smp_cmd_pairing_req()
1758 !hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP)) smp_cmd_pairing_req()
1864 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { sc_send_public_key()
1920 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) smp_cmd_pairing_rsp()
2024 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { fixup_sc_false_positive()
2245 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) smp_cmd_security_req()
2266 if (!hci_dev_test_flag(hdev, HCI_BONDABLE) && smp_cmd_security_req()
2298 if (!hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED)) smp_conn_security()
2333 if (hci_dev_test_flag(hcon->hdev, HCI_SC_ENABLED)) smp_conn_security()
2800 if (!hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED)) { smp_sig_channel()
2938 if (!hci_dev_test_flag(hdev, HCI_SC_ENABLED)) bredr_pairing()
2943 !hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP)) bredr_pairing()
2947 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) bredr_pairing()
3230 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP) ? 'Y': 'N'; force_bredr_smp_read()
3252 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP)) force_bredr_smp_write()
H A Dhci_debugfs.c322 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y': 'N'; use_debug_keys_read()
340 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y': 'N'; sc_only_mode_read()
756 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y': 'N'; force_static_address_read()
781 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) force_static_address_write()
H A Dhci_conn.c623 hci_dev_test_flag(d, HCI_USER_CHANNEL) || hci_get_route()
794 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { hci_connect_le()
870 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) { hci_connect_le()
881 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && hci_connect_le()
911 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { hci_connect_le()
1020 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { hci_connect_le_scan()
1078 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { hci_connect_acl()
1156 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { hci_conn_check_link_mode()
H A Dl2cap_core.c3899 if (hci_dev_test_flag(hdev, HCI_MGMT) && l2cap_connect_req()
7000 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) l2cap_conn_add()
7003 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && l2cap_conn_add()
7005 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) l2cap_conn_add()
7125 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) l2cap_chan_connect()
/linux-4.4.14/include/net/bluetooth/
H A Dhci_core.h533 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
653 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && hci_conn_ssp_enabled()
660 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && hci_conn_sc_enabled()
1138 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1140 hci_dev_test_flag(dev, HCI_SC_ENABLED))

Completed in 301 milliseconds