Home
last modified time | relevance | path

Searched refs:hci_dev_test_flag (Results 1 – 15 of 15) sorted by relevance

/linux-6.3-rc2/net/bluetooth/
A Dhci_sync.c346 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()
823 if (!hci_dev_test_flag(hdev, HCI_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()
1767 hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_schedule_adv_instance_sync()
1956 if (hci_dev_test_flag(hdev, HCI_MESH)) in hci_le_set_ext_scan_enable_sync()
2682 if (hci_dev_test_flag(hdev, HCI_MESH)) { in hci_passive_scan_sync()
3233 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_unconf_init_sync()
4422 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_init_sync()
[all …]
A Dmgmt.c460 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
461 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
520 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
521 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
577 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
578 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
889 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
916 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
1126 if (hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_init_hdev()
4261 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech()
[all …]
A Dhci_request.c353 if (hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION) && !rpa_le_conn) { in hci_req_add_le_scan_disable()
407 !hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in add_to_accept_list()
437 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in add_to_accept_list()
491 !hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in update_accept_list()
539 return hci_dev_test_flag(hdev, HCI_PRIVACY); in scan_use_rpa()
724 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in hci_update_random_address()
726 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in hci_update_random_address()
793 if (hci_dev_test_flag(hdev, HCI_PRIVACY) && in hci_req_add_le_passive_scan()
840 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_req_add_le_interleaved_scan()
902 if (hci_dev_test_flag(hdev, HCI_LE_ADV) || in set_random_addr()
A Dhci_core.c536 !hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_open()
718 if (!hci_dev_test_flag(hdev, HCI_MGMT)) in hci_update_passive_scan_state()
725 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_update_passive_scan_state()
868 if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) in hci_get_dev_list()
906 if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) in hci_get_dev_info()
954 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_rfkill_set_block()
955 !hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_rfkill_set_block()
976 hci_dev_test_flag(hdev, HCI_MGMT) && in hci_power_on()
996 if (hci_dev_test_flag(hdev, HCI_RFKILLED) || in hci_power_on()
2705 !hci_dev_test_flag(hdev, HCI_SETUP) && in hci_unregister_dev()
[all …]
A Dhci_debugfs.c278 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y' : 'N'; in use_debug_keys_read()
296 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y' : 'N'; in sc_only_mode_read()
505 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP) ? 'Y' : 'N'; in force_bredr_smp_read()
746 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y' : 'N'; in force_static_address_read()
767 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write()
1136 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM) ? 'Y' : 'N'; in force_no_mitm_read()
1158 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM)) in force_no_mitm_write()
1261 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read()
1282 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write()
1317 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; in vendor_diag_read()
[all …]
A Dsmp.c656 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd()
664 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd()
667 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd()
670 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd()
1697 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd()
1705 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_bredr_pairing_cmd()
1759 if (!hci_dev_test_flag(hdev, HCI_BONDABLE) && in smp_cmd_pairing_req()
2056 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in fixup_sc_false_positive()
2331 if (!hci_dev_test_flag(hdev, HCI_BONDABLE) && in smp_cmd_security_req()
3091 if (!hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in bredr_pairing()
[all …]
A Dhci_event.c362 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name()
383 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name()
412 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable()
545 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev()
955 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_cc_read_bd_addr()
1194 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_pin_code_reply()
1222 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_pin_code_neg_reply()
1290 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_user_confirm_reply()
1308 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_user_confirm_neg_reply()
1326 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_user_passkey_reply()
[all …]
A Dhci_sock.c69 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_hdev_from_sock()
685 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay()
873 !hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_release()
946 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl()
949 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl()
1202 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind()
1203 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind()
1204 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind()
1578 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd()
1579 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_mgmt_cmd()
[all …]
A Dhci_sysfs.c90 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in bt_host_release()
A Dhci_conn.c1128 hci_dev_test_flag(d, HCI_USER_CHANNEL) || in hci_get_route()
1279 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
1465 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_add_bis()
1512 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan()
1567 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
2159 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_connect_cis()
2206 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode()
A Deir.c291 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in eir_create_adv_data()
A Dsco.c925 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_setsockopt()
1120 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_getsockopt()
A Dl2cap_core.c4243 if (hci_dev_test_flag(hdev, HCI_MGMT) && in l2cap_connect_req()
7830 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) in l2cap_conn_add()
7833 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
7835 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
7986 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/linux-6.3-rc2/include/net/bluetooth/
A Dhci_core.h822 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
967 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
974 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1658 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1660 hci_dev_test_flag(dev, HCI_SC_ENABLED))
1662 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED))
1679 hci_dev_test_flag(dev, HCI_ENABLE_LL_PRIVACY))
/linux-6.3-rc2/drivers/bluetooth/
A Dbtusb.c1095 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in btusb_validate_sco_handle()

Completed in 87 milliseconds