| /linux/net/bluetooth/ |
| H A D | smp.c | 578 bt_dev_dbg(conn->hcon->hdev, "code 0x%2.2x", code); in smp_send_cmd() 632 struct hci_conn *hcon = conn->hcon; in build_pairing_cmd() local 633 struct hci_dev *hdev = hcon->hdev; in build_pairing_cmd() 660 if (hcon->dst_type == ADDR_LE_DEV_PUBLIC) in build_pairing_cmd() 666 oob_data = hci_find_remote_oob_data(hdev, &hcon->dst, in build_pairing_cmd() 683 req->io_capability = conn->hcon->io_capability; in build_pairing_cmd() 694 rsp->io_capability = conn->hcon->io_capability; in build_pairing_cmd() 707 struct hci_dev *hdev = conn->hcon->hdev; in check_enc_key_size() 710 if (conn->hcon in check_enc_key_size() 725 struct hci_conn *hcon = conn->hcon; smp_chan_destroy() local 776 struct hci_conn *hcon = conn->hcon; smp_failure() local 831 struct hci_conn *hcon = conn->hcon; tk_request() local 956 struct hci_conn *hcon = conn->hcon; smp_random() local 1016 struct hci_conn *hcon = conn->hcon; smp_notify_keys() local 1110 struct hci_conn *hcon = smp->conn->hcon; sc_add_ltk() local 1182 struct hci_conn *hcon = smp->conn->hcon; sc_generate_ltk() local 1219 struct hci_conn *hcon = conn->hcon; smp_distribute_keys() local 1362 struct hci_conn *hcon = conn->hcon; smp_chan_create() local 1394 struct hci_conn *hcon = smp->conn->hcon; sc_mackey_and_ltk() local 1415 struct hci_conn *hcon = smp->conn->hcon; sc_dhkey_check() local 1452 struct hci_conn *hcon = conn->hcon; sc_passkey_send_confirm() local 1473 struct hci_conn *hcon = conn->hcon; sc_passkey_round() local 1559 struct hci_conn *hcon = conn->hcon; sc_user_reply() local 1598 smp_user_confirm_reply(struct hci_conn * hcon,u16 mgmt_op,__le32 passkey) smp_user_confirm_reply() argument 2023 struct hci_conn *hcon = conn->hcon; fixup_sc_false_positive() local 2061 struct hci_conn *hcon = conn->hcon; smp_cmd_pairing_confirm() local 2107 struct hci_conn *hcon = conn->hcon; smp_cmd_pairing_random() local 2200 struct hci_conn *hcon = conn->hcon; smp_ltk_encrypt() local 2221 smp_sufficient_security(struct hci_conn * hcon,u8 sec_level,enum smp_key_pref key_pref) smp_sufficient_security() argument 2265 struct hci_conn *hcon = conn->hcon; smp_cmd_security_req() local 2346 smp_conn_security(struct hci_conn * hcon,__u8 sec_level) smp_conn_security() argument 2432 struct hci_conn *hcon; smp_cancel_and_remove_pairing() local 2513 struct hci_conn *hcon = conn->hcon; smp_cmd_initiator_ident() local 2578 struct hci_conn *hcon = conn->hcon; smp_cmd_ident_addr_info() local 2718 struct hci_conn *hcon = conn->hcon; smp_cmd_public_key() local 2859 struct hci_conn *hcon = conn->hcon; smp_cmd_dhkey_check() local 2933 struct hci_conn *hcon = conn->hcon; smp_sig_channel() local 3076 struct hci_conn *hcon = conn->hcon; bredr_pairing() local 3136 struct hci_conn *hcon = conn->hcon; smp_resume_cb() local 3159 struct hci_conn *hcon = conn->hcon; smp_ready_cb() local [all...] |
| H A D | iso.c | 33 struct hci_conn *hcon; member 112 if (conn->hcon) { in iso_conn_free() 113 spin_lock(&conn->hcon->proto_lock); in iso_conn_free() 116 if (conn->hcon->iso_data == conn) { in iso_conn_free() 117 conn->hcon->iso_data = NULL; in iso_conn_free() 119 hci_conn_drop(conn->hcon); in iso_conn_free() 122 spin_unlock(&conn->hcon->proto_lock); in iso_conn_free() 139 * 1. conn->hcon != NULL here in iso_conn_put() 142 * and returns immediately, so conn->hcon is not cleared in iso_conn_put() 143 * 4. iso_conn_free() dereferences conn->hcon in iso_conn_put() 228 iso_conn_add(struct hci_conn * hcon) iso_conn_add() argument 298 iso_conn_del(struct hci_conn * hcon,int err) iso_conn_del() argument 391 struct hci_conn *hcon; iso_connect_bis() local 495 struct hci_conn *hcon; iso_connect_cis() local 894 struct hci_conn *hcon = iso_pi(sk)->conn->hcon; iso_sock_disconn() local 1311 struct hci_conn *hcon; iso_listen_bis() local 1555 struct hci_conn *hcon = iso_pi(sk)->conn ? iso_sock_getname() local 2195 struct hci_conn *hcon = data; iso_match_big_hcon() local 2217 struct hci_conn *hcon; iso_conn_ready() local 2510 struct hci_conn *hcon; iso_connect_ind() local 2547 struct hci_conn *hcon; iso_connect_ind() local 2620 iso_connect_cfm(struct hci_conn * hcon,__u8 status) iso_connect_cfm() argument 2667 iso_disconn_cfm(struct hci_conn * hcon,__u8 reason) iso_disconn_cfm() argument 2681 struct hci_conn *hcon; iso_recv() local [all...] |
| H A D | sco.c | 44 struct hci_conn *hcon; member 87 /* hcon->sco_data is cleared and the association's reference on the in sco_conn_free() 91 * left to release towards hcon here. in sco_conn_free() 152 if (!conn->hcon) { in sco_sock_timeout() 194 * hcon->sco_data association holds its own reference on the sco_conn for the in sco_conn_add() argument 196 * @hcon is not consumed: the hci_conn reference is taken and owned by the in sco_conn_add() 199 static struct sco_conn *sco_conn_add(struct hci_conn *hcon) in sco_conn_add() 201 struct sco_conn *conn = hcon->sco_data; in sco_conn_add() 215 hcon->sco_data = conn; in sco_conn_add() 216 conn->hcon in sco_conn_add() 258 sco_conn_del(struct hci_conn * hcon,int err) sco_conn_del() argument 315 struct hci_conn *hcon; sco_connect() local 1504 sco_connect_cfm(struct hci_conn * hcon,__u8 status) sco_connect_cfm() argument 1525 sco_disconn_cfm(struct hci_conn * hcon,__u8 reason) sco_disconn_cfm() argument 1537 struct hci_conn *hcon; sco_recv_scodata() local [all...] |
| H A D | l2cap_core.c | 75 static inline u8 bdaddr_src_type(struct hci_conn *hcon) in bdaddr_src_type() argument 77 return bdaddr_type(hcon->type, hcon->src_type); in bdaddr_src_type() 80 static inline u8 bdaddr_dst_type(struct hci_conn *hcon) in bdaddr_dst_type() argument 82 return bdaddr_type(hcon->type, hcon->dst_type); in bdaddr_dst_type() 243 if (conn->hcon->type == LE_LINK) in l2cap_alloc_cid() 633 if (conn->hcon->type == ACL_LINK) in __l2cap_chan_add() 667 hci_conn_hold(conn->hcon); in __l2cap_chan_add() 701 hci_conn_drop(chan->conn->hcon); in l2cap_chan_del() 772 struct hci_conn *hcon = conn->hcon; in l2cap_conn_update_id_addr() local 779 bacpy(&chan->dst, &hcon->dst); in l2cap_conn_update_id_addr() [all …]
|
| H A D | 6lowpan.c | 232 if (conn->hcon->hdev == entry->hdev) { in lookup_dev() 616 static bool is_bt_6lowpan(struct hci_conn *hcon) in is_bt_6lowpan() argument 618 if (hcon->type != LE_LINK) in is_bt_6lowpan() 690 SET_NETDEV_DEV(netdev, &chan->conn->hcon->hdev->dev); in setup_netdev() 695 (*dev)->hdev = chan->conn->hcon->hdev; in setup_netdev() 965 struct hci_conn *hcon; in get_l2cap_conn() local 1003 hcon = hci_conn_hash_lookup_le(hdev, addr, le_addr_type); in get_l2cap_conn() 1004 if (!hcon) { in get_l2cap_conn() 1010 lockdep_assert_held(&hcon->hdev->lock); in get_l2cap_conn() 1012 *conn = l2cap_conn_hold_unless_zero(hcon->l2cap_data); in get_l2cap_conn() [all …]
|
| H A D | smp.h | 185 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level, 187 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
|
| H A D | l2cap_sock.c | 563 cinfo.hci_handle = conn->hcon->handle; in l2cap_sock_getsockopt_old() 564 memcpy(cinfo.dev_class, conn->hcon->dev_class, 3); in l2cap_sock_getsockopt_old() 622 sec.level = conn->hcon->sec_level; in l2cap_sock_getsockopt() 625 sec.key_size = conn->hcon->enc_key_size; in l2cap_sock_getsockopt() 716 opt = hci_conn_get_phy(conn->hcon); in l2cap_sock_getsockopt() 981 if (smp_conn_security(conn->hcon, sec.level)) { in l2cap_sock_setsockopt() 1037 if (!conn || !lmp_no_flush_capable(conn->hcon->hdev)) { in l2cap_sock_setsockopt() 1131 err = hci_conn_set_phy(conn->hcon, phys); in l2cap_sock_setsockopt()
|
| H A D | hci_conn.c | 177 BT_DBG("hcon %p", conn); in hci_disconnect() 202 BT_DBG("hcon %p", conn); in hci_add_sco() 225 BT_DBG("hcon %p skipped attempt %d, eSCO 2M not supported", in find_next_esco_param() 289 bt_dev_dbg(hdev, "hcon %p", conn); in hci_enhanced_setup_sync() 416 bt_dev_dbg(hdev, "hcon %p", conn); in hci_setup_sync_conn() 607 BT_DBG("hcon %p", conn); in hci_le_start_enc() 628 BT_DBG("hcon %p", conn); in hci_sco_setup() 647 BT_DBG("hcon %p state %s", conn, state_to_string(conn->state)); in hci_conn_timeout() 671 BT_DBG("hcon %p mode %d", conn, conn->mode); in hci_conn_idle() 859 bt_dev_dbg(hdev, "hcon in hci_le_big_terminate() 2280 hci_conn_big_create_sync(struct hci_dev * hdev,struct hci_conn * hcon,struct bt_iso_qos * qos,__u16 sync_handle,__u8 num_bis,__u8 bis[]) hci_conn_big_create_sync() argument 2960 __hci_chan_lookup_handle(struct hci_conn * hcon,__u16 handle) __hci_chan_lookup_handle() argument 2976 struct hci_conn *hcon; hci_chan_lookup_handle() local [all...] |
| H A D | hci_event.c | 6833 struct hci_conn *hcon; in hci_le_remote_conn_param_req_evt() local 6846 hcon = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_remote_conn_param_req_evt() 6847 if (!hcon || hcon->state != BT_CONNECTED) { in hci_le_remote_conn_param_req_evt() 6853 if (max > hcon->le_conn_max_interval) { in hci_le_remote_conn_param_req_evt() 6865 if (hcon->role == HCI_ROLE_MASTER) { in hci_le_remote_conn_param_req_evt() 6869 params = hci_conn_params_lookup(hdev, &hcon->dst, in hci_le_remote_conn_param_req_evt() 6870 hcon->dst_type); in hci_le_remote_conn_param_req_evt() 6881 mgmt_new_conn_param(hdev, &hcon->dst, hcon->dst_type, in hci_le_remote_conn_param_req_evt()
|
| /linux/net/bluetooth/rfcomm/ |
| H A D | sock.c | 804 cinfo.hci_handle = conn->hcon->handle; in rfcomm_sock_getsockopt_old() 805 memcpy(cinfo.dev_class, conn->hcon->dev_class, 3); in rfcomm_sock_getsockopt_old()
|
| H A D | core.c | 228 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security() 1410 hci_conn_switch_role(conn->hcon, 0x00); in rfcomm_recv_sabm()
|
| /linux/net/bluetooth/hidp/ |
| H A D | core.c | 719 input->dev.parent = &session->conn->hcon->dev; in hidp_setup_input() 809 hid->dev.parent = &session->conn->hcon->dev; in hidp_setup_hid()
|
| /linux/include/net/bluetooth/ |
| H A D | l2cap.h | 643 struct hci_conn *hcon; member
|
| H A D | hci_core.h | 878 int l2cap_disconn_ind(struct hci_conn *hcon); 1487 /* Ignore the listen hcon, we are looking in hci_conn_hash_lookup_pa_sync_handle() 1488 * for the child hcon that was created as in hci_conn_hash_lookup_pa_sync_handle() 1635 int hci_conn_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon, 1695 BT_DBG("hcon %p orig refcnt %d", conn, atomic_read(&conn->refcnt)); in hci_conn_hold() 1705 BT_DBG("hcon %p orig refcnt %d", conn, atomic_read(&conn->refcnt)); in hci_conn_drop()
|
| /linux/net/bluetooth/bnep/ |
| H A D | core.c | 666 SET_NETDEV_DEV(dev, &conn->hcon->dev); in bnep_add_connection()
|