/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/drivers/usb/usbip/ |
D | stub_rx.c | 251 ret = usb_unlink_urb(priv->urbs[i]); in stub_recv_cmd_unlink() 253 dev_err(&priv->urbs[i]->dev->dev, in stub_recv_cmd_unlink() 445 ret = usbip_recv_xbuff(ud, priv->urbs[i]); in stub_recv_xbuff() 526 priv->urbs = kmalloc_array(num_urbs, sizeof(*priv->urbs), GFP_KERNEL); in stub_recv_cmd_submit() 527 if (!priv->urbs) in stub_recv_cmd_submit() 535 priv->urbs[0] = usb_alloc_urb(np, GFP_KERNEL); in stub_recv_cmd_submit() 536 if (!priv->urbs[0]) in stub_recv_cmd_submit() 541 priv->urbs[0]->sg = sgl; in stub_recv_cmd_submit() 542 priv->urbs[0]->num_sgs = nents; in stub_recv_cmd_submit() 543 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
|
/kernel/linux/linux-5.10/sound/usb/caiaq/ |
D | audio.c | 700 struct urb **urbs; in alloc_urbs() local 708 urbs = kmalloc_array(N_URBS, sizeof(*urbs), GFP_KERNEL); in alloc_urbs() 709 if (!urbs) { in alloc_urbs() 715 urbs[i] = usb_alloc_urb(FRAMES_PER_URB, GFP_KERNEL); in alloc_urbs() 716 if (!urbs[i]) { in alloc_urbs() 718 return urbs; in alloc_urbs() 721 urbs[i]->transfer_buffer = in alloc_urbs() 724 if (!urbs[i]->transfer_buffer) { in alloc_urbs() 726 return urbs; in alloc_urbs() 731 &urbs[i]->iso_frame_desc[frame]; in alloc_urbs() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
D | udlfb.c | 1834 urb->transfer_buffer_length = dlfb->urbs.size; /* reset to actual */ in dlfb_urb_completion() 1836 spin_lock_irqsave(&dlfb->urbs.lock, flags); in dlfb_urb_completion() 1837 list_add_tail(&unode->entry, &dlfb->urbs.list); in dlfb_urb_completion() 1838 dlfb->urbs.available++; in dlfb_urb_completion() 1839 spin_unlock_irqrestore(&dlfb->urbs.lock, flags); in dlfb_urb_completion() 1841 up(&dlfb->urbs.limit_sem); in dlfb_urb_completion() 1846 int count = dlfb->urbs.count; in dlfb_free_urb_list() 1853 down(&dlfb->urbs.limit_sem); in dlfb_free_urb_list() 1855 spin_lock_irq(&dlfb->urbs.lock); in dlfb_free_urb_list() 1857 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 1120 if (dev->urbs.count > 0) in ufx_free() 1133 up(&unode->dev->urbs.limit_sem); in ufx_release_urb_work() 1804 urb->transfer_buffer_length = dev->urbs.size; /* reset to actual */ in ufx_urb_completion() 1806 spin_lock_irqsave(&dev->urbs.lock, flags); in ufx_urb_completion() 1807 list_add_tail(&unode->entry, &dev->urbs.list); in ufx_urb_completion() 1808 dev->urbs.available++; in ufx_urb_completion() 1809 spin_unlock_irqrestore(&dev->urbs.lock, flags); in ufx_urb_completion() 1816 up(&dev->urbs.limit_sem); in ufx_urb_completion() 1821 int count = dev->urbs.count; in ufx_free_urb_list() [all …]
|
/kernel/linux/linux-5.10/sound/usb/ |
D | midi.c | 141 } urbs[OUTPUT_URBS]; member 171 struct urb *urbs[INPUT_URBS]; member 287 urb_index = context - ep->urbs; in snd_usbmidi_out_urb_complete() 325 urb = ep->urbs[urb_index].urb; in snd_usbmidi_do_output() 371 if (atomic_read(&in->urbs[j]->use_count)) in snd_usbmidi_error_timer() 373 in->urbs[j]->dev = umidi->dev; in snd_usbmidi_error_timer() 374 snd_usbmidi_submit_urb(in->urbs[j], GFP_ATOMIC); in snd_usbmidi_error_timer() 392 if (ep->urbs[0].urb) in send_bulk_static_data() 393 err = usb_bulk_msg(ep->umidi->dev, ep->urbs[0].urb->pipe, in send_bulk_static_data() 1267 if (ep->urbs[i]) in snd_usbmidi_in_endpoint_delete() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/sound/usb/line6/ |
D | capture.c | 36 urb_in = line6pcm->in.urbs[index]; in submit_audio_in_urb() 156 if (urb == line6pcm->in.urbs[index]) in audio_in_callback() 262 line6pcm->in.urbs = kcalloc(line6->iso_buffers, sizeof(struct urb *), in line6_create_audio_in_urbs() 264 if (line6pcm->in.urbs == NULL) in line6_create_audio_in_urbs() 272 urb = line6pcm->in.urbs[i] = in line6_create_audio_in_urbs()
|
D | pcm.c | 106 usb_unlink_urb(pcms->urbs[i]); in line6_unlink_audio_urbs() 456 if (pcms->urbs == NULL) in cleanup_urbs() 460 if (pcms->urbs[i]) { in cleanup_urbs() 461 usb_kill_urb(pcms->urbs[i]); in cleanup_urbs() 462 usb_free_urb(pcms->urbs[i]); in cleanup_urbs() 465 kfree(pcms->urbs); in cleanup_urbs() 466 pcms->urbs = NULL; in cleanup_urbs()
|
D | playback.c | 163 urb_out = line6pcm->out.urbs[index]; in submit_audio_out_urb() 321 if (urb == line6pcm->out.urbs[index]) in audio_out_callback() 407 line6pcm->out.urbs = kcalloc(line6->iso_buffers, sizeof(struct urb *), in line6_create_audio_out_urbs() 409 if (line6pcm->out.urbs == NULL) in line6_create_audio_out_urbs() 417 urb = line6pcm->out.urbs[i] = in line6_create_audio_out_urbs()
|
D | pcm.h | 89 struct urb **urbs; member
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/sound/usb/misc/ |
D | ua101.c | 116 } *urbs[MAX_QUEUE_LENGTH]; member 437 int err = usb_submit_urb(&stream->urbs[i]->urb, GFP_KERNEL); in submit_stream_urbs() 452 if (stream->urbs[i]) in kill_stream_urbs() 453 usb_kill_urb(&stream->urbs[i]->urb); in kill_stream_urbs() 518 ua->capture.urbs[0]->urb.complete = first_capture_urb_complete; in start_usb_capture() 560 ua->playback.urbs[0]->urb.complete = in start_usb_playback() 590 urb = &ua->playback.urbs[i]->urb; in start_usb_playback() 1102 stream->urbs[u++] = urb; in alloc_stream_urbs() 1120 kfree(stream->urbs[i]); in free_stream_urbs() 1121 stream->urbs[i] = NULL; in free_stream_urbs()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/video/ |
D | udlfb.h | 38 struct urb_list urbs; member
|