/Linux-v4.19/net/bluetooth/ |
D | smp.c | 672 struct hci_conn *hcon = conn->hcon; in build_pairing_cmd() local 673 struct hci_dev *hdev = hcon->hdev; in build_pairing_cmd() 700 if (hcon->dst_type == ADDR_LE_DEV_PUBLIC) in build_pairing_cmd() 705 oob_data = hci_find_remote_oob_data(hdev, &hcon->dst, in build_pairing_cmd() 721 req->io_capability = conn->hcon->io_capability; in build_pairing_cmd() 732 rsp->io_capability = conn->hcon->io_capability; in build_pairing_cmd() 745 struct hci_dev *hdev = conn->hcon->hdev; in check_enc_key_size() 761 struct hci_conn *hcon = conn->hcon; in smp_chan_destroy() local 769 mgmt_smp_complete(hcon, complete); in smp_chan_destroy() 783 !hci_dev_test_flag(hcon->hdev, HCI_KEEP_DEBUG_KEYS)) { in smp_chan_destroy() [all …]
|
D | amp.c | 115 bdaddr_t *dst = &mgr->l2cap_conn->hcon->dst; in phylink_add() 116 struct hci_conn *hcon; in phylink_add() local 119 hcon = hci_conn_add(hdev, AMP_LINK, dst, role); in phylink_add() 120 if (!hcon) in phylink_add() 123 BT_DBG("hcon %p dst %pMR", hcon, dst); in phylink_add() 125 hcon->state = BT_CONNECT; in phylink_add() 126 hcon->attempt++; in phylink_add() 127 hcon->handle = __next_handle(mgr); in phylink_add() 128 hcon->remote_id = remote_id; in phylink_add() 129 hcon->amp_mgr = amp_mgr_get(mgr); in phylink_add() [all …]
|
D | sco.c | 46 struct hci_conn *hcon; member 104 static struct sco_conn *sco_conn_add(struct hci_conn *hcon) in sco_conn_add() argument 106 struct hci_dev *hdev = hcon->hdev; in sco_conn_add() 107 struct sco_conn *conn = hcon->sco_data; in sco_conn_add() 118 hcon->sco_data = conn; in sco_conn_add() 119 conn->hcon = hcon; in sco_conn_add() 126 BT_DBG("hcon %p conn %p", hcon, conn); in sco_conn_add() 147 if (conn->hcon) in sco_chan_del() 148 hci_conn_drop(conn->hcon); in sco_chan_del() 158 static void sco_conn_del(struct hci_conn *hcon, int err) in sco_conn_del() argument [all …]
|
D | l2cap_core.c | 79 static inline u8 bdaddr_src_type(struct hci_conn *hcon) in bdaddr_src_type() argument 81 return bdaddr_type(hcon->type, hcon->src_type); in bdaddr_src_type() 84 static inline u8 bdaddr_dst_type(struct hci_conn *hcon) in bdaddr_dst_type() argument 86 return bdaddr_type(hcon->type, hcon->dst_type); in bdaddr_dst_type() 248 if (conn->hcon->type == LE_LINK) in l2cap_alloc_cid() 541 if (conn->hcon->type == ACL_LINK) in __l2cap_chan_add() 575 hci_conn_hold(conn->hcon); in __l2cap_chan_add() 599 struct amp_mgr *mgr = conn->hcon->amp_mgr; in l2cap_chan_del() 613 hci_conn_drop(conn->hcon); in l2cap_chan_del() 662 struct hci_conn *hcon = conn->hcon; in l2cap_conn_update_id_addr() local [all …]
|
D | amp.h | 36 int phylink_gen_key(struct hci_conn *hcon, u8 *data, u8 *len, u8 *type); 42 struct hci_conn *hcon); 44 struct hci_conn *hcon); 46 struct hci_conn *hcon);
|
D | a2mp.c | 416 struct hci_conn *hcon; in a2mp_getampassoc_rsp() local 454 hcon = phylink_add(hdev, mgr, rsp->id, true); in a2mp_getampassoc_rsp() 455 if (!hcon) in a2mp_getampassoc_rsp() 458 BT_DBG("Created hcon %p: loc:%d -> rem:%d", hcon, hdev->id, rsp->id); in a2mp_getampassoc_rsp() 462 amp_create_phylink(hdev, mgr, hcon); in a2mp_getampassoc_rsp() 477 struct hci_conn *hcon; in a2mp_createphyslink_req() local 523 hcon = phylink_add(hdev, mgr, req->local_id, false); in a2mp_createphyslink_req() 524 if (hcon) { in a2mp_createphyslink_req() 525 amp_accept_phylink(hdev, mgr, hcon); in a2mp_createphyslink_req() 556 struct hci_conn *hcon; in a2mp_discphyslink_req() local [all …]
|
D | 6lowpan.c | 250 if (conn->hcon->hdev == entry->hdev) { in lookup_dev() 631 static bool is_bt_6lowpan(struct hci_conn *hcon) in is_bt_6lowpan() argument 633 if (hcon->type != LE_LINK) in is_bt_6lowpan() 704 SET_NETDEV_DEV(netdev, &chan->conn->hcon->hdev->dev); in setup_netdev() 709 (*dev)->hdev = chan->conn->hcon->hdev; in setup_netdev() 798 if (chan->conn && chan->conn->hcon) { in chan_close_cb() 799 if (!is_bt_6lowpan(chan->conn->hcon)) in chan_close_cb() 990 struct hci_conn *hcon; in get_l2cap_conn() local 1008 hcon = hci_conn_hash_lookup_le(hdev, addr, *addr_type); in get_l2cap_conn() 1011 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 | 4633 struct hci_conn *hcon; in hci_chan_selected_evt() local 4639 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_chan_selected_evt() 4640 if (!hcon) in hci_chan_selected_evt() 4643 amp_read_loc_assoc_final_data(hdev, hcon); in hci_chan_selected_evt() 4650 struct hci_conn *hcon, *bredr_hcon; in hci_phy_link_complete_evt() local 4657 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); in hci_phy_link_complete_evt() 4658 if (!hcon) { in hci_phy_link_complete_evt() 4664 hci_conn_del(hcon); in hci_phy_link_complete_evt() 4669 bredr_hcon = hcon->amp_mgr->l2cap_conn->hcon; in hci_phy_link_complete_evt() 4671 hcon->state = BT_CONNECTED; in hci_phy_link_complete_evt() [all …]
|
D | l2cap_sock.c | 477 cinfo.hci_handle = chan->conn->hcon->handle; in l2cap_sock_getsockopt_old() 478 memcpy(cinfo.dev_class, chan->conn->hcon->dev_class, 3); in l2cap_sock_getsockopt_old() 528 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 531 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt() 796 if (smp_conn_security(conn->hcon, sec.level)) in l2cap_sock_setsockopt() 850 if (!conn || !lmp_no_flush_capable(conn->hcon->hdev)) { in l2cap_sock_setsockopt()
|
D | hci_conn.c | 1676 static struct hci_chan *__hci_chan_lookup_handle(struct hci_conn *hcon, in __hci_chan_lookup_handle() argument 1681 list_for_each_entry(hchan, &hcon->chan_list, list) { in __hci_chan_lookup_handle() 1692 struct hci_conn *hcon; in hci_chan_lookup_handle() local 1697 list_for_each_entry_rcu(hcon, &h->list, list) { in hci_chan_lookup_handle() 1698 hchan = __hci_chan_lookup_handle(hcon, handle); in hci_chan_lookup_handle()
|
/Linux-v4.19/net/bluetooth/bnep/ |
D | core.c | 545 if (!conn || !conn->hcon) in bnep_get_device() 548 return &conn->hcon->dev; in bnep_get_device()
|
/Linux-v4.19/include/net/bluetooth/ |
D | hci_core.h | 573 int l2cap_disconn_ind(struct hci_conn *hcon); 574 void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags); 578 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb); 586 static inline void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb) in sco_recv_scodata() argument
|
D | l2cap.h | 625 struct hci_conn *hcon; member
|
/Linux-v4.19/net/bluetooth/rfcomm/ |
D | sock.c | 816 cinfo.hci_handle = conn->hcon->handle; in rfcomm_sock_getsockopt_old() 817 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() 1299 hci_conn_switch_role(conn->hcon, 0x00); in rfcomm_dlc_accept()
|
/Linux-v4.19/net/bluetooth/hidp/ |
D | core.c | 698 input->dev.parent = &session->conn->hcon->dev; in hidp_setup_input() 789 hid->dev.parent = &session->conn->hcon->dev; in hidp_setup_hid()
|