/linux-6.3-rc2/net/bluetooth/ |
A D | smp.c | 652 struct hci_conn *hcon = conn->hcon; in build_pairing_cmd() local 745 struct hci_conn *hcon = conn->hcon; in smp_chan_destroy() local 797 struct hci_conn *hcon = conn->hcon; in smp_failure() local 934 hcon->type, hcon->dst_type); in tk_request() 937 hcon->type, hcon->dst_type, in tk_request() 941 hcon->type, hcon->dst_type, in tk_request() 1028 hci_add_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, in smp_random() 1141 smp->ltk = hci_add_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, in sc_add_ltk() 2193 if (hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, in smp_cmd_pairing_random() 2243 key = hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, hcon->role); in smp_ltk_encrypt() [all …]
|
A D | amp.c | 109 struct hci_conn *hcon; in phylink_add() local 113 if (!hcon) in phylink_add() 119 hcon->attempt++; in phylink_add() 124 return hcon; in phylink_add() 387 struct hci_conn *hcon; in amp_write_rem_assoc_continue() local 392 if (!hcon) in amp_write_rem_assoc_continue() 407 if (!hcon) in amp_write_remote_assoc() 432 if (hcon) in create_phylink_complete() 433 hci_conn_del(hcon); in create_phylink_complete() 450 hcon->handle); in amp_create_phylink() [all …]
|
A D | iso.c | 25 struct hci_conn *hcon; member 129 hcon->iso_data = conn; in iso_conn_add() 130 conn->hcon = hcon; in iso_conn_add() 154 if (conn->hcon) in iso_chan_del() 277 if (IS_ERR(hcon)) { in iso_connect_bis() 350 if (IS_ERR(hcon)) { in iso_connect_cis() 358 if (IS_ERR(hcon)) { in iso_connect_cis() 1437 hcon = conn->hcon; in iso_conn_ready() 1438 if (!hcon) in iso_conn_ready() 1587 if (hcon->link) in iso_connect_cfm() [all …]
|
A D | sco.c | 46 struct hci_conn *hcon; member 139 hcon->sco_data = conn; in sco_conn_add() 140 conn->hcon = hcon; in sco_conn_add() 168 if (conn->hcon) in sco_chan_del() 207 hcon->sco_data = NULL; in sco_conn_del() 257 if (IS_ERR(hcon)) in sco_connect() 262 hci_conn_drop(hcon); in sco_connect() 1284 if (!conn->hcon) { in sco_conn_ready() 1357 if (hcon->type != SCO_LINK && hcon->type != ESCO_LINK) in sco_connect_cfm() 1360 BT_DBG("hcon %p bdaddr %pMR status %u", hcon, &hcon->dst, status); in sco_connect_cfm() [all …]
|
A D | l2cap_core.c | 738 struct hci_conn *hcon = conn->hcon; in l2cap_conn_update_id_addr() local 1713 struct hci_conn *hcon = conn->hcon; in l2cap_le_conn_ready() local 1747 struct hci_conn *hcon = conn->hcon; in l2cap_conn_ready() local 4237 struct hci_conn *hcon = conn->hcon; in l2cap_connect_req() local 5554 struct hci_conn *hcon = conn->hcon; in l2cap_conn_param_update_req() local 5591 mgmt_new_conn_param(hcon->hdev, &hcon->dst, hcon->dst_type, in l2cap_conn_param_update_req() 5605 struct hci_conn *hcon = conn->hcon; in l2cap_le_connect_rsp() local 6113 struct hci_conn *hcon = conn->hcon; in l2cap_ecred_conn_rsp() local 6412 struct hci_conn *hcon = conn->hcon; in l2cap_le_sig_channel() local 6453 struct hci_conn *hcon = conn->hcon; in l2cap_sig_channel() local [all …]
|
A D | amp.h | 29 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);
|
A D | a2mp.c | 418 struct hci_conn *hcon; in a2mp_getampassoc_rsp() local 457 if (!hcon) 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 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 580 &mgr->l2cap_conn->hcon->dst); in a2mp_discphyslink_req() 581 if (!hcon) { in a2mp_discphyslink_req() 871 conn->hcon->amp_mgr = mgr; in amp_mgr_create() [all …]
|
A D | 6lowpan.c | 224 if (conn->hcon->hdev == entry->hdev) { in lookup_dev() 607 if (hcon->type != LE_LINK) in is_bt_6lowpan() 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 977 if (!hcon) in get_l2cap_conn() 980 *conn = (struct l2cap_conn *)hcon->l2cap_data; in get_l2cap_conn() 982 BT_DBG("conn %p dst %pMR type %u", *conn, &hcon->dst, hcon->dst_type); in get_l2cap_conn() 1115 if (!is_bt_6lowpan(conn->hcon)) in lowpan_control_write() [all …]
|
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);
|
A D | hci_event.c | 5617 if (!hcon) in hci_chan_selected_evt() 5635 if (!hcon) in hci_phy_link_complete_evt() 5638 if (!hcon->amp_mgr) in hci_phy_link_complete_evt() 5642 hci_conn_del(hcon); in hci_phy_link_complete_evt() 5646 bredr_hcon = hcon->amp_mgr->l2cap_conn->hcon; in hci_phy_link_complete_evt() 5651 hci_conn_hold(hcon); in hci_phy_link_complete_evt() 5676 if (!hcon) in hci_loglink_complete_evt() 5687 BT_DBG("hcon %p mgr %p hchan %p", hcon, hcon->amp_mgr, hchan); in hci_loglink_complete_evt() 5741 if (hcon && hcon->type == AMP_LINK) { in hci_disconn_phylink_complete_evt() 6693 if (!hcon || hcon->state != BT_CONNECTED) in hci_le_remote_conn_param_req_evt() [all …]
|
A D | l2cap_sock.c | 553 cinfo.hci_handle = chan->conn->hcon->handle; in l2cap_sock_getsockopt_old() 554 memcpy(cinfo.dev_class, chan->conn->hcon->dev_class, 3); in l2cap_sock_getsockopt_old() 605 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 608 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt() 689 phys = hci_conn_get_phy(chan->conn->hcon); in l2cap_sock_getsockopt() 952 if (smp_conn_security(conn->hcon, sec.level)) { in l2cap_sock_setsockopt() 1009 if (!conn || !lmp_no_flush_capable(conn->hcon->hdev)) { in l2cap_sock_setsockopt()
|
A D | hci_conn.c | 2639 static struct hci_chan *__hci_chan_lookup_handle(struct hci_conn *hcon, in __hci_chan_lookup_handle() argument 2644 list_for_each_entry(hchan, &hcon->chan_list, list) { in __hci_chan_lookup_handle() 2655 struct hci_conn *hcon; in hci_chan_lookup_handle() local 2660 list_for_each_entry_rcu(hcon, &h->list, list) { in hci_chan_lookup_handle() 2661 hchan = __hci_chan_lookup_handle(hcon, handle); in hci_chan_lookup_handle()
|
/linux-6.3-rc2/net/bluetooth/bnep/ |
A D | core.c | 546 if (!conn || !conn->hcon) in bnep_get_device() 549 return &conn->hcon->dev; in bnep_get_device()
|
/linux-6.3-rc2/include/net/bluetooth/ |
A D | hci_core.h | 844 int l2cap_disconn_ind(struct hci_conn *hcon); 845 void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags); 849 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb); 857 static inline void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb) in sco_recv_scodata() argument 864 void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, u16 flags); 871 static inline void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, in iso_recv() argument
|
A D | l2cap.h | 675 struct hci_conn *hcon; member
|
/linux-6.3-rc2/net/bluetooth/rfcomm/ |
A D | sock.c | 794 cinfo.hci_handle = conn->hcon->handle; in rfcomm_sock_getsockopt_old() 795 memcpy(cinfo.dev_class, conn->hcon->dev_class, 3); in rfcomm_sock_getsockopt_old()
|
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-6.3-rc2/net/bluetooth/hidp/ |
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()
|