Lines Matching refs:hcon
115 bdaddr_t *dst = &mgr->l2cap_conn->hcon->dst; in phylink_add()
116 struct hci_conn *hcon; in phylink_add() local
119 hcon = hci_conn_add(hdev, AMP_LINK, dst, role); in phylink_add()
120 if (!hcon) in phylink_add()
123 BT_DBG("hcon %p dst %pMR", hcon, dst); in phylink_add()
125 hcon->state = BT_CONNECT; in phylink_add()
126 hcon->attempt++; in phylink_add()
127 hcon->handle = __next_handle(mgr); in phylink_add()
128 hcon->remote_id = remote_id; in phylink_add()
129 hcon->amp_mgr = amp_mgr_get(mgr); in phylink_add()
131 return hcon; in phylink_add()
301 struct hci_conn *hcon) in amp_read_loc_assoc_final_data() argument
304 struct amp_mgr *mgr = hcon->amp_mgr; in amp_read_loc_assoc_final_data()
308 cp.phy_handle = hcon->handle; in amp_read_loc_assoc_final_data()
338 struct hci_conn *hcon) in amp_write_rem_assoc_frag() argument
341 struct amp_mgr *mgr = hcon->amp_mgr; in amp_write_rem_assoc_frag()
346 ctrl = amp_ctrl_lookup(mgr, hcon->remote_id); in amp_write_rem_assoc_frag()
369 hcon, ctrl, frag_len, ctrl->assoc_len, ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
371 cp->phy_handle = hcon->handle; in amp_write_rem_assoc_frag()
392 struct hci_conn *hcon; in amp_write_rem_assoc_continue() local
396 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_rem_assoc_continue()
397 if (!hcon) in amp_write_rem_assoc_continue()
401 if (amp_write_rem_assoc_frag(hdev, hcon)) in amp_write_rem_assoc_continue()
407 struct hci_conn *hcon; in amp_write_remote_assoc() local
411 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_remote_assoc()
412 if (!hcon) in amp_write_remote_assoc()
415 BT_DBG("%s phy handle 0x%2.2x hcon %p", hdev->name, handle, hcon); in amp_write_remote_assoc()
417 amp_write_rem_assoc_frag(hdev, hcon); in amp_write_remote_assoc()
434 struct hci_conn *hcon; in create_phylink_complete() local
436 hcon = hci_conn_hash_lookup_handle(hdev, cp->phy_handle); in create_phylink_complete()
437 if (hcon) in create_phylink_complete()
438 hci_conn_del(hcon); in create_phylink_complete()
447 struct hci_conn *hcon) in amp_create_phylink() argument
452 cp.phy_handle = hcon->handle; in amp_create_phylink()
454 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_create_phylink()
455 hcon->handle); in amp_create_phylink()
457 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_create_phylink()
486 struct hci_conn *hcon) in amp_accept_phylink() argument
491 cp.phy_handle = hcon->handle; in amp_accept_phylink()
493 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_accept_phylink()
494 hcon->handle); in amp_accept_phylink()
496 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_accept_phylink()
542 &chan->conn->hcon->dst); in amp_create_logical_link()
579 struct hci_conn *hcon = hchan->conn; in amp_disconnect_logical_link() local
582 if (hcon->state != BT_CONNECTED) { in amp_disconnect_logical_link()
588 hci_send_cmd(hcon->hdev, HCI_OP_DISCONN_LOGICAL_LINK, sizeof(cp), &cp); in amp_disconnect_logical_link()