| /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() 924 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_update_eir_sync() 927 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_eir_sync() 963 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_class_sync() 966 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_class_sync() 973 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in hci_update_class_sync() 1025 if (!hci_dev_test_flag(hde 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( in read_unconf_index_list() [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() 601 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_reset() 606 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() 1121 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys() 1702 if (hci_dev_test_flag(hde in build_bredr_pairing_cmd() [all...] |
| H A D | hci_event.c | 117 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel() 361 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name() 381 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_name() 382 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name() 411 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable() 547 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev() 683 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !rp->status) { in hci_cc_write_sc_support() 705 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version() 706 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version() 793 if (hci_dev_test_flag(hde 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() 1683 if (hci_dev_test_flag(hdev, HCI_SETUP) || 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 | 1257 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in hci_get_route() 1385 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le() 1577 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_add_bis() 1628 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan() 1683 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl() 2357 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_connect_cis() 2406 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode() 3183 if (!hci_dev_test_flag(conn->hdev, HCI_SCO_FLOWCTL)) in hci_conn_tx_queue() 3298 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 | 1020 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_setsockopt() 1215 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_getsockopt()
|
| H A D | l2cap_core.c | 7014 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add() 7016 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add() 7167 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
|
| /linux/include/net/bluetooth/ |
| H A D | hci_core.h | 840 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro 1003 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled() 1010 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled() 1968 !hci_dev_test_flag(dev, HCI_AUTO_OFF)) 1970 hci_dev_test_flag(dev, HCI_SC_ENABLED)) 1972 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED)) 1976 hci_dev_test_flag(dev, HCI_LE_ENABLED))
|
| /linux/drivers/bluetooth/ |
| H A D | btusb.c | 1346 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in btusb_validate_sco_handle() 2220 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame() 2700 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame_intel()
|
| H A D | hci_qca.c | 2598 hci_dev_test_flag(hdev, HCI_SETUP)) in qca_serdev_shutdown()
|