Home
last modified time | relevance | path

Searched refs:hci_dev_test_flag (Results 1 – 13 of 13) 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()
715 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in hci_cmd_sync_submit()
904 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in hci_update_eir_sync()
907 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_eir_sync()
947 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in hci_update_class_sync()
950 if (hci_dev_test_flag(hdev, HCI_SERVICE_CACHE)) in hci_update_class_sync()
958 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in hci_update_class_sync()
1014 if (!hci_dev_test_flag(hdev, HCI_PRIVACY)) in adv_use_rpa()
[all …]
H A Dhci_core.c341 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_inquiry()
346 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_inquiry()
351 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_inquiry()
457 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) && in hci_dev_open()
458 !hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_open()
483 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in hci_dev_open()
484 !hci_dev_test_flag(hdev, HCI_MGMT)) in hci_dev_open()
518 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_close()
564 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) { in hci_dev_reset()
569 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in hci_dev_reset()
[all …]
H A Dmgmt.c443 if (!hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_index_list()
456 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
457 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
458 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
467 if (!hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
501 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
514 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
515 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
516 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
525 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
[all …]
H A Dsmp.c59 #define AUTH_REQ_MASK(dev) (hci_dev_test_flag(dev, HCI_SC_ENABLED) ? \
529 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in smp_generate_oob()
636 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd()
644 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd()
647 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in build_pairing_cmd()
650 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in build_pairing_cmd()
655 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in build_pairing_cmd()
745 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy()
1099 if (!hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS) && in smp_notify_keys()
1671 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_bredr_pairing_cmd()
[all …]
H A Dhci_debugfs.c279 buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y' : 'N'; in use_debug_keys_read()
297 buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y' : 'N'; in sc_only_mode_read()
506 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_BREDR_SMP) ? 'Y' : 'N'; in force_bredr_smp_read()
751 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y' : 'N'; in force_static_address_read()
772 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) in force_static_address_write()
1153 buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM) ? 'Y' : 'N'; in force_no_mitm_read()
1171 if (enable == hci_dev_test_flag(hdev, HCI_FORCE_NO_MITM)) in force_no_mitm_write()
1274 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read()
1295 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write()
1330 buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; in vendor_diag_read()
[all …]
H A Dhci_event.c114 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel()
363 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_local_name()
383 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_name()
384 hci_dev_test_flag(hdev, HCI_CONFIG)) in hci_cc_read_local_name()
413 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_auth_enable()
549 if (hci_dev_test_flag(hdev, HCI_MGMT)) in hci_cc_write_class_of_dev()
685 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !rp->status) { in hci_cc_write_sc_support()
707 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_version()
708 hci_dev_test_flag(hdev, HCI_CONFIG)) { in hci_cc_read_local_version()
795 if (hci_dev_test_flag(hdev, HCI_SETUP) || in hci_cc_read_local_commands()
[all …]
H A Dhci_sysfs.c86 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) { in bt_host_release()
H A Dhci_conn.c1335 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in hci_get_route()
1463 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le()
1655 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_add_bis()
1706 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in hci_connect_le_scan()
1761 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in hci_connect_acl()
2452 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in hci_connect_cis()
2501 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) { in hci_conn_check_link_mode()
3275 if (!hci_dev_test_flag(conn->hdev, HCI_SCO_FLOWCTL)) in hci_conn_tx_queue()
3390 if (hci_dev_test_flag(hdev, HCI_SCO_FLOWCTL)) in hci_ethtool_ts_info()
H A Dsco.c1058 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_setsockopt()
1257 if (!hci_dev_test_flag(hdev, HCI_OFFLOAD_CODECS_ENABLED)) { in sco_sock_getsockopt()
H A Dl2cap_core.c7185 if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) && in l2cap_conn_add()
7187 hci_dev_test_flag(hcon->hdev, HCI_FORCE_BREDR_SMP))) in l2cap_conn_add()
7343 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in l2cap_chan_connect()
/linux/include/net/bluetooth/
H A Dhci_core.h855 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags) macro
1019 return hci_dev_test_flag(hdev, HCI_SSP_ENABLED) && in hci_conn_ssp_enabled()
1026 return hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in hci_conn_sc_enabled()
1990 !hci_dev_test_flag(dev, HCI_AUTO_OFF))
1992 hci_dev_test_flag(dev, HCI_SC_ENABLED))
1994 !hci_dev_test_flag(dev, HCI_RPA_EXPIRED))
1998 hci_dev_test_flag(dev, HCI_LE_ENABLED))
/linux/drivers/bluetooth/
H A Dbtusb.c1412 if (hci_dev_test_flag(hdev, HCI_USER_CHANNEL)) in btusb_validate_sco_handle()
2294 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame()
2775 if (!hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && in btusb_send_frame_intel()
H A Dhci_qca.c2617 hci_dev_test_flag(hdev, HCI_SETUP)) in qca_serdev_shutdown()