Lines Matching refs:hcon

114 	bdaddr_t *dst = &mgr->l2cap_conn->hcon->dst;  in phylink_add()
115 struct hci_conn *hcon; in phylink_add() local
118 hcon = hci_conn_add(hdev, AMP_LINK, dst, role); in phylink_add()
119 if (!hcon) in phylink_add()
122 BT_DBG("hcon %p dst %pMR", hcon, dst); in phylink_add()
124 hcon->state = BT_CONNECT; in phylink_add()
125 hcon->attempt++; in phylink_add()
126 hcon->handle = __next_handle(mgr); in phylink_add()
127 hcon->remote_id = remote_id; in phylink_add()
128 hcon->amp_mgr = amp_mgr_get(mgr); in phylink_add()
130 return hcon; in phylink_add()
251 struct hci_conn *hcon) in amp_read_loc_assoc_final_data() argument
254 struct amp_mgr *mgr = hcon->amp_mgr; in amp_read_loc_assoc_final_data()
256 cp.phy_handle = hcon->handle; in amp_read_loc_assoc_final_data()
268 struct hci_conn *hcon) in amp_write_rem_assoc_frag() argument
271 struct amp_mgr *mgr = hcon->amp_mgr; in amp_write_rem_assoc_frag()
275 ctrl = amp_ctrl_lookup(mgr, hcon->remote_id); in amp_write_rem_assoc_frag()
298 hcon, ctrl, frag_len, ctrl->assoc_len, ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
300 cp->phy_handle = hcon->handle; in amp_write_rem_assoc_frag()
319 struct hci_conn *hcon; in amp_write_rem_assoc_continue() local
323 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_rem_assoc_continue()
324 if (!hcon) in amp_write_rem_assoc_continue()
328 if (amp_write_rem_assoc_frag(hdev, hcon)) in amp_write_rem_assoc_continue()
334 struct hci_conn *hcon; in amp_write_remote_assoc() local
338 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_remote_assoc()
339 if (!hcon) in amp_write_remote_assoc()
342 BT_DBG("%s phy handle 0x%2.2x hcon %p", hdev->name, handle, hcon); in amp_write_remote_assoc()
344 amp_write_rem_assoc_frag(hdev, hcon); in amp_write_remote_assoc()
348 struct hci_conn *hcon) in amp_create_phylink() argument
352 cp.phy_handle = hcon->handle; in amp_create_phylink()
354 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_create_phylink()
355 hcon->handle); in amp_create_phylink()
357 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_create_phylink()
367 struct hci_conn *hcon) in amp_accept_phylink() argument
371 cp.phy_handle = hcon->handle; in amp_accept_phylink()
373 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_accept_phylink()
374 hcon->handle); in amp_accept_phylink()
376 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_accept_phylink()
420 &chan->conn->hcon->dst); in amp_create_logical_link()
457 struct hci_conn *hcon = hchan->conn; in amp_disconnect_logical_link() local
460 if (hcon->state != BT_CONNECTED) { in amp_disconnect_logical_link()
466 hci_send_cmd(hcon->hdev, HCI_OP_DISCONN_LOGICAL_LINK, sizeof(cp), &cp); in amp_disconnect_logical_link()