Home
last modified time | relevance | path

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

/linux/net/bluetooth/
A Dhci_request.c451 hci_dev_test_flag(hdev, HCI_SETUP) || in __hci_update_background_scan()
452 hci_dev_test_flag(hdev, HCI_CONFIG) || in __hci_update_background_scan()
453 hci_dev_test_flag(hdev, HCI_AUTO_OFF) || in __hci_update_background_scan()
486 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
507 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in __hci_update_background_scan()
670 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in add_to_accept_list()
1290 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in adv_use_rpa()
1301 hci_dev_test_flag(hdev, HCI_BONDABLE)) in adv_use_rpa()
1370 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in __hci_req_enable_advertising()
1632 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_req_add_le_interleaved_scan()
[all …]
A Dhci_core.c744 bool enabled = hci_dev_test_flag(hdev, in hci_init4_req()
791 if (hci_dev_test_flag(hdev, HCI_SETUP)) in __hci_init()
832 !hci_dev_test_flag(hdev, HCI_CONFIG)) in __hci_init()
877 if (hci_dev_test_flag(hdev, HCI_SETUP)) in __hci_unconf_init()
1378 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_dev_do_open()
1490 hci_dev_test_flag(hdev, HCI_MGMT) && in hci_dev_do_open()
1576 !hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_open()
1645 if (hci_dev_test_flag(hdev, HCI_MGMT)) { in hci_dev_do_close()
1667 hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_do_close()
1875 if (!hci_dev_test_flag(hdev, HCI_MGMT)) in hci_update_scan_state()
[all …]
A Dmgmt.c418 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
419 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
478 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
479 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
535 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
536 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
846 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
873 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
1188 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in clean_up_hci_state()
2017 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le()
[all …]
A Dhci_event.c293 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name()
311 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name()
337 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable()
455 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev()
548 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_ssp_mode()
1004 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_pin_code_reply()
1030 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_pin_code_neg_reply()
1089 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_user_confirm_reply()
1105 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_user_confirm_neg_reply()
1120 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_user_passkey_reply()
[all …]
A Dhci_debugfs.c278 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y' : 'N'; in use_debug_keys_read()
296 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y' : 'N'; in sc_only_mode_read()
505 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP) ? 'Y' : 'N'; in force_bredr_smp_read()
746 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y' : 'N'; in force_static_address_read()
767 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write()
1136 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM) ? 'Y' : 'N'; in force_no_mitm_read()
1158 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM)) in force_no_mitm_write()
1261 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read()
1282 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write()
1317 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; in vendor_diag_read()
[all …]
A Dsmp.c656 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd()
664 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd()
667 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd()
670 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd()
1697 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd()
1705 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_bredr_pairing_cmd()
1759 if (!hci_dev_test_flag(hdev, HCI_BONDABLE) && in smp_cmd_pairing_req()
2056 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in fixup_sc_false_positive()
2331 if (!hci_dev_test_flag(hdev, HCI_BONDABLE) && in smp_cmd_security_req()
3091 if (!hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in bredr_pairing()
[all …]
A Dhci_sock.c69 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_hdev_from_sock()
685 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay()
944 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl()
947 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl()
1200 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind()
1201 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind()
1202 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind()
1577 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd()
1578 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_mgmt_cmd()
1579 hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_mgmt_cmd()
[all …]
A Dhci_conn.c822 hci_dev_test_flag(d, HCI_USER_CHANNEL) || in hci_get_route()
956 return hci_dev_test_flag(hdev, HCI_PRIVACY); in conn_use_rpa()
1186 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
1252 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in hci_connect_le()
1260 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in hci_connect_le()
1290 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) { in hci_connect_le()
1372 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan()
1427 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
1508 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode()
A Dhci_sysfs.c87 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in bt_host_release()
A Deir.c246 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in eir_create_adv_data()
A Dsco.c920 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_setsockopt()
1115 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_getsockopt()
A Dl2cap_core.c4238 if (hci_dev_test_flag(hdev, HCI_MGMT) && in l2cap_connect_req()
7748 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) in l2cap_conn_add()
7751 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
7753 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
7904 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/linux/include/net/bluetooth/
A Dhci_core.h770 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
893 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
900 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1447 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1449 hci_dev_test_flag(dev, HCI_SC_ENABLED))
1451 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED))

Completed in 1146 milliseconds