Lines Matching defs:hcon
46 struct hci_conn *hcon;
89 if (conn->hcon) {
90 conn->hcon->sco_data = NULL;
91 hci_conn_drop(conn->hcon);
152 if (!conn->hcon) {
193 static struct sco_conn *sco_conn_add(struct hci_conn *hcon)
195 struct sco_conn *conn = hcon->sco_data;
199 if (!conn->hcon) {
201 conn->hcon = hcon;
215 hcon->sco_data = conn;
216 conn->hcon = hcon;
217 conn->mtu = hcon->mtu;
219 if (hcon->mtu > 0)
220 conn->mtu = hcon->mtu;
224 BT_DBG("hcon %p conn %p", hcon, conn);
254 static void sco_conn_del(struct hci_conn *hcon, int err)
256 struct sco_conn *conn = hcon->sco_data;
263 BT_DBG("hcon %p conn %p, err %d", hcon, conn, err);
313 struct hci_conn *hcon;
339 hcon = hci_connect_sco(hdev, type, &sco_pi(sk)->dst,
342 if (IS_ERR(hcon)) {
343 err = PTR_ERR(hcon);
347 conn = sco_conn_add(hcon);
349 hci_conn_drop(hcon);
363 bacpy(&sco_pi(sk)->src, &hcon->src);
365 if (hcon->state == BT_CONNECTED) {
394 hci_send_sco(conn->hcon, skb);
897 sco_conn_defer_accept(pi->conn->hcon, pi->setting);
1090 cinfo.hci_handle = sco_pi(sk)->conn->hcon->handle;
1091 memcpy(cinfo.dev_class, sco_pi(sk)->conn->hcon->dev_class, 3);
1161 phys = hci_conn_get_phy(sco_pi(sk)->conn->hcon);
1360 if (!conn->hcon) {
1365 parent = sco_get_sock_listen(&conn->hcon->src);
1383 bacpy(&sco_pi(sk)->src, &conn->hcon->src);
1384 bacpy(&sco_pi(sk)->dst, &conn->hcon->dst);
1387 hci_conn_hold(conn->hcon);
1432 static void sco_connect_cfm(struct hci_conn *hcon, __u8 status)
1434 if (hcon->type != SCO_LINK && hcon->type != ESCO_LINK)
1437 BT_DBG("hcon %p bdaddr %pMR status %u", hcon, &hcon->dst, status);
1442 conn = sco_conn_add(hcon);
1448 sco_conn_del(hcon, bt_to_errno(status));
1451 static void sco_disconn_cfm(struct hci_conn *hcon, __u8 reason)
1453 if (hcon->type != SCO_LINK && hcon->type != ESCO_LINK)
1456 BT_DBG("hcon %p reason %d", hcon, reason);
1458 sco_conn_del(hcon, bt_to_errno(reason));
1461 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb)
1463 struct sco_conn *conn = hcon->sco_data;