/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 106 if (conn->hcon) { in iso_conn_free() 107 conn->hcon->iso_data = NULL; in iso_conn_free() 108 hci_conn_drop(conn->hcon); in iso_conn_free() 197 static struct iso_conn *iso_conn_add(struct hci_conn *hcon) in iso_conn_add() argument 199 struct iso_conn *conn = hcon->iso_data; in iso_conn_add() 203 if (!conn->hcon) { in iso_conn_add() 205 conn->hcon = hcon; in iso_conn_add() 220 hcon->iso_data = conn; in iso_conn_add() 221 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() 215 hcon->sco_data = conn; in sco_conn_add() [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() 599 if (conn->hcon->type == ACL_LINK) in __l2cap_chan_add() 633 hci_conn_hold(conn->hcon); in __l2cap_chan_add() 671 hci_conn_drop(conn->hcon); in l2cap_chan_del() 742 struct hci_conn *hcon = conn->hcon; in l2cap_conn_update_id_addr() local 749 bacpy(&chan->dst, &hcon->dst); in l2cap_conn_update_id_addr() [all …]
|
H A D | 6lowpan.c | 224 if (conn->hcon->hdev == entry->hdev) { in lookup_dev() 605 static bool is_bt_6lowpan(struct hci_conn *hcon) in is_bt_6lowpan() argument 607 if (hcon->type != LE_LINK) in is_bt_6lowpan() 679 SET_NETDEV_DEV(netdev, &chan->conn->hcon->hdev->dev); in setup_netdev() 684 (*dev)->hdev = chan->conn->hcon->hdev; in setup_netdev() 773 if (chan->conn && chan->conn->hcon) { in chan_close_cb() 774 if (!is_bt_6lowpan(chan->conn->hcon)) in chan_close_cb() 955 struct hci_conn *hcon; in get_l2cap_conn() local 973 hcon = hci_conn_hash_lookup_le(hdev, addr, *addr_type); in get_l2cap_conn() 977 if (!hcon) in get_l2cap_conn() [all …]
|
H A D | smp.h | 186 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level, 188 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 | 2255 int hci_le_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon, in hci_le_big_create_sync() argument 2268 if (hcon) { in hci_le_big_create_sync() 2270 hcon->iso_qos = *qos; in hci_le_big_create_sync() 2272 hcon->num_bis = num_bis; in hci_le_big_create_sync() 2273 memcpy(hcon->bis, bis, num_bis); in hci_le_big_create_sync() 2881 static struct hci_chan *__hci_chan_lookup_handle(struct hci_conn *hcon, in __hci_chan_lookup_handle() argument 2886 list_for_each_entry(hchan, &hcon->chan_list, list) { in __hci_chan_lookup_handle() 2897 struct hci_conn *hcon; in hci_chan_lookup_handle() local 2902 list_for_each_entry_rcu(hcon, &h->list, list) { in hci_chan_lookup_handle() 2903 hchan = __hci_chan_lookup_handle(hcon, handle); in hci_chan_lookup_handle()
|
H A D | hci_event.c | 6577 struct hci_conn *hcon; in hci_le_remote_conn_param_req_evt() local 6588 hcon = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_remote_conn_param_req_evt() 6589 if (!hcon || hcon->state != BT_CONNECTED) in hci_le_remote_conn_param_req_evt() 6593 if (max > hcon->le_conn_max_interval) in hci_le_remote_conn_param_req_evt() 6601 if (hcon->role == HCI_ROLE_MASTER) { in hci_le_remote_conn_param_req_evt() 6607 params = hci_conn_params_lookup(hdev, &hcon->dst, in hci_le_remote_conn_param_req_evt() 6608 hcon->dst_type); in hci_le_remote_conn_param_req_evt() 6621 mgmt_new_conn_param(hdev, &hcon->dst, hcon->dst_type, in hci_le_remote_conn_param_req_evt()
|
/linux/include/net/bluetooth/ |
H A D | hci_core.h | 834 int l2cap_disconn_ind(struct hci_conn *hcon); 835 void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags); 839 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb); 847 static inline void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb) in sco_recv_scodata() argument 854 void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, u16 flags); 861 static inline void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, in iso_recv() argument 1561 int hci_le_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon,
|
H A D | l2cap.h | 642 struct hci_conn *hcon; member
|
/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 | 783 cinfo.hci_handle = conn->hcon->handle; in rfcomm_sock_getsockopt_old() 784 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()
|