| /OK3568_Linux_fs/kernel/net/bluetooth/ |
| H A D | hci_request.c | 358 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_req_write_fast_connectable() 397 hci_dev_test_flag(hdev, HCI_SETUP) || in __hci_update_background_scan() 398 hci_dev_test_flag(hdev, HCI_CONFIG) || in __hci_update_background_scan() 399 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in __hci_update_background_scan() 400 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __hci_update_background_scan() 404 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_update_background_scan() 432 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan() 453 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan() 641 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in __hci_req_update_eir() 644 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in __hci_req_update_eir() [all …]
|
| H A D | hci_core.c | 71 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read() 92 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write() 127 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; in vendor_diag_read() 151 hci_dev_test_flag(hdev, HCI_USER_CHANNEL))) in vendor_diag_write() 453 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in hci_init2_req() 492 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in hci_init2_req() 531 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_set_le_support() 851 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_init4_req() 864 bool enabled = hci_dev_test_flag(hdev, in hci_init4_req() 911 if (hci_dev_test_flag(hdev, HCI_SETUP)) in __hci_init() [all …]
|
| H A D | mgmt.c | 399 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list() 412 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list() 413 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list() 414 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list() 424 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list() 459 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list() 472 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list() 473 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list() 474 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list() 484 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list() [all …]
|
| H A D | hci_event.c | 77 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel() 290 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name() 307 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_name() 308 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name() 334 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable() 429 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev() 522 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_ssp_mode() 554 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !status) { in hci_cc_write_sc_support() 573 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version() 574 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version() [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() 1116 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys() 1694 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd() [all …]
|
| H A D | hci_sock.c | 68 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_hdev_from_sock() 684 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay() 943 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl() 946 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl() 1116 if (hdev && hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_bind() 1199 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind() 1200 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind() 1201 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind() 1582 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd() 1583 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_mgmt_cmd() [all …]
|
| H A D | hci_conn.c | 663 hci_dev_test_flag(d, HCI_USER_CHANNEL) || in hci_get_route() 784 return hci_dev_test_flag(hdev, HCI_PRIVACY); in conn_use_rpa() 1014 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le() 1074 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_connect_le() 1082 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in hci_connect_le() 1112 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_connect_le() 1190 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan() 1245 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl() 1325 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode()
|
| H A D | hci_debugfs.c | 277 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y': 'N'; in use_debug_keys_read() 295 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y': 'N'; in sc_only_mode_read() 695 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y': 'N'; in force_static_address_read() 716 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write() 1085 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM) ? 'Y' : 'N'; in force_no_mitm_read() 1107 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM)) in force_no_mitm_write()
|
| H A D | hci_sysfs.c | 90 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in bt_host_release()
|
| H A D | l2cap_core.c | 4263 if (hci_dev_test_flag(hdev, HCI_MGMT) && in l2cap_connect_req() 7843 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) in l2cap_conn_add() 7846 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add() 7848 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add() 7998 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
|
| /OK3568_Linux_fs/kernel/include/net/bluetooth/ |
| H A D | hci_core.h | 727 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro 849 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled() 856 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled() 1372 !hci_dev_test_flag(dev, HCI_AUTO_OFF)) 1374 hci_dev_test_flag(dev, HCI_SC_ENABLED))
|