Lines Matching full:urbs

355  * users are forced to abuse this routine by using it to submit URBs for
396 if (io->urbs) { in sg_clean()
398 usb_free_urb(io->urbs[io->entries]); in sg_clean()
399 kfree(io->urbs); in sg_clean()
400 io->urbs = NULL; in sg_clean()
415 * device driver code (like this routine) unlink queued urbs first, in sg_complete()
441 /* the previous urbs, and this one, completed already. in sg_complete()
442 * unlink pending urbs so they won't rx/tx bad data. in sg_complete()
447 if (!io->urbs[i]) in sg_complete()
450 usb_block_urb(io->urbs[i]); in sg_complete()
451 retval = usb_unlink_urb(io->urbs[i]); in sg_complete()
459 } else if (urb == io->urbs[i]) in sg_complete()
528 /* initialize all the urbs we'll use */ in usb_sg_init()
529 io->urbs = kmalloc_array(io->entries, sizeof(*io->urbs), mem_flags); in usb_sg_init()
530 if (!io->urbs) in usb_sg_init()
546 io->urbs[i] = urb; in usb_sg_init()
591 io->urbs[--i]->transfer_flags &= ~URB_NO_INTERRUPT; in usb_sg_init()
656 /* queue the urbs. */ in usb_sg_wait()
662 io->urbs[i]->dev = io->dev; in usb_sg_wait()
665 retval = usb_submit_urb(io->urbs[i], GFP_NOIO); in usb_sg_wait()
680 * URBs are queued at once; N milliseconds? in usb_sg_wait()
687 /* fail any uncompleted urbs */ in usb_sg_wait()
689 io->urbs[i]->status = retval; in usb_sg_wait()
737 usb_block_urb(io->urbs[i]); in usb_sg_cancel()
739 retval = usb_unlink_urb(io->urbs[i]); in usb_sg_cancel()
1191 * to transmit or receive data until the halt status is cleared. Any URBs
1278 * Disables the endpoint for URB submission and nukes all pending URBs.
1365 /* First pass: Cancel URBs, leave endpoint pointers intact. */ in usb_disable_device_endpoints()
1389 * pending urbs) and usbcore state for the interfaces, so that usbcore
1438 dev_dbg(&dev->dev, "%s nuking %s URBs\n", __func__, in usb_disable_device()
1519 * Also, drivers must not change altsettings while urbs are scheduled for
1520 * endpoints in that interface; all such urbs must first be completed