Lines Matching full: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. in test_ctrl_queue()
1385 /* queue the urbs */ in test_ctrl_queue()
1479 /* we can't unlink urbs while they're completing in unlink1()
1531 struct urb **urbs; member
1541 if (urb == ctx->urbs[ctx->num - 4] || urb == ctx->urbs[ctx->num - 2]) { in unlink_queued_callback()
1574 /* Allocate and init the urbs we'll queue */ in unlink_queued()
1575 ctx.urbs = kcalloc(num, sizeof(struct urb *), GFP_KERNEL); in unlink_queued()
1576 if (!ctx.urbs) in unlink_queued()
1579 ctx.urbs[i] = usb_alloc_urb(0, GFP_KERNEL); in unlink_queued()
1580 if (!ctx.urbs[i]) in unlink_queued()
1582 usb_fill_bulk_urb(ctx.urbs[i], udev, pipe, buf, size, in unlink_queued()
1584 ctx.urbs[i]->transfer_dma = buf_dma; in unlink_queued()
1585 ctx.urbs[i]->transfer_flags = URB_NO_TRANSFER_DMA_MAP; in unlink_queued()
1587 if (usb_pipeout(ctx.urbs[i]->pipe)) { in unlink_queued()
1588 simple_fill_buf(ctx.urbs[i]); in unlink_queued()
1589 ctx.urbs[i]->transfer_flags |= URB_ZERO_PACKET; in unlink_queued()
1593 /* Submit all the URBs and then unlink URBs num - 4 and num - 2. */ in unlink_queued()
1596 retval = usb_submit_urb(ctx.urbs[i], GFP_KERNEL); in unlink_queued()
1598 dev_err(&dev->intf->dev, "submit urbs[%d] fail %d\n", in unlink_queued()
1606 usb_unlink_urb(ctx.urbs[num - 4]); in unlink_queued()
1607 usb_unlink_urb(ctx.urbs[num - 2]); in unlink_queued()
1610 usb_unlink_urb(ctx.urbs[i]); in unlink_queued()
1620 usb_free_urb(ctx.urbs[i]); in unlink_queued()
1621 kfree(ctx.urbs); in unlink_queued()
2046 struct urb **urbs; in test_queue() local
2054 urbs = kcalloc(param->sglen, sizeof(*urbs), GFP_KERNEL); in test_queue()
2055 if (!urbs) in test_queue()
2069 urbs[i] = iso_alloc_urb(udev, pipe, desc, in test_queue()
2072 urbs[i] = complicated_alloc_urb(udev, pipe, in test_queue()
2075 if (!urbs[i]) { in test_queue()
2079 packets += urbs[i]->number_of_packets; in test_queue()
2080 urbs[i]->context = &context; in test_queue()
2109 status = usb_submit_urb(urbs[i], GFP_ATOMIC); in test_queue()
2117 simple_free_urb(urbs[i]); in test_queue()
2118 urbs[i] = NULL; in test_queue()
2129 if (urbs[i]) in test_queue()
2130 simple_free_urb(urbs[i]); in test_queue()
2145 kfree(urbs); in test_queue()
2150 if (urbs[i]) in test_queue()
2151 simple_free_urb(urbs[i]); in test_queue()
2154 kfree(urbs); in test_queue()
2544 /* unlink URBs from a bulk-OUT queue */ in usbtest_do_ioctl()
2653 * urbs and then call usbtest_disconnect(). To abort a test, you're best