| /linux-6.15/net/bluetooth/ |
| H A D | hci_sync.c | 373 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_disable() 1012 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in adv_use_rpa() 1023 hci_dev_test_flag(hdev, HCI_BONDABLE)) in adv_use_rpa() 1921 hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_schedule_adv_instance_sync() 2090 if (!hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_disable_advertising_sync() 2110 if (hci_dev_test_flag(hdev, HCI_MESH)) in hci_le_set_ext_scan_enable_sync() 3061 if (hci_dev_test_flag(hdev, HCI_MESH)) { in hci_passive_scan_sync() 3616 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_unconf_init_sync() 4788 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_init_sync() 5199 if (hci_dev_test_flag(hdev, HCI_MGMT)) { in hci_dev_close_sync() [all …]
|
| H A D | mgmt.c | 459 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list() 460 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list() 517 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list() 518 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list() 571 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list() 572 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list() 878 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings() 902 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings() 1123 if (hci_dev_test_flag(hdev, HCI_MGMT)) in mgmt_init_hdev() 4306 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech() [all …]
|
| H A D | hci_core.c | 465 !hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_open() 647 if (!hci_dev_test_flag(hdev, HCI_MGMT)) in hci_update_passive_scan_state() 654 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in hci_update_passive_scan_state() 796 if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) in hci_get_dev_list() 832 if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) in hci_get_dev_info() 900 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in hci_rfkill_set_block() 901 !hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_rfkill_set_block() 933 hci_dev_test_flag(hdev, HCI_MGMT) && in hci_power_on() 953 if (hci_dev_test_flag(hdev, HCI_RFKILLED) || in hci_power_on() 2681 !hci_dev_test_flag(hdev, HCI_SETUP) && in hci_unregister_dev() [all …]
|
| H A D | hci_debugfs.c | 282 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y' : 'N'; in use_debug_keys_read() 300 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y' : 'N'; in sc_only_mode_read() 509 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP) ? 'Y' : 'N'; in force_bredr_smp_read() 754 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y' : 'N'; in force_static_address_read() 775 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write() 1156 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM) ? 'Y' : 'N'; in force_no_mitm_read() 1178 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM)) in force_no_mitm_write() 1281 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read() 1302 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write() 1337 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; in vendor_diag_read() [all …]
|
| H A D | smp.c | 657 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd() 665 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd() 668 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd() 671 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd() 1705 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd() 1713 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_bredr_pairing_cmd() 1765 if (!hci_dev_test_flag(hdev, HCI_BONDABLE) && in smp_cmd_pairing_req() 2062 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in fixup_sc_false_positive() 2355 if (!hci_dev_test_flag(hdev, HCI_BONDABLE) && in smp_cmd_security_req() 3104 if (!hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in bredr_pairing() [all …]
|
| H A D | hci_event.c | 357 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name() 378 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name() 407 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable() 543 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev() 972 if (hci_dev_test_flag(hdev, HCI_SETUP)) in hci_cc_read_bd_addr() 1165 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_pin_code_reply() 1193 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_pin_code_neg_reply() 1264 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_user_confirm_reply() 1282 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_user_confirm_neg_reply() 1300 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_user_passkey_reply() [all …]
|
| H A D | hci_sock.c | 69 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_hdev_from_sock() 743 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay() 931 !hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_release() 1004 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl() 1007 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl() 1292 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind() 1293 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind() 1294 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind() 1674 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd() 1675 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_mgmt_cmd() [all …]
|
| H A D | hci_sysfs.c | 86 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in bt_host_release()
|
| H A D | hci_conn.c | 1184 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in hci_get_route() 1312 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le() 1505 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_add_bis() 1554 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan() 1609 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl() 2243 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_connect_cis() 2290 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode() 2960 if (!hci_dev_test_flag(conn->hdev, HCI_SCO_FLOWCTL)) in hci_conn_tx_queue()
|
| H A D | eir.c | 276 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in eir_create_adv_data()
|
| H A D | sco.c | 992 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_setsockopt() 1187 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_getsockopt()
|
| H A D | l2cap_core.c | 6880 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add() 6882 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add() 7033 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
|
| /linux-6.15/include/net/bluetooth/ |
| H A D | hci_core.h | 820 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro 971 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled() 978 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled() 1916 !hci_dev_test_flag(dev, HCI_AUTO_OFF)) 1918 hci_dev_test_flag(dev, HCI_SC_ENABLED)) 1920 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED))
|
| /linux-6.15/drivers/bluetooth/ |
| H A D | btusb.c | 1165 if (auto_isoc_alt && hci_dev_test_flag(data->hdev, HCI_USER_CHANNEL)) in btusb_recv_event() 1304 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in btusb_validate_sco_handle() 2178 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame() 2655 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame_intel()
|
| H A D | hci_qca.c | 2547 hci_dev_test_flag(hdev, HCI_SETUP)) in qca_serdev_shutdown()
|