Lines Matching refs:hci_dev_test_flag

396 		    !hci_dev_test_flag(d, HCI_UNCONFIGURED))  in read_index_list()
409 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
410 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
411 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
421 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
456 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
469 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
470 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
471 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
481 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
526 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
527 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
528 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_ext_index_list()
538 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_ext_index_list()
577 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in is_configured()
593 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in get_missing_options()
808 if (!hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in get_supported_settings()
828 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
831 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
834 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
837 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
840 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
843 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
846 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
849 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
852 if (hci_dev_test_flag(hdev, HCI_HS_ENABLED)) in get_current_settings()
855 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
858 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
861 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
864 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
879 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
880 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
886 if (hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED)) in get_current_settings()
919 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
921 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
942 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in mgmt_get_connectable()
976 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1042 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in append_eir_data_to_buf()
1046 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in append_eir_data_to_buf()
1179 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in clean_up_hci_state()
1324 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1334 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1359 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in mgmt_set_discoverable_complete()
1385 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1386 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1419 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1438 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1457 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1458 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1539 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
1571 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
1572 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
1648 hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_bondable()
1649 hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_bondable()
1650 hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in set_bondable()
1686 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
1786 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
1797 if (!cp->val && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in set_ssp()
1833 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_hs()
1899 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in le_enable_complete()
1948 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
1967 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
1972 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
2008 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le()
3273 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_name_complete()
3341 if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING)) in set_local_name()
3373 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_appearance()
3684 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech()
3817 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_exp_features_info()
3893 bool changed = hci_dev_test_flag(hdev, in set_exp_feature()
3984 changed = !hci_dev_test_flag(hdev, in set_exp_feature()
3992 changed = hci_dev_test_flag(hdev, in set_exp_feature()
4683 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery_internal()
4776 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
5093 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
5120 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
5167 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in set_advertising()
5189 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
5190 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
5192 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
5351 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
5412 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
5429 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
5512 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
5522 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
5566 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
5568 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
5668 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
5672 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
5674 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
5685 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
5719 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
5720 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
5773 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
6830 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
6882 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in set_public_address()
6953 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in read_local_oob_ext_data_complete()
7091 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in read_local_oob_ext_data()
7106 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in read_local_oob_ext_data()
7123 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in read_local_oob_ext_data()
7129 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in read_local_oob_ext_data()
7131 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in read_local_oob_ext_data()
7143 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in read_local_oob_ext_data()
7151 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) { in read_local_oob_ext_data()
7163 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in read_local_oob_ext_data()
7248 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_adv_features()
7458 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in add_advertising()
7548 hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_advertising()
7629 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in remove_advertising()
7675 hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in remove_advertising()
7870 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
7905 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
7990 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __mgmt_power_off()
8571 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in mgmt_ssp_enable_complete()
8572 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in mgmt_ssp_enable_complete()
8710 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in restart_le_scan()