Lines Matching refs:hci_dev_test_flag

359 	if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED))  in __hci_req_write_fast_connectable()
450 hci_dev_test_flag(hdev, HCI_SETUP) || in __hci_update_background_scan()
451 hci_dev_test_flag(hdev, HCI_CONFIG) || in __hci_update_background_scan()
452 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in __hci_update_background_scan()
453 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __hci_update_background_scan()
457 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_update_background_scan()
485 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
506 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
693 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in __hci_req_update_eir()
696 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in __hci_req_update_eir()
740 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in hci_req_add_le_scan_disable()
741 hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION) && !rpa_le_conn) { in hci_req_add_le_scan_disable()
761 hci_dev_test_flag(req->hdev, HCI_ENABLE_LL_PRIVACY)) { in del_from_accept_list()
796 !hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in add_to_accept_list()
815 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) { in add_to_accept_list()
827 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in add_to_accept_list()
855 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in update_accept_list()
882 !hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in update_accept_list()
930 return hci_dev_test_flag(hdev, HCI_PRIVACY); in scan_use_rpa()
945 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in hci_req_start_scan()
1096 if (hci_dev_test_flag(hdev, HCI_PRIVACY) && in hci_req_add_le_passive_scan()
1160 if (!hci_dev_test_flag(req->hdev, HCI_BREDR_ENABLED)) in hci_req_clear_event_filter()
1163 if (hci_dev_test_flag(req->hdev, HCI_EVENT_FILTER_CONFIGURED)) { in hci_req_clear_event_filter()
1178 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_req_set_event_filter()
1335 old_state = hci_dev_test_flag(hdev, HCI_ADVERTISING); in hci_req_prepare_suspend()
1359 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_req_prepare_suspend()
1474 if (hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) in get_adv_instance_flags()
1477 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in get_adv_instance_flags()
1479 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_adv_instance_flags()
1497 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in adv_use_rpa()
1501 if (!hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in adv_use_rpa()
1508 hci_dev_test_flag(hdev, HCI_BONDABLE)) in adv_use_rpa()
1577 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in __hci_req_enable_advertising()
1614 if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE) || in __hci_req_enable_advertising()
1615 hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) { in __hci_req_enable_advertising()
1715 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_req_update_scan_rsp_data()
1802 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in create_instance_adv_data()
1864 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_req_update_adv_data()
1935 !hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION)) in hci_req_disable_address_resolution()
1954 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in hci_req_reenable_advertising()
2015 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_req_add_le_interleaved_scan()
2079 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in hci_get_random_address()
2156 if (hci_dev_test_flag(hdev, HCI_LE_ADV) || in set_random_addr()
2406 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in __hci_req_schedule_adv_instance()
2451 hci_dev_test_flag(hdev, HCI_LE_ADV)) in __hci_req_schedule_adv_instance()
2524 hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_req_clear_adv_instance()
2547 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in hci_update_random_address()
2602 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in hci_update_random_address()
2604 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in hci_update_random_address()
2644 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_req_update_scan()
2656 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE) || in __hci_req_update_scan()
2662 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in __hci_req_update_scan()
2699 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in connectable_update()
2703 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in connectable_update()
2749 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_req_update_class()
2752 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in __hci_req_update_class()
2759 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in __hci_req_update_class()
2773 if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in write_iac()
2776 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) { in write_iac()
2803 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in discoverable_update()
2812 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in discoverable_update()
2818 if (hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) { in discoverable_update()
3007 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_disable_work()
3063 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_restart()
3163 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in active_scan()
3221 if (!hci_dev_test_flag(hdev, HCI_INQUIRY)) in start_discovery()
3296 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_req_stop_discovery()
3305 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_req_stop_discovery()
3397 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in powered_update_hci()
3411 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in powered_update_hci()
3427 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in powered_update_hci()
3432 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in powered_update_hci()
3448 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in powered_update_hci()
3466 link_sec = hci_dev_test_flag(hdev, HCI_LINK_SECURITY); in powered_update_hci()
3472 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in powered_update_hci()