Home
last modified time | relevance | path

Searched refs:hci_dev_test_flag (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/net/bluetooth/
Dhci_request.c349 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_req_write_fast_connectable()
390 hci_dev_test_flag(hdev, HCI_SETUP) || in __hci_update_background_scan()
391 hci_dev_test_flag(hdev, HCI_CONFIG) || in __hci_update_background_scan()
392 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in __hci_update_background_scan()
393 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __hci_update_background_scan()
397 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_update_background_scan()
421 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
442 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
630 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in __hci_req_update_eir()
633 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in __hci_req_update_eir()
[all …]
Dhci_core.c68 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read()
89 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write()
124 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; in vendor_diag_read()
148 hci_dev_test_flag(hdev, HCI_USER_CHANNEL))) in vendor_diag_write()
450 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in hci_init2_req()
489 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in hci_init2_req()
528 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_set_le_support()
832 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_init4_req()
871 if (hci_dev_test_flag(hdev, HCI_SETUP)) in __hci_init()
905 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in __hci_init()
[all …]
Dmgmt.c368 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list()
381 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
382 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
383 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
393 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
428 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
441 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
442 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
443 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
453 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
[all …]
Dhci_event.c61 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel()
274 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name()
291 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_name()
292 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name()
318 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable()
413 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev()
506 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_ssp_mode()
538 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !status) { in hci_cc_write_sc_support()
557 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version()
558 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version()
[all …]
Dsmp.c61 #define AUTH_REQ_MASK(dev) (hci_dev_test_flag(dev, HCI_SC_ENABLED) ? \
568 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in smp_generate_oob()
676 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd()
684 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd()
687 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd()
690 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd()
695 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in build_pairing_cmd()
783 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy()
1128 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys()
1714 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd()
[all …]
Dhci_sock.c666 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay()
929 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl()
932 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl()
1157 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind()
1158 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind()
1159 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind()
1540 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd()
1541 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_mgmt_cmd()
1542 hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_mgmt_cmd()
1548 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_mgmt_cmd()
Dhci_conn.c627 hci_dev_test_flag(d, HCI_USER_CHANNEL) || in hci_get_route()
748 return hci_dev_test_flag(hdev, HCI_PRIVACY); in conn_use_rpa()
961 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
1021 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) { in hci_connect_le()
1032 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in hci_connect_le()
1062 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_connect_le()
1139 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan()
1190 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
1268 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode()
Dhci_debugfs.c261 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y': 'N'; in use_debug_keys_read()
279 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y': 'N'; in sc_only_mode_read()
646 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y': 'N'; in force_static_address_read()
667 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write()
Dl2cap_core.c3928 if (hci_dev_test_flag(hdev, HCI_MGMT) && in l2cap_connect_req()
7032 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) in l2cap_conn_add()
7035 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
7037 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
7155 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/Linux-v4.19/include/net/bluetooth/
Dhci_core.h559 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
680 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
687 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1170 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1172 hci_dev_test_flag(dev, HCI_SC_ENABLED))