Lines Matching refs:hci_dev_test_flag
361 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list()
374 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
375 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
376 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
386 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
421 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
434 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
435 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
436 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
446 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
493 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
494 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
495 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_ext_index_list()
505 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_ext_index_list()
544 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in is_configured()
559 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in get_missing_options()
660 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
663 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
666 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
669 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
672 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
675 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
678 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
681 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
684 if (hci_dev_test_flag(hdev, HCI_HS_ENABLED)) in get_current_settings()
687 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
690 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
693 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
696 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
711 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
712 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
850 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) && in get_current_adv_instance()
851 !hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_adv_instance()
907 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in update_inst_scan_rsp_data()
949 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in get_adv_discov_flags()
951 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_adv_discov_flags()
972 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in get_connectable()
989 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) in get_adv_instance_flags()
1054 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in create_instance_adv_data()
1097 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in update_inst_adv_data()
1191 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in update_eir()
1194 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in update_eir()
1230 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in update_class()
1233 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in update_class()
1240 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in update_class()
1268 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in enable_advertising()
1344 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1430 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_stop_discovery()
1451 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_stop_discovery()
1488 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in schedule_adv_instance()
1489 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) in schedule_adv_instance()
1530 hci_dev_test_flag(hdev, HCI_LE_ADV)) in schedule_adv_instance()
1612 hci_dev_test_flag(hdev, HCI_ADVERTISING)) in clear_adv_instance()
1636 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in clean_up_hci_state()
1792 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1802 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1878 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1879 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1912 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1925 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1944 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1945 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1984 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
2037 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in write_fast_connectable()
2122 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
2156 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
2157 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
2191 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_connectable()
2224 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_connectable()
2225 hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) in set_connectable()
2298 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
2398 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
2409 if (!cp->val && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in set_ssp()
2441 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_hs()
2507 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in le_enable_complete()
2549 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
2568 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
2573 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
2609 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le()
4178 if (hci_dev_test_flag(hdev, HCI_INQUIRY)) { in trigger_bredr_inquiry()
4206 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) { in trigger_le_scan()
4223 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in trigger_le_scan()
4282 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in trigger_discovery()
4399 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery()
4475 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
4812 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
4828 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
4829 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) || in set_advertising_complete()
4887 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
4888 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
4890 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
5042 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
5103 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
5120 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
5203 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
5213 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
5257 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
5259 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
5359 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
5363 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
5365 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
5376 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
5410 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
5411 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
5464 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
6559 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
6611 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in set_public_address()
6693 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in read_local_oob_ext_data_complete()
6831 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in read_local_oob_ext_data()
6846 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in read_local_oob_ext_data()
6863 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in read_local_oob_ext_data()
6869 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in read_local_oob_ext_data()
6871 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in read_local_oob_ext_data()
6883 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in read_local_oob_ext_data()
6891 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) { in read_local_oob_ext_data()
6903 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in read_local_oob_ext_data()
6971 instance = hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE); in read_adv_features()
7240 hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_advertising()
7332 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) { in remove_advertising()
7351 hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in remove_advertising()
7474 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
7509 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
7595 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in powered_update_hci()
7609 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in powered_update_hci()
7630 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in powered_update_hci()
7631 (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in powered_update_hci()
7632 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE))) { in powered_update_hci()
7637 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) && in powered_update_hci()
7645 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in powered_update_hci()
7647 else if (hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE) && in powered_update_hci()
7655 link_sec = hci_dev_test_flag(hdev, HCI_LINK_SECURITY); in powered_update_hci()
7661 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in powered_update_hci()
7680 if (!hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_powered()
7701 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in mgmt_powered()
7755 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in mgmt_discoverable_timeout()
7765 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in mgmt_discoverable_timeout()
8315 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in mgmt_ssp_enable_complete()
8316 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in mgmt_ssp_enable_complete()
8451 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in restart_le_scan()
8623 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in mgmt_reenable_advertising()
8624 !hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) in mgmt_reenable_advertising()