Lines Matching full:urbs
354 * users are forced to abuse this routine by using it to submit URBs for
395 if (io->urbs) { in sg_clean()
397 usb_free_urb(io->urbs[io->entries]); in sg_clean()
398 kfree(io->urbs); in sg_clean()
399 io->urbs = NULL; in sg_clean()
414 * device driver code (like this routine) unlink queued urbs first, in sg_complete()
440 /* the previous urbs, and this one, completed already. in sg_complete()
441 * unlink pending urbs so they won't rx/tx bad data. in sg_complete()
446 if (!io->urbs[i]) in sg_complete()
449 usb_block_urb(io->urbs[i]); in sg_complete()
450 retval = usb_unlink_urb(io->urbs[i]); in sg_complete()
458 } else if (urb == io->urbs[i]) in sg_complete()
527 /* initialize all the urbs we'll use */ in usb_sg_init()
528 io->urbs = kmalloc_array(io->entries, sizeof(*io->urbs), mem_flags); in usb_sg_init()
529 if (!io->urbs) in usb_sg_init()
545 io->urbs[i] = urb; in usb_sg_init()
590 io->urbs[--i]->transfer_flags &= ~URB_NO_INTERRUPT; in usb_sg_init()
655 /* queue the urbs. */ in usb_sg_wait()
661 io->urbs[i]->dev = io->dev; in usb_sg_wait()
664 retval = usb_submit_urb(io->urbs[i], GFP_NOIO); in usb_sg_wait()
679 * URBs are queued at once; N milliseconds? in usb_sg_wait()
686 /* fail any uncompleted urbs */ in usb_sg_wait()
688 io->urbs[i]->status = retval; in usb_sg_wait()
736 usb_block_urb(io->urbs[i]); in usb_sg_cancel()
738 retval = usb_unlink_urb(io->urbs[i]); in usb_sg_cancel()
1194 * to transmit or receive data until the halt status is cleared. Any URBs
1279 * Disables the endpoint for URB submission and nukes all pending URBs.
1366 /* First pass: Cancel URBs, leave endpoint pointers intact. */ in usb_disable_device_endpoints()
1390 * pending urbs) and usbcore state for the interfaces, so that usbcore
1439 dev_dbg(&dev->dev, "%s nuking %s URBs\n", __func__, in usb_disable_device()
1520 * Also, drivers must not change altsettings while urbs are scheduled for
1521 * endpoints in that interface; all such urbs must first be completed