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()
874 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
877 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
880 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
883 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
886 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
889 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
892 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
895 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
898 if (hci_dev_test_flag(hdev, HCI_HS_ENABLED)) in get_current_settings()
901 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
904 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
907 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
910 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
925 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
926 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
932 if (hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED)) in get_current_settings()
958 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
960 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
981 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in mgmt_get_connectable()
1024 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1106 if (!hci_dev_test_flag(hdev, HCI_MESH_SENDING)) in mesh_send_done()
1114 if (hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_init_hdev()
1169 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in append_eir_data_to_buf()
1173 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in append_eir_data_to_buf()
1466 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1476 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1502 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in mgmt_set_discoverable_complete()
1533 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1534 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1567 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1586 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1605 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1606 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1691 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
1730 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
1731 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
1843 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
2010 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
2056 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_hs()
2127 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le_sync()
2143 if (!err && hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le_sync()
2209 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in set_mesh()
2329 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_features()
2335 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mesh_features()
2384 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_send_cancel()
2388 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mesh_send_cancel()
2420 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_send()
2423 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) || in mesh_send()
2442 sending = hci_dev_test_flag(hdev, HCI_MESH_SENDING); in mesh_send()
2498 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
2514 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
2519 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
3814 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_name_complete()
3831 if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING)) in set_name_sync()
3925 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_appearance()
4249 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech()
4415 if (hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)) in read_exp_features_info()
4426 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_exp_features_info()
4438 if (hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)) in read_exp_features_info()
4449 if (hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) in read_exp_features_info()
4467 if (hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in read_exp_features_info()
4768 changed = (val != hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)); in set_quality_report_func()
4840 changed = (val != hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)); in set_offload_codec_func()
4898 changed = (val != hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)); in set_le_simultaneous_roles_func()
5916 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery_internal()
6005 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
6350 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
6366 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
6452 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
6453 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
6454 hci_dev_test_flag(hdev, HCI_MESH) || in set_advertising()
6456 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
6588 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
6638 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
6651 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
6738 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
6748 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
6792 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
6794 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
6888 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
6892 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
6894 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
6905 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
6933 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
6934 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
6987 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
7987 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
8039 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in set_public_address()
8119 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in read_local_oob_ext_data_complete()
8259 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in read_local_oob_ext_data()
8274 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in read_local_oob_ext_data()
8291 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in read_local_oob_ext_data()
8297 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in read_local_oob_ext_data()
8299 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in read_local_oob_ext_data()
8311 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in read_local_oob_ext_data()
8319 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) { in read_local_oob_ext_data()
8331 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in read_local_oob_ext_data()
8741 hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_advertising()
9065 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || !schedule_instance) { in add_ext_adv_data()
9373 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
9408 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
9431 if (!hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_index_removed()
9475 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __mgmt_power_off()
10137 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in restart_le_scan()
10376 if (hci_dev_test_flag(hdev, HCI_MESH) && link_type == LE_LINK) in mgmt_device_found()