urbs 65 drivers/gpu/drm/udl/udl_drv.h struct urb_list urbs; urbs 127 drivers/gpu/drm/udl/udl_main.c up(&unode->dev->urbs.limit_sem); urbs 147 drivers/gpu/drm/udl/udl_main.c urb->transfer_buffer_length = udl->urbs.size; /* reset to actual */ urbs 149 drivers/gpu/drm/udl/udl_main.c spin_lock_irqsave(&udl->urbs.lock, flags); urbs 150 drivers/gpu/drm/udl/udl_main.c list_add_tail(&unode->entry, &udl->urbs.list); urbs 151 drivers/gpu/drm/udl/udl_main.c udl->urbs.available++; urbs 152 drivers/gpu/drm/udl/udl_main.c spin_unlock_irqrestore(&udl->urbs.lock, flags); urbs 163 drivers/gpu/drm/udl/udl_main.c up(&udl->urbs.limit_sem); urbs 169 drivers/gpu/drm/udl/udl_main.c int count = udl->urbs.count; urbs 178 drivers/gpu/drm/udl/udl_main.c down(&udl->urbs.limit_sem); urbs 180 drivers/gpu/drm/udl/udl_main.c spin_lock_irq(&udl->urbs.lock); urbs 182 drivers/gpu/drm/udl/udl_main.c node = udl->urbs.list.next; /* have reserved one with sem */ urbs 185 drivers/gpu/drm/udl/udl_main.c spin_unlock_irq(&udl->urbs.lock); urbs 191 drivers/gpu/drm/udl/udl_main.c usb_free_coherent(urb->dev, udl->urbs.size, urbs 196 drivers/gpu/drm/udl/udl_main.c udl->urbs.count = 0; urbs 207 drivers/gpu/drm/udl/udl_main.c spin_lock_init(&udl->urbs.lock); urbs 210 drivers/gpu/drm/udl/udl_main.c udl->urbs.size = size; urbs 211 drivers/gpu/drm/udl/udl_main.c INIT_LIST_HEAD(&udl->urbs.list); urbs 213 drivers/gpu/drm/udl/udl_main.c sema_init(&udl->urbs.limit_sem, 0); urbs 214 drivers/gpu/drm/udl/udl_main.c udl->urbs.count = 0; urbs 215 drivers/gpu/drm/udl/udl_main.c udl->urbs.available = 0; urbs 217 drivers/gpu/drm/udl/udl_main.c while (udl->urbs.count * size < wanted_size) { urbs 251 drivers/gpu/drm/udl/udl_main.c list_add_tail(&unode->entry, &udl->urbs.list); urbs 253 drivers/gpu/drm/udl/udl_main.c up(&udl->urbs.limit_sem); urbs 254 drivers/gpu/drm/udl/udl_main.c udl->urbs.count++; urbs 255 drivers/gpu/drm/udl/udl_main.c udl->urbs.available++; urbs 258 drivers/gpu/drm/udl/udl_main.c DRM_DEBUG("allocated %d %d byte urbs\n", udl->urbs.count, (int) size); urbs 260 drivers/gpu/drm/udl/udl_main.c return udl->urbs.count; urbs 272 drivers/gpu/drm/udl/udl_main.c ret = down_timeout(&udl->urbs.limit_sem, GET_URB_TIMEOUT); urbs 276 drivers/gpu/drm/udl/udl_main.c ret, udl->urbs.available); urbs 280 drivers/gpu/drm/udl/udl_main.c spin_lock_irq(&udl->urbs.lock); urbs 282 drivers/gpu/drm/udl/udl_main.c BUG_ON(list_empty(&udl->urbs.list)); /* reserved one with limit_sem */ urbs 283 drivers/gpu/drm/udl/udl_main.c entry = udl->urbs.list.next; urbs 285 drivers/gpu/drm/udl/udl_main.c udl->urbs.available--; urbs 287 drivers/gpu/drm/udl/udl_main.c spin_unlock_irq(&udl->urbs.lock); urbs 301 drivers/gpu/drm/udl/udl_main.c BUG_ON(len > udl->urbs.size); urbs 350 drivers/gpu/drm/udl/udl_main.c if (udl->urbs.count) urbs 368 drivers/gpu/drm/udl/udl_main.c if (udl->urbs.count) urbs 176 drivers/media/usb/au0828/au0828-dvb.c if (dev->urbs[i]) { urbs 177 drivers/media/usb/au0828/au0828-dvb.c usb_kill_urb(dev->urbs[i]); urbs 179 drivers/media/usb/au0828/au0828-dvb.c kfree(dev->urbs[i]->transfer_buffer); urbs 181 drivers/media/usb/au0828/au0828-dvb.c usb_free_urb(dev->urbs[i]); urbs 202 drivers/media/usb/au0828/au0828-dvb.c dev->urbs[i] = usb_alloc_urb(0, GFP_KERNEL); urbs 203 drivers/media/usb/au0828/au0828-dvb.c if (!dev->urbs[i]) urbs 206 drivers/media/usb/au0828/au0828-dvb.c purb = dev->urbs[i]; urbs 216 drivers/media/usb/au0828/au0828-dvb.c dev->urbs[i] = NULL; urbs 236 drivers/media/usb/au0828/au0828-dvb.c ret = usb_submit_urb(dev->urbs[i], GFP_ATOMIC); urbs 262 drivers/media/usb/au0828/au0828.h struct urb *urbs[URB_COUNT]; urbs 132 drivers/media/usb/msi2500/msi2500.c struct urb *urbs[MAX_ISO_BUFS]; urbs 440 drivers/media/usb/msi2500/msi2500.c if (dev->urbs[i]) { urbs 441 drivers/media/usb/msi2500/msi2500.c dev_dbg(dev->dev, "Unlinking URB %p\n", dev->urbs[i]); urbs 442 drivers/media/usb/msi2500/msi2500.c usb_kill_urb(dev->urbs[i]); urbs 455 drivers/media/usb/msi2500/msi2500.c if (dev->urbs[i]) { urbs 457 drivers/media/usb/msi2500/msi2500.c if (dev->urbs[i]->transfer_buffer) { urbs 459 drivers/media/usb/msi2500/msi2500.c dev->urbs[i]->transfer_buffer_length, urbs 460 drivers/media/usb/msi2500/msi2500.c dev->urbs[i]->transfer_buffer, urbs 461 drivers/media/usb/msi2500/msi2500.c dev->urbs[i]->transfer_dma); urbs 463 drivers/media/usb/msi2500/msi2500.c usb_free_urb(dev->urbs[i]); urbs 464 drivers/media/usb/msi2500/msi2500.c dev->urbs[i] = NULL; urbs 499 drivers/media/usb/msi2500/msi2500.c dev->urbs[i] = urb; urbs 528 drivers/media/usb/msi2500/msi2500.c ret = usb_submit_urb(dev->urbs[i], GFP_KERNEL); urbs 536 drivers/media/usb/msi2500/msi2500.c dev_dbg(dev->dev, "URB 0x%p submitted.\n", dev->urbs[i]); urbs 448 drivers/media/usb/pwc/pwc-if.c pdev->urbs[i] = urb; urbs 476 drivers/media/usb/pwc/pwc-if.c ret = usb_submit_urb(pdev->urbs[i], GFP_KERNEL); urbs 487 drivers/media/usb/pwc/pwc-if.c PWC_DEBUG_MEMORY("URB 0x%p submitted.\n", pdev->urbs[i]); urbs 501 drivers/media/usb/pwc/pwc-if.c if (pdev->urbs[i]) { urbs 502 drivers/media/usb/pwc/pwc-if.c PWC_DEBUG_MEMORY("Unlinking URB %p\n", pdev->urbs[i]); urbs 503 drivers/media/usb/pwc/pwc-if.c usb_kill_urb(pdev->urbs[i]); urbs 514 drivers/media/usb/pwc/pwc-if.c struct urb *urb = pdev->urbs[i]; urbs 524 drivers/media/usb/pwc/pwc-if.c pdev->urbs[i] = NULL; urbs 249 drivers/media/usb/pwc/pwc.h struct urb *urbs[MAX_ISO_BUFS]; urbs 858 drivers/net/can/usb/ucan.c static void ucan_cleanup_rx_urbs(struct ucan_priv *up, struct urb **urbs) urbs 863 drivers/net/can/usb/ucan.c if (urbs[i]) { urbs 864 drivers/net/can/usb/ucan.c usb_unanchor_urb(urbs[i]); urbs 867 drivers/net/can/usb/ucan.c urbs[i]->transfer_buffer, urbs 868 drivers/net/can/usb/ucan.c urbs[i]->transfer_dma); urbs 869 drivers/net/can/usb/ucan.c usb_free_urb(urbs[i]); urbs 873 drivers/net/can/usb/ucan.c memset(urbs, 0, sizeof(*urbs) * UCAN_MAX_RX_URBS); urbs 877 drivers/net/can/usb/ucan.c struct urb **urbs) urbs 881 drivers/net/can/usb/ucan.c memset(urbs, 0, sizeof(*urbs) * UCAN_MAX_RX_URBS); urbs 886 drivers/net/can/usb/ucan.c urbs[i] = usb_alloc_urb(0, GFP_KERNEL); urbs 887 drivers/net/can/usb/ucan.c if (!urbs[i]) urbs 892 drivers/net/can/usb/ucan.c GFP_KERNEL, &urbs[i]->transfer_dma); urbs 895 drivers/net/can/usb/ucan.c usb_free_urb(urbs[i]); urbs 896 drivers/net/can/usb/ucan.c urbs[i] = NULL; urbs 900 drivers/net/can/usb/ucan.c usb_fill_bulk_urb(urbs[i], up->udev, urbs 908 drivers/net/can/usb/ucan.c urbs[i]->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urbs 910 drivers/net/can/usb/ucan.c usb_anchor_urb(urbs[i], &up->rx_urbs); urbs 916 drivers/net/can/usb/ucan.c ucan_cleanup_rx_urbs(up, urbs); urbs 925 drivers/net/can/usb/ucan.c static int ucan_submit_rx_urbs(struct ucan_priv *up, struct urb **urbs) urbs 933 drivers/net/can/usb/ucan.c ret = usb_submit_urb(urbs[i], GFP_KERNEL); urbs 944 drivers/net/can/usb/ucan.c usb_free_urb(urbs[i]); urbs 945 drivers/net/can/usb/ucan.c urbs[i] = NULL; urbs 951 drivers/net/can/usb/ucan.c ucan_cleanup_rx_urbs(up, urbs); urbs 964 drivers/net/can/usb/ucan.c struct urb *urbs[UCAN_MAX_RX_URBS]; urbs 974 drivers/net/can/usb/ucan.c ret = ucan_prepare_and_anchor_rx_urbs(up, urbs); urbs 1010 drivers/net/can/usb/ucan.c ret = ucan_submit_rx_urbs(up, urbs); urbs 1040 drivers/net/can/usb/ucan.c ucan_cleanup_rx_urbs(up, urbs); urbs 39 drivers/net/usb/cdc-phonet.c struct urb *urbs[0]; urbs 228 drivers/net/usb/cdc-phonet.c pnd->urbs[i] = req; urbs 244 drivers/net/usb/cdc-phonet.c struct urb *req = pnd->urbs[i]; urbs 250 drivers/net/usb/cdc-phonet.c pnd->urbs[i] = NULL; urbs 351 drivers/net/usb/cdc-phonet.c dev = alloc_netdev(struct_size(pnd, urbs, rxq_size), ifname, urbs 753 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb **urbs; urbs 758 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urbs = kcalloc(RX_URBS_COUNT, sizeof(struct urb *), GFP_KERNEL); urbs 759 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urbs) urbs 762 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urbs[i] = alloc_rx_urb(usb); urbs 763 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urbs[i]) urbs 769 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (rx->urbs) { urbs 774 drivers/net/wireless/zydas/zd1211rw/zd_usb.c rx->urbs = urbs; urbs 779 drivers/net/wireless/zydas/zd1211rw/zd_usb.c r = usb_submit_urb(urbs[i], GFP_KERNEL); urbs 787 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_kill_urb(urbs[i]); urbs 790 drivers/net/wireless/zydas/zd1211rw/zd_usb.c rx->urbs = NULL; urbs 794 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (urbs) { urbs 796 drivers/net/wireless/zydas/zd1211rw/zd_usb.c free_rx_urb(urbs[i]); urbs 819 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb **urbs; urbs 824 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urbs = rx->urbs; urbs 827 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urbs) urbs 831 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_kill_urb(urbs[i]); urbs 832 drivers/net/wireless/zydas/zd1211rw/zd_usb.c free_rx_urb(urbs[i]); urbs 834 drivers/net/wireless/zydas/zd1211rw/zd_usb.c kfree(urbs); urbs 837 drivers/net/wireless/zydas/zd1211rw/zd_usb.c rx->urbs = NULL; urbs 863 drivers/net/wireless/zydas/zd1211rw/zd_usb.c do_reset = rx->urbs != NULL; urbs 180 drivers/net/wireless/zydas/zd1211rw/zd_usb.h struct urb **urbs; urbs 207 drivers/staging/comedi/drivers/usbdux.c static void usbdux_unlink_urbs(struct urb **urbs, int num_urbs) urbs 212 drivers/staging/comedi/drivers/usbdux.c usb_kill_urb(urbs[i]); urbs 479 drivers/staging/comedi/drivers/usbdux.c struct urb **urbs, int num_urbs, urbs 490 drivers/staging/comedi/drivers/usbdux.c urb = urbs[i]; urbs 170 drivers/staging/comedi/drivers/usbduxsigma.c static void usbduxsigma_unlink_urbs(struct urb **urbs, int num_urbs) urbs 175 drivers/staging/comedi/drivers/usbduxsigma.c usb_kill_urb(urbs[i]); urbs 432 drivers/staging/comedi/drivers/usbduxsigma.c struct urb **urbs, int num_urbs, urbs 442 drivers/staging/comedi/drivers/usbduxsigma.c urb = urbs[i]; urbs 938 drivers/usb/atm/usbatm.c usbatm_submit_urb(instance->urbs[i]); urbs 1130 drivers/usb/atm/usbatm.c instance->urbs[i] = urb; urbs 1191 drivers/usb/atm/usbatm.c if (instance->urbs[i]) urbs 1192 drivers/usb/atm/usbatm.c kfree(instance->urbs[i]->transfer_buffer); urbs 1193 drivers/usb/atm/usbatm.c usb_free_urb(instance->urbs[i]); urbs 1233 drivers/usb/atm/usbatm.c usb_kill_urb(instance->urbs[i]); urbs 1255 drivers/usb/atm/usbatm.c kfree(instance->urbs[i]->transfer_buffer); urbs 1256 drivers/usb/atm/usbatm.c usb_free_urb(instance->urbs[i]); urbs 167 drivers/usb/atm/usbatm.h struct urb *urbs[0]; urbs 138 drivers/usb/class/usblp.c struct usb_anchor urbs; urbs 454 drivers/usb/class/usblp.c usb_kill_anchored_urbs(&usblp->urbs); urbs 742 drivers/usb/class/usblp.c usb_anchor_urb(writeurb, &usblp->urbs); urbs 997 drivers/usb/class/usblp.c usb_anchor_urb(urb, &usblp->urbs); urbs 1115 drivers/usb/class/usblp.c init_usb_anchor(&usblp->urbs); urbs 261 drivers/usb/core/message.c if (io->urbs) { urbs 263 drivers/usb/core/message.c usb_free_urb(io->urbs[io->entries]); urbs 264 drivers/usb/core/message.c kfree(io->urbs); urbs 265 drivers/usb/core/message.c io->urbs = NULL; urbs 312 drivers/usb/core/message.c if (!io->urbs[i]) urbs 315 drivers/usb/core/message.c usb_block_urb(io->urbs[i]); urbs 316 drivers/usb/core/message.c retval = usb_unlink_urb(io->urbs[i]); urbs 324 drivers/usb/core/message.c } else if (urb == io->urbs[i]) urbs 394 drivers/usb/core/message.c io->urbs = kmalloc_array(io->entries, sizeof(*io->urbs), mem_flags); urbs 395 drivers/usb/core/message.c if (!io->urbs) urbs 411 drivers/usb/core/message.c io->urbs[i] = urb; urbs 456 drivers/usb/core/message.c io->urbs[--i]->transfer_flags &= ~URB_NO_INTERRUPT; urbs 526 drivers/usb/core/message.c io->urbs[i]->dev = io->dev; urbs 529 drivers/usb/core/message.c retval = usb_submit_urb(io->urbs[i], GFP_NOIO); urbs 553 drivers/usb/core/message.c io->urbs[i]->status = retval; urbs 601 drivers/usb/core/message.c usb_block_urb(io->urbs[i]); urbs 603 drivers/usb/core/message.c retval = usb_unlink_urb(io->urbs[i]); urbs 2428 drivers/usb/gadget/udc/dummy_hcd.c static DEVICE_ATTR_RO(urbs); urbs 1531 drivers/usb/misc/usbtest.c struct urb **urbs; urbs 1541 drivers/usb/misc/usbtest.c if (urb == ctx->urbs[ctx->num - 4] || urb == ctx->urbs[ctx->num - 2]) { urbs 1575 drivers/usb/misc/usbtest.c ctx.urbs = kcalloc(num, sizeof(struct urb *), GFP_KERNEL); urbs 1576 drivers/usb/misc/usbtest.c if (!ctx.urbs) urbs 1579 drivers/usb/misc/usbtest.c ctx.urbs[i] = usb_alloc_urb(0, GFP_KERNEL); urbs 1580 drivers/usb/misc/usbtest.c if (!ctx.urbs[i]) urbs 1582 drivers/usb/misc/usbtest.c usb_fill_bulk_urb(ctx.urbs[i], udev, pipe, buf, size, urbs 1584 drivers/usb/misc/usbtest.c ctx.urbs[i]->transfer_dma = buf_dma; urbs 1585 drivers/usb/misc/usbtest.c ctx.urbs[i]->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urbs 1587 drivers/usb/misc/usbtest.c if (usb_pipeout(ctx.urbs[i]->pipe)) { urbs 1588 drivers/usb/misc/usbtest.c simple_fill_buf(ctx.urbs[i]); urbs 1589 drivers/usb/misc/usbtest.c ctx.urbs[i]->transfer_flags |= URB_ZERO_PACKET; urbs 1596 drivers/usb/misc/usbtest.c retval = usb_submit_urb(ctx.urbs[i], GFP_KERNEL); urbs 1606 drivers/usb/misc/usbtest.c usb_unlink_urb(ctx.urbs[num - 4]); urbs 1607 drivers/usb/misc/usbtest.c usb_unlink_urb(ctx.urbs[num - 2]); urbs 1610 drivers/usb/misc/usbtest.c usb_unlink_urb(ctx.urbs[i]); urbs 1620 drivers/usb/misc/usbtest.c usb_free_urb(ctx.urbs[i]); urbs 1621 drivers/usb/misc/usbtest.c kfree(ctx.urbs); urbs 2046 drivers/usb/misc/usbtest.c struct urb *urbs[MAX_SGLEN]; urbs 2065 drivers/usb/misc/usbtest.c urbs[i] = iso_alloc_urb(udev, pipe, desc, urbs 2068 drivers/usb/misc/usbtest.c urbs[i] = complicated_alloc_urb(udev, pipe, urbs 2071 drivers/usb/misc/usbtest.c if (!urbs[i]) { urbs 2075 drivers/usb/misc/usbtest.c packets += urbs[i]->number_of_packets; urbs 2076 drivers/usb/misc/usbtest.c urbs[i]->context = &context; urbs 2105 drivers/usb/misc/usbtest.c status = usb_submit_urb(urbs[i], GFP_ATOMIC); urbs 2113 drivers/usb/misc/usbtest.c simple_free_urb(urbs[i]); urbs 2114 drivers/usb/misc/usbtest.c urbs[i] = NULL; urbs 2125 drivers/usb/misc/usbtest.c if (urbs[i]) urbs 2126 drivers/usb/misc/usbtest.c simple_free_urb(urbs[i]); urbs 2144 drivers/usb/misc/usbtest.c if (urbs[i]) urbs 2145 drivers/usb/misc/usbtest.c simple_free_urb(urbs[i]); urbs 55 drivers/usb/usbip/stub.h struct urb **urbs; urbs 298 drivers/usb/usbip/stub_main.c urb = priv->urbs[i]; urbs 324 drivers/usb/usbip/stub_main.c kfree(priv->urbs); urbs 360 drivers/usb/usbip/stub_main.c usb_kill_urb(priv->urbs[i]); urbs 251 drivers/usb/usbip/stub_rx.c ret = usb_unlink_urb(priv->urbs[i]); urbs 253 drivers/usb/usbip/stub_rx.c dev_err(&priv->urbs[i]->dev->dev, urbs 445 drivers/usb/usbip/stub_rx.c ret = usbip_recv_xbuff(ud, priv->urbs[i]); urbs 526 drivers/usb/usbip/stub_rx.c priv->urbs = kmalloc_array(num_urbs, sizeof(*priv->urbs), GFP_KERNEL); urbs 527 drivers/usb/usbip/stub_rx.c if (!priv->urbs) urbs 535 drivers/usb/usbip/stub_rx.c priv->urbs[0] = usb_alloc_urb(np, GFP_KERNEL); urbs 536 drivers/usb/usbip/stub_rx.c if (!priv->urbs[0]) urbs 541 drivers/usb/usbip/stub_rx.c priv->urbs[0]->sg = sgl; urbs 542 drivers/usb/usbip/stub_rx.c priv->urbs[0]->num_sgs = nents; urbs 543 drivers/usb/usbip/stub_rx.c priv->urbs[0]->transfer_buffer = NULL; urbs 545 drivers/usb/usbip/stub_rx.c priv->urbs[0]->transfer_buffer = buffer; urbs 550 drivers/usb/usbip/stub_rx.c priv->urbs[0]->setup_packet = kmemdup(&pdu->u.cmd_submit.setup, urbs 552 drivers/usb/usbip/stub_rx.c if (!priv->urbs[0]->setup_packet) { urbs 557 drivers/usb/usbip/stub_rx.c usbip_pack_pdu(pdu, priv->urbs[0], USBIP_CMD_SUBMIT, 0); urbs 560 drivers/usb/usbip/stub_rx.c priv->urbs[i] = usb_alloc_urb(0, GFP_KERNEL); urbs 564 drivers/usb/usbip/stub_rx.c if (!priv->urbs[i]) urbs 567 drivers/usb/usbip/stub_rx.c usbip_pack_pdu(pdu, priv->urbs[i], USBIP_CMD_SUBMIT, 0); urbs 568 drivers/usb/usbip/stub_rx.c priv->urbs[i]->transfer_buffer = sg_virt(sg); urbs 569 drivers/usb/usbip/stub_rx.c priv->urbs[i]->transfer_buffer_length = sg->length; urbs 576 drivers/usb/usbip/stub_rx.c priv->urbs[i]->context = (void *) priv; urbs 577 drivers/usb/usbip/stub_rx.c priv->urbs[i]->dev = udev; urbs 578 drivers/usb/usbip/stub_rx.c priv->urbs[i]->pipe = pipe; urbs 579 drivers/usb/usbip/stub_rx.c priv->urbs[i]->complete = stub_complete; urbs 582 drivers/usb/usbip/stub_rx.c tweak_special_requests(priv->urbs[i]); urbs 584 drivers/usb/usbip/stub_rx.c masking_bogus_flags(priv->urbs[i]); urbs 590 drivers/usb/usbip/stub_rx.c if (usbip_recv_iso(ud, priv->urbs[0]) < 0) urbs 595 drivers/usb/usbip/stub_rx.c ret = usb_submit_urb(priv->urbs[i], GFP_KERNEL); urbs 603 drivers/usb/usbip/stub_rx.c usbip_dump_urb(priv->urbs[i]); urbs 618 drivers/usb/usbip/stub_rx.c kfree(priv->urbs); urbs 161 drivers/usb/usbip/stub_tx.c struct urb *urb = priv->urbs[0]; urbs 209 drivers/usb/usbip/stub_tx.c actual_length += priv->urbs[i]->actual_length; urbs 231 drivers/usb/usbip/stub_tx.c priv->urbs[i]->transfer_buffer; urbs 233 drivers/usb/usbip/stub_tx.c priv->urbs[i]->actual_length; urbs 96 drivers/video/fbdev/smscufx.c struct urb_list urbs; urbs 1112 drivers/video/fbdev/smscufx.c if (dev->urbs.count > 0) urbs 1125 drivers/video/fbdev/smscufx.c up(&unode->dev->urbs.limit_sem); urbs 1793 drivers/video/fbdev/smscufx.c urb->transfer_buffer_length = dev->urbs.size; /* reset to actual */ urbs 1795 drivers/video/fbdev/smscufx.c spin_lock_irqsave(&dev->urbs.lock, flags); urbs 1796 drivers/video/fbdev/smscufx.c list_add_tail(&unode->entry, &dev->urbs.list); urbs 1797 drivers/video/fbdev/smscufx.c dev->urbs.available++; urbs 1798 drivers/video/fbdev/smscufx.c spin_unlock_irqrestore(&dev->urbs.lock, flags); urbs 1805 drivers/video/fbdev/smscufx.c up(&dev->urbs.limit_sem); urbs 1810 drivers/video/fbdev/smscufx.c int count = dev->urbs.count; urbs 1822 drivers/video/fbdev/smscufx.c ret = down_interruptible(&dev->urbs.limit_sem); urbs 1826 drivers/video/fbdev/smscufx.c spin_lock_irqsave(&dev->urbs.lock, flags); urbs 1828 drivers/video/fbdev/smscufx.c node = dev->urbs.list.next; /* have reserved one with sem */ urbs 1831 drivers/video/fbdev/smscufx.c spin_unlock_irqrestore(&dev->urbs.lock, flags); urbs 1837 drivers/video/fbdev/smscufx.c usb_free_coherent(urb->dev, dev->urbs.size, urbs 1851 drivers/video/fbdev/smscufx.c spin_lock_init(&dev->urbs.lock); urbs 1853 drivers/video/fbdev/smscufx.c dev->urbs.size = size; urbs 1854 drivers/video/fbdev/smscufx.c INIT_LIST_HEAD(&dev->urbs.list); urbs 1885 drivers/video/fbdev/smscufx.c list_add_tail(&unode->entry, &dev->urbs.list); urbs 1890 drivers/video/fbdev/smscufx.c sema_init(&dev->urbs.limit_sem, i); urbs 1891 drivers/video/fbdev/smscufx.c dev->urbs.count = i; urbs 1892 drivers/video/fbdev/smscufx.c dev->urbs.available = i; urbs 1908 drivers/video/fbdev/smscufx.c ret = down_timeout(&dev->urbs.limit_sem, GET_URB_TIMEOUT); urbs 1912 drivers/video/fbdev/smscufx.c ret, dev->urbs.available); urbs 1916 drivers/video/fbdev/smscufx.c spin_lock_irqsave(&dev->urbs.lock, flags); urbs 1918 drivers/video/fbdev/smscufx.c BUG_ON(list_empty(&dev->urbs.list)); /* reserved one with limit_sem */ urbs 1919 drivers/video/fbdev/smscufx.c entry = dev->urbs.list.next; urbs 1921 drivers/video/fbdev/smscufx.c dev->urbs.available--; urbs 1923 drivers/video/fbdev/smscufx.c spin_unlock_irqrestore(&dev->urbs.lock, flags); urbs 1936 drivers/video/fbdev/smscufx.c BUG_ON(len > dev->urbs.size); urbs 1834 drivers/video/fbdev/udlfb.c urb->transfer_buffer_length = dlfb->urbs.size; /* reset to actual */ urbs 1836 drivers/video/fbdev/udlfb.c spin_lock_irqsave(&dlfb->urbs.lock, flags); urbs 1837 drivers/video/fbdev/udlfb.c list_add_tail(&unode->entry, &dlfb->urbs.list); urbs 1838 drivers/video/fbdev/udlfb.c dlfb->urbs.available++; urbs 1839 drivers/video/fbdev/udlfb.c spin_unlock_irqrestore(&dlfb->urbs.lock, flags); urbs 1841 drivers/video/fbdev/udlfb.c up(&dlfb->urbs.limit_sem); urbs 1846 drivers/video/fbdev/udlfb.c int count = dlfb->urbs.count; urbs 1853 drivers/video/fbdev/udlfb.c down(&dlfb->urbs.limit_sem); urbs 1855 drivers/video/fbdev/udlfb.c spin_lock_irq(&dlfb->urbs.lock); urbs 1857 drivers/video/fbdev/udlfb.c node = dlfb->urbs.list.next; /* have reserved one with sem */ urbs 1860 drivers/video/fbdev/udlfb.c spin_unlock_irq(&dlfb->urbs.lock); urbs 1866 drivers/video/fbdev/udlfb.c usb_free_coherent(urb->dev, dlfb->urbs.size, urbs 1872 drivers/video/fbdev/udlfb.c dlfb->urbs.count = 0; urbs 1882 drivers/video/fbdev/udlfb.c spin_lock_init(&dlfb->urbs.lock); urbs 1885 drivers/video/fbdev/udlfb.c dlfb->urbs.size = size; urbs 1886 drivers/video/fbdev/udlfb.c INIT_LIST_HEAD(&dlfb->urbs.list); urbs 1888 drivers/video/fbdev/udlfb.c sema_init(&dlfb->urbs.limit_sem, 0); urbs 1889 drivers/video/fbdev/udlfb.c dlfb->urbs.count = 0; urbs 1890 drivers/video/fbdev/udlfb.c dlfb->urbs.available = 0; urbs 1892 drivers/video/fbdev/udlfb.c while (dlfb->urbs.count * size < wanted_size) { urbs 1923 drivers/video/fbdev/udlfb.c list_add_tail(&unode->entry, &dlfb->urbs.list); urbs 1925 drivers/video/fbdev/udlfb.c up(&dlfb->urbs.limit_sem); urbs 1926 drivers/video/fbdev/udlfb.c dlfb->urbs.count++; urbs 1927 drivers/video/fbdev/udlfb.c dlfb->urbs.available++; urbs 1930 drivers/video/fbdev/udlfb.c return dlfb->urbs.count; urbs 1940 drivers/video/fbdev/udlfb.c ret = down_timeout(&dlfb->urbs.limit_sem, GET_URB_TIMEOUT); urbs 1945 drivers/video/fbdev/udlfb.c ret, dlfb->urbs.available); urbs 1949 drivers/video/fbdev/udlfb.c spin_lock_irq(&dlfb->urbs.lock); urbs 1951 drivers/video/fbdev/udlfb.c BUG_ON(list_empty(&dlfb->urbs.list)); /* reserved one with limit_sem */ urbs 1952 drivers/video/fbdev/udlfb.c entry = dlfb->urbs.list.next; urbs 1954 drivers/video/fbdev/udlfb.c dlfb->urbs.available--; urbs 1956 drivers/video/fbdev/udlfb.c spin_unlock_irq(&dlfb->urbs.lock); urbs 1966 drivers/video/fbdev/udlfb.c BUG_ON(len > dlfb->urbs.size); urbs 1867 include/linux/usb.h struct urb **urbs; urbs 38 include/video/udlfb.h struct urb_list urbs; urbs 710 sound/usb/caiaq/audio.c struct urb **urbs; urbs 718 sound/usb/caiaq/audio.c urbs = kmalloc_array(N_URBS, sizeof(*urbs), GFP_KERNEL); urbs 719 sound/usb/caiaq/audio.c if (!urbs) { urbs 725 sound/usb/caiaq/audio.c urbs[i] = usb_alloc_urb(FRAMES_PER_URB, GFP_KERNEL); urbs 726 sound/usb/caiaq/audio.c if (!urbs[i]) { urbs 728 sound/usb/caiaq/audio.c return urbs; urbs 731 sound/usb/caiaq/audio.c urbs[i]->transfer_buffer = urbs 734 sound/usb/caiaq/audio.c if (!urbs[i]->transfer_buffer) { urbs 736 sound/usb/caiaq/audio.c return urbs; urbs 741 sound/usb/caiaq/audio.c &urbs[i]->iso_frame_desc[frame]; urbs 747 sound/usb/caiaq/audio.c urbs[i]->dev = usb_dev; urbs 748 sound/usb/caiaq/audio.c urbs[i]->pipe = pipe; urbs 749 sound/usb/caiaq/audio.c urbs[i]->transfer_buffer_length = FRAMES_PER_URB urbs 751 sound/usb/caiaq/audio.c urbs[i]->context = &cdev->data_cb_info[i]; urbs 752 sound/usb/caiaq/audio.c urbs[i]->interval = 1; urbs 753 sound/usb/caiaq/audio.c urbs[i]->number_of_packets = FRAMES_PER_URB; urbs 754 sound/usb/caiaq/audio.c urbs[i]->complete = (dir == SNDRV_PCM_STREAM_CAPTURE) ? urbs 759 sound/usb/caiaq/audio.c return urbs; urbs 762 sound/usb/caiaq/audio.c static void free_urbs(struct urb **urbs) urbs 766 sound/usb/caiaq/audio.c if (!urbs) urbs 770 sound/usb/caiaq/audio.c if (!urbs[i]) urbs 773 sound/usb/caiaq/audio.c usb_kill_urb(urbs[i]); urbs 774 sound/usb/caiaq/audio.c kfree(urbs[i]->transfer_buffer); urbs 775 sound/usb/caiaq/audio.c usb_free_urb(urbs[i]); urbs 778 sound/usb/caiaq/audio.c kfree(urbs); urbs 36 sound/usb/line6/capture.c urb_in = line6pcm->in.urbs[index]; urbs 156 sound/usb/line6/capture.c if (urb == line6pcm->in.urbs[index]) urbs 263 sound/usb/line6/capture.c line6pcm->in.urbs = kcalloc(line6->iso_buffers, sizeof(struct urb *), urbs 265 sound/usb/line6/capture.c if (line6pcm->in.urbs == NULL) urbs 273 sound/usb/line6/capture.c urb = line6pcm->in.urbs[i] = urbs 106 sound/usb/line6/pcm.c usb_unlink_urb(pcms->urbs[i]); urbs 463 sound/usb/line6/pcm.c if (pcms->urbs == NULL) urbs 467 sound/usb/line6/pcm.c if (pcms->urbs[i]) { urbs 468 sound/usb/line6/pcm.c usb_kill_urb(pcms->urbs[i]); urbs 469 sound/usb/line6/pcm.c usb_free_urb(pcms->urbs[i]); urbs 472 sound/usb/line6/pcm.c kfree(pcms->urbs); urbs 473 sound/usb/line6/pcm.c pcms->urbs = NULL; urbs 89 sound/usb/line6/pcm.h struct urb **urbs; urbs 163 sound/usb/line6/playback.c urb_out = line6pcm->out.urbs[index]; urbs 321 sound/usb/line6/playback.c if (urb == line6pcm->out.urbs[index]) urbs 408 sound/usb/line6/playback.c line6pcm->out.urbs = kcalloc(line6->iso_buffers, sizeof(struct urb *), urbs 410 sound/usb/line6/playback.c if (line6pcm->out.urbs == NULL) urbs 418 sound/usb/line6/playback.c urb = line6pcm->out.urbs[i] = urbs 141 sound/usb/midi.c } urbs[OUTPUT_URBS]; urbs 171 sound/usb/midi.c struct urb *urbs[INPUT_URBS]; urbs 287 sound/usb/midi.c urb_index = context - ep->urbs; urbs 325 sound/usb/midi.c urb = ep->urbs[urb_index].urb; urbs 371 sound/usb/midi.c if (atomic_read(&in->urbs[j]->use_count)) urbs 373 sound/usb/midi.c in->urbs[j]->dev = umidi->dev; urbs 374 sound/usb/midi.c snd_usbmidi_submit_urb(in->urbs[j], GFP_ATOMIC); urbs 392 sound/usb/midi.c if (ep->urbs[0].urb) urbs 393 sound/usb/midi.c err = usb_bulk_msg(ep->umidi->dev, ep->urbs[0].urb->pipe, urbs 1267 sound/usb/midi.c if (ep->urbs[i]) urbs 1268 sound/usb/midi.c free_urb_and_buffer(ep->umidi, ep->urbs[i], urbs 1269 sound/usb/midi.c ep->urbs[i]->transfer_buffer_length); urbs 1294 sound/usb/midi.c ep->urbs[i] = usb_alloc_urb(0, GFP_KERNEL); urbs 1295 sound/usb/midi.c if (!ep->urbs[i]) { urbs 1307 sound/usb/midi.c &ep->urbs[i]->transfer_dma); urbs 1313 sound/usb/midi.c usb_fill_int_urb(ep->urbs[i], umidi->dev, urbs 1318 sound/usb/midi.c usb_fill_bulk_urb(ep->urbs[i], umidi->dev, urbs 1321 sound/usb/midi.c ep->urbs[i]->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urbs 1322 sound/usb/midi.c err = usb_urb_ep_type_check(ep->urbs[i]); urbs 1347 sound/usb/midi.c if (ep->urbs[i].urb) { urbs 1348 sound/usb/midi.c free_urb_and_buffer(ep->umidi, ep->urbs[i].urb, urbs 1350 sound/usb/midi.c ep->urbs[i].urb = NULL; urbs 1380 sound/usb/midi.c ep->urbs[i].urb = usb_alloc_urb(0, GFP_KERNEL); urbs 1381 sound/usb/midi.c if (!ep->urbs[i].urb) { urbs 1385 sound/usb/midi.c ep->urbs[i].ep = ep; urbs 1419 sound/usb/midi.c &ep->urbs[i].urb->transfer_dma); urbs 1425 sound/usb/midi.c usb_fill_int_urb(ep->urbs[i].urb, umidi->dev, urbs 1428 sound/usb/midi.c &ep->urbs[i], ep_info->out_interval); urbs 1430 sound/usb/midi.c usb_fill_bulk_urb(ep->urbs[i].urb, umidi->dev, urbs 1433 sound/usb/midi.c &ep->urbs[i]); urbs 1434 sound/usb/midi.c err = usb_urb_ep_type_check(ep->urbs[i].urb); urbs 1440 sound/usb/midi.c ep->urbs[i].urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urbs 1508 sound/usb/midi.c usb_kill_urb(ep->out->urbs[j].urb); urbs 1519 sound/usb/midi.c usb_kill_urb(ep->in->urbs[j]); urbs 2279 sound/usb/midi.c usb_kill_urb(ep->in->urbs[j]); urbs 2292 sound/usb/midi.c struct urb *urb = ep->urbs[i]; urbs 116 sound/usb/misc/ua101.c } *urbs[MAX_QUEUE_LENGTH]; urbs 437 sound/usb/misc/ua101.c int err = usb_submit_urb(&stream->urbs[i]->urb, GFP_KERNEL); urbs 452 sound/usb/misc/ua101.c if (stream->urbs[i]) urbs 453 sound/usb/misc/ua101.c usb_kill_urb(&stream->urbs[i]->urb); urbs 518 sound/usb/misc/ua101.c ua->capture.urbs[0]->urb.complete = first_capture_urb_complete; urbs 560 sound/usb/misc/ua101.c ua->playback.urbs[0]->urb.complete = urbs 590 sound/usb/misc/ua101.c urb = &ua->playback.urbs[i]->urb; urbs 1121 sound/usb/misc/ua101.c stream->urbs[u++] = urb; urbs 1139 sound/usb/misc/ua101.c kfree(stream->urbs[i]); urbs 1140 sound/usb/misc/ua101.c stream->urbs[i] = NULL; urbs 47 sound/usb/usx2y/usb_stream.c struct urb **urbs, char *transfer, urbs 57 sound/usb/usx2y/usb_stream.c struct urb *urb = urbs[u]; urbs 264 sound/usb/usx2y/usb_stream.c static void subs_set_complete(struct urb **urbs, void (*complete)(struct urb *)) urbs 269 sound/usb/usx2y/usb_stream.c struct urb *urb = urbs[u];