Lines Matching refs:hcon
108 bdaddr_t *dst = &mgr->l2cap_conn->hcon->dst; in phylink_add()
109 struct hci_conn *hcon; in phylink_add() local
112 hcon = hci_conn_add(hdev, AMP_LINK, dst, role); in phylink_add()
113 if (!hcon) in phylink_add()
116 BT_DBG("hcon %p dst %pMR", hcon, dst); in phylink_add()
118 hcon->state = BT_CONNECT; in phylink_add()
119 hcon->attempt++; in phylink_add()
120 hcon->handle = __next_handle(mgr); in phylink_add()
121 hcon->remote_id = remote_id; in phylink_add()
122 hcon->amp_mgr = amp_mgr_get(mgr); in phylink_add()
124 return hcon; in phylink_add()
293 struct hci_conn *hcon) in amp_read_loc_assoc_final_data() argument
296 struct amp_mgr *mgr = hcon->amp_mgr; in amp_read_loc_assoc_final_data()
300 cp.phy_handle = hcon->handle; in amp_read_loc_assoc_final_data()
330 struct hci_conn *hcon) in amp_write_rem_assoc_frag() argument
333 struct amp_mgr *mgr = hcon->amp_mgr; in amp_write_rem_assoc_frag()
338 ctrl = amp_ctrl_lookup(mgr, hcon->remote_id); in amp_write_rem_assoc_frag()
361 hcon, ctrl, frag_len, ctrl->assoc_len, ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
363 cp->phy_handle = hcon->handle; in amp_write_rem_assoc_frag()
384 struct hci_conn *hcon; in amp_write_rem_assoc_continue() local
388 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_rem_assoc_continue()
389 if (!hcon) in amp_write_rem_assoc_continue()
393 if (amp_write_rem_assoc_frag(hdev, hcon)) in amp_write_rem_assoc_continue()
399 struct hci_conn *hcon; in amp_write_remote_assoc() local
403 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_remote_assoc()
404 if (!hcon) in amp_write_remote_assoc()
407 BT_DBG("%s phy handle 0x%2.2x hcon %p", hdev->name, handle, hcon); in amp_write_remote_assoc()
409 amp_write_rem_assoc_frag(hdev, hcon); in amp_write_remote_assoc()
426 struct hci_conn *hcon; in create_phylink_complete() local
428 hcon = hci_conn_hash_lookup_handle(hdev, cp->phy_handle); in create_phylink_complete()
429 if (hcon) in create_phylink_complete()
430 hci_conn_del(hcon); in create_phylink_complete()
439 struct hci_conn *hcon) in amp_create_phylink() argument
444 cp.phy_handle = hcon->handle; in amp_create_phylink()
446 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_create_phylink()
447 hcon->handle); in amp_create_phylink()
449 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_create_phylink()
478 struct hci_conn *hcon) in amp_accept_phylink() argument
483 cp.phy_handle = hcon->handle; in amp_accept_phylink()
485 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_accept_phylink()
486 hcon->handle); in amp_accept_phylink()
488 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_accept_phylink()
534 &chan->conn->hcon->dst); in amp_create_logical_link()
571 struct hci_conn *hcon = hchan->conn; in amp_disconnect_logical_link() local
574 if (hcon->state != BT_CONNECTED) { in amp_disconnect_logical_link()
580 hci_send_cmd(hcon->hdev, HCI_OP_DISCONN_LOGICAL_LINK, sizeof(cp), &cp); in amp_disconnect_logical_link()