Lines Matching defs:urbs

90  * urbs and buffers are allocated dynamically,
115 /* set up all urbs so they can be used with either bulk or interrupt */
247 * These just package urbs as requests that can be easily canceled.
1220 /* allocate and init the urbs we'll queue.
1385 /* queue the urbs */
1479 /* we can't unlink urbs while they're completing
1531 struct urb **urbs;
1541 if (urb == ctx->urbs[ctx->num - 4] || urb == ctx->urbs[ctx->num - 2]) {
1574 /* Allocate and init the urbs we'll queue */
1575 ctx.urbs = kcalloc(num, sizeof(struct urb *), GFP_KERNEL);
1576 if (!ctx.urbs)
1579 ctx.urbs[i] = usb_alloc_urb(0, GFP_KERNEL);
1580 if (!ctx.urbs[i])
1582 usb_fill_bulk_urb(ctx.urbs[i], udev, pipe, buf, size,
1584 ctx.urbs[i]->transfer_dma = buf_dma;
1585 ctx.urbs[i]->transfer_flags = URB_NO_TRANSFER_DMA_MAP;
1587 if (usb_pipeout(ctx.urbs[i]->pipe)) {
1588 simple_fill_buf(ctx.urbs[i]);
1589 ctx.urbs[i]->transfer_flags |= URB_ZERO_PACKET;
1596 retval = usb_submit_urb(ctx.urbs[i], GFP_KERNEL);
1598 dev_err(&dev->intf->dev, "submit urbs[%d] fail %d\n",
1606 usb_unlink_urb(ctx.urbs[num - 4]);
1607 usb_unlink_urb(ctx.urbs[num - 2]);
1610 usb_unlink_urb(ctx.urbs[i]);
1620 usb_free_urb(ctx.urbs[i]);
1621 kfree(ctx.urbs);
2047 struct urb **urbs;
2055 urbs = kcalloc(param->sglen, sizeof(*urbs), GFP_KERNEL);
2056 if (!urbs)
2070 urbs[i] = iso_alloc_urb(udev, pipe, desc,
2073 urbs[i] = complicated_alloc_urb(udev, pipe,
2076 if (!urbs[i]) {
2080 packets += urbs[i]->number_of_packets;
2081 urbs[i]->context = &context;
2110 status = usb_submit_urb(urbs[i], GFP_ATOMIC);
2118 simple_free_urb(urbs[i]);
2119 urbs[i] = NULL;
2130 if (urbs[i])
2131 simple_free_urb(urbs[i]);
2146 kfree(urbs);
2151 if (urbs[i])
2152 simple_free_urb(urbs[i]);
2155 kfree(urbs);
2654 * urbs and then call usbtest_disconnect(). To abort a test, you're best