| /linux/net/bluetooth/ |
| H A D | smp.c | 599 bt_dev_dbg(conn->hcon->hdev, "code 0x%2.2x", code); in smp_send_cmd() 653 struct hci_conn *hcon = conn->hcon; in build_pairing_cmd() local 654 struct hci_dev *hdev = hcon->hdev; in build_pairing_cmd() 681 if (hcon->dst_type == ADDR_LE_DEV_PUBLIC) in build_pairing_cmd() 686 oob_data = hci_find_remote_oob_data(hdev, &hcon->dst, in build_pairing_cmd() 702 req->io_capability = conn->hcon->io_capability; in build_pairing_cmd() 713 rsp->io_capability = conn->hcon->io_capability; in build_pairing_cmd() 726 struct hci_dev *hdev = conn->hcon->hdev; in check_enc_key_size() 729 if (conn->hcon->pending_sec_level == BT_SECURITY_FIPS && in check_enc_key_size() 746 struct hci_conn *hcon = conn->hcon; in smp_chan_destroy() local [all …]
|
| H A D | iso.c | 27 struct hci_conn *hcon; member 107 if (conn->hcon) { in iso_conn_free() 108 conn->hcon->iso_data = NULL; in iso_conn_free() 109 hci_conn_drop(conn->hcon); in iso_conn_free() 200 static struct iso_conn *iso_conn_add(struct hci_conn *hcon) in iso_conn_add() argument 202 struct iso_conn *conn = hcon->iso_data; in iso_conn_add() 206 if (!conn->hcon) { in iso_conn_add() 208 conn->hcon = hcon; in iso_conn_add() 223 hcon->iso_data = conn; in iso_conn_add() 224 conn->hcon = hcon; in iso_conn_add() [all …]
|
| H A D | sco.c | 46 struct hci_conn *hcon; member 89 if (conn->hcon) { in sco_conn_free() 90 conn->hcon->sco_data = NULL; in sco_conn_free() 91 hci_conn_drop(conn->hcon); in sco_conn_free() 152 if (!conn->hcon) { in sco_sock_timeout() 193 static struct sco_conn *sco_conn_add(struct hci_conn *hcon) in sco_conn_add() argument 195 struct sco_conn *conn = hcon->sco_data; in sco_conn_add() 199 if (!conn->hcon) { in sco_conn_add() 201 conn->hcon = hcon; in sco_conn_add() 254 sco_conn_del(struct hci_conn * hcon,int err) sco_conn_del() argument 313 struct hci_conn *hcon; sco_connect() local 1432 sco_connect_cfm(struct hci_conn * hcon,__u8 status) sco_connect_cfm() argument 1451 sco_disconn_cfm(struct hci_conn * hcon,__u8 reason) sco_disconn_cfm() argument 1463 struct hci_conn *hcon; sco_recv_scodata() local [all...] |
| H A D | l2cap_core.c | 78 static inline u8 bdaddr_src_type(struct hci_conn *hcon) in bdaddr_src_type() argument 80 return bdaddr_type(hcon->type, hcon->src_type); in bdaddr_src_type() 83 static inline u8 bdaddr_dst_type(struct hci_conn *hcon) in bdaddr_dst_type() argument 85 return bdaddr_type(hcon->type, hcon->dst_type); in bdaddr_dst_type() 246 if (conn->hcon->type == LE_LINK) in l2cap_alloc_cid() 600 if (conn->hcon->type == ACL_LINK) in __l2cap_chan_add() 634 hci_conn_hold(conn->hcon); in __l2cap_chan_add() 672 hci_conn_drop(conn->hcon); in l2cap_chan_del() 743 struct hci_conn *hcon = conn->hcon; in l2cap_conn_update_id_addr() local 750 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() 614 static bool is_bt_6lowpan(struct hci_conn *hcon) in is_bt_6lowpan() argument 616 if (hcon->type != LE_LINK) in is_bt_6lowpan() 688 SET_NETDEV_DEV(netdev, &chan->conn->hcon->hdev->dev); in setup_netdev() 693 (*dev)->hdev = chan->conn->hcon->hdev; in setup_netdev() 782 if (chan->conn && chan->conn->hcon) { in chan_close_cb() 783 if (!is_bt_6lowpan(chan->conn->hcon)) in chan_close_cb() 971 struct hci_conn *hcon; in get_l2cap_conn() local 1009 hcon = hci_conn_hash_lookup_le(hdev, addr, le_addr_type); in get_l2cap_conn() 1013 if (!hcon) in get_l2cap_conn() [all …]
|
| H A D | smp.h | 187 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level, 189 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
|
| H A D | l2cap_sock.c | 537 cinfo.hci_handle = chan->conn->hcon->handle; in l2cap_sock_getsockopt_old() 538 memcpy(cinfo.dev_class, chan->conn->hcon->dev_class, 3); in l2cap_sock_getsockopt_old() 589 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 592 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt() 673 phys = hci_conn_get_phy(chan->conn->hcon); in l2cap_sock_getsockopt() 932 if (smp_conn_security(conn->hcon, sec.level)) { in l2cap_sock_setsockopt() 987 if (!conn || !lmp_no_flush_capable(conn->hcon->hdev)) { in l2cap_sock_setsockopt()
|
| H A D | hci_conn.c | 2164 int hci_conn_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon, in hci_conn_big_create_sync() argument 2177 if (hcon) { in hci_conn_big_create_sync() 2179 hcon->iso_qos = *qos; in hci_conn_big_create_sync() 2181 hcon->num_bis = num_bis; in hci_conn_big_create_sync() 2182 memcpy(hcon->bis, bis, num_bis); in hci_conn_big_create_sync() 2183 hcon->conn_timeout = msecs_to_jiffies(qos->bcast.timeout * 10); in hci_conn_big_create_sync() 2186 return hci_connect_big_sync(hdev, hcon); in hci_conn_big_create_sync() 2820 static struct hci_chan *__hci_chan_lookup_handle(struct hci_conn *hcon, in __hci_chan_lookup_handle() argument 2825 list_for_each_entry(hchan, &hcon->chan_list, list) { in __hci_chan_lookup_handle() 2836 struct hci_conn *hcon; in hci_chan_lookup_handle() local [all …]
|
| H A D | hci_event.c | 6721 struct hci_conn *hcon; in hci_le_remote_conn_param_req_evt() local 6732 hcon = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_remote_conn_param_req_evt() 6733 if (!hcon || hcon->state != BT_CONNECTED) in hci_le_remote_conn_param_req_evt() 6737 if (max > hcon->le_conn_max_interval) in hci_le_remote_conn_param_req_evt() 6745 if (hcon->role == HCI_ROLE_MASTER) { in hci_le_remote_conn_param_req_evt() 6751 params = hci_conn_params_lookup(hdev, &hcon->dst, in hci_le_remote_conn_param_req_evt() 6752 hcon->dst_type); in hci_le_remote_conn_param_req_evt() 6765 mgmt_new_conn_param(hdev, &hcon->dst, hcon->dst_type, in hci_le_remote_conn_param_req_evt()
|
| /linux/net/bluetooth/bnep/ |
| H A D | core.c | 547 if (!conn || !conn->hcon) in bnep_get_device() 550 return &conn->hcon->dev; in bnep_get_device()
|
| /linux/net/bluetooth/rfcomm/ |
| H A D | sock.c | 784 cinfo.hci_handle = conn->hcon->handle; in rfcomm_sock_getsockopt_old() 785 memcpy(cinfo.dev_class, conn->hcon->dev_class, 3); in rfcomm_sock_getsockopt_old()
|
| H A D | core.c | 232 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security() 1337 hci_conn_switch_role(conn->hcon, 0x00); in rfcomm_dlc_accept()
|
| /linux/net/bluetooth/hidp/ |
| H A D | core.c | 703 input->dev.parent = &session->conn->hcon->dev; in hidp_setup_input() 793 hid->dev.parent = &session->conn->hcon->dev; in hidp_setup_hid()
|
| /linux/include/net/bluetooth/ |
| H A D | l2cap.h | 642 struct hci_conn *hcon; member
|
| H A D | hci_core.h | 860 int l2cap_disconn_ind(struct hci_conn *hcon); 1616 int hci_conn_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon,
|