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()
303 cp.phy_handle = hcon->handle; in amp_read_loc_assoc_final_data()
333 struct hci_conn *hcon) in amp_write_rem_assoc_frag() argument
336 struct amp_mgr *mgr = hcon->amp_mgr; in amp_write_rem_assoc_frag()
341 ctrl = amp_ctrl_lookup(mgr, hcon->remote_id); in amp_write_rem_assoc_frag()
364 hcon, ctrl, frag_len, ctrl->assoc_len, ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
366 cp->phy_handle = hcon->handle; in amp_write_rem_assoc_frag()
387 struct hci_conn *hcon; in amp_write_rem_assoc_continue() local
391 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_rem_assoc_continue()
392 if (!hcon) in amp_write_rem_assoc_continue()
396 if (amp_write_rem_assoc_frag(hdev, hcon)) in amp_write_rem_assoc_continue()
402 struct hci_conn *hcon; in amp_write_remote_assoc() local
406 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_remote_assoc()
407 if (!hcon) in amp_write_remote_assoc()
410 BT_DBG("%s phy handle 0x%2.2x hcon %p", hdev->name, handle, hcon); in amp_write_remote_assoc()
412 amp_write_rem_assoc_frag(hdev, hcon); in amp_write_remote_assoc()
429 struct hci_conn *hcon; in create_phylink_complete() local
431 hcon = hci_conn_hash_lookup_handle(hdev, cp->phy_handle); in create_phylink_complete()
432 if (hcon) in create_phylink_complete()
433 hci_conn_del(hcon); in create_phylink_complete()
442 struct hci_conn *hcon) in amp_create_phylink() argument
447 cp.phy_handle = hcon->handle; in amp_create_phylink()
449 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_create_phylink()
450 hcon->handle); in amp_create_phylink()
452 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_create_phylink()
481 struct hci_conn *hcon) in amp_accept_phylink() argument
486 cp.phy_handle = hcon->handle; in amp_accept_phylink()
488 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_accept_phylink()
489 hcon->handle); in amp_accept_phylink()
491 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_accept_phylink()
537 &chan->conn->hcon->dst); in amp_create_logical_link()
574 struct hci_conn *hcon = hchan->conn; in amp_disconnect_logical_link() local
577 if (hcon->state != BT_CONNECTED) { in amp_disconnect_logical_link()
583 hci_send_cmd(hcon->hdev, HCI_OP_DISCONN_LOGICAL_LINK, sizeof(cp), &cp); in amp_disconnect_logical_link()