/Linux-v6.6/net/bluetooth/ |
D | smp.c | 600 bt_dev_dbg(conn->hcon->hdev, "code 0x%2.2x", code); in smp_send_cmd() 654 struct hci_conn *hcon = conn->hcon; in build_pairing_cmd() local 655 struct hci_dev *hdev = hcon->hdev; in build_pairing_cmd() 682 if (hcon->dst_type == ADDR_LE_DEV_PUBLIC) in build_pairing_cmd() 687 oob_data = hci_find_remote_oob_data(hdev, &hcon->dst, in build_pairing_cmd() 703 req->io_capability = conn->hcon->io_capability; in build_pairing_cmd() 714 rsp->io_capability = conn->hcon->io_capability; in build_pairing_cmd() 727 struct hci_dev *hdev = conn->hcon->hdev; in check_enc_key_size() 730 if (conn->hcon->pending_sec_level == BT_SECURITY_FIPS && in check_enc_key_size() 747 struct hci_conn *hcon = conn->hcon; in smp_chan_destroy() local [all …]
|
D | amp.c | 108 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 …]
|
D | iso.c | 26 struct hci_conn *hcon; member 130 static struct iso_conn *iso_conn_add(struct hci_conn *hcon) in iso_conn_add() argument 132 struct iso_conn *conn = hcon->iso_data; in iso_conn_add() 135 if (!conn->hcon) in iso_conn_add() 136 conn->hcon = hcon; in iso_conn_add() 147 hcon->iso_data = conn; in iso_conn_add() 148 conn->hcon = hcon; in iso_conn_add() 151 BT_DBG("hcon %p conn %p", hcon, conn); in iso_conn_add() 172 if (conn->hcon) in iso_chan_del() 173 hci_conn_drop(conn->hcon); in iso_chan_del() [all …]
|
D | sco.c | 46 struct hci_conn *hcon; member 123 static struct sco_conn *sco_conn_add(struct hci_conn *hcon) in sco_conn_add() argument 125 struct hci_dev *hdev = hcon->hdev; in sco_conn_add() 126 struct sco_conn *conn = hcon->sco_data; in sco_conn_add() 129 if (!conn->hcon) in sco_conn_add() 130 conn->hcon = hcon; in sco_conn_add() 141 hcon->sco_data = conn; in sco_conn_add() 142 conn->hcon = hcon; in sco_conn_add() 149 BT_DBG("hcon %p conn %p", hcon, conn); in sco_conn_add() 170 if (conn->hcon) in sco_chan_del() [all …]
|
D | l2cap_core.c | 80 static inline u8 bdaddr_src_type(struct hci_conn *hcon) in bdaddr_src_type() argument 82 return bdaddr_type(hcon->type, hcon->src_type); in bdaddr_src_type() 85 static inline u8 bdaddr_dst_type(struct hci_conn *hcon) in bdaddr_dst_type() argument 87 return bdaddr_type(hcon->type, hcon->dst_type); in bdaddr_dst_type() 270 if (conn->hcon->type == LE_LINK) in l2cap_alloc_cid() 596 if (conn->hcon->type == ACL_LINK) in __l2cap_chan_add() 630 hci_conn_hold(conn->hcon); in __l2cap_chan_add() 654 struct amp_mgr *mgr = conn->hcon->amp_mgr; in l2cap_chan_del() 668 hci_conn_drop(conn->hcon); in l2cap_chan_del() 749 struct hci_conn *hcon = conn->hcon; in l2cap_conn_update_id_addr() local [all …]
|
D | amp.h | 29 int phylink_gen_key(struct hci_conn *hcon, u8 *data, u8 *len, u8 *type); 34 struct hci_conn *hcon); 36 struct hci_conn *hcon); 38 struct hci_conn *hcon);
|
D | a2mp.c | 418 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:%u -> rem:%u", 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 527 hcon = phylink_add(hdev, mgr, req->local_id, false); in a2mp_createphyslink_req() 528 if (hcon) { in a2mp_createphyslink_req() 529 amp_accept_phylink(hdev, mgr, hcon); in a2mp_createphyslink_req() 560 struct hci_conn *hcon; in a2mp_discphyslink_req() local [all …]
|
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 …]
|
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);
|
D | hci_event.c | 5675 struct hci_conn *hcon; in hci_chan_selected_evt() local 5679 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_chan_selected_evt() 5680 if (!hcon) in hci_chan_selected_evt() 5683 amp_read_loc_assoc_final_data(hdev, hcon); in hci_chan_selected_evt() 5690 struct hci_conn *hcon, *bredr_hcon; in hci_phy_link_complete_evt() local 5697 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_phy_link_complete_evt() 5698 if (!hcon) in hci_phy_link_complete_evt() 5701 if (!hcon->amp_mgr) in hci_phy_link_complete_evt() 5705 hci_conn_del(hcon); in hci_phy_link_complete_evt() 5709 bredr_hcon = hcon->amp_mgr->l2cap_conn->hcon; in hci_phy_link_complete_evt() [all …]
|
D | l2cap_sock.c | 535 cinfo.hci_handle = chan->conn->hcon->handle; in l2cap_sock_getsockopt_old() 536 memcpy(cinfo.dev_class, chan->conn->hcon->dev_class, 3); in l2cap_sock_getsockopt_old() 587 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 590 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt() 671 phys = hci_conn_get_phy(chan->conn->hcon); in l2cap_sock_getsockopt() 934 if (smp_conn_security(conn->hcon, sec.level)) { in l2cap_sock_setsockopt() 991 if (!conn || !lmp_no_flush_capable(conn->hcon->hdev)) { in l2cap_sock_setsockopt()
|
D | hci_conn.c | 2132 int hci_le_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon, in hci_le_big_create_sync() argument 2149 if (hcon) in hci_le_big_create_sync() 2150 hcon->iso_qos.bcast.big = qos->bcast.big; in hci_le_big_create_sync() 2766 static struct hci_chan *__hci_chan_lookup_handle(struct hci_conn *hcon, in __hci_chan_lookup_handle() argument 2771 list_for_each_entry(hchan, &hcon->chan_list, list) { in __hci_chan_lookup_handle() 2782 struct hci_conn *hcon; in hci_chan_lookup_handle() local 2787 list_for_each_entry_rcu(hcon, &h->list, list) { in hci_chan_lookup_handle() 2788 hchan = __hci_chan_lookup_handle(hcon, handle); in hci_chan_lookup_handle()
|
/Linux-v6.6/include/net/bluetooth/ |
D | hci_core.h | 858 int l2cap_disconn_ind(struct hci_conn *hcon); 859 void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags); 863 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb); 871 static inline void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb) in sco_recv_scodata() argument 878 void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, u16 flags); 885 static inline void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, in iso_recv() argument 1463 int hci_le_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon,
|
D | l2cap.h | 675 struct hci_conn *hcon; member
|
/Linux-v6.6/net/bluetooth/bnep/ |
D | core.c | 546 if (!conn || !conn->hcon) in bnep_get_device() 549 return &conn->hcon->dev; in bnep_get_device()
|
/Linux-v6.6/net/bluetooth/rfcomm/ |
D | sock.c | 787 cinfo.hci_handle = conn->hcon->handle; in rfcomm_sock_getsockopt_old() 788 memcpy(cinfo.dev_class, conn->hcon->dev_class, 3); in rfcomm_sock_getsockopt_old()
|
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-v6.6/net/bluetooth/hidp/ |
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()
|