Lines Matching refs:cp
263 struct hci_cp_read_local_amp_assoc cp; in amp_read_loc_assoc_frag() local
270 cp.phy_handle = phy_handle; in amp_read_loc_assoc_frag()
271 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_frag()
272 cp.len_so_far = cpu_to_le16(loc_assoc->offset); in amp_read_loc_assoc_frag()
275 hci_req_add(&req, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc_frag()
283 struct hci_cp_read_local_amp_assoc cp; in amp_read_loc_assoc() local
288 memset(&cp, 0, sizeof(cp)); in amp_read_loc_assoc()
290 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc()
294 hci_req_add(&req, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc()
303 struct hci_cp_read_local_amp_assoc cp; in amp_read_loc_assoc_final_data() local
308 cp.phy_handle = hcon->handle; in amp_read_loc_assoc_final_data()
309 cp.len_so_far = cpu_to_le16(0); in amp_read_loc_assoc_final_data()
310 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_final_data()
316 hci_req_add(&req, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc_final_data()
340 struct hci_cp_write_remote_amp_assoc *cp; in amp_write_rem_assoc_frag() local
360 len = frag_len + sizeof(*cp); in amp_write_rem_assoc_frag()
362 cp = kzalloc(len, GFP_KERNEL); in amp_write_rem_assoc_frag()
363 if (!cp) { in amp_write_rem_assoc_frag()
371 cp->phy_handle = hcon->handle; in amp_write_rem_assoc_frag()
372 cp->len_so_far = cpu_to_le16(ctrl->assoc_len_so_far); in amp_write_rem_assoc_frag()
373 cp->rem_len = cpu_to_le16(ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
374 memcpy(cp->frag, ctrl->assoc, frag_len); in amp_write_rem_assoc_frag()
382 hci_req_add(&req, HCI_OP_WRITE_REMOTE_AMP_ASSOC, len, cp); in amp_write_rem_assoc_frag()
385 kfree(cp); in amp_write_rem_assoc_frag()
423 struct hci_cp_create_phy_link *cp; in create_phylink_complete() local
427 cp = hci_sent_cmd_data(hdev, HCI_OP_CREATE_PHY_LINK); in create_phylink_complete()
428 if (!cp) in create_phylink_complete()
436 hcon = hci_conn_hash_lookup_handle(hdev, cp->phy_handle); in create_phylink_complete()
440 amp_write_remote_assoc(hdev, cp->phy_handle); in create_phylink_complete()
449 struct hci_cp_create_phy_link cp; in amp_create_phylink() local
452 cp.phy_handle = hcon->handle; in amp_create_phylink()
457 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_create_phylink()
458 &cp.key_type)) { in amp_create_phylink()
464 hci_req_add(&req, HCI_OP_CREATE_PHY_LINK, sizeof(cp), &cp); in amp_create_phylink()
471 struct hci_cp_accept_phy_link *cp; in accept_phylink_complete() local
478 cp = hci_sent_cmd_data(hdev, HCI_OP_ACCEPT_PHY_LINK); in accept_phylink_complete()
479 if (!cp) in accept_phylink_complete()
482 amp_write_remote_assoc(hdev, cp->phy_handle); in accept_phylink_complete()
488 struct hci_cp_accept_phy_link cp; in amp_accept_phylink() local
491 cp.phy_handle = hcon->handle; in amp_accept_phylink()
496 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_accept_phylink()
497 &cp.key_type)) { in amp_accept_phylink()
503 hci_req_add(&req, HCI_OP_ACCEPT_PHY_LINK, sizeof(cp), &cp); in amp_accept_phylink()
538 struct hci_cp_create_accept_logical_link cp; in amp_create_logical_link() local
551 cp.phy_handle = hs_hcon->handle; in amp_create_logical_link()
553 cp.tx_flow_spec.id = chan->local_id; in amp_create_logical_link()
554 cp.tx_flow_spec.stype = chan->local_stype; in amp_create_logical_link()
555 cp.tx_flow_spec.msdu = cpu_to_le16(chan->local_msdu); in amp_create_logical_link()
556 cp.tx_flow_spec.sdu_itime = cpu_to_le32(chan->local_sdu_itime); in amp_create_logical_link()
557 cp.tx_flow_spec.acc_lat = cpu_to_le32(chan->local_acc_lat); in amp_create_logical_link()
558 cp.tx_flow_spec.flush_to = cpu_to_le32(chan->local_flush_to); in amp_create_logical_link()
560 cp.rx_flow_spec.id = chan->remote_id; in amp_create_logical_link()
561 cp.rx_flow_spec.stype = chan->remote_stype; in amp_create_logical_link()
562 cp.rx_flow_spec.msdu = cpu_to_le16(chan->remote_msdu); in amp_create_logical_link()
563 cp.rx_flow_spec.sdu_itime = cpu_to_le32(chan->remote_sdu_itime); in amp_create_logical_link()
564 cp.rx_flow_spec.acc_lat = cpu_to_le32(chan->remote_acc_lat); in amp_create_logical_link()
565 cp.rx_flow_spec.flush_to = cpu_to_le32(chan->remote_flush_to); in amp_create_logical_link()
568 hci_send_cmd(hdev, HCI_OP_CREATE_LOGICAL_LINK, sizeof(cp), in amp_create_logical_link()
569 &cp); in amp_create_logical_link()
571 hci_send_cmd(hdev, HCI_OP_ACCEPT_LOGICAL_LINK, sizeof(cp), in amp_create_logical_link()
572 &cp); in amp_create_logical_link()
580 struct hci_cp_disconn_logical_link cp; in amp_disconnect_logical_link() local
587 cp.log_handle = cpu_to_le16(hchan->handle); in amp_disconnect_logical_link()
588 hci_send_cmd(hcon->hdev, HCI_OP_DISCONN_LOGICAL_LINK, sizeof(cp), &cp); in amp_disconnect_logical_link()