Home
last modified time | relevance | path

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

/linux/net/bluetooth/
H A Dhci_sync.c373 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in le_scan_disable()
426 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING) && in reenable_adv_sync()
528 if (!hdev_is_powered(hdev) || hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_clear_adv_instance_sync()
709 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_cmd_sync_submit()
911 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_update_eir_sync()
914 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_eir_sync()
950 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_class_sync()
953 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_class_sync()
960 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in hci_update_class_sync()
1012 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in adv_use_rpa()
[all …]
H A Dmgmt.c446 if (!hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list()
459 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
460 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
461 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
470 if (!hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
504 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
517 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
518 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
519 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
528 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
[all …]
H A Dhci_core.c321 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_inquiry()
326 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_inquiry()
331 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_inquiry()
437 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_dev_open()
438 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_open()
463 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_open()
464 !hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_open()
498 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_close()
581 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_reset()
586 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_dev_reset()
[all …]
H A Dhci_debugfs.c282 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y' : 'N'; in use_debug_keys_read()
300 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y' : 'N'; in sc_only_mode_read()
509 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP) ? 'Y' : 'N'; in force_bredr_smp_read()
754 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y' : 'N'; in force_static_address_read()
775 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write()
1156 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM) ? 'Y' : 'N'; in force_no_mitm_read()
1178 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM)) in force_no_mitm_write()
1281 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read()
1302 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write()
1337 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; in vendor_diag_read()
[all …]
H A Dsmp.c62 #define AUTH_REQ_MASK(dev) (hci_dev_test_flag(dev, HCI_SC_ENABLED) ? \
549 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in smp_generate_oob()
657 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd()
665 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd()
668 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd()
671 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd()
676 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in build_pairing_cmd()
767 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy()
1124 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys()
1705 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd()
[all …]
H A Dhci_event.c113 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel()
357 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name()
377 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_name()
378 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name()
407 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable()
543 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev()
679 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !rp->status) { in hci_cc_write_sc_support()
701 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version()
702 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version()
778 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_commands()
[all …]
H A Dhci_sock.c69 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in hci_hdev_from_sock()
743 else if (hci_dev_test_flag(hdev, HCI_SETUP)) in send_monitor_replay()
931 !hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_release()
1004 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in hci_sock_bound_ioctl()
1007 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in hci_sock_bound_ioctl()
1209 if (hdev && hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_sock_bind()
1292 hci_dev_test_flag(hdev, HCI_SETUP) || in hci_sock_bind()
1293 hci_dev_test_flag(hdev, HCI_CONFIG) || in hci_sock_bind()
1294 (!hci_dev_test_flag(hdev, HCI_AUTO_OFF) && in hci_sock_bind()
1674 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_mgmt_cmd()
[all …]
H A Dhci_conn.c1181 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in hci_get_route()
1309 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
1502 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_add_bis()
1551 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan()
1606 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
2407 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_connect_cis()
2454 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode()
H A Deir.c276 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in eir_create_adv_data()
H A Dsco.c969 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_setsockopt()
1164 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_getsockopt()
H A Dl2cap_core.c6878 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
6880 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
7031 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/linux/include/net/bluetooth/
H A Dhci_core.h811 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
962 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
969 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1897 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1899 hci_dev_test_flag(dev, HCI_SC_ENABLED))
1901 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED))
1924 hci_dev_test_flag(dev, HCI_ENABLE_LL_PRIVACY))
/linux/drivers/bluetooth/
H A Dhci_qca.c2510 hci_dev_test_flag(hdev, HCI_SETUP)) in qca_serdev_shutdown()
H A Dbtusb.c1235 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in btusb_validate_sco_handle()