Lines Matching defs:pdu
56 struct usbip_header *pdu)
65 urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum);
70 pdu->base.seqnum,
76 /* unpack the pdu to a urb */
77 usbip_pack_pdu(pdu, urb, USBIP_RET_SUBMIT, 0);
101 usbip_dbg_vhci_rx("now giveback urb %u\n", pdu->base.seqnum);
113 struct usbip_header *pdu)
122 if (unlink->seqnum == pdu->base.seqnum) {
138 struct usbip_header *pdu)
146 usbip_dump_header(pdu);
148 unlink = dequeue_pending_unlink(vdev, pdu);
151 pdu->base.seqnum);
166 pdu->base.seqnum);
168 usbip_dbg_vhci_rx("now giveback urb %d\n", pdu->base.seqnum);
171 urb->status = pdu->u.ret_unlink.status;
196 /* recv a pdu */
200 struct usbip_header pdu;
205 memset(&pdu, 0, sizeof(pdu));
207 /* receive a pdu header */
208 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu));
228 if (ret != sizeof(pdu)) {
229 pr_err("received pdu size is %d, should be %d\n", ret,
230 (unsigned int)sizeof(pdu));
235 usbip_header_correct_endian(&pdu, 0);
238 usbip_dump_header(&pdu);
240 switch (pdu.base.command) {
242 vhci_recv_ret_submit(vdev, &pdu);
245 vhci_recv_ret_unlink(vdev, &pdu);
249 pr_err("unknown pdu %u\n", pdu.base.command);
250 usbip_dump_header(&pdu);