/drivers/gpu/drm/udl/ |
D | udl_main.c | 127 up(&unode->dev->urbs.limit_sem); in udl_release_urb_work() 146 urb->transfer_buffer_length = udl->urbs.size; /* reset to actual */ in udl_urb_completion() 148 spin_lock_irqsave(&udl->urbs.lock, flags); in udl_urb_completion() 149 list_add_tail(&unode->entry, &udl->urbs.list); in udl_urb_completion() 150 udl->urbs.available++; in udl_urb_completion() 151 spin_unlock_irqrestore(&udl->urbs.lock, flags); in udl_urb_completion() 162 up(&udl->urbs.limit_sem); in udl_urb_completion() 168 int count = udl->urbs.count; in udl_free_urb_list() 177 down(&udl->urbs.limit_sem); in udl_free_urb_list() 179 spin_lock_irq(&udl->urbs.lock); in udl_free_urb_list() [all …]
|
D | udl_drv.h | 62 struct urb_list urbs; member
|
/drivers/usb/usbip/ |
D | stub_rx.c | 253 ret = usb_unlink_urb(priv->urbs[i]); in stub_recv_cmd_unlink() 255 dev_err(&priv->urbs[i]->dev->dev, in stub_recv_cmd_unlink() 447 ret = usbip_recv_xbuff(ud, priv->urbs[i]); in stub_recv_xbuff() 528 priv->urbs = kmalloc_array(num_urbs, sizeof(*priv->urbs), GFP_KERNEL); in stub_recv_cmd_submit() 529 if (!priv->urbs) in stub_recv_cmd_submit() 537 priv->urbs[0] = usb_alloc_urb(np, GFP_KERNEL); in stub_recv_cmd_submit() 538 if (!priv->urbs[0]) in stub_recv_cmd_submit() 543 priv->urbs[0]->sg = sgl; in stub_recv_cmd_submit() 544 priv->urbs[0]->num_sgs = nents; in stub_recv_cmd_submit() 545 priv->urbs[0]->transfer_buffer = NULL; in stub_recv_cmd_submit() [all …]
|
D | stub_tx.c | 161 struct urb *urb = priv->urbs[0]; in stub_send_ret_submit() 209 actual_length += priv->urbs[i]->actual_length; in stub_send_ret_submit() 231 priv->urbs[i]->transfer_buffer; in stub_send_ret_submit() 233 priv->urbs[i]->actual_length; in stub_send_ret_submit()
|
D | stub_main.c | 298 urb = priv->urbs[i]; in stub_free_priv_and_urb() 324 kfree(priv->urbs); in stub_free_priv_and_urb() 360 usb_kill_urb(priv->urbs[i]); in stub_device_cleanup_urbs()
|
D | stub.h | 55 struct urb **urbs; member
|
/drivers/net/can/usb/ |
D | ucan.c | 858 static void ucan_cleanup_rx_urbs(struct ucan_priv *up, struct urb **urbs) in ucan_cleanup_rx_urbs() argument 863 if (urbs[i]) { in ucan_cleanup_rx_urbs() 864 usb_unanchor_urb(urbs[i]); in ucan_cleanup_rx_urbs() 867 urbs[i]->transfer_buffer, in ucan_cleanup_rx_urbs() 868 urbs[i]->transfer_dma); in ucan_cleanup_rx_urbs() 869 usb_free_urb(urbs[i]); in ucan_cleanup_rx_urbs() 873 memset(urbs, 0, sizeof(*urbs) * UCAN_MAX_RX_URBS); in ucan_cleanup_rx_urbs() 877 struct urb **urbs) in ucan_prepare_and_anchor_rx_urbs() argument 881 memset(urbs, 0, sizeof(*urbs) * UCAN_MAX_RX_URBS); in ucan_prepare_and_anchor_rx_urbs() 886 urbs[i] = usb_alloc_urb(0, GFP_KERNEL); in ucan_prepare_and_anchor_rx_urbs() [all …]
|
/drivers/video/fbdev/ |
D | udlfb.c | 1846 urb->transfer_buffer_length = dlfb->urbs.size; /* reset to actual */ in dlfb_urb_completion() 1848 spin_lock_irqsave(&dlfb->urbs.lock, flags); in dlfb_urb_completion() 1849 list_add_tail(&unode->entry, &dlfb->urbs.list); in dlfb_urb_completion() 1850 dlfb->urbs.available++; in dlfb_urb_completion() 1851 spin_unlock_irqrestore(&dlfb->urbs.lock, flags); in dlfb_urb_completion() 1853 up(&dlfb->urbs.limit_sem); in dlfb_urb_completion() 1858 int count = dlfb->urbs.count; in dlfb_free_urb_list() 1865 down(&dlfb->urbs.limit_sem); in dlfb_free_urb_list() 1867 spin_lock_irq(&dlfb->urbs.lock); in dlfb_free_urb_list() 1869 node = dlfb->urbs.list.next; /* have reserved one with sem */ in dlfb_free_urb_list() [all …]
|
D | smscufx.c | 96 struct urb_list urbs; member 1141 up(&unode->dev->urbs.limit_sem); in ufx_release_urb_work() 1755 if (dev->urbs.count > 0) in ufx_usb_probe() 1788 if (dev->urbs.count > 0) in ufx_usb_disconnect() 1824 urb->transfer_buffer_length = dev->urbs.size; /* reset to actual */ in ufx_urb_completion() 1826 spin_lock_irqsave(&dev->urbs.lock, flags); in ufx_urb_completion() 1827 list_add_tail(&unode->entry, &dev->urbs.list); in ufx_urb_completion() 1828 dev->urbs.available++; in ufx_urb_completion() 1829 spin_unlock_irqrestore(&dev->urbs.lock, flags); in ufx_urb_completion() 1836 up(&dev->urbs.limit_sem); in ufx_urb_completion() [all …]
|
/drivers/usb/misc/ |
D | usbtest.c | 1531 struct urb **urbs; member 1541 if (urb == ctx->urbs[ctx->num - 4] || urb == ctx->urbs[ctx->num - 2]) { in unlink_queued_callback() 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() [all …]
|
/drivers/media/usb/au0828/ |
D | au0828-dvb.c | 176 if (dev->urbs[i]) { in stop_urb_transfer() 177 usb_kill_urb(dev->urbs[i]); in stop_urb_transfer() 179 kfree(dev->urbs[i]->transfer_buffer); in stop_urb_transfer() 181 usb_free_urb(dev->urbs[i]); in stop_urb_transfer() 202 dev->urbs[i] = usb_alloc_urb(0, GFP_KERNEL); in start_urb_transfer() 203 if (!dev->urbs[i]) in start_urb_transfer() 206 purb = dev->urbs[i]; in start_urb_transfer() 216 dev->urbs[i] = NULL; in start_urb_transfer() 236 ret = usb_submit_urb(dev->urbs[i], GFP_ATOMIC); in start_urb_transfer()
|
D | au0828.h | 262 struct urb *urbs[URB_COUNT]; member
|
/drivers/media/usb/msi2500/ |
D | msi2500.c | 132 struct urb *urbs[MAX_ISO_BUFS]; member 440 if (dev->urbs[i]) { in msi2500_iso_stop() 441 dev_dbg(dev->dev, "Unlinking URB %p\n", dev->urbs[i]); in msi2500_iso_stop() 442 usb_kill_urb(dev->urbs[i]); in msi2500_iso_stop() 455 if (dev->urbs[i]) { in msi2500_iso_free() 457 if (dev->urbs[i]->transfer_buffer) { in msi2500_iso_free() 459 dev->urbs[i]->transfer_buffer_length, in msi2500_iso_free() 460 dev->urbs[i]->transfer_buffer, in msi2500_iso_free() 461 dev->urbs[i]->transfer_dma); in msi2500_iso_free() 463 usb_free_urb(dev->urbs[i]); in msi2500_iso_free() [all …]
|
/drivers/usb/core/ |
D | message.c | 399 if (io->urbs) { in sg_clean() 401 usb_free_urb(io->urbs[io->entries]); in sg_clean() 402 kfree(io->urbs); in sg_clean() 403 io->urbs = NULL; in sg_clean() 450 if (!io->urbs[i]) in sg_complete() 453 usb_block_urb(io->urbs[i]); in sg_complete() 454 retval = usb_unlink_urb(io->urbs[i]); in sg_complete() 462 } else if (urb == io->urbs[i]) in sg_complete() 532 io->urbs = kmalloc_array(io->entries, sizeof(*io->urbs), mem_flags); in usb_sg_init() 533 if (!io->urbs) in usb_sg_init() [all …]
|
/drivers/net/wireless/zydas/zd1211rw/ |
D | zd_usb.c | 750 struct urb **urbs; in __zd_usb_enable_rx() local 755 urbs = kcalloc(RX_URBS_COUNT, sizeof(struct urb *), GFP_KERNEL); in __zd_usb_enable_rx() 756 if (!urbs) in __zd_usb_enable_rx() 759 urbs[i] = alloc_rx_urb(usb); in __zd_usb_enable_rx() 760 if (!urbs[i]) in __zd_usb_enable_rx() 766 if (rx->urbs) { in __zd_usb_enable_rx() 771 rx->urbs = urbs; in __zd_usb_enable_rx() 776 r = usb_submit_urb(urbs[i], GFP_KERNEL); in __zd_usb_enable_rx() 784 usb_kill_urb(urbs[i]); in __zd_usb_enable_rx() 787 rx->urbs = NULL; in __zd_usb_enable_rx() [all …]
|
D | zd_usb.h | 180 struct urb **urbs; member
|
/drivers/net/usb/ |
D | cdc-phonet.c | 39 struct urb *urbs[]; member 228 pnd->urbs[i] = req; in usbpn_open() 244 struct urb *req = pnd->urbs[i]; in usbpn_close() 250 pnd->urbs[i] = NULL; in usbpn_close() 351 dev = alloc_netdev(struct_size(pnd, urbs, rxq_size), ifname, in usbpn_probe()
|
/drivers/media/usb/pwc/ |
D | pwc-if.c | 460 pdev->urbs[i] = urb; in pwc_isoc_init() 488 ret = usb_submit_urb(pdev->urbs[i], GFP_KERNEL); in pwc_isoc_init() 499 PWC_DEBUG_MEMORY("URB 0x%p submitted.\n", pdev->urbs[i]); in pwc_isoc_init() 513 if (pdev->urbs[i]) { in pwc_iso_stop() 514 PWC_DEBUG_MEMORY("Unlinking URB %p\n", pdev->urbs[i]); in pwc_iso_stop() 515 usb_kill_urb(pdev->urbs[i]); in pwc_iso_stop() 526 struct urb *urb = pdev->urbs[i]; in pwc_iso_free() 536 pdev->urbs[i] = NULL; in pwc_iso_free()
|
D | pwc.h | 249 struct urb *urbs[MAX_ISO_BUFS]; member
|
/drivers/usb/atm/ |
D | usbatm.c | 940 usbatm_submit_urb(instance->urbs[i]); in usbatm_atm_init() 1132 instance->urbs[i] = urb; in usbatm_usb_probe() 1193 if (instance->urbs[i]) in usbatm_usb_probe() 1194 kfree(instance->urbs[i]->transfer_buffer); in usbatm_usb_probe() 1195 usb_free_urb(instance->urbs[i]); in usbatm_usb_probe() 1235 usb_kill_urb(instance->urbs[i]); in usbatm_usb_disconnect() 1257 kfree(instance->urbs[i]->transfer_buffer); in usbatm_usb_disconnect() 1258 usb_free_urb(instance->urbs[i]); in usbatm_usb_disconnect()
|
D | usbatm.h | 167 struct urb *urbs[]; member
|
/drivers/usb/class/ |
D | usblp.c | 138 struct usb_anchor urbs; member 471 usb_kill_anchored_urbs(&usblp->urbs); in usblp_unlink_urbs() 768 usb_anchor_urb(writeurb, &usblp->urbs); in usblp_write() 1028 usb_anchor_urb(urb, &usblp->urbs); in usblp_submit_read() 1146 init_usb_anchor(&usblp->urbs); in usblp_probe() 1412 usb_poison_anchored_urbs(&usblp->urbs); in usblp_disconnect()
|
/drivers/staging/comedi/drivers/ |
D | usbduxsigma.c | 170 static void usbduxsigma_unlink_urbs(struct urb **urbs, int num_urbs) in usbduxsigma_unlink_urbs() argument 175 usb_kill_urb(urbs[i]); in usbduxsigma_unlink_urbs() 432 struct urb **urbs, int num_urbs, in usbduxsigma_submit_urbs() argument 442 urb = urbs[i]; in usbduxsigma_submit_urbs()
|
D | usbdux.c | 207 static void usbdux_unlink_urbs(struct urb **urbs, int num_urbs) in usbdux_unlink_urbs() argument 212 usb_kill_urb(urbs[i]); in usbdux_unlink_urbs() 479 struct urb **urbs, int num_urbs, in usbdux_submit_urbs() argument 490 urb = urbs[i]; in usbdux_submit_urbs()
|
/drivers/usb/gadget/udc/ |
D | dummy_hcd.c | 2451 static DEVICE_ATTR_RO(urbs);
|