Lines Matching refs:hci_dev_test_flag

348 	if (!hci_dev_test_flag(hdev, HCI_LE_SCAN))  in le_scan_disable()
403 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_le_scan_restart_sync()
470 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in reenable_adv_sync()
572 if (!hdev_is_powered(hdev) || hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_clear_adv_instance_sync()
695 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_cmd_sync_submit()
750 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_update_eir_sync()
753 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_eir_sync()
789 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_class_sync()
792 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_class_sync()
799 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in hci_update_class_sync()
851 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in adv_use_rpa()
855 if (!hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in adv_use_rpa()
862 hci_dev_test_flag(hdev, HCI_BONDABLE)) in adv_use_rpa()
883 if (hci_dev_test_flag(hdev, HCI_LE_ADV) || in hci_set_random_addr_sync()
965 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in hci_update_random_address_sync()
967 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in hci_update_random_address_sync()
1245 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_update_scan_rsp_data_sync()
1580 if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE) || in hci_enable_advertising_sync()
1581 hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) { in hci_enable_advertising_sync()
1608 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in hci_enable_advertising()
1739 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_update_adv_data_sync()
1754 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) && !ext_adv_capable(hdev)) in hci_schedule_adv_instance_sync()
1796 hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_schedule_adv_instance_sync()
1925 if (!hdev_is_powered(hdev) || hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_remove_advertising_sync()
1965 if (!hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_disable_advertising_sync()
1985 if (hci_dev_test_flag(hdev, HCI_MESH)) in hci_le_set_ext_scan_enable_sync()
2005 if (val && hci_dev_test_flag(hdev, HCI_MESH)) in hci_le_set_scan_enable_sync()
2020 if (val == hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION)) in hci_le_set_addr_resolution_enable_sync()
2032 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_scan_disable_sync()
2051 return hci_dev_test_flag(hdev, HCI_PRIVACY); in scan_use_rpa()
2185 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in hci_le_add_resolve_list_sync()
2222 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in hci_le_add_resolve_list_sync()
2343 old_state = hci_dev_test_flag(hdev, HCI_ADVERTISING); in hci_pause_advertising_sync()
2426 if (!hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION)) in hci_pause_addr_resolution()
2432 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_pause_addr_resolution()
2805 if (hci_dev_test_flag(hdev, HCI_PRIVACY) && in hci_passive_scan_sync()
2824 if (hci_dev_test_flag(hdev, HCI_MESH)) { in hci_passive_scan_sync()
2856 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_update_passive_scan_sync()
2857 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_update_passive_scan_sync()
2858 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in hci_update_passive_scan_sync()
2859 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_update_passive_scan_sync()
2863 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_update_passive_scan_sync()
2882 if (!hci_dev_test_flag(hdev, HCI_MESH) && in hci_update_passive_scan_sync()
2886 !hci_dev_test_flag(hdev, HCI_PA_SYNC)) { in hci_update_passive_scan_sync()
2941 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_update_passive_scan()
2942 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_update_passive_scan()
2943 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in hci_update_passive_scan()
2944 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_update_passive_scan()
2977 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED) || in hci_write_ssp_mode_sync()
2981 if (!mode && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in hci_write_ssp_mode_sync()
2998 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) || in hci_write_le_host_supported_sync()
3023 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_powered_update_adv_sync()
3031 if (!hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION)) { in hci_powered_update_adv_sync()
3040 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in hci_powered_update_adv_sync()
3052 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_powered_update_adv_sync()
3067 link_sec = hci_dev_test_flag(hdev, HCI_LINK_SECURITY); in hci_write_auth_enable_sync()
3082 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_write_fast_connectable_sync()
3149 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_scan_sync()
3161 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE) || in hci_update_scan_sync()
3167 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in hci_update_scan_sync()
3230 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in hci_powered_update_sync()
3249 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in hci_powered_update_sync()
3251 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED))) { in hci_powered_update_sync()
3375 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_unconf_init_sync()
3550 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_set_event_filter_sync()
3573 if (!hci_dev_test_flag(hdev, HCI_EVENT_FILTER_CONFIGURED)) in hci_clear_event_filter_sync()
3621 if (!lmp_ssp_capable(hdev) || !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_write_ssp_mode_1_sync()
3640 if (!lmp_ssp_capable(hdev) || hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_write_eir_sync()
4250 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_set_le_support_sync()
4452 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED) || in hci_write_sc_support_1_sync()
4467 bool enabled = hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED); in hci_set_err_data_report_sync()
4590 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_init_sync()
4624 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_init_sync()
4625 !hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_init_sync()
4683 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_dev_setup_sync()
4740 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_dev_setup_sync()
4762 if (hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_dev_init_sync()
4776 if (!hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_dev_init_sync()
4777 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_init_sync()
4789 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_init_sync()
4790 hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) && hdev->set_diag) in hci_dev_init_sync()
4793 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_init_sync()
4809 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_dev_open_sync()
4814 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_dev_open_sync()
4815 !hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_dev_open_sync()
4819 if (hci_dev_test_flag(hdev, HCI_RFKILLED)) { in hci_dev_open_sync()
4836 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_open_sync()
4868 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_dev_open_sync()
4869 !hci_dev_test_flag(hdev, HCI_CONFIG) && in hci_dev_open_sync()
4870 !hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_dev_open_sync()
4871 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_open_sync()
4872 hci_dev_test_flag(hdev, HCI_MGMT) && in hci_dev_open_sync()
4940 if (!hci_dev_test_flag(hdev, HCI_UNREGISTER) && in hci_dev_shutdown()
4994 if (hci_dev_test_flag(hdev, HCI_MGMT)) { in hci_dev_close_sync()
5015 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_close_sync()
5016 hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_close_sync()
5028 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_close_sync()
5040 !auto_off && !hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_dev_close_sync()
5094 hci_dev_test_flag(hdev, HCI_MGMT) && in hci_power_on_sync()
5108 if (hci_dev_test_flag(hdev, HCI_RFKILLED) || in hci_power_on_sync()
5109 hci_dev_test_flag(hdev, HCI_UNCONFIGURED) || in hci_power_on_sync()
5115 } else if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) { in hci_power_on_sync()
5124 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_power_on_sync()
5139 if (!hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_power_on_sync()
5179 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_stop_discovery_sync()
5510 if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in hci_write_iac_sync()
5515 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) { in hci_write_iac_sync()
5541 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_update_discoverable_sync()
5558 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in hci_update_discoverable_sync()
5566 if (hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) { in hci_update_discoverable_sync()
5586 hci_dev_test_flag(hdev, HCI_ADVERTISING) && in hci_update_discoverable()
5587 hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in hci_update_discoverable()
5588 hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in hci_update_discoverable()
5607 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_connectable_sync()
5611 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in hci_update_connectable_sync()
5634 if (hci_dev_test_flag(hdev, HCI_INQUIRY)) in hci_inquiry_sync()
5842 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_event_filter_sync()
6062 return hci_dev_test_flag(hdev, HCI_PRIVACY); in conn_use_rpa()
6257 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in hci_le_create_conn_sync()
6259 !hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)) { in hci_le_create_conn_sync()
6272 if (!hci_dev_test_flag(hdev, HCI_LE_SIMULTANEOUS_ROLES)) in hci_le_create_conn_sync()
6294 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_le_create_conn_sync()