Home
last modified time | relevance | path

Searched refs:urb_p (Results 1 – 5 of 5) sorted by relevance

/linux-6.3-rc2/drivers/usb/usbip/
A Dvudc_rx.c66 struct urbp *urb_p; in v_recv_cmd_unlink() local
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()
109 if (!urb_p->ep) { in v_recv_cmd_submit()
117 urb_p->type = urb_p->ep->type; in v_recv_cmd_submit()
120 urb_p->new = 1; in v_recv_cmd_submit()
142 ret = alloc_urb_from_cmd(&urb_p->urb, pdu, urb_p->ep->type); in v_recv_cmd_submit()
155 switch (urb_p->ep->type) { in v_recv_cmd_submit()
[all …]
A Dvudc_tx.c27 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()
178 free_urbp_and_urb(urb_p); in v_send_ret_submit()
[all …]
A Dvudc_dev.c44 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()
53 return urb_p; in alloc_urbp()
58 kfree(urb_p); in free_urbp()
63 if (!urb_p) in free_urbp_and_urb()
65 free_urb(urb_p->urb); in free_urbp_and_urb()
[all …]
A Dvudc_transfer.c306 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()
A Dvudc.h152 void v_enqueue_ret_submit(struct vudc *udc, struct urbp *urb_p);
168 void free_urbp_and_urb(struct urbp *urb_p);

Completed in 8 milliseconds