Home
last modified time | relevance | path

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

/Linux-v5.10/net/bluetooth/
Dsmp.c653 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
754 mgmt_smp_complete(hcon, complete); in smp_chan_destroy()
[all …]
Damp.c108 bdaddr_t *dst = &mgr->l2cap_conn->hcon->dst; in phylink_add()
109 struct hci_conn *hcon; in phylink_add() local
112 hcon = hci_conn_add(hdev, AMP_LINK, dst, role); in phylink_add()
113 if (!hcon) in phylink_add()
116 BT_DBG("hcon %p dst %pMR", hcon, dst); in phylink_add()
118 hcon->state = BT_CONNECT; in phylink_add()
119 hcon->attempt++; in phylink_add()
120 hcon->handle = __next_handle(mgr); in phylink_add()
121 hcon->remote_id = remote_id; in phylink_add()
122 hcon->amp_mgr = amp_mgr_get(mgr); in phylink_add()
[all …]
Dsco.c46 struct hci_conn *hcon; member
105 static struct sco_conn *sco_conn_add(struct hci_conn *hcon) in sco_conn_add() argument
107 struct hci_dev *hdev = hcon->hdev; in sco_conn_add()
108 struct sco_conn *conn = hcon->sco_data; in sco_conn_add()
119 hcon->sco_data = conn; in sco_conn_add()
120 conn->hcon = hcon; in sco_conn_add()
127 BT_DBG("hcon %p conn %p", hcon, conn); in sco_conn_add()
148 if (conn->hcon) in sco_chan_del()
149 hci_conn_drop(conn->hcon); in sco_chan_del()
159 static void sco_conn_del(struct hci_conn *hcon, int err) in sco_conn_del() argument
[all …]
Dl2cap_core.c77 static inline u8 bdaddr_src_type(struct hci_conn *hcon) in bdaddr_src_type() argument
79 return bdaddr_type(hcon->type, hcon->src_type); in bdaddr_src_type()
82 static inline u8 bdaddr_dst_type(struct hci_conn *hcon) in bdaddr_dst_type() argument
84 return bdaddr_type(hcon->type, hcon->dst_type); in bdaddr_dst_type()
254 if (conn->hcon->type == LE_LINK) in l2cap_alloc_cid()
563 if (conn->hcon->type == ACL_LINK) in __l2cap_chan_add()
597 hci_conn_hold(conn->hcon); in __l2cap_chan_add()
621 struct amp_mgr *mgr = conn->hcon->amp_mgr; in l2cap_chan_del()
635 hci_conn_drop(conn->hcon); in l2cap_chan_del()
707 struct hci_conn *hcon = conn->hcon; in l2cap_conn_update_id_addr() local
[all …]
Damp.h29 int phylink_gen_key(struct hci_conn *hcon, u8 *data, u8 *len, u8 *type);
35 struct hci_conn *hcon);
37 struct hci_conn *hcon);
39 struct hci_conn *hcon);
Da2mp.c418 struct hci_conn *hcon; in a2mp_getampassoc_rsp() local
456 hcon = phylink_add(hdev, mgr, rsp->id, true); in a2mp_getampassoc_rsp()
457 if (!hcon) in a2mp_getampassoc_rsp()
460 BT_DBG("Created hcon %p: loc:%d -> rem:%d", hcon, hdev->id, rsp->id); in a2mp_getampassoc_rsp()
464 amp_create_phylink(hdev, mgr, hcon); in a2mp_getampassoc_rsp()
478 struct hci_conn *hcon; in a2mp_createphyslink_req() local
526 hcon = phylink_add(hdev, mgr, req->local_id, false); in a2mp_createphyslink_req()
527 if (hcon) { in a2mp_createphyslink_req()
528 amp_accept_phylink(hdev, mgr, hcon); in a2mp_createphyslink_req()
559 struct hci_conn *hcon; in a2mp_discphyslink_req() local
[all …]
D6lowpan.c253 if (conn->hcon->hdev == entry->hdev) { in lookup_dev()
634 static bool is_bt_6lowpan(struct hci_conn *hcon) in is_bt_6lowpan() argument
636 if (hcon->type != LE_LINK) in is_bt_6lowpan()
707 SET_NETDEV_DEV(netdev, &chan->conn->hcon->hdev->dev); in setup_netdev()
712 (*dev)->hdev = chan->conn->hcon->hdev; in setup_netdev()
801 if (chan->conn && chan->conn->hcon) { in chan_close_cb()
802 if (!is_bt_6lowpan(chan->conn->hcon)) in chan_close_cb()
993 struct hci_conn *hcon; in get_l2cap_conn() local
1011 hcon = hci_conn_hash_lookup_le(hdev, addr, *addr_type); in get_l2cap_conn()
1014 if (!hcon) in get_l2cap_conn()
[all …]
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);
Dhci_event.c4914 struct hci_conn *hcon; in hci_chan_selected_evt() local
4920 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_chan_selected_evt()
4921 if (!hcon) in hci_chan_selected_evt()
4924 amp_read_loc_assoc_final_data(hdev, hcon); in hci_chan_selected_evt()
4931 struct hci_conn *hcon, *bredr_hcon; in hci_phy_link_complete_evt() local
4938 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_phy_link_complete_evt()
4939 if (!hcon) { in hci_phy_link_complete_evt()
4945 hci_conn_del(hcon); in hci_phy_link_complete_evt()
4950 bredr_hcon = hcon->amp_mgr->l2cap_conn->hcon; in hci_phy_link_complete_evt()
4952 hcon->state = BT_CONNECTED; in hci_phy_link_complete_evt()
[all …]
Dl2cap_sock.c517 cinfo.hci_handle = chan->conn->hcon->handle; in l2cap_sock_getsockopt_old()
518 memcpy(cinfo.dev_class, chan->conn->hcon->dev_class, 3); in l2cap_sock_getsockopt_old()
569 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt()
572 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt()
653 phys = hci_conn_get_phy(chan->conn->hcon); in l2cap_sock_getsockopt()
914 if (smp_conn_security(conn->hcon, sec.level)) { in l2cap_sock_setsockopt()
971 if (!conn || !lmp_no_flush_capable(conn->hcon->hdev)) { in l2cap_sock_setsockopt()
Dhci_conn.c1756 static struct hci_chan *__hci_chan_lookup_handle(struct hci_conn *hcon, in __hci_chan_lookup_handle() argument
1761 list_for_each_entry(hchan, &hcon->chan_list, list) { in __hci_chan_lookup_handle()
1772 struct hci_conn *hcon; in hci_chan_lookup_handle() local
1777 list_for_each_entry_rcu(hcon, &h->list, list) { in hci_chan_lookup_handle()
1778 hchan = __hci_chan_lookup_handle(hcon, handle); in hci_chan_lookup_handle()
/Linux-v5.10/net/bluetooth/bnep/
Dcore.c546 if (!conn || !conn->hcon) in bnep_get_device()
549 return &conn->hcon->dev; in bnep_get_device()
/Linux-v5.10/include/net/bluetooth/
Dhci_core.h723 int l2cap_disconn_ind(struct hci_conn *hcon);
724 void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags);
728 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb);
736 static inline void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb) in sco_recv_scodata() argument
Dl2cap.h673 struct hci_conn *hcon; member
/Linux-v5.10/net/bluetooth/rfcomm/
Dsock.c815 cinfo.hci_handle = conn->hcon->handle; in rfcomm_sock_getsockopt_old()
816 memcpy(cinfo.dev_class, conn->hcon->dev_class, 3); in rfcomm_sock_getsockopt_old()
Dcore.c228 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
1297 hci_conn_switch_role(conn->hcon, 0x00); in rfcomm_dlc_accept()
/Linux-v5.10/net/bluetooth/hidp/
Dcore.c703 input->dev.parent = &session->conn->hcon->dev; in hidp_setup_input()
794 hid->dev.parent = &session->conn->hcon->dev; in hidp_setup_hid()