Home
last modified time | relevance | path

Searched refs:urbs (Results 1 – 25 of 27) sorted by relevance

12

/drivers/gpu/drm/udl/
Dudl_main.c138 urb->transfer_buffer_length = udl->urbs.size; /* reset to actual */ in udl_urb_completion()
140 spin_lock_irqsave(&udl->urbs.lock, flags); in udl_urb_completion()
141 list_add_tail(&unode->entry, &udl->urbs.list); in udl_urb_completion()
142 udl->urbs.available++; in udl_urb_completion()
143 spin_unlock_irqrestore(&udl->urbs.lock, flags); in udl_urb_completion()
145 wake_up(&udl->urbs.sleep); in udl_urb_completion()
157 while (udl->urbs.count) { in udl_free_urb_list()
158 spin_lock_irq(&udl->urbs.lock); in udl_free_urb_list()
160 udl->urbs.count--; in udl_free_urb_list()
161 spin_unlock_irq(&udl->urbs.lock); in udl_free_urb_list()
[all …]
Dudl_drv.h76 struct urb_list urbs; member
/drivers/usb/usbip/
Dstub_rx.c253 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 …]
Dstub_tx.c161 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()
Dstub_main.c294 urb = priv->urbs[i]; in stub_free_priv_and_urb()
320 kfree(priv->urbs); in stub_free_priv_and_urb()
356 usb_kill_urb(priv->urbs[i]); in stub_device_cleanup_urbs()
Dstub.h55 struct urb **urbs; member
/drivers/net/wireless/purelifi/plfxlc/
Dusb.c203 struct urb **urbs; in __lf_x_usb_enable_rx() local
207 urbs = kcalloc(RX_URBS_COUNT, sizeof(struct urb *), GFP_KERNEL); in __lf_x_usb_enable_rx()
208 if (!urbs) in __lf_x_usb_enable_rx()
212 urbs[i] = alloc_rx_urb(usb); in __lf_x_usb_enable_rx()
213 if (!urbs[i]) in __lf_x_usb_enable_rx()
221 if (rx->urbs) { in __lf_x_usb_enable_rx()
226 rx->urbs = urbs; in __lf_x_usb_enable_rx()
231 r = usb_submit_urb(urbs[i], GFP_KERNEL); in __lf_x_usb_enable_rx()
240 usb_kill_urb(urbs[i]); in __lf_x_usb_enable_rx()
242 rx->urbs = NULL; in __lf_x_usb_enable_rx()
[all …]
Dusb.h81 struct urb **urbs; member
/drivers/net/can/usb/
Ducan.c860 static void ucan_cleanup_rx_urbs(struct ucan_priv *up, struct urb **urbs) in ucan_cleanup_rx_urbs() argument
865 if (urbs[i]) { in ucan_cleanup_rx_urbs()
866 usb_unanchor_urb(urbs[i]); in ucan_cleanup_rx_urbs()
869 urbs[i]->transfer_buffer, in ucan_cleanup_rx_urbs()
870 urbs[i]->transfer_dma); in ucan_cleanup_rx_urbs()
871 usb_free_urb(urbs[i]); in ucan_cleanup_rx_urbs()
875 memset(urbs, 0, sizeof(*urbs) * UCAN_MAX_RX_URBS); in ucan_cleanup_rx_urbs()
879 struct urb **urbs) in ucan_prepare_and_anchor_rx_urbs() argument
883 memset(urbs, 0, sizeof(*urbs) * UCAN_MAX_RX_URBS); in ucan_prepare_and_anchor_rx_urbs()
888 urbs[i] = usb_alloc_urb(0, GFP_KERNEL); in ucan_prepare_and_anchor_rx_urbs()
[all …]
/drivers/video/fbdev/
Dudlfb.c1839 urb->transfer_buffer_length = dlfb->urbs.size; /* reset to actual */ in dlfb_urb_completion()
1841 spin_lock_irqsave(&dlfb->urbs.lock, flags); in dlfb_urb_completion()
1842 list_add_tail(&unode->entry, &dlfb->urbs.list); in dlfb_urb_completion()
1843 dlfb->urbs.available++; in dlfb_urb_completion()
1844 spin_unlock_irqrestore(&dlfb->urbs.lock, flags); in dlfb_urb_completion()
1846 up(&dlfb->urbs.limit_sem); in dlfb_urb_completion()
1851 int count = dlfb->urbs.count; in dlfb_free_urb_list()
1858 down(&dlfb->urbs.limit_sem); in dlfb_free_urb_list()
1860 spin_lock_irq(&dlfb->urbs.lock); in dlfb_free_urb_list()
1862 node = dlfb->urbs.list.next; /* have reserved one with sem */ in dlfb_free_urb_list()
[all …]
Dsmscufx.c96 struct urb_list urbs; member
1142 up(&unode->dev->urbs.limit_sem); in ufx_release_urb_work()
1756 if (dev->urbs.count > 0) in ufx_usb_probe()
1789 if (dev->urbs.count > 0) in ufx_usb_disconnect()
1825 urb->transfer_buffer_length = dev->urbs.size; /* reset to actual */ in ufx_urb_completion()
1827 spin_lock_irqsave(&dev->urbs.lock, flags); in ufx_urb_completion()
1828 list_add_tail(&unode->entry, &dev->urbs.list); in ufx_urb_completion()
1829 dev->urbs.available++; in ufx_urb_completion()
1830 spin_unlock_irqrestore(&dev->urbs.lock, flags); in ufx_urb_completion()
1837 up(&dev->urbs.limit_sem); in ufx_urb_completion()
[all …]
/drivers/usb/misc/
Dusbtest.c1531 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/
Dau0828-dvb.c176 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()
Dau0828.h262 struct urb *urbs[URB_COUNT]; member
/drivers/net/wireless/zydas/zd1211rw/
Dzd_usb.c749 struct urb **urbs; in __zd_usb_enable_rx() local
754 urbs = kcalloc(RX_URBS_COUNT, sizeof(struct urb *), GFP_KERNEL); in __zd_usb_enable_rx()
755 if (!urbs) in __zd_usb_enable_rx()
758 urbs[i] = alloc_rx_urb(usb); in __zd_usb_enable_rx()
759 if (!urbs[i]) in __zd_usb_enable_rx()
765 if (rx->urbs) { in __zd_usb_enable_rx()
770 rx->urbs = urbs; in __zd_usb_enable_rx()
775 r = usb_submit_urb(urbs[i], GFP_KERNEL); in __zd_usb_enable_rx()
783 usb_kill_urb(urbs[i]); in __zd_usb_enable_rx()
786 rx->urbs = NULL; in __zd_usb_enable_rx()
[all …]
Dzd_usb.h180 struct urb **urbs; member
/drivers/media/usb/msi2500/
Dmsi2500.c132 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/
Dmessage.c396 if (io->urbs) { in sg_clean()
398 usb_free_urb(io->urbs[io->entries]); in sg_clean()
399 kfree(io->urbs); in sg_clean()
400 io->urbs = NULL; in sg_clean()
447 if (!io->urbs[i]) in sg_complete()
450 usb_block_urb(io->urbs[i]); in sg_complete()
451 retval = usb_unlink_urb(io->urbs[i]); in sg_complete()
459 } else if (urb == io->urbs[i]) in sg_complete()
529 io->urbs = kmalloc_array(io->entries, sizeof(*io->urbs), mem_flags); in usb_sg_init()
530 if (!io->urbs) in usb_sg_init()
[all …]
/drivers/net/usb/
Dcdc-phonet.c39 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()
354 dev = alloc_netdev(struct_size(pnd, urbs, rxq_size), ifname, in usbpn_probe()
/drivers/media/usb/pwc/
Dpwc-if.c460 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()
/drivers/usb/atm/
Dusbatm.c940 usbatm_submit_urb(instance->urbs[i]); in usbatm_atm_init()
1021 size = struct_size(instance, urbs, num_rcv_urbs + num_snd_urbs); in usbatm_usb_probe()
1134 instance->urbs[i] = urb; in usbatm_usb_probe()
1195 if (instance->urbs[i]) in usbatm_usb_probe()
1196 kfree(instance->urbs[i]->transfer_buffer); in usbatm_usb_probe()
1197 usb_free_urb(instance->urbs[i]); in usbatm_usb_probe()
1237 usb_kill_urb(instance->urbs[i]); in usbatm_usb_disconnect()
1259 kfree(instance->urbs[i]->transfer_buffer); in usbatm_usb_disconnect()
1260 usb_free_urb(instance->urbs[i]); in usbatm_usb_disconnect()
Dusbatm.h167 struct urb *urbs[]; member
/drivers/usb/class/
Dusblp.c138 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/comedi/drivers/
Dusbduxsigma.c169 static void usbduxsigma_unlink_urbs(struct urb **urbs, int num_urbs) in usbduxsigma_unlink_urbs() argument
174 usb_kill_urb(urbs[i]); in usbduxsigma_unlink_urbs()
431 struct urb **urbs, int num_urbs, in usbduxsigma_submit_urbs() argument
441 urb = urbs[i]; in usbduxsigma_submit_urbs()
Dusbdux.c206 static void usbdux_unlink_urbs(struct urb **urbs, int num_urbs) in usbdux_unlink_urbs() argument
211 usb_kill_urb(urbs[i]); in usbdux_unlink_urbs()
478 struct urb **urbs, int num_urbs, in usbdux_submit_urbs() argument
489 urb = urbs[i]; in usbdux_submit_urbs()

12