| /linux/net/bluetooth/ |
| H A D | hci_sync.c | 318 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_cmd_sync_work() 379 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_disable() 432 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in reenable_adv_sync() 534 if (!hdev_is_powered(hdev) || hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_clear_adv_instance_sync() 723 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_cmd_sync_submit() 912 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_update_eir_sync() 915 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_eir_sync() 955 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_class_sync() 958 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_class_sync() 966 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in hci_update_class_sync() [all …]
|
| H A D | hci_core.c | 341 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_inquiry() 346 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_inquiry() 351 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_inquiry() 457 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_dev_open() 458 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_open() 483 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_open() 484 !hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_open() 518 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_close() 564 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_reset() 569 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_dev_reset() [all …]
|
| H A D | mgmt.c | 443 if (!hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list() 456 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list() 457 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list() 458 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list() 467 if (!hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list() 510 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list() 511 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list() 512 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list() 521 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list() 564 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list() [all …]
|
| H A D | smp.c | 59 #define AUTH_REQ_MASK(dev) (hci_dev_test_flag(dev, HCI_SC_ENABLED) ? \ 529 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in smp_generate_oob() 636 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd() 644 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd() 647 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd() 650 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd() 655 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in build_pairing_cmd() 747 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy() 1101 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys() 1673 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd() [all …]
|
| H A D | hci_debugfs.c | 279 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y' : 'N'; in use_debug_keys_read() 297 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y' : 'N'; in sc_only_mode_read() 506 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP) ? 'Y' : 'N'; in force_bredr_smp_read() 751 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y' : 'N'; in force_static_address_read() 772 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write() 1153 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM) ? 'Y' : 'N'; in force_no_mitm_read() 1171 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM)) in force_no_mitm_write() 1274 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read() 1295 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write() 1330 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; in vendor_diag_read() [all …]
|
| H A D | hci_event.c | 114 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel() 363 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name() 383 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_name() 384 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name() 413 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable() 549 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev() 685 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !rp->status) { in hci_cc_write_sc_support() 707 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version() 708 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version() 795 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_commands() [all …]
|
| H A D | hci_sock.c | 67 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_hdev_from_sock() 759 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay() 947 !hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_release() 1020 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl() 1023 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl() 1225 if (hdev && hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_bind() 1310 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind() 1311 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind() 1312 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind() 1694 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd() [all …]
|
| H A D | hci_sysfs.c | 99 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in bt_host_release()
|
| H A D | hci_conn.c | 1042 (!hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION) || in __hci_conn_add() 1356 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in hci_get_route() 1485 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le() 1685 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_add_bis() 1736 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan() 1791 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl() 2486 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_connect_cis() 2541 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode() 3315 if (!hci_dev_test_flag(conn->hdev, HCI_SCO_FLOWCTL)) in hci_conn_tx_queue() 3430 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 | 1103 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_setsockopt() 1302 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_getsockopt()
|
| H A D | l2cap_core.c | 7208 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add() 7210 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add() 7366 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
|
| /linux/include/net/bluetooth/ |
| H A D | hci_core.h | 856 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro 1020 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled() 1027 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled() 1991 !hci_dev_test_flag(dev, HCI_AUTO_OFF)) 1993 hci_dev_test_flag(dev, HCI_SC_ENABLED)) 1995 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED)) 1999 hci_dev_test_flag(dev, HCI_LE_ENABLED))
|
| /linux/drivers/bluetooth/ |
| H A D | btusb.c | 1439 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in btusb_validate_sco_handle() 2327 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame() 2808 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame_intel()
|
| H A D | hci_qca.c | 2623 hci_dev_test_flag(hdev, HCI_SETUP)) in qca_serdev_shutdown()
|