Lines Matching refs:hci_dev_test_flag

446 		if (!hci_dev_test_flag(d, HCI_UNCONFIGURED))  in read_index_list()
459 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
460 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
461 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
470 if (!hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
504 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
517 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
518 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
519 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
528 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
571 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
572 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
573 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_ext_index_list()
582 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_ext_index_list()
616 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in is_configured()
632 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in get_missing_options()
866 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
869 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
872 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
875 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
878 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
881 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
884 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
887 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
890 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
893 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
896 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
899 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
914 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
915 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
921 if (hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED)) in get_current_settings()
959 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
961 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
982 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in mgmt_get_connectable()
1025 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1109 if (!hci_dev_test_flag(hdev, HCI_MESH_SENDING)) in mesh_send_done()
1117 if (hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_init_hdev()
1172 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in append_eir_data_to_buf()
1176 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in append_eir_data_to_buf()
1384 if (hci_dev_test_flag(hdev, HCI_POWERING_DOWN)) { in set_powered()
1497 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1507 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1534 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in mgmt_set_discoverable_complete()
1565 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1566 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1599 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1618 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1637 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1638 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1723 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
1762 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
1763 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
1875 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
2030 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
2094 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le_sync()
2110 if (!err && hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le_sync()
2176 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in set_mesh()
2296 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_features()
2302 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mesh_features()
2351 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_send_cancel()
2355 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mesh_send_cancel()
2387 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_send()
2390 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) || in mesh_send()
2409 sending = hci_dev_test_flag(hdev, HCI_MESH_SENDING); in mesh_send()
2465 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
2481 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
2486 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
3864 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_name_complete()
3881 if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING)) in set_name_sync()
3975 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_appearance()
4300 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech()
4460 if (hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)) in read_exp_features_info()
4472 if (hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)) in read_exp_features_info()
4483 if (hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) in read_exp_features_info()
4501 if (hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in read_exp_features_info()
4700 changed = (val != hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)); in set_quality_report_func()
4772 changed = (val != hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)); in set_offload_codec_func()
4830 changed = (val != hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)); in set_le_simultaneous_roles_func()
5843 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery_internal()
5932 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
6278 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
6294 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
6380 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
6381 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
6382 hci_dev_test_flag(hdev, HCI_MESH) || in set_advertising()
6384 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
6516 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
6566 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
6579 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
6666 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
6676 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
6719 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
6721 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
6815 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
6819 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
6821 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
6832 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
6860 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
6861 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
6914 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
7986 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
8038 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()
9064 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || !schedule_instance) { in add_ext_adv_data()
9372 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
9398 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
9414 if (!hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_index_removed()
9458 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __mgmt_power_off()
9712 if (hci_dev_test_flag(hdev, HCI_POWERING_DOWN)) in mgmt_powering_down()
10022 if (hci_dev_test_flag(hdev, HCI_POWERING_DOWN)) in mgmt_set_local_name_complete()
10326 if (hci_dev_test_flag(hdev, HCI_MESH) && link_type == LE_LINK) in mgmt_device_found()