Lines Matching defs:hcon

44     struct hci_conn *hcon;
125 static struct sco_conn *sco_conn_add(struct hci_conn *hcon)
127 struct hci_dev *hdev = hcon->hdev;
128 struct sco_conn *conn = hcon->sco_data;
142 hcon->sco_data = conn;
143 conn->hcon = hcon;
151 BT_DBG("hcon %p conn %p", hcon, conn);
172 if (conn->hcon) {
173 hci_conn_drop(conn->hcon);
184 static void sco_conn_del(struct hci_conn *hcon, int err)
186 struct sco_conn *conn = hcon->sco_data;
193 BT_DBG("hcon %p conn %p, err %d", hcon, conn, err);
212 hcon->sco_data = NULL;
246 struct hci_conn *hcon;
261 hcon = hci_connect_sco(hdev, type, &sco_pi(sk)->dst, sco_pi(sk)->setting);
262 if (IS_ERR(hcon)) {
263 return PTR_ERR(hcon);
266 conn = sco_conn_add(hcon);
268 hci_conn_drop(hcon);
273 bacpy(&sco_pi(sk)->src, &hcon->src);
280 if (hcon->state == BT_CONNECTED) {
303 hci_send_sco(conn->hcon, skb);
436 if (sco_pi(sk)->conn->hcon) {
440 hci_conn_drop(sco_pi(sk)->conn->hcon);
441 sco_pi(sk)->conn->hcon = NULL;
829 sco_conn_defer_accept(pi->conn->hcon, pi->setting);
958 cinfo.hci_handle = sco_pi(sk)->conn->hcon->handle;
959 memcpy(cinfo.dev_class, sco_pi(sk)->conn->hcon->dev_class, 3);
1027 phys = hci_conn_get_phy(sco_pi(sk)->conn->hcon);
1133 if (!conn->hcon) {
1138 parent = sco_get_sock_listen(&conn->hcon->src);
1155 bacpy(&sco_pi(sk)->src, &conn->hcon->src);
1156 bacpy(&sco_pi(sk)->dst, &conn->hcon->dst);
1158 hci_conn_hold(conn->hcon);
1206 static void sco_connect_cfm(struct hci_conn *hcon, __u8 status)
1208 if (hcon->type != SCO_LINK && hcon->type != ESCO_LINK) {
1212 BT_DBG("hcon %p bdaddr %pMR status %d", hcon, &hcon->dst, status);
1217 conn = sco_conn_add(hcon);
1222 sco_conn_del(hcon, bt_to_errno(status));
1226 static void sco_disconn_cfm(struct hci_conn *hcon, __u8 reason)
1228 if (hcon->type != SCO_LINK && hcon->type != ESCO_LINK) {
1232 BT_DBG("hcon %p reason %d", hcon, reason);
1234 sco_conn_del(hcon, bt_to_errno(reason));
1237 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb)
1239 struct sco_conn *conn = hcon->sco_data;