Home
last modified time | relevance | path

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

/linux-6.1.9/net/bluetooth/
Dhci_sync.c346 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_disable()
401 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_le_scan_restart_sync()
473 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in reenable_adv_sync()
575 if (!hdev_is_powered(hdev) || hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_clear_adv_instance_sync()
689 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_cmd_sync_queue()
722 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_update_eir_sync()
725 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_eir_sync()
761 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_class_sync()
764 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_class_sync()
771 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in hci_update_class_sync()
[all …]
Dmgmt.c447 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list()
460 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
461 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
462 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
472 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
507 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
520 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
521 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
522 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
532 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
[all …]
Dhci_request.c353 if (hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION) && !rpa_le_conn) { in hci_req_add_le_scan_disable()
407 !hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in add_to_accept_list()
437 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in add_to_accept_list()
491 !hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY) && in update_accept_list()
539 return hci_dev_test_flag(hdev, HCI_PRIVACY); in scan_use_rpa()
724 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in hci_update_random_address()
726 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in hci_update_random_address()
793 if (hci_dev_test_flag(hdev, HCI_PRIVACY) && in hci_req_add_le_passive_scan()
840 if (hci_dev_test_flag(hdev, HCI_LE_SCAN)) in hci_req_add_le_interleaved_scan()
902 if (hci_dev_test_flag(hdev, HCI_LE_ADV) || in set_random_addr()
Dhci_core.c388 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_inquiry()
393 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_inquiry()
403 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_inquiry()
509 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_dev_open()
510 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_open()
535 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_open()
536 !hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_open()
570 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_close()
653 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_reset()
658 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_dev_reset()
[all …]
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 …]
Dsmp.c61 #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()
656 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()
675 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in build_pairing_cmd()
766 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy()
1117 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys()
1697 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd()
[all …]
Dhci_event.c114 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel()
362 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name()
382 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_name()
383 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name()
412 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable()
545 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev()
681 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !rp->status) { in hci_cc_write_sc_support()
703 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version()
704 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version()
766 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_commands()
[all …]
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()
873 !hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_release()
946 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl()
949 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl()
1119 if (hdev && hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_bind()
1202 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind()
1203 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind()
1204 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind()
1578 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd()
[all …]
Dhci_sysfs.c90 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in bt_host_release()
Dhci_conn.c1123 hci_dev_test_flag(d, HCI_USER_CHANNEL) || in hci_get_route()
1272 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
1458 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_add_bis()
1505 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan()
1560 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
2165 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_connect_cis()
2212 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode()
Deir.c291 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in eir_create_adv_data()
Dsco.c925 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_setsockopt()
1120 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_getsockopt()
Dl2cap_core.c4267 if (hci_dev_test_flag(hdev, HCI_MGMT) && in l2cap_connect_req()
7854 hci_dev_test_flag(hcon->hdev, HCI_HS_ENABLED)) in l2cap_conn_add()
7857 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
7859 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
8010 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/linux-6.1.9/include/net/bluetooth/
Dhci_core.h821 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
966 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
973 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1657 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1659 hci_dev_test_flag(dev, HCI_SC_ENABLED))
1661 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED))
1678 hci_dev_test_flag(dev, HCI_ENABLE_LL_PRIVACY))