Home
last modified time | relevance | path

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

/linux-4.4.14/net/bluetooth/
Dhci_request.c293 if (hci_dev_test_flag(hdev, HCI_PRIVACY) && in hci_req_add_le_passive_scan()
327 if (hci_dev_test_flag(hdev, HCI_LE_ADV) || in set_random_addr()
347 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in hci_update_random_address()
406 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in hci_update_random_address()
408 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in hci_update_random_address()
448 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_update_page_scan()
457 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE) || in __hci_update_page_scan()
466 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in __hci_update_page_scan()
493 hci_dev_test_flag(hdev, HCI_SETUP) || in __hci_update_background_scan()
494 hci_dev_test_flag(hdev, HCI_CONFIG) || in __hci_update_background_scan()
[all …]
Dmgmt.c361 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list()
374 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
375 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
376 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
386 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
421 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
434 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
435 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
436 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
446 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
[all …]
Dhci_core.c76 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y': 'N'; in dut_mode_read()
101 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write()
136 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y': 'N'; in vendor_diag_read()
629 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in hci_init2_req()
668 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in hci_init2_req()
705 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_set_le_support()
905 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_init4_req()
922 if (hci_dev_test_flag(hdev, HCI_SETUP)) in __hci_init()
956 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in __hci_init()
957 !hci_dev_test_flag(hdev, HCI_CONFIG)) in __hci_init()
[all …]
Dhci_event.c61 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel()
273 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name()
290 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_name()
291 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name()
317 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable()
412 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev()
505 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_ssp_mode()
537 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !status) { in hci_cc_write_sc_support()
556 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version()
557 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version()
[all …]
Dhci_sock.c414 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay()
640 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl()
643 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl()
818 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind()
819 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind()
820 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind()
1103 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd()
1104 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_mgmt_cmd()
1105 hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_mgmt_cmd()
1111 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_mgmt_cmd()
Dsmp.c58 #define AUTH_REQ_MASK(dev) (hci_dev_test_flag(dev, HCI_SC_ENABLED) ? \
566 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in smp_generate_oob()
670 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd()
678 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd()
681 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd()
684 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd()
689 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in build_pairing_cmd()
776 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy()
1120 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys()
1676 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd()
[all …]
Dhci_conn.c623 hci_dev_test_flag(d, HCI_USER_CHANNEL) || in hci_get_route()
794 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
870 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) { in hci_connect_le()
881 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in hci_connect_le()
911 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_connect_le()
1020 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan()
1078 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
1156 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode()
Dhci_debugfs.c322 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y': 'N'; in use_debug_keys_read()
340 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y': 'N'; in sc_only_mode_read()
756 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y': 'N'; in force_static_address_read()
781 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write()
Dl2cap_core.c3899 if (hci_dev_test_flag(hdev, HCI_MGMT) && in l2cap_connect_req()
7000 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) in l2cap_conn_add()
7003 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
7005 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
7125 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/linux-4.4.14/include/net/bluetooth/
Dhci_core.h533 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
653 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
660 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1138 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1140 hci_dev_test_flag(dev, HCI_SC_ENABLED))