/linux/net/bluetooth/ |
H A D | hci_sync.c | 373 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_disable() 426 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in reenable_adv_sync() 528 if (!hdev_is_powered(hdev) || hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_clear_adv_instance_sync() 709 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_cmd_sync_submit() 911 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_update_eir_sync() 914 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_eir_sync() 950 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_class_sync() 953 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_class_sync() 960 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in hci_update_class_sync() 1012 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in adv_use_rpa() [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 | 62 #define AUTH_REQ_MASK(dev) (hci_dev_test_flag(dev, HCI_SC_ENABLED) ? \ 549 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in smp_generate_oob() 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() 676 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in build_pairing_cmd() 767 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy() 1124 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys() 1705 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd() [all …]
|
H A D | hci_event.c | 113 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel() 357 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name() 377 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_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() 679 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !rp->status) { in hci_cc_write_sc_support() 701 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version() 702 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version() 789 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_commands() [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 | 1193 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in hci_get_route() 1321 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le() 1514 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_add_bis() 1564 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan() 1619 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl() 2273 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_connect_cis() 2320 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode() 2992 if (!hci_dev_test_flag(conn->hdev, HCI_SCO_FLOWCTL)) in hci_conn_tx_queue() 3107 if (hci_dev_test_flag(hdev, HCI_SCO_FLOWCTL)) in hci_ethtool_ts_info()
|
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 | 6904 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add() 6906 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add() 7057 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
|
/linux/include/net/bluetooth/ |
H A D | hci_core.h | 833 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro 988 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled() 995 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled() 1911 !hci_dev_test_flag(dev, HCI_AUTO_OFF)) 1913 hci_dev_test_flag(dev, HCI_SC_ENABLED)) 1915 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED))
|
/linux/drivers/bluetooth/ |
H A D | btusb.c | 1284 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in btusb_validate_sco_handle() 2158 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame() 2635 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame_intel()
|
H A D | hci_qca.c | 2555 hci_dev_test_flag(hdev, HCI_SETUP)) in qca_serdev_shutdown()
|