Lines Matching refs:hdev
111 struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr, in phylink_add() argument
118 hcon = hci_conn_add(hdev, AMP_LINK, dst, role); in phylink_add()
176 struct hci_dev *hdev = conn->hdev; in phylink_gen_key() local
196 key = hci_find_link_key(hdev, &conn->dst); in phylink_gen_key()
223 void amp_read_loc_assoc_frag(struct hci_dev *hdev, u8 phy_handle) in amp_read_loc_assoc_frag() argument
226 struct amp_assoc *loc_assoc = &hdev->loc_assoc; in amp_read_loc_assoc_frag()
228 BT_DBG("%s handle %d", hdev->name, phy_handle); in amp_read_loc_assoc_frag()
231 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_frag()
234 hci_send_cmd(hdev, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc_frag()
237 void amp_read_loc_assoc(struct hci_dev *hdev, struct amp_mgr *mgr) in amp_read_loc_assoc() argument
241 memset(&hdev->loc_assoc, 0, sizeof(struct amp_assoc)); in amp_read_loc_assoc()
244 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc()
247 hci_send_cmd(hdev, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc()
250 void amp_read_loc_assoc_final_data(struct hci_dev *hdev, in amp_read_loc_assoc_final_data() argument
258 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_final_data()
263 hci_send_cmd(hdev, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc_final_data()
267 static bool amp_write_rem_assoc_frag(struct hci_dev *hdev, in amp_write_rem_assoc_frag() argument
310 hci_send_cmd(hdev, HCI_OP_WRITE_REMOTE_AMP_ASSOC, len, cp); in amp_write_rem_assoc_frag()
317 void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle) in amp_write_rem_assoc_continue() argument
321 BT_DBG("%s phy handle 0x%2.2x", hdev->name, handle); in amp_write_rem_assoc_continue()
323 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_rem_assoc_continue()
328 if (amp_write_rem_assoc_frag(hdev, hcon)) in amp_write_rem_assoc_continue()
329 a2mp_send_create_phy_link_rsp(hdev, 0); in amp_write_rem_assoc_continue()
332 void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle) in amp_write_remote_assoc() argument
336 BT_DBG("%s phy handle 0x%2.2x", hdev->name, handle); in amp_write_remote_assoc()
338 hcon = hci_conn_hash_lookup_handle(hdev, handle); 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()
347 void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr, in amp_create_phylink() argument
354 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_create_phylink()
363 hci_send_cmd(hdev, HCI_OP_CREATE_PHY_LINK, sizeof(cp), &cp); in amp_create_phylink()
366 void amp_accept_phylink(struct hci_dev *hdev, struct amp_mgr *mgr, in amp_accept_phylink() argument
373 BT_DBG("%s hcon %p phy handle 0x%2.2x", hdev->name, hcon, in amp_accept_phylink()
382 hci_send_cmd(hdev, HCI_OP_ACCEPT_PHY_LINK, sizeof(cp), &cp); in amp_accept_phylink()
387 struct hci_dev *bredr_hdev = hci_dev_hold(bredr_hcon->hdev); in amp_physical_cfm()
402 bredr_chan->local_amp_id = hs_hcon->hdev->id; in amp_physical_cfm()
404 bredr_chan->conn->mtu = hs_hcon->hdev->block_mtu; in amp_physical_cfm()
417 struct hci_dev *hdev; in amp_create_logical_link() local
425 hdev = hci_dev_hold(chan->hs_hcon->hdev); in amp_create_logical_link()
426 if (!hdev) in amp_create_logical_link()
446 hci_send_cmd(hdev, HCI_OP_CREATE_LOGICAL_LINK, sizeof(cp), in amp_create_logical_link()
449 hci_send_cmd(hdev, HCI_OP_ACCEPT_LOGICAL_LINK, sizeof(cp), in amp_create_logical_link()
452 hci_dev_put(hdev); in amp_create_logical_link()
466 hci_send_cmd(hcon->hdev, HCI_OP_DISCONN_LOGICAL_LINK, sizeof(cp), &cp); in amp_disconnect_logical_link()