Lines Matching refs:hci_dev_test_flag

353 		    !hci_dev_test_flag(d, HCI_UNCONFIGURED))  in read_index_list()
366 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
367 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
368 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
378 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
413 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
426 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
427 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
428 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
438 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
485 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
486 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
487 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_ext_index_list()
497 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_ext_index_list()
536 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in is_configured()
551 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in get_missing_options()
652 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
655 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
658 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
661 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
664 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
667 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
670 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
673 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
676 if (hci_dev_test_flag(hdev, HCI_HS_ENABLED)) in get_current_settings()
679 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
682 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
685 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
688 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
703 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
704 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
879 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in update_scan_rsp_data_for_instance()
911 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) && in update_scan_rsp_data()
912 !hci_dev_test_flag(hdev, HCI_ADVERTISING)) in update_scan_rsp_data()
935 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in get_adv_discov_flags()
937 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_adv_discov_flags()
951 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) && in get_current_adv_instance()
952 !hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_adv_instance()
972 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in get_connectable()
991 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) in get_adv_instance_flags()
1030 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in create_instance_adv_data()
1074 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in update_adv_data_for_instance()
1171 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in update_eir()
1174 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in update_eir()
1210 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in update_class()
1213 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in update_class()
1220 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in update_class()
1248 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in enable_advertising()
1324 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1410 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_stop_discovery()
1431 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_stop_discovery()
1466 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) in clear_adv_instance()
1477 hci_dev_test_flag(hdev, HCI_ADVERTISING)) in clear_adv_instance()
1503 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in clean_up_hci_state()
1686 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1696 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1772 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1773 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1806 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1819 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1838 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1839 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1878 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1931 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in write_fast_connectable()
2016 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
2050 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
2051 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
2085 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_connectable()
2118 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_connectable()
2119 hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) in set_connectable()
2192 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
2292 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
2303 if (!cp->val && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in set_ssp()
2335 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_hs()
2401 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in le_enable_complete()
2443 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
2459 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
2464 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
2500 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le()
4055 if (hci_dev_test_flag(hdev, HCI_INQUIRY)) { in trigger_bredr_inquiry()
4083 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) { in trigger_le_scan()
4099 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in trigger_le_scan()
4158 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in trigger_discovery()
4275 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery()
4351 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
4685 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
4701 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
4702 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) in set_advertising_complete()
4747 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
4748 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
4750 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
4897 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
4958 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
4975 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
5058 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
5068 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
5112 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
5114 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
5214 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
5218 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
5220 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
5231 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
5265 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
5266 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
5319 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
6389 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
6441 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in set_public_address()
6523 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in read_local_oob_ext_data_complete()
6661 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in read_local_oob_ext_data()
6676 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in read_local_oob_ext_data()
6693 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in read_local_oob_ext_data()
6699 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in read_local_oob_ext_data()
6701 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in read_local_oob_ext_data()
6713 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in read_local_oob_ext_data()
6721 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) { in read_local_oob_ext_data()
6733 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in read_local_oob_ext_data()
6803 instance = hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE); in read_adv_features()
7016 hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in add_advertising()
7105 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) { in remove_advertising()
7124 hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in remove_advertising()
7250 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
7285 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
7370 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in powered_update_hci()
7384 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in powered_update_hci()
7405 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in powered_update_hci()
7410 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in powered_update_hci()
7411 hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) in powered_update_hci()
7417 link_sec = hci_dev_test_flag(hdev, HCI_LINK_SECURITY); in powered_update_hci()
7423 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in powered_update_hci()
7442 if (!hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_powered()
7463 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in mgmt_powered()
7517 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in mgmt_discoverable_timeout()
7527 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in mgmt_discoverable_timeout()
8086 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in mgmt_ssp_enable_complete()
8087 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in mgmt_ssp_enable_complete()
8222 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in restart_le_scan()
8393 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in mgmt_reenable_advertising()
8394 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) in mgmt_reenable_advertising()