/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 | mgmt.c | 446 if (!hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list() 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() 461 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list() 470 if (!hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list() 504 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_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() 519 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list() 528 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list() [all …]
|
H A D | hci_core.c | 340 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_inquiry() 345 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_inquiry() 350 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_inquiry() 456 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_dev_open() 457 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_open() 482 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_open() 483 !hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_open() 517 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_close() 600 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_reset() 605 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_dev_reset() [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_sock.c | 69 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_hdev_from_sock() 750 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay() 938 !hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_release() 1011 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl() 1014 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl() 1216 if (hdev && hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_bind() 1299 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind() 1300 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind() 1301 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind() 1681 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd() [all …]
|
H A D | hci_conn.c | 1228 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in hci_get_route() 1356 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le() 1549 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_add_bis() 1599 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan() 1654 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl() 2308 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_connect_cis() 2355 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode() 3027 if (!hci_dev_test_flag(conn->hdev, HCI_SCO_FLOWCTL)) in hci_conn_tx_queue() 3142 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 | 835 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro 990 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled() 997 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled() 1931 !hci_dev_test_flag(dev, HCI_AUTO_OFF)) 1933 hci_dev_test_flag(dev, HCI_SC_ENABLED)) 1935 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED)) 1939 hci_dev_test_flag(dev, HCI_LE_ENABLED))
|
/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()
|