Searched refs:urb_p (Results 1 – 5 of 5) sorted by relevance
/linux-5.19.10/drivers/usb/usbip/ |
D | vudc_rx.c | 66 struct urbp *urb_p; in v_recv_cmd_unlink() local 69 list_for_each_entry(urb_p, &udc->urb_queue, urb_entry) { in v_recv_cmd_unlink() 70 if (urb_p->seqnum != pdu->u.cmd_unlink.seqnum) in v_recv_cmd_unlink() 72 urb_p->urb->unlinked = -ECONNRESET; in v_recv_cmd_unlink() 73 urb_p->seqnum = pdu->base.seqnum; in v_recv_cmd_unlink() 92 struct urbp *urb_p; in v_recv_cmd_submit() local 96 urb_p = alloc_urbp(); in v_recv_cmd_submit() 97 if (!urb_p) { in v_recv_cmd_submit() 108 urb_p->ep = vudc_find_endpoint(udc, address); in v_recv_cmd_submit() 109 if (!urb_p->ep) { in v_recv_cmd_submit() [all …]
|
D | vudc_tx.c | 25 static void setup_ret_submit_pdu(struct usbip_header *rpdu, struct urbp *urb_p) in setup_ret_submit_pdu() argument 27 setup_base_pdu(&rpdu->base, USBIP_RET_SUBMIT, urb_p->seqnum); in setup_ret_submit_pdu() 28 usbip_pack_pdu(rpdu, urb_p->urb, USBIP_RET_SUBMIT, 1); in setup_ret_submit_pdu() 73 static int v_send_ret_submit(struct vudc *udc, struct urbp *urb_p) in v_send_ret_submit() argument 75 struct urb *urb = urb_p->urb; in v_send_ret_submit() 95 if (urb_p->type == USB_ENDPOINT_XFER_ISOC) in v_send_ret_submit() 109 setup_ret_submit_pdu(&pdu_header, urb_p); in v_send_ret_submit() 120 if (urb_p->type != USB_ENDPOINT_XFER_ISOC && in v_send_ret_submit() 126 } else if (urb_p->type == USB_ENDPOINT_XFER_ISOC && in v_send_ret_submit() 149 if (urb_p->type == USB_ENDPOINT_XFER_ISOC) { in v_send_ret_submit() [all …]
|
D | vudc_dev.c | 44 struct urbp *urb_p; in alloc_urbp() local 46 urb_p = kzalloc(sizeof(*urb_p), GFP_KERNEL); in alloc_urbp() 47 if (!urb_p) in alloc_urbp() 48 return urb_p; in alloc_urbp() 50 urb_p->urb = NULL; in alloc_urbp() 51 urb_p->ep = NULL; in alloc_urbp() 52 INIT_LIST_HEAD(&urb_p->urb_entry); in alloc_urbp() 53 return urb_p; in alloc_urbp() 56 static void free_urbp(struct urbp *urb_p) in free_urbp() argument 58 kfree(urb_p); in free_urbp() [all …]
|
D | vudc_transfer.c | 306 struct urbp *urb_p, *tmp; in v_timer() local 338 list_for_each_entry_safe(urb_p, tmp, &udc->urb_queue, urb_entry) { in v_timer() 339 struct urb *urb = urb_p->urb; in v_timer() 341 ep = urb_p->ep; in v_timer() 359 if (ep == &udc->ep[0] && urb_p->new) { in v_timer() 361 urb_p->new = 0; in v_timer() 420 list_del(&urb_p->urb_entry); in v_timer() 422 v_enqueue_ret_submit(udc, urb_p); in v_timer() 424 v_enqueue_ret_unlink(udc, urb_p->seqnum, in v_timer() 426 free_urbp_and_urb(urb_p); in v_timer()
|
D | vudc.h | 152 void v_enqueue_ret_submit(struct vudc *udc, struct urbp *urb_p); 168 void free_urbp_and_urb(struct urbp *urb_p);
|