Home
last modified time | relevance | path

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

/linux-6.15/net/bluetooth/
H A Dsmp.c653 struct hci_conn *hcon = conn->hcon; in build_pairing_cmd() local
746 struct hci_conn *hcon = conn->hcon; in smp_chan_destroy() local
798 struct hci_conn *hcon = conn->hcon; in smp_failure() local
935 hcon->type, hcon->dst_type); in tk_request()
938 hcon->type, hcon->dst_type, in tk_request()
942 hcon->type, hcon->dst_type, in tk_request()
1030 hci_add_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, in smp_random()
1148 smp->ltk = hci_add_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, in sc_add_ltk()
2200 if (hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, in smp_cmd_pairing_random()
2250 key = hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, hcon->role); in smp_ltk_encrypt()
[all …]
H A Diso.c106 if (conn->hcon) { in iso_conn_free()
205 conn->hcon = hcon; in iso_conn_add()
221 conn->hcon = hcon; in iso_conn_add()
758 struct hci_conn *hcon = iso_pi(sk)->conn->hcon; in iso_sock_disconn() local
1909 hcon = conn->hcon; in iso_conn_ready()
1910 if (!hcon) in iso_conn_ready()
1919 parent = iso_get_sock(&hcon->src, &hcon->dst, in iso_conn_ready()
1927 parent = iso_get_sock(&hcon->src, &hcon->dst, in iso_conn_ready()
2106 struct hci_conn *hcon = iso_pi(sk)->conn->hcon; in iso_connect_ind() local
2143 hcon = iso_pi(sk)->conn->hcon; in iso_connect_ind()
[all …]
H A Dsco.c46 struct hci_conn *hcon; member
89 if (conn->hcon) { in sco_conn_free()
152 if (!conn->hcon) { in sco_sock_timeout()
199 if (!conn->hcon) { in sco_conn_add()
201 conn->hcon = hcon; in sco_conn_add()
216 conn->hcon = hcon; in sco_conn_add()
219 if (hcon->mtu > 0) in sco_conn_add()
342 if (IS_ERR(hcon)) { in sco_connect()
1427 if (hcon->type != SCO_LINK && hcon->type != ESCO_LINK) in sco_connect_cfm()
1430 BT_DBG("hcon %p bdaddr %pMR status %u", hcon, &hcon->dst, status); in sco_connect_cfm()
[all …]
H A Dl2cap_core.c742 struct hci_conn *hcon = conn->hcon; in l2cap_conn_update_id_addr() local
1580 struct hci_conn *hcon = conn->hcon; in l2cap_le_conn_ready() local
1614 struct hci_conn *hcon = conn->hcon; in l2cap_conn_ready() local
4635 struct hci_conn *hcon = conn->hcon; in l2cap_conn_param_update_req() local
4672 mgmt_new_conn_param(hcon->hdev, &hcon->dst, hcon->dst_type, in l2cap_conn_param_update_req()
4686 struct hci_conn *hcon = conn->hcon; in l2cap_le_connect_rsp() local
5160 struct hci_conn *hcon = conn->hcon; in l2cap_ecred_conn_rsp() local
5457 struct hci_conn *hcon = conn->hcon; in l2cap_le_sig_channel() local
5506 struct hci_conn *hcon = conn->hcon; in l2cap_sig_channel() local
6741 struct hci_conn *hcon = conn->hcon; in l2cap_conless_channel() local
[all …]
H A D6lowpan.c225 if (conn->hcon->hdev == entry->hdev) { in lookup_dev()
608 if (hcon->type != LE_LINK) in is_bt_6lowpan()
685 (*dev)->hdev = chan->conn->hcon->hdev; in setup_netdev()
774 if (chan->conn && chan->conn->hcon) { in chan_close_cb()
775 if (!is_bt_6lowpan(chan->conn->hcon)) in chan_close_cb()
961 struct hci_conn *hcon; in get_l2cap_conn() local
983 if (!hcon) in get_l2cap_conn()
986 *conn = (struct l2cap_conn *)hcon->l2cap_data; in get_l2cap_conn()
988 BT_DBG("conn %p dst %pMR type %u", *conn, &hcon->dst, hcon->dst_type); in get_l2cap_conn()
1121 if (!is_bt_6lowpan(conn->hcon)) in lowpan_control_write()
[all …]
H A Dsmp.h186 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 Dhci_conn.c2103 if (hcon) { in hci_conn_big_create_sync()
2105 hcon->iso_qos = *qos; in hci_conn_big_create_sync()
2107 hcon->num_bis = num_bis; in hci_conn_big_create_sync()
2108 memcpy(hcon->bis, bis, num_bis); in hci_conn_big_create_sync()
2109 hcon->conn_timeout = msecs_to_jiffies(qos->bcast.timeout * 10); in hci_conn_big_create_sync()
2112 return hci_connect_big_sync(hdev, hcon); in hci_conn_big_create_sync()
2717 static struct hci_chan *__hci_chan_lookup_handle(struct hci_conn *hcon, in __hci_chan_lookup_handle() argument
2722 list_for_each_entry(hchan, &hcon->chan_list, list) { in __hci_chan_lookup_handle()
2733 struct hci_conn *hcon; in hci_chan_lookup_handle() local
2738 list_for_each_entry_rcu(hcon, &h->list, list) { in hci_chan_lookup_handle()
[all …]
H A Dl2cap_sock.c537 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 Dhci_event.c6597 struct hci_conn *hcon; in hci_le_remote_conn_param_req_evt() local
6608 hcon = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_remote_conn_param_req_evt()
6609 if (!hcon || hcon->state != BT_CONNECTED) in hci_le_remote_conn_param_req_evt()
6613 if (max > hcon->le_conn_max_interval) in hci_le_remote_conn_param_req_evt()
6621 if (hcon->role == HCI_ROLE_MASTER) { in hci_le_remote_conn_param_req_evt()
6627 params = hci_conn_params_lookup(hdev, &hcon->dst, in hci_le_remote_conn_param_req_evt()
6628 hcon->dst_type); in hci_le_remote_conn_param_req_evt()
6641 mgmt_new_conn_param(hdev, &hcon->dst, hcon->dst_type, in hci_le_remote_conn_param_req_evt()
/linux-6.15/include/net/bluetooth/
H A Dhci_core.h842 int l2cap_disconn_ind(struct hci_conn *hcon);
843 void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags);
847 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb);
855 static inline void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb) in sco_recv_scodata() argument
862 void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, u16 flags);
869 static inline void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, in iso_recv() argument
1567 int hci_conn_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon,
H A Dl2cap.h642 struct hci_conn *hcon; member
/linux-6.15/net/bluetooth/bnep/
H A Dcore.c547 if (!conn || !conn->hcon) in bnep_get_device()
550 return &conn->hcon->dev; in bnep_get_device()
/linux-6.15/net/bluetooth/rfcomm/
H A Dsock.c783 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 Dcore.c232 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-6.15/net/bluetooth/hidp/
H A Dcore.c703 input->dev.parent = &session->conn->hcon->dev; in hidp_setup_input()
793 hid->dev.parent = &session->conn->hcon->dev; in hidp_setup_hid()