Home
last modified time | relevance | path

Searched refs:hcon (Results 1 – 15 of 15) sorted by relevance

/linux/net/bluetooth/
H A Dsmp.c578 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()
665 oob_data = hci_find_remote_oob_data(hdev, &hcon->dst, in build_pairing_cmd()
681 req->io_capability = conn->hcon->io_capability; in build_pairing_cmd()
692 rsp->io_capability = conn->hcon->io_capability; in build_pairing_cmd()
705 struct hci_dev *hdev = conn->hcon->hdev; in check_enc_key_size()
708 if (conn->hcon->pending_sec_level == BT_SECURITY_FIPS && in check_enc_key_size()
725 struct hci_conn *hcon = conn->hcon; in smp_chan_destroy() local
[all …]
H A Diso.c33 struct hci_conn *hcon; member
111 if (conn->hcon) { in iso_conn_free()
112 spin_lock(&conn->hcon->proto_lock); in iso_conn_free()
115 if (conn->hcon->iso_data == conn) { in iso_conn_free()
116 conn->hcon->iso_data = NULL; in iso_conn_free()
118 hci_conn_drop(conn->hcon); in iso_conn_free()
121 spin_unlock(&conn->hcon->proto_lock); in iso_conn_free()
228 static struct iso_conn *iso_conn_add(struct hci_conn *hcon) in iso_conn_add() argument
229 __must_hold(&hcon->hdev->lock) in iso_conn_add()
233 spin_lock(&hcon->proto_lock); in iso_conn_add()
[all …]
H A Dsco.c44 struct hci_conn *hcon; member
87 if (conn->hcon) { in sco_conn_free()
88 conn->hcon->sco_data = NULL; in sco_conn_free()
89 hci_conn_drop(conn->hcon); in sco_conn_free()
150 if (!conn->hcon) { in sco_sock_timeout()
194 static struct sco_conn *sco_conn_add(struct hci_conn *hcon) in sco_conn_add() argument
196 struct sco_conn *conn = hcon->sco_data; in sco_conn_add()
200 if (!conn->hcon) { in sco_conn_add()
202 conn->hcon = hcon; in sco_conn_add()
206 hci_conn_drop(hcon); in sco_conn_add()
[all …]
H A Dl2cap_core.c75 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 D6lowpan.c232 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 Dsmp.h185 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 Dl2cap_sock.c541 cinfo.hci_handle = chan->conn->hcon->handle; in l2cap_sock_getsockopt_old()
542 memcpy(cinfo.dev_class, chan->conn->hcon->dev_class, 3); in l2cap_sock_getsockopt_old()
594 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt()
597 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt()
686 opt = hci_conn_get_phy(chan->conn->hcon); in l2cap_sock_getsockopt()
948 if (smp_conn_security(conn->hcon, sec.level)) { in l2cap_sock_setsockopt()
1003 if (!conn || !lmp_no_flush_capable(conn->hcon->hdev)) { in l2cap_sock_setsockopt()
1100 err = hci_conn_set_phy(conn->hcon, phys); in l2cap_sock_setsockopt()
H A Dhci_conn.c2257 int hci_conn_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon, in hci_conn_big_create_sync() argument
2270 if (hcon) { in hci_conn_big_create_sync()
2272 hcon->iso_qos = *qos; in hci_conn_big_create_sync()
2274 hcon->num_bis = num_bis; in hci_conn_big_create_sync()
2275 memcpy(hcon->bis, bis, num_bis); in hci_conn_big_create_sync()
2276 hcon->conn_timeout = msecs_to_jiffies(qos->bcast.timeout * 10); in hci_conn_big_create_sync()
2279 return hci_connect_big_sync(hdev, hcon); in hci_conn_big_create_sync()
2928 static struct hci_chan *__hci_chan_lookup_handle(struct hci_conn *hcon, in __hci_chan_lookup_handle() argument
2933 list_for_each_entry(hchan, &hcon->chan_list, list) { in __hci_chan_lookup_handle()
2944 struct hci_conn *hcon; in hci_chan_lookup_handle() local
[all …]
H A Dhci_event.c6832 struct hci_conn *hcon; in hci_le_remote_conn_param_req_evt() local
6845 hcon = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_remote_conn_param_req_evt()
6846 if (!hcon || hcon->state != BT_CONNECTED) { in hci_le_remote_conn_param_req_evt()
6852 if (max > hcon->le_conn_max_interval) { in hci_le_remote_conn_param_req_evt()
6864 if (hcon->role == HCI_ROLE_MASTER) { in hci_le_remote_conn_param_req_evt()
6868 params = hci_conn_params_lookup(hdev, &hcon->dst, in hci_le_remote_conn_param_req_evt()
6869 hcon->dst_type); in hci_le_remote_conn_param_req_evt()
6880 mgmt_new_conn_param(hdev, &hcon->dst, hcon->dst_type, in hci_le_remote_conn_param_req_evt()
/linux/net/bluetooth/rfcomm/
H A Dsock.c801 cinfo.hci_handle = conn->hcon->handle; in rfcomm_sock_getsockopt_old()
802 memcpy(cinfo.dev_class, conn->hcon->dev_class, 3); in rfcomm_sock_getsockopt_old()
H A Dcore.c229 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
1354 hci_conn_switch_role(conn->hcon, 0x00); in __rfcomm_dlc_accept()
/linux/net/bluetooth/hidp/
H A Dcore.c719 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 Dl2cap.h643 struct hci_conn *hcon; member
H A Dhci_core.h877 int l2cap_disconn_ind(struct hci_conn *hcon);
1634 int hci_conn_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon,
/linux/net/bluetooth/bnep/
H A Dcore.c651 SET_NETDEV_DEV(dev, &conn->hcon->dev); in bnep_add_connection()