Lines Matching refs: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);
2046 struct urb **urbs;
2054 urbs = kcalloc(param->sglen, sizeof(*urbs), GFP_KERNEL);
2055 if (!urbs)
2069 urbs[i] = iso_alloc_urb(udev, pipe, desc,
2072 urbs[i] = complicated_alloc_urb(udev, pipe,
2075 if (!urbs[i]) {
2079 packets += urbs[i]->number_of_packets;
2080 urbs[i]->context = &context;
2109 status = usb_submit_urb(urbs[i], GFP_ATOMIC);
2117 simple_free_urb(urbs[i]);
2118 urbs[i] = NULL;
2129 if (urbs[i])
2130 simple_free_urb(urbs[i]);
2145 kfree(urbs);
2150 if (urbs[i])
2151 simple_free_urb(urbs[i]);
2154 kfree(urbs);
2653 * urbs and then call usbtest_disconnect(). To abort a test, you're best