Lines Matching refs:hci_dev_test_flag
447 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list()
460 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
461 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
462 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
472 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
507 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
520 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
521 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
522 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
532 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
577 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
578 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
579 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_ext_index_list()
589 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_ext_index_list()
628 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in is_configured()
644 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in get_missing_options()
880 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
883 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
886 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
889 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
892 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
895 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
898 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
901 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
904 if (hci_dev_test_flag(hdev, HCI_HS_ENABLED)) in get_current_settings()
907 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
910 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
913 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
916 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
931 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
932 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
938 if (hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED)) in get_current_settings()
970 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
972 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
993 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in mgmt_get_connectable()
1036 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1118 if (!hci_dev_test_flag(hdev, HCI_MESH_SENDING)) in mesh_send_done()
1126 if (hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_init_hdev()
1181 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in append_eir_data_to_buf()
1185 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in append_eir_data_to_buf()
1478 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1488 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1514 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in mgmt_set_discoverable_complete()
1545 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1546 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1579 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1598 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1617 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1618 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1703 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
1742 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
1743 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
1855 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
2022 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
2068 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_hs()
2139 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le_sync()
2155 if (!err && hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le_sync()
2221 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in set_mesh()
2341 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_features()
2347 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mesh_features()
2396 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_send_cancel()
2400 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mesh_send_cancel()
2432 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_send()
2435 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) || in mesh_send()
2454 sending = hci_dev_test_flag(hdev, HCI_MESH_SENDING); in mesh_send()
2510 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
2526 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
2531 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
3826 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_name_complete()
3843 if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING)) in set_name_sync()
3937 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_appearance()
4261 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech()
4427 if (hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)) in read_exp_features_info()
4438 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_exp_features_info()
4450 if (hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)) in read_exp_features_info()
4461 if (hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) in read_exp_features_info()
4479 if (hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in read_exp_features_info()
4780 changed = (val != hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)); in set_quality_report_func()
4852 changed = (val != hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)); in set_offload_codec_func()
4910 changed = (val != hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)); in set_le_simultaneous_roles_func()
5928 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery_internal()
6017 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
6362 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
6378 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
6464 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
6465 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
6466 hci_dev_test_flag(hdev, HCI_MESH) || in set_advertising()
6468 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
6600 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
6650 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
6663 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
6750 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
6760 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
6804 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
6806 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
6900 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
6904 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
6906 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
6917 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
6945 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
6946 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
6999 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
7998 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
8050 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in set_public_address()
8130 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in read_local_oob_ext_data_complete()
8270 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in read_local_oob_ext_data()
8285 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in read_local_oob_ext_data()
8302 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in read_local_oob_ext_data()
8308 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in read_local_oob_ext_data()
8310 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in read_local_oob_ext_data()
8322 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in read_local_oob_ext_data()
8330 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) { in read_local_oob_ext_data()
8342 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in read_local_oob_ext_data()
8752 hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_advertising()
9076 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || !schedule_instance) { in add_ext_adv_data()
9384 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
9419 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
9442 if (!hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_index_removed()
9486 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __mgmt_power_off()
10148 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in restart_le_scan()
10387 if (hci_dev_test_flag(hdev, HCI_MESH) && link_type == LE_LINK) in mgmt_device_found()