Home
last modified time | relevance | path

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

/Linux-v5.10/net/bluetooth/
Dhci_request.c354 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_req_write_fast_connectable()
393 hci_dev_test_flag(hdev, HCI_SETUP) || in __hci_update_background_scan()
394 hci_dev_test_flag(hdev, HCI_CONFIG) || in __hci_update_background_scan()
395 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in __hci_update_background_scan()
396 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __hci_update_background_scan()
400 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_update_background_scan()
428 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
449 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
637 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in __hci_req_update_eir()
640 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in __hci_req_update_eir()
[all …]
Dhci_core.c71 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 …]
Dmgmt.c396 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list()
409 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
410 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
411 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
421 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
456 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
469 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
470 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
471 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
481 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
[all …]
Dhci_event.c77 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 …]
Dsmp.c62 #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 …]
Dhci_sock.c673 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay()
938 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl()
941 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl()
1182 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind()
1183 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind()
1184 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind()
1565 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd()
1566 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_mgmt_cmd()
1567 hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_mgmt_cmd()
1573 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_mgmt_cmd()
Dhci_debugfs.c277 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()
Dhci_conn.c661 hci_dev_test_flag(d, HCI_USER_CHANNEL) || in hci_get_route()
782 return hci_dev_test_flag(hdev, HCI_PRIVACY); in conn_use_rpa()
1012 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
1072 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_connect_le()
1080 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in hci_connect_le()
1110 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_connect_le()
1188 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan()
1243 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
1323 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode()
Dl2cap_core.c4230 if (hci_dev_test_flag(hdev, HCI_MGMT) && in l2cap_connect_req()
7733 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) in l2cap_conn_add()
7736 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
7738 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
7888 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/Linux-v5.10/include/net/bluetooth/
Dhci_core.h708 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
830 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
837 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1352 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1354 hci_dev_test_flag(dev, HCI_SC_ENABLED))