Lines Matching full:pdu

16 			      struct usbip_header *pdu, u8 type)  in alloc_urb_from_cmd()  argument
21 urb = usb_alloc_urb(pdu->u.cmd_submit.number_of_packets, in alloc_urb_from_cmd()
29 usbip_pack_pdu(pdu, urb, USBIP_CMD_SUBMIT, 0); in alloc_urb_from_cmd()
38 urb->setup_packet = kmemdup(&pdu->u.cmd_submit.setup, 8, in alloc_urb_from_cmd()
47 urb->pipe |= pdu->base.direction == USBIP_DIR_IN ? in alloc_urb_from_cmd()
63 struct usbip_header *pdu) in v_recv_cmd_unlink() argument
70 if (urb_p->seqnum != pdu->u.cmd_unlink.seqnum) in v_recv_cmd_unlink()
73 urb_p->seqnum = pdu->base.seqnum; in v_recv_cmd_unlink()
80 v_enqueue_ret_unlink(udc, pdu->base.seqnum, 0); in v_recv_cmd_unlink()
89 struct usbip_header *pdu) in v_recv_cmd_submit() argument
103 address = pdu->base.ep; in v_recv_cmd_submit()
104 if (pdu->base.direction == USBIP_DIR_IN) in v_recv_cmd_submit()
121 urb_p->seqnum = pdu->base.seqnum; in v_recv_cmd_submit()
129 bytes = pdu->u.cmd_submit.transfer_buffer_length; in v_recv_cmd_submit()
132 if (pdu->u.cmd_submit.number_of_packets < 0 || in v_recv_cmd_submit()
133 pdu->u.cmd_submit.number_of_packets > packets) { in v_recv_cmd_submit()
136 pdu->u.cmd_submit.number_of_packets); in v_recv_cmd_submit()
142 ret = alloc_urb_from_cmd(&urb_p->urb, pdu, urb_p->ep->type); in v_recv_cmd_submit()
192 struct usbip_header pdu; in v_rx_pdu() local
195 memset(&pdu, 0, sizeof(pdu)); in v_rx_pdu()
196 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu)); in v_rx_pdu()
197 if (ret != sizeof(pdu)) { in v_rx_pdu()
203 usbip_header_correct_endian(&pdu, 0); in v_rx_pdu()
213 switch (pdu.base.command) { in v_rx_pdu()
215 ret = v_recv_cmd_unlink(udc, &pdu); in v_rx_pdu()
218 ret = v_recv_cmd_submit(udc, &pdu); in v_rx_pdu()