Home
last modified time | relevance | path

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

/linux-4.1.27/net/bluetooth/
Dhci_request.c285 if (hci_dev_test_flag(hdev, HCI_PRIVACY) && in hci_req_add_le_passive_scan()
319 if (hci_dev_test_flag(hdev, HCI_LE_ADV) || in set_random_addr()
339 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in hci_update_random_address()
398 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in hci_update_random_address()
400 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in hci_update_random_address()
440 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in __hci_update_page_scan()
449 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE) || in __hci_update_page_scan()
458 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in __hci_update_page_scan()
486 hci_dev_test_flag(hdev, HCI_SETUP) || in __hci_update_background_scan()
487 hci_dev_test_flag(hdev, HCI_CONFIG) || in __hci_update_background_scan()
[all …]
Dmgmt.c353 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list()
366 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
367 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
368 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
378 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
413 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
426 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
427 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
428 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
438 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
[all …]
Dhci_core.c83 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y': 'N'; in dut_mode_read()
109 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write()
576 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in hci_init2_req()
615 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in hci_init2_req()
652 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_set_le_support()
840 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_init4_req()
860 if (hci_dev_test_flag(hdev, HCI_SETUP)) { in __hci_init()
896 if (!hci_dev_test_flag(hdev, HCI_SETUP) && in __hci_init()
897 !hci_dev_test_flag(hdev, HCI_CONFIG)) in __hci_init()
1259 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_inquiry()
[all …]
Dhci_event.c268 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name()
285 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_name()
286 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name()
312 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable()
407 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev()
500 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_ssp_mode()
532 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !status) { in hci_cc_write_sc_support()
551 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version()
552 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version()
571 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_commands()
[all …]
Dsmp.c55 #define AUTH_REQ_MASK(dev) (hci_dev_test_flag(dev, HCI_SC_ENABLED) ? \
548 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in smp_generate_oob()
652 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd()
660 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd()
663 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd()
666 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd()
671 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in build_pairing_cmd()
757 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy()
1123 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys()
1675 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd()
[all …]
Dhci_sock.c567 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl()
570 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl()
745 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind()
746 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind()
747 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind()
1030 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd()
1031 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_mgmt_cmd()
1032 hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_mgmt_cmd()
1038 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_mgmt_cmd()
Dhci_conn.c574 hci_dev_test_flag(d, HCI_USER_CHANNEL) || in hci_get_route()
737 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
802 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) { in hci_connect_le()
813 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in hci_connect_le()
843 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_connect_le()
867 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
945 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.c3903 if (hci_dev_test_flag(hdev, HCI_MGMT) && in l2cap_connect_req()
6990 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) in l2cap_conn_add()
6993 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
6995 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
7115 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/linux-4.1.27/include/net/bluetooth/
Dhci_core.h518 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
630 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
637 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1057 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1059 hci_dev_test_flag(dev, HCI_SC_ENABLED))