Lines Matching refs:urb
307 struct urb *rcv_urb; in usbd_rcv_complete()
350 struct urb *tx_urb; in usbd_tx_complete()
407 void urb_detach (struct urb *urb) in urb_detach() argument
409 if (urb) { in urb_detach()
410 urb_link *ul = &urb->link; in urb_detach()
439 struct urb *first_urb (urb_link * hd) in first_urb()
446 return (p2surround (struct urb, link, nx)); in first_urb()
454 struct urb *first_urb_detached (urb_link * hd) in first_urb_detached()
456 struct urb *urb; in first_urb_detached() local
457 if ((urb = first_urb (hd))) { in first_urb_detached()
458 urb_detach (urb); in first_urb_detached()
460 return urb; in first_urb_detached()
469 void urb_append (urb_link * hd, struct urb *urb) in urb_append() argument
471 if (hd && urb) { in urb_append()
472 urb_link *new = &urb->link; in urb_append()
499 struct urb *usbd_alloc_urb (struct usb_device_instance *device, in usbd_alloc_urb()
502 struct urb *urb; in usbd_alloc_urb() local
504 if (!(urb = (struct urb *) malloc (sizeof (struct urb)))) { in usbd_alloc_urb()
506 sizeof (struct urb)); in usbd_alloc_urb()
511 memset (urb, 0, sizeof (struct urb)); in usbd_alloc_urb()
512 urb->endpoint = endpoint; in usbd_alloc_urb()
513 urb->device = device; in usbd_alloc_urb()
514 urb->buffer = (u8 *) urb->buffer_data; in usbd_alloc_urb()
515 urb->buffer_length = sizeof (urb->buffer_data); in usbd_alloc_urb()
517 urb_link_init (&urb->link); in usbd_alloc_urb()
519 return urb; in usbd_alloc_urb()
528 void usbd_dealloc_urb (struct urb *urb) in usbd_dealloc_urb() argument
530 if (urb) { in usbd_dealloc_urb()
531 free (urb); in usbd_dealloc_urb()