Lines Matching refs:hci_dev_test_flag

405 		    !hci_dev_test_flag(d, HCI_UNCONFIGURED))  in read_index_list()
418 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
419 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
420 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
430 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
465 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
478 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
479 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
480 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
490 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
535 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
536 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
537 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_ext_index_list()
547 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_ext_index_list()
586 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in is_configured()
602 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in get_missing_options()
817 if (!hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in get_supported_settings()
837 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
840 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
843 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
846 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
849 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
852 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
855 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
858 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
861 if (hci_dev_test_flag(hdev, HCI_HS_ENABLED)) in get_current_settings()
864 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
867 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
870 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
873 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
888 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
889 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
895 if (hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED)) in get_current_settings()
928 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
930 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
951 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in mgmt_get_connectable()
985 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1051 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in append_eir_data_to_buf()
1055 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in append_eir_data_to_buf()
1188 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in clean_up_hci_state()
1333 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1343 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1368 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in mgmt_set_discoverable_complete()
1394 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1395 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1428 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1447 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1466 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1467 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1548 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
1580 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
1581 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
1657 hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_bondable()
1658 hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_bondable()
1659 hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in set_bondable()
1695 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
1795 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
1806 if (!cp->val && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in set_ssp()
1842 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_hs()
1908 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in le_enable_complete()
1957 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
1976 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
1981 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
2017 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le()
3282 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_name_complete()
3350 if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING)) in set_local_name()
3382 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_appearance()
3693 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech()
3856 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_exp_features_info()
3867 if (hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)) in read_exp_features_info()
3878 if (hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) in read_exp_features_info()
3970 bool changed = hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY); in set_zero_key_func()
4068 changed = !hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY); in set_rpa_resolution_func()
4075 changed = hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY); in set_rpa_resolution_func()
4126 changed = (val != hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)); in set_quality_report_func()
4206 changed = (val != hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)); in set_offload_codec_func()
5136 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery_internal()
5229 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
5554 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
5581 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
5628 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in set_advertising()
5650 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
5651 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
5653 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
5812 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
5873 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
5890 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
5973 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
5983 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
6027 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
6029 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
6129 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
6133 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
6135 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
6146 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
6180 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
6181 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
6234 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
7291 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
7343 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in set_public_address()
7414 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in read_local_oob_ext_data_complete()
7557 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in read_local_oob_ext_data()
7572 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in read_local_oob_ext_data()
7589 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in read_local_oob_ext_data()
7595 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in read_local_oob_ext_data()
7597 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in read_local_oob_ext_data()
7609 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in read_local_oob_ext_data()
7617 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) { in read_local_oob_ext_data()
7629 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in read_local_oob_ext_data()
7719 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_adv_features()
7958 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in add_advertising()
8043 hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_advertising()
8357 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_ext_adv_data()
8455 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in remove_advertising()
8501 hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in remove_advertising()
8703 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
8738 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
8823 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __mgmt_power_off()
9408 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in mgmt_ssp_enable_complete()
9409 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in mgmt_ssp_enable_complete()
9547 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in restart_le_scan()