/linux-6.3-rc2/drivers/gpu/drm/udl/ |
A D | udl_main.c | 142 udl->urbs.available++; in udl_urb_completion() 160 udl->urbs.count--; in udl_free_urb_list() 187 udl->urbs.count = 0; in udl_alloc_urb_list() 191 udl->urbs.size = size; in udl_alloc_urb_list() 226 udl->urbs.count++; in udl_alloc_urb_list() 227 udl->urbs.available++; in udl_alloc_urb_list() 251 if (!udl->urbs.count) in udl_get_urb_locked() 256 udl->urbs.available--; in udl_get_urb_locked() 300 udl->urbs.available == udl->urbs.count, in udl_sync_pending_urbs() 301 udl->urbs.lock, in udl_sync_pending_urbs() [all …]
|
A D | udl_drv.h | 76 struct urb_list urbs; member
|
/linux-6.3-rc2/drivers/usb/usbip/ |
A D | stub_rx.c | 255 dev_err(&priv->urbs[i]->dev->dev, in stub_recv_cmd_unlink() 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() 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() 566 if (!priv->urbs[i]) in stub_recv_cmd_submit() 579 priv->urbs[i]->dev = udev; in stub_recv_cmd_submit() 580 priv->urbs[i]->pipe = pipe; in stub_recv_cmd_submit() 605 usbip_dump_urb(priv->urbs[i]); in stub_recv_cmd_submit() [all …]
|
A 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()
|
A D | stub_main.c | 296 urb = priv->urbs[i]; in stub_free_priv_and_urb() 322 kfree(priv->urbs); in stub_free_priv_and_urb() 358 usb_kill_urb(priv->urbs[i]); in stub_device_cleanup_urbs()
|
A D | stub.h | 55 struct urb **urbs; member
|
/linux-6.3-rc2/sound/usb/caiaq/ |
A 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() 716 if (!urbs[i]) { in alloc_urbs() 718 return urbs; in alloc_urbs() 726 return urbs; in alloc_urbs() 738 urbs[i]->pipe = pipe; in alloc_urbs() 749 return urbs; in alloc_urbs() 756 if (!urbs) in free_urbs() 760 if (!urbs[i]) in free_urbs() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/purelifi/plfxlc/ |
A D | usb.c | 208 if (!urbs) 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() 242 rx->urbs = NULL; in __lf_x_usb_enable_rx() 246 if (urbs) { in __lf_x_usb_enable_rx() 250 kfree(urbs); in __lf_x_usb_enable_rx() 278 urbs = rx->urbs; in __lf_x_usb_disable_rx() 282 if (!urbs) in __lf_x_usb_disable_rx() 289 kfree(urbs); in __lf_x_usb_disable_rx() [all …]
|
/linux-6.3-rc2/drivers/net/can/usb/ |
A D | ucan.c | 865 if (urbs[i]) { in ucan_cleanup_rx_urbs() 866 usb_unanchor_urb(urbs[i]); 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() 889 if (!urbs[i]) in ucan_prepare_and_anchor_rx_urbs() 897 usb_free_urb(urbs[i]); in ucan_prepare_and_anchor_rx_urbs() 898 urbs[i] = NULL; in ucan_prepare_and_anchor_rx_urbs() 946 usb_free_urb(urbs[i]); in ucan_submit_rx_urbs() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/ |
A D | udlfb.c | 1849 dlfb->urbs.available++; in dlfb_urb_completion() 1852 up(&dlfb->urbs.limit_sem); in dlfb_urb_completion() 1883 dlfb->urbs.count = 0; in dlfb_free_urb_list() 1896 dlfb->urbs.size = size; in dlfb_alloc_urb_list() 1900 dlfb->urbs.count = 0; in dlfb_alloc_urb_list() 1901 dlfb->urbs.available = 0; in dlfb_alloc_urb_list() 1936 up(&dlfb->urbs.limit_sem); in dlfb_alloc_urb_list() 1937 dlfb->urbs.count++; in dlfb_alloc_urb_list() 1938 dlfb->urbs.available++; in dlfb_alloc_urb_list() 1941 return dlfb->urbs.count; in dlfb_alloc_urb_list() [all …]
|
A D | smscufx.c | 96 struct urb_list urbs; member 1756 if (dev->urbs.count > 0) in ufx_usb_probe() 1789 if (dev->urbs.count > 0) in ufx_usb_disconnect() 1829 dev->urbs.available++; in ufx_urb_completion() 1837 up(&dev->urbs.limit_sem); in ufx_urb_completion() 1842 int count = dev->urbs.count; in ufx_free_urb_list() 1885 dev->urbs.size = size; in ufx_alloc_urb_list() 1923 dev->urbs.count = i; in ufx_alloc_urb_list() 1924 dev->urbs.available = i; in ufx_alloc_urb_list() 1951 entry = dev->urbs.list.next; in ufx_get_urb() [all …]
|
/linux-6.3-rc2/sound/usb/ |
A D | midi.c | 125 } urbs[OUTPUT_URBS]; member 155 struct urb *urbs[INPUT_URBS]; member 271 urb_index = context - ep->urbs; in snd_usbmidi_out_urb_complete() 376 if (ep->urbs[0].urb) in send_bulk_static_data() 1253 if (ep->urbs[i]) in snd_usbmidi_in_endpoint_delete() 1281 if (!ep->urbs[i]) { in snd_usbmidi_in_endpoint_create() 1333 if (ep->urbs[i].urb) { in snd_usbmidi_out_endpoint_clear() 1336 ep->urbs[i].urb = NULL; in snd_usbmidi_out_endpoint_clear() 1367 if (!ep->urbs[i].urb) { in snd_usbmidi_out_endpoint_create() 1371 ep->urbs[i].ep = ep; in snd_usbmidi_out_endpoint_create() [all …]
|
/linux-6.3-rc2/drivers/usb/misc/ |
A D | usbtest.c | 1576 if (!ctx.urbs) in unlink_queued() 1580 if (!ctx.urbs[i]) in unlink_queued() 1621 kfree(ctx.urbs); in unlink_queued() 2054 urbs = kcalloc(param->sglen, sizeof(*urbs), GFP_KERNEL); in test_queue() 2055 if (!urbs) in test_queue() 2075 if (!urbs[i]) { in test_queue() 2118 urbs[i] = NULL; in test_queue() 2129 if (urbs[i]) in test_queue() 2145 kfree(urbs); in test_queue() 2150 if (urbs[i]) in test_queue() [all …]
|
/linux-6.3-rc2/drivers/media/usb/au0828/ |
A 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()
|
/linux-6.3-rc2/sound/usb/line6/ |
A 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()
|
A 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()
|
A 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()
|
A D | pcm.h | 89 struct urb **urbs; member
|
/linux-6.3-rc2/drivers/net/wireless/zydas/zd1211rw/ |
A D | zd_usb.c | 749 struct urb **urbs; in __zd_usb_enable_rx() local 755 if (!urbs) 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() 786 rx->urbs = NULL; in __zd_usb_enable_rx() 790 if (urbs) { in __zd_usb_enable_rx() 820 urbs = rx->urbs; in __zd_usb_disable_rx() 823 if (!urbs) in __zd_usb_disable_rx() 830 kfree(urbs); in __zd_usb_disable_rx() [all …]
|
/linux-6.3-rc2/drivers/media/usb/msi2500/ |
A D | msi2500.c | 132 struct urb *urbs[MAX_ISO_BUFS]; member 440 if (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() 464 dev->urbs[i] = NULL; in msi2500_iso_free() [all …]
|
/linux-6.3-rc2/drivers/usb/core/ |
A D | message.c | 395 if (io->urbs) { in sg_clean() 398 kfree(io->urbs); in sg_clean() 399 io->urbs = NULL; in sg_clean() 446 if (!io->urbs[i]) in sg_complete() 449 usb_block_urb(io->urbs[i]); in sg_complete() 528 io->urbs = kmalloc_array(io->entries, sizeof(*io->urbs), mem_flags); in usb_sg_init() 529 if (!io->urbs) in usb_sg_init() 545 io->urbs[i] = urb; in usb_sg_init() 661 io->urbs[i]->dev = io->dev; in usb_sg_wait() 688 io->urbs[i]->status = retval; in usb_sg_wait() [all …]
|
/linux-6.3-rc2/drivers/net/usb/ |
A 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() 354 dev = alloc_netdev(struct_size(pnd, urbs, rxq_size), ifname, in usbpn_probe()
|
/linux-6.3-rc2/drivers/media/usb/pwc/ |
A 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()
|
/linux-6.3-rc2/drivers/usb/atm/ |
A D | usbatm.c | 940 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()
|
/linux-6.3-rc2/sound/usb/misc/ |
A D | ua101.c | 115 } *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()
|