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()
867 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
870 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
873 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
876 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
879 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
882 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
885 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
888 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
891 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
894 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
897 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
900 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
915 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
916 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
922 if (hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED)) in get_current_settings()
963 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
965 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
986 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in mgmt_get_connectable()
1029 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1114 if (!hci_dev_test_flag(hdev, HCI_MESH_SENDING)) in mesh_send_done()
1122 if (hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_init_hdev()
1177 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in append_eir_data_to_buf()
1181 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in append_eir_data_to_buf()
1389 if (hci_dev_test_flag(hdev, HCI_POWERING_DOWN)) { in set_powered()
1495 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1505 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1532 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in mgmt_set_discoverable_complete()
1563 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1564 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1597 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1616 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1635 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1636 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1721 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
1760 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
1761 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
1873 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
2028 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
2092 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le_sync()
2108 if (!err && hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le_sync()
2178 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in set_mesh()
2315 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_features()
2321 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mesh_features()
2370 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_send_cancel()
2374 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mesh_send_cancel()
2406 !hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in mesh_send()
2409 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) || in mesh_send()
2428 sending = hci_dev_test_flag(hdev, HCI_MESH_SENDING); in mesh_send()
2484 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
2500 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
2505 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
3885 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_name_complete()
3902 if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING)) in set_name_sync()
3996 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_appearance()
4321 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech()
4481 if (hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)) in read_exp_features_info()
4493 if (hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)) in read_exp_features_info()
4504 if (hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) in read_exp_features_info()
4522 if (hci_dev_test_flag(hdev, HCI_MESH_EXPERIMENTAL)) in read_exp_features_info()
4721 changed = (val != hci_dev_test_flag(hdev, HCI_QUALITY_REPORT)); in set_quality_report_func()
4793 changed = (val != hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)); in set_offload_codec_func()
4851 changed = (val != hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)); in set_le_simultaneous_roles_func()
5826 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery_internal()
5915 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
6244 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
6260 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
6346 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
6347 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
6348 hci_dev_test_flag(hdev, HCI_MESH) || in set_advertising()
6350 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
6483 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
6533 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
6546 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
6633 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
6643 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
6686 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
6688 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
6782 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
6786 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
6788 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
6799 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
6827 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
6828 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
6881 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
7956 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
8008 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in set_public_address()
8089 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in read_local_oob_ext_data_complete()
8229 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in read_local_oob_ext_data()
8244 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in read_local_oob_ext_data()
8261 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in read_local_oob_ext_data()
8267 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in read_local_oob_ext_data()
8269 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in read_local_oob_ext_data()
8281 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in read_local_oob_ext_data()
8289 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) { in read_local_oob_ext_data()
8301 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in read_local_oob_ext_data()
8711 hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_advertising()
9034 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || !schedule_instance) { in add_ext_adv_data()
9342 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
9368 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
9384 if (!hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_index_removed()
9430 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __mgmt_power_off()
9683 if (hci_dev_test_flag(hdev, HCI_POWERING_DOWN)) in mgmt_powering_down()
9996 if (hci_dev_test_flag(hdev, HCI_POWERING_DOWN)) in mgmt_set_local_name_complete()
10300 if (hci_dev_test_flag(hdev, HCI_MESH) && link_type == LE_LINK) in mgmt_device_found()