• Home
  • Raw
  • Download

Lines Matching refs:cp

255 	struct hci_cp_read_local_amp_assoc cp;  in amp_read_loc_assoc_frag()  local
262 cp.phy_handle = phy_handle; in amp_read_loc_assoc_frag()
263 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_frag()
264 cp.len_so_far = cpu_to_le16(loc_assoc->offset); in amp_read_loc_assoc_frag()
267 hci_req_add(&req, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc_frag()
275 struct hci_cp_read_local_amp_assoc cp; in amp_read_loc_assoc() local
280 memset(&cp, 0, sizeof(cp)); in amp_read_loc_assoc()
282 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc()
286 hci_req_add(&req, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc()
295 struct hci_cp_read_local_amp_assoc cp; in amp_read_loc_assoc_final_data() local
303 cp.phy_handle = hcon->handle; in amp_read_loc_assoc_final_data()
304 cp.len_so_far = cpu_to_le16(0); in amp_read_loc_assoc_final_data()
305 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_final_data()
311 hci_req_add(&req, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc_final_data()
335 struct hci_cp_write_remote_amp_assoc *cp; in amp_write_rem_assoc_frag() local
355 len = frag_len + sizeof(*cp); in amp_write_rem_assoc_frag()
357 cp = kzalloc(len, GFP_KERNEL); in amp_write_rem_assoc_frag()
358 if (!cp) { in amp_write_rem_assoc_frag()
366 cp->phy_handle = hcon->handle; in amp_write_rem_assoc_frag()
367 cp->len_so_far = cpu_to_le16(ctrl->assoc_len_so_far); in amp_write_rem_assoc_frag()
368 cp->rem_len = cpu_to_le16(ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
369 memcpy(cp->frag, ctrl->assoc, frag_len); in amp_write_rem_assoc_frag()
377 hci_req_add(&req, HCI_OP_WRITE_REMOTE_AMP_ASSOC, len, cp); in amp_write_rem_assoc_frag()
380 kfree(cp); in amp_write_rem_assoc_frag()
418 struct hci_cp_create_phy_link *cp; in create_phylink_complete() local
422 cp = hci_sent_cmd_data(hdev, HCI_OP_CREATE_PHY_LINK); in create_phylink_complete()
423 if (!cp) in create_phylink_complete()
431 hcon = hci_conn_hash_lookup_handle(hdev, cp->phy_handle); in create_phylink_complete()
435 amp_write_remote_assoc(hdev, cp->phy_handle); in create_phylink_complete()
444 struct hci_cp_create_phy_link cp; in amp_create_phylink() local
447 cp.phy_handle = hcon->handle; in amp_create_phylink()
452 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_create_phylink()
453 &cp.key_type)) { in amp_create_phylink()
459 hci_req_add(&req, HCI_OP_CREATE_PHY_LINK, sizeof(cp), &cp); in amp_create_phylink()
466 struct hci_cp_accept_phy_link *cp; in accept_phylink_complete() local
473 cp = hci_sent_cmd_data(hdev, HCI_OP_ACCEPT_PHY_LINK); in accept_phylink_complete()
474 if (!cp) in accept_phylink_complete()
477 amp_write_remote_assoc(hdev, cp->phy_handle); in accept_phylink_complete()
483 struct hci_cp_accept_phy_link cp; in amp_accept_phylink() local
486 cp.phy_handle = hcon->handle; in amp_accept_phylink()
491 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_accept_phylink()
492 &cp.key_type)) { in amp_accept_phylink()
498 hci_req_add(&req, HCI_OP_ACCEPT_PHY_LINK, sizeof(cp), &cp); in amp_accept_phylink()
533 struct hci_cp_create_accept_logical_link cp; in amp_create_logical_link() local
546 cp.phy_handle = hs_hcon->handle; in amp_create_logical_link()
548 cp.tx_flow_spec.id = chan->local_id; in amp_create_logical_link()
549 cp.tx_flow_spec.stype = chan->local_stype; in amp_create_logical_link()
550 cp.tx_flow_spec.msdu = cpu_to_le16(chan->local_msdu); in amp_create_logical_link()
551 cp.tx_flow_spec.sdu_itime = cpu_to_le32(chan->local_sdu_itime); in amp_create_logical_link()
552 cp.tx_flow_spec.acc_lat = cpu_to_le32(chan->local_acc_lat); in amp_create_logical_link()
553 cp.tx_flow_spec.flush_to = cpu_to_le32(chan->local_flush_to); in amp_create_logical_link()
555 cp.rx_flow_spec.id = chan->remote_id; in amp_create_logical_link()
556 cp.rx_flow_spec.stype = chan->remote_stype; in amp_create_logical_link()
557 cp.rx_flow_spec.msdu = cpu_to_le16(chan->remote_msdu); in amp_create_logical_link()
558 cp.rx_flow_spec.sdu_itime = cpu_to_le32(chan->remote_sdu_itime); in amp_create_logical_link()
559 cp.rx_flow_spec.acc_lat = cpu_to_le32(chan->remote_acc_lat); in amp_create_logical_link()
560 cp.rx_flow_spec.flush_to = cpu_to_le32(chan->remote_flush_to); in amp_create_logical_link()
563 hci_send_cmd(hdev, HCI_OP_CREATE_LOGICAL_LINK, sizeof(cp), in amp_create_logical_link()
564 &cp); in amp_create_logical_link()
566 hci_send_cmd(hdev, HCI_OP_ACCEPT_LOGICAL_LINK, sizeof(cp), in amp_create_logical_link()
567 &cp); in amp_create_logical_link()
575 struct hci_cp_disconn_logical_link cp; in amp_disconnect_logical_link() local
582 cp.log_handle = cpu_to_le16(hchan->handle); in amp_disconnect_logical_link()
583 hci_send_cmd(hcon->hdev, HCI_OP_DISCONN_LOGICAL_LINK, sizeof(cp), &cp); in amp_disconnect_logical_link()