Lines Matching refs:hci_dev_test_flag
346 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_disable()
401 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_le_scan_restart_sync()
473 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in reenable_adv_sync()
575 if (!hdev_is_powered(hdev) || hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_clear_adv_instance_sync()
689 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_cmd_sync_queue()
722 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_update_eir_sync()
725 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_eir_sync()
761 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_class_sync()
764 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_class_sync()
771 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in hci_update_class_sync()
823 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in adv_use_rpa()
827 if (!hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in adv_use_rpa()
834 hci_dev_test_flag(hdev, HCI_BONDABLE)) in adv_use_rpa()
855 if (hci_dev_test_flag(hdev, HCI_LE_ADV) || in hci_set_random_addr_sync()
937 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in hci_update_random_address_sync()
939 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in hci_update_random_address_sync()
1217 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_update_scan_rsp_data_sync()
1292 if (!hci_dev_test_flag(hdev, HCI_LE_PER_ADV)) in hci_disable_per_advertising_sync()
1359 if (hci_dev_test_flag(hdev, HCI_LE_PER_ADV)) in hci_enable_per_advertising_sync()
1551 if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE) || in hci_enable_advertising_sync()
1552 hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) { in hci_enable_advertising_sync()
1579 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in hci_enable_advertising()
1710 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_update_adv_data_sync()
1725 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) && !ext_adv_capable(hdev)) in hci_schedule_adv_instance_sync()
1767 hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_schedule_adv_instance_sync()
1896 if (!hdev_is_powered(hdev) || hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_remove_advertising_sync()
1936 if (!hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_disable_advertising_sync()
1956 if (hci_dev_test_flag(hdev, HCI_MESH)) in hci_le_set_ext_scan_enable_sync()
1976 if (val && hci_dev_test_flag(hdev, HCI_MESH)) in hci_le_set_scan_enable_sync()
1991 if (val == hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION)) in hci_le_set_addr_resolution_enable_sync()
2003 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_scan_disable_sync()
2022 return hci_dev_test_flag(hdev, HCI_PRIVACY); in scan_use_rpa()
2148 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in hci_le_add_resolve_list_sync()
2175 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in hci_le_add_resolve_list_sync()
2294 old_state = hci_dev_test_flag(hdev, HCI_ADVERTISING); in hci_pause_advertising_sync()
2663 if (hci_dev_test_flag(hdev, HCI_PRIVACY) && in hci_passive_scan_sync()
2682 if (hci_dev_test_flag(hdev, HCI_MESH)) { in hci_passive_scan_sync()
2714 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_update_passive_scan_sync()
2715 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_update_passive_scan_sync()
2716 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in hci_update_passive_scan_sync()
2717 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_update_passive_scan_sync()
2721 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_update_passive_scan_sync()
2740 if (!hci_dev_test_flag(hdev, HCI_MESH) && in hci_update_passive_scan_sync()
2744 !hci_dev_test_flag(hdev, HCI_PA_SYNC)) { in hci_update_passive_scan_sync()
2799 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_update_passive_scan()
2800 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_update_passive_scan()
2801 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in hci_update_passive_scan()
2802 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_update_passive_scan()
2835 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED) || in hci_write_ssp_mode_sync()
2839 if (!mode && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in hci_write_ssp_mode_sync()
2856 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) || in hci_write_le_host_supported_sync()
2881 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_powered_update_adv_sync()
2889 if (!hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION)) { in hci_powered_update_adv_sync()
2898 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in hci_powered_update_adv_sync()
2910 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_powered_update_adv_sync()
2925 link_sec = hci_dev_test_flag(hdev, HCI_LINK_SECURITY); in hci_write_auth_enable_sync()
2940 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_write_fast_connectable_sync()
3007 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_scan_sync()
3019 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE) || in hci_update_scan_sync()
3025 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in hci_update_scan_sync()
3087 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in hci_powered_update_sync()
3215 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_unconf_init_sync()
3388 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_set_event_filter_sync()
3411 if (!hci_dev_test_flag(hdev, HCI_EVENT_FILTER_CONFIGURED)) in hci_clear_event_filter_sync()
3459 if (!lmp_ssp_capable(hdev) || !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_write_ssp_mode_1_sync()
3478 if (!lmp_ssp_capable(hdev) || hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_write_eir_sync()
4084 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_set_le_support_sync()
4286 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED) || in hci_write_sc_support_1_sync()
4301 bool enabled = hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED); in hci_set_err_data_report_sync()
4404 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_init_sync()
4438 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_init_sync()
4439 !hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_init_sync()
4488 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_dev_setup_sync()
4553 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_dev_setup_sync()
4575 if (hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_dev_init_sync()
4589 if (!hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_dev_init_sync()
4590 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_init_sync()
4602 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_init_sync()
4603 hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) && hdev->set_diag) in hci_dev_init_sync()
4606 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_init_sync()
4622 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_dev_open_sync()
4627 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_dev_open_sync()
4628 !hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_dev_open_sync()
4632 if (hci_dev_test_flag(hdev, HCI_RFKILLED)) { in hci_dev_open_sync()
4649 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_open_sync()
4679 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_dev_open_sync()
4680 !hci_dev_test_flag(hdev, HCI_CONFIG) && in hci_dev_open_sync()
4681 !hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_dev_open_sync()
4682 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_open_sync()
4683 hci_dev_test_flag(hdev, HCI_MGMT) && in hci_dev_open_sync()
4750 if (!hci_dev_test_flag(hdev, HCI_UNREGISTER) && in hci_dev_shutdown()
4804 if (hci_dev_test_flag(hdev, HCI_MGMT)) { in hci_dev_close_sync()
4825 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_close_sync()
4826 hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_close_sync()
4838 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_close_sync()
4850 !auto_off && !hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_dev_close_sync()
4903 hci_dev_test_flag(hdev, HCI_MGMT) && in hci_power_on_sync()
4917 if (hci_dev_test_flag(hdev, HCI_RFKILLED) || in hci_power_on_sync()
4918 hci_dev_test_flag(hdev, HCI_UNCONFIGURED) || in hci_power_on_sync()
4924 } else if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) { in hci_power_on_sync()
4933 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_power_on_sync()
4948 if (!hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_power_on_sync()
4988 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_stop_discovery_sync()
5211 if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in hci_write_iac_sync()
5216 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) { in hci_write_iac_sync()
5242 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_update_discoverable_sync()
5259 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in hci_update_discoverable_sync()
5267 if (hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) { in hci_update_discoverable_sync()
5287 hci_dev_test_flag(hdev, HCI_ADVERTISING) && in hci_update_discoverable()
5288 hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in hci_update_discoverable()
5289 hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in hci_update_discoverable()
5308 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_connectable_sync()
5312 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in hci_update_connectable_sync()
5335 if (hci_dev_test_flag(hdev, HCI_INQUIRY)) in hci_inquiry_sync()
5381 if (use_ll_privacy(hdev) && hci_dev_test_flag(hdev, HCI_PRIVACY)) { in hci_active_scan_sync()
5558 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_event_filter_sync()
5778 return hci_dev_test_flag(hdev, HCI_PRIVACY); in conn_use_rpa()
5974 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in hci_le_create_conn_sync()
5976 !hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)) { in hci_le_create_conn_sync()
5989 if (!hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)) in hci_le_create_conn_sync()
6011 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_le_create_conn_sync()