Lines Matching refs:hci_dev_test_flag
360 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_req_write_fast_connectable()
451 hci_dev_test_flag(hdev, HCI_SETUP) || in __hci_update_background_scan()
452 hci_dev_test_flag(hdev, HCI_CONFIG) || in __hci_update_background_scan()
453 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in __hci_update_background_scan()
454 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __hci_update_background_scan()
458 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_update_background_scan()
486 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
507 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
536 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in __hci_req_update_eir()
539 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in __hci_req_update_eir()
583 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in hci_req_add_le_scan_disable()
584 hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION) && !rpa_le_conn) { in hci_req_add_le_scan_disable()
604 hci_dev_test_flag(req->hdev, HCI_ENABLE_LL_PRIVACY)) { in del_from_accept_list()
639 !hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in add_to_accept_list()
658 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) { in add_to_accept_list()
670 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in add_to_accept_list()
698 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in update_accept_list()
725 !hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in update_accept_list()
773 return hci_dev_test_flag(hdev, HCI_PRIVACY); in scan_use_rpa()
788 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in hci_req_start_scan()
939 if (hci_dev_test_flag(hdev, HCI_PRIVACY) && in hci_req_add_le_passive_scan()
984 if (!hci_dev_test_flag(req->hdev, HCI_BREDR_ENABLED)) in hci_req_clear_event_filter()
987 if (hci_dev_test_flag(req->hdev, HCI_EVENT_FILTER_CONFIGURED)) { in hci_req_clear_event_filter()
1002 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_req_set_event_filter()
1162 old_state = hci_dev_test_flag(hdev, HCI_ADVERTISING); in hci_req_prepare_suspend()
1186 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_req_prepare_suspend()
1290 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in adv_use_rpa()
1294 if (!hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in adv_use_rpa()
1301 hci_dev_test_flag(hdev, HCI_BONDABLE)) in adv_use_rpa()
1370 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in __hci_req_enable_advertising()
1407 if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE) || in __hci_req_enable_advertising()
1408 hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) { in __hci_req_enable_advertising()
1429 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_req_update_scan_rsp_data()
1481 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_req_update_adv_data()
1552 !hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION)) in hci_req_disable_address_resolution()
1571 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in hci_req_reenable_advertising()
1632 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_req_add_le_interleaved_scan()
1696 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in hci_get_random_address()
1773 if (hci_dev_test_flag(hdev, HCI_LE_ADV) || in set_random_addr()
2023 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in __hci_req_schedule_adv_instance()
2068 hci_dev_test_flag(hdev, HCI_LE_ADV)) in __hci_req_schedule_adv_instance()
2141 hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_req_clear_adv_instance()
2164 hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in hci_update_random_address()
2219 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in hci_update_random_address()
2221 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in hci_update_random_address()
2261 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_req_update_scan()
2273 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE) || in __hci_req_update_scan()
2279 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in __hci_req_update_scan()
2316 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in connectable_update()
2320 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in connectable_update()
2366 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_req_update_class()
2369 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in __hci_req_update_class()
2376 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in __hci_req_update_class()
2390 if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in write_iac()
2393 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) { in write_iac()
2420 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in discoverable_update()
2429 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in discoverable_update()
2435 if (hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) { in discoverable_update()
2624 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_disable_work()
2680 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_restart()
2780 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in active_scan()
2838 if (!hci_dev_test_flag(hdev, HCI_INQUIRY)) in start_discovery()
2913 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_req_stop_discovery()
2922 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_req_stop_discovery()
3061 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in powered_update_hci()
3075 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in powered_update_hci()
3091 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in powered_update_hci()
3096 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in powered_update_hci()
3112 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in powered_update_hci()
3130 link_sec = hci_dev_test_flag(hdev, HCI_LINK_SECURITY); in powered_update_hci()
3136 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in powered_update_hci()