Home
last modified time | relevance | path

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

/Linux-v5.4/net/bluetooth/
Dhci_request.c354 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_req_write_fast_connectable()
395 hci_dev_test_flag(hdev, HCI_SETUP) || in __hci_update_background_scan()
396 hci_dev_test_flag(hdev, HCI_CONFIG) || in __hci_update_background_scan()
397 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in __hci_update_background_scan()
398 hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __hci_update_background_scan()
402 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in __hci_update_background_scan()
426 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
447 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
635 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in __hci_req_update_eir()
638 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in __hci_req_update_eir()
[all …]
Dhci_core.c69 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read()
90 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write()
125 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; in vendor_diag_read()
149 hci_dev_test_flag(hdev, HCI_USER_CHANNEL))) in vendor_diag_write()
451 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in hci_init2_req()
490 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in hci_init2_req()
529 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_set_le_support()
833 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_init4_req()
872 if (hci_dev_test_flag(hdev, HCI_SETUP)) in __hci_init()
906 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.c62 #define AUTH_REQ_MASK(dev) (hci_dev_test_flag(dev, HCI_SC_ENABLED) ? \
559 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in smp_generate_oob()
667 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd()
675 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd()
678 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd()
681 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd()
686 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in build_pairing_cmd()
773 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy()
1115 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys()
1693 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()
928 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl()
931 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl()
1156 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind()
1157 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind()
1158 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind()
1539 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd()
1540 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_mgmt_cmd()
1541 hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_mgmt_cmd()
1547 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_mgmt_cmd()
Dhci_conn.c630 hci_dev_test_flag(d, HCI_USER_CHANNEL) || in hci_get_route()
751 return hci_dev_test_flag(hdev, HCI_PRIVACY); in conn_use_rpa()
964 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
1024 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) { in hci_connect_le()
1035 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in hci_connect_le()
1065 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_connect_le()
1142 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan()
1193 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
1271 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()
677 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y': 'N'; in force_static_address_read()
698 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write()
Dl2cap_core.c3989 if (hci_dev_test_flag(hdev, HCI_MGMT) && in l2cap_connect_req()
7126 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) in l2cap_conn_add()
7129 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
7131 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
7248 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/Linux-v5.4/include/net/bluetooth/
Dhci_core.h578 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
699 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
706 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1196 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1198 hci_dev_test_flag(dev, HCI_SC_ENABLED))