Lines Matching refs:hcon

108 	bdaddr_t *dst = &mgr->l2cap_conn->hcon->dst;
109 struct hci_conn *hcon;
112 hcon = hci_conn_add(hdev, AMP_LINK, dst, role);
113 if (!hcon)
116 BT_DBG("hcon %p dst %pMR", hcon, dst);
118 hcon->state = BT_CONNECT;
119 hcon->attempt++;
120 hcon->handle = __next_handle(mgr);
121 hcon->remote_id = remote_id;
122 hcon->amp_mgr = amp_mgr_get(mgr);
124 return hcon;
293 struct hci_conn *hcon)
296 struct amp_mgr *mgr = hcon->amp_mgr;
303 cp.phy_handle = hcon->handle;
333 struct hci_conn *hcon)
336 struct amp_mgr *mgr = hcon->amp_mgr;
341 ctrl = amp_ctrl_lookup(mgr, hcon->remote_id);
363 BT_DBG("hcon %p ctrl %p frag_len %u assoc_len %u rem_len %u",
364 hcon, ctrl, frag_len, ctrl->assoc_len, ctrl->assoc_rem_len);
366 cp->phy_handle = hcon->handle;
387 struct hci_conn *hcon;
391 hcon = hci_conn_hash_lookup_handle(hdev, handle);
392 if (!hcon)
396 if (amp_write_rem_assoc_frag(hdev, hcon))
402 struct hci_conn *hcon;
406 hcon = hci_conn_hash_lookup_handle(hdev, handle);
407 if (!hcon)
410 BT_DBG("%s phy handle 0x%2.2x hcon %p", hdev->name, handle, hcon);
412 amp_write_rem_assoc_frag(hdev, hcon);
429 struct hci_conn *hcon;
431 hcon = hci_conn_hash_lookup_handle(hdev, cp->phy_handle);
432 if (hcon)
433 hci_conn_del(hcon);
442 struct hci_conn *hcon)
447 cp.phy_handle = hcon->handle;
449 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon,
450 hcon->handle);
452 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len,
481 struct hci_conn *hcon)
486 cp.phy_handle = hcon->handle;
488 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon,
489 hcon->handle);
491 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len,
537 &chan->conn->hcon->dst);
574 struct hci_conn *hcon = hchan->conn;
577 if (hcon->state != BT_CONNECTED) {
583 hci_send_cmd(hcon->hdev, HCI_OP_DISCONN_LOGICAL_LINK, sizeof(cp), &cp);