Home
last modified time | relevance | path

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

/linux-6.3-rc2/net/bluetooth/
A Dsmp.c652 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 Damp.c109 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 Diso.c25 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 Dsco.c46 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 Dl2cap_core.c738 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 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);
A Da2mp.c418 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 D6lowpan.c224 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 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);
A Dhci_event.c5617 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 Dl2cap_sock.c553 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 Dhci_conn.c2639 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 Dcore.c546 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 Dhci_core.h844 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 Dl2cap.h675 struct hci_conn *hcon; member
/linux-6.3-rc2/net/bluetooth/rfcomm/
A Dsock.c794 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 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.3-rc2/net/bluetooth/hidp/
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()

Completed in 75 milliseconds