Searched refs:urb_p (Results 1 – 5 of 5) sorted by relevance
/drivers/usb/usbip/ |
D | vudc_rx.c | 78 struct urbp *urb_p; in v_recv_cmd_unlink() local 81 list_for_each_entry(urb_p, &udc->urb_queue, urb_entry) { in v_recv_cmd_unlink() 82 if (urb_p->seqnum != pdu->u.cmd_unlink.seqnum) in v_recv_cmd_unlink() 84 urb_p->urb->unlinked = -ECONNRESET; in v_recv_cmd_unlink() 85 urb_p->seqnum = pdu->base.seqnum; in v_recv_cmd_unlink() 104 struct urbp *urb_p; in v_recv_cmd_submit() local 108 urb_p = alloc_urbp(); in v_recv_cmd_submit() 109 if (!urb_p) { in v_recv_cmd_submit() 120 urb_p->ep = vudc_find_endpoint(udc, address); in v_recv_cmd_submit() 121 if (!urb_p->ep) { in v_recv_cmd_submit() [all …]
|
D | vudc_tx.c | 37 static void setup_ret_submit_pdu(struct usbip_header *rpdu, struct urbp *urb_p) in setup_ret_submit_pdu() argument 39 setup_base_pdu(&rpdu->base, USBIP_RET_SUBMIT, urb_p->seqnum); in setup_ret_submit_pdu() 40 usbip_pack_pdu(rpdu, urb_p->urb, USBIP_RET_SUBMIT, 1); in setup_ret_submit_pdu() 85 static int v_send_ret_submit(struct vudc *udc, struct urbp *urb_p) in v_send_ret_submit() argument 87 struct urb *urb = urb_p->urb; in v_send_ret_submit() 107 if (urb_p->type == USB_ENDPOINT_XFER_ISOC) in v_send_ret_submit() 121 setup_ret_submit_pdu(&pdu_header, urb_p); in v_send_ret_submit() 132 if (urb_p->type != USB_ENDPOINT_XFER_ISOC && in v_send_ret_submit() 138 } else if (urb_p->type == USB_ENDPOINT_XFER_ISOC && in v_send_ret_submit() 161 if (urb_p->type == USB_ENDPOINT_XFER_ISOC) { in v_send_ret_submit() [all …]
|
D | vudc_dev.c | 56 struct urbp *urb_p; in alloc_urbp() local 58 urb_p = kzalloc(sizeof(*urb_p), GFP_KERNEL); in alloc_urbp() 59 if (!urb_p) in alloc_urbp() 60 return urb_p; in alloc_urbp() 62 urb_p->urb = NULL; in alloc_urbp() 63 urb_p->ep = NULL; in alloc_urbp() 64 INIT_LIST_HEAD(&urb_p->urb_entry); in alloc_urbp() 65 return urb_p; in alloc_urbp() 68 static void free_urbp(struct urbp *urb_p) in free_urbp() argument 70 kfree(urb_p); in free_urbp() [all …]
|
D | vudc_transfer.c | 318 struct urbp *urb_p, *tmp; in v_timer() local 350 list_for_each_entry_safe(urb_p, tmp, &udc->urb_queue, urb_entry) { in v_timer() 351 struct urb *urb = urb_p->urb; in v_timer() 353 ep = urb_p->ep; in v_timer() 371 if (ep == &udc->ep[0] && urb_p->new) { in v_timer() 373 urb_p->new = 0; in v_timer() 432 list_del(&urb_p->urb_entry); in v_timer() 434 v_enqueue_ret_submit(udc, urb_p); in v_timer() 436 v_enqueue_ret_unlink(udc, urb_p->seqnum, in v_timer() 438 free_urbp_and_urb(urb_p); in v_timer()
|
D | vudc.h | 164 void v_enqueue_ret_submit(struct vudc *udc, struct urbp *urb_p); 180 void free_urbp_and_urb(struct urbp *urb_p);
|