Home
last modified time | relevance | path

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

12

/linux-6.12.1/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.h66 struct urb_list urbs; member
/linux-6.12.1/drivers/usb/usbip/
Dstub_rx.c262 ret = usb_unlink_urb(priv->urbs[i]); in stub_recv_cmd_unlink()
264 dev_err(&priv->urbs[i]->dev->dev, in stub_recv_cmd_unlink()
456 ret = usbip_recv_xbuff(ud, priv->urbs[i]); in stub_recv_xbuff()
538 priv->urbs = kmalloc_array(num_urbs, sizeof(*priv->urbs), GFP_KERNEL); in stub_recv_cmd_submit()
539 if (!priv->urbs) in stub_recv_cmd_submit()
547 priv->urbs[0] = usb_alloc_urb(np, GFP_KERNEL); in stub_recv_cmd_submit()
548 if (!priv->urbs[0]) in stub_recv_cmd_submit()
553 priv->urbs[0]->sg = sgl; in stub_recv_cmd_submit()
554 priv->urbs[0]->num_sgs = nents; in stub_recv_cmd_submit()
555 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
/linux-6.12.1/sound/usb/caiaq/
Daudio.c689 struct urb **urbs; in alloc_urbs() local
697 urbs = kmalloc_array(N_URBS, sizeof(*urbs), GFP_KERNEL); in alloc_urbs()
698 if (!urbs) { in alloc_urbs()
704 urbs[i] = usb_alloc_urb(FRAMES_PER_URB, GFP_KERNEL); in alloc_urbs()
705 if (!urbs[i]) { in alloc_urbs()
707 return urbs; in alloc_urbs()
710 urbs[i]->transfer_buffer = in alloc_urbs()
713 if (!urbs[i]->transfer_buffer) { in alloc_urbs()
715 return urbs; in alloc_urbs()
720 &urbs[i]->iso_frame_desc[frame]; in alloc_urbs()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/video/fbdev/
Dudlfb.c1796 urb->transfer_buffer_length = dlfb->urbs.size; /* reset to actual */ in dlfb_urb_completion()
1798 spin_lock_irqsave(&dlfb->urbs.lock, flags); in dlfb_urb_completion()
1799 list_add_tail(&unode->entry, &dlfb->urbs.list); in dlfb_urb_completion()
1800 dlfb->urbs.available++; in dlfb_urb_completion()
1801 spin_unlock_irqrestore(&dlfb->urbs.lock, flags); in dlfb_urb_completion()
1803 up(&dlfb->urbs.limit_sem); in dlfb_urb_completion()
1808 int count = dlfb->urbs.count; in dlfb_free_urb_list()
1815 down(&dlfb->urbs.limit_sem); in dlfb_free_urb_list()
1817 spin_lock_irq(&dlfb->urbs.lock); in dlfb_free_urb_list()
1819 node = dlfb->urbs.list.next; /* have reserved one with sem */ in dlfb_free_urb_list()
[all …]
Dsmscufx.c96 struct urb_list urbs; member
1086 up(&unode->dev->urbs.limit_sem); in ufx_release_urb_work()
1717 if (dev->urbs.count > 0) in ufx_usb_probe()
1750 if (dev->urbs.count > 0) in ufx_usb_disconnect()
1786 urb->transfer_buffer_length = dev->urbs.size; /* reset to actual */ in ufx_urb_completion()
1788 spin_lock_irqsave(&dev->urbs.lock, flags); in ufx_urb_completion()
1789 list_add_tail(&unode->entry, &dev->urbs.list); in ufx_urb_completion()
1790 dev->urbs.available++; in ufx_urb_completion()
1791 spin_unlock_irqrestore(&dev->urbs.lock, flags); in ufx_urb_completion()
1798 up(&dev->urbs.limit_sem); in ufx_urb_completion()
[all …]
/linux-6.12.1/sound/usb/
Dmidi.c125 } urbs[OUTPUT_URBS]; member
155 struct urb *urbs[INPUT_URBS]; member
271 urb_index = context - ep->urbs; in snd_usbmidi_out_urb_complete()
309 urb = ep->urbs[urb_index].urb; in snd_usbmidi_do_output()
355 if (atomic_read(&in->urbs[j]->use_count)) in snd_usbmidi_error_timer()
357 in->urbs[j]->dev = umidi->dev; in snd_usbmidi_error_timer()
358 snd_usbmidi_submit_urb(in->urbs[j], GFP_ATOMIC); in snd_usbmidi_error_timer()
376 if (ep->urbs[0].urb) in send_bulk_static_data()
377 err = usb_bulk_msg(ep->umidi->dev, ep->urbs[0].urb->pipe, in send_bulk_static_data()
1253 if (ep->urbs[i]) in snd_usbmidi_in_endpoint_delete()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/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()
/linux-6.12.1/sound/usb/line6/
Dcapture.c36 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()
Dpcm.c106 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()
Dplayback.c163 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()
Dpcm.h89 struct urb **urbs; member
/linux-6.12.1/drivers/net/wireless/zydas/zd1211rw/
Dzd_usb.c750 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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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()
/linux-6.12.1/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()
/linux-6.12.1/sound/usb/misc/
Dua101.c115 } *urbs[MAX_QUEUE_LENGTH]; member
436 int err = usb_submit_urb(&stream->urbs[i]->urb, GFP_KERNEL); in submit_stream_urbs()
451 if (stream->urbs[i]) in kill_stream_urbs()
452 usb_kill_urb(&stream->urbs[i]->urb); in kill_stream_urbs()
517 ua->capture.urbs[0]->urb.complete = first_capture_urb_complete; in start_usb_capture()
559 ua->playback.urbs[0]->urb.complete = in start_usb_playback()
589 urb = &ua->playback.urbs[i]->urb; in start_usb_playback()
1101 stream->urbs[u++] = urb; in alloc_stream_urbs()
1119 kfree(stream->urbs[i]); in free_stream_urbs()
1120 stream->urbs[i] = NULL; in free_stream_urbs()
/linux-6.12.1/drivers/usb/atm/
Dusbatm.c940 usbatm_submit_urb(instance->urbs[i]); in usbatm_atm_init()
1021 size = struct_size(instance, urbs, in usbatm_usb_probe()
1135 instance->urbs[i] = urb; in usbatm_usb_probe()
1196 if (instance->urbs[i]) in usbatm_usb_probe()
1197 kfree(instance->urbs[i]->transfer_buffer); in usbatm_usb_probe()
1198 usb_free_urb(instance->urbs[i]); in usbatm_usb_probe()
1238 usb_kill_urb(instance->urbs[i]); in usbatm_usb_disconnect()
1260 kfree(instance->urbs[i]->transfer_buffer); in usbatm_usb_disconnect()
1261 usb_free_urb(instance->urbs[i]); in usbatm_usb_disconnect()

12