Lines Matching refs:hci_dev_test_flag

399 		    !hci_dev_test_flag(d, HCI_UNCONFIGURED))  in read_index_list()
412 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
413 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
414 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
424 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
459 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
472 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
473 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
474 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
484 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
529 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
530 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
531 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_ext_index_list()
541 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_ext_index_list()
580 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in is_configured()
596 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in get_missing_options()
811 if (!hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in get_supported_settings()
831 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
834 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
837 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
840 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
843 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
846 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
849 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
852 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
855 if (hci_dev_test_flag(hdev, HCI_HS_ENABLED)) in get_current_settings()
858 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
861 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
864 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
867 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
882 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
883 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
889 if (hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED)) in get_current_settings()
922 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
924 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
945 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in mgmt_get_connectable()
979 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1045 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in append_eir_data_to_buf()
1049 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in append_eir_data_to_buf()
1182 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in clean_up_hci_state()
1327 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1337 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1362 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in mgmt_set_discoverable_complete()
1388 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1389 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1422 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1441 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1460 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1461 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1542 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
1574 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
1575 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
1651 hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_bondable()
1652 hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_bondable()
1653 hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in set_bondable()
1689 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
1789 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
1800 if (!cp->val && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in set_ssp()
1836 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_hs()
1902 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in le_enable_complete()
1951 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
1970 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
1975 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
2011 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le()
3276 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_name_complete()
3344 if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING)) in set_local_name()
3376 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_appearance()
3687 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech()
3820 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_exp_features_info()
3896 bool changed = hci_dev_test_flag(hdev, in set_exp_feature()
3987 changed = !hci_dev_test_flag(hdev, in set_exp_feature()
3995 changed = hci_dev_test_flag(hdev, in set_exp_feature()
4688 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery_internal()
4781 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
5098 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
5125 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
5172 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in set_advertising()
5194 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
5195 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
5197 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
5356 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
5417 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
5434 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
5517 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
5527 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
5571 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
5573 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
5673 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
5677 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
5679 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
5690 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
5724 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
5725 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
5778 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
6835 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
6887 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in set_public_address()
6958 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in read_local_oob_ext_data_complete()
7096 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in read_local_oob_ext_data()
7111 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in read_local_oob_ext_data()
7128 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in read_local_oob_ext_data()
7134 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in read_local_oob_ext_data()
7136 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in read_local_oob_ext_data()
7148 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in read_local_oob_ext_data()
7156 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) { in read_local_oob_ext_data()
7168 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in read_local_oob_ext_data()
7253 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_adv_features()
7466 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in add_advertising()
7556 hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_advertising()
7637 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in remove_advertising()
7683 hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in remove_advertising()
7878 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
7913 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
7998 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __mgmt_power_off()
8579 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in mgmt_ssp_enable_complete()
8580 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in mgmt_ssp_enable_complete()
8718 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in restart_le_scan()