Home
last modified time | relevance | path

Searched refs:purb (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/drivers/staging/r8188eu/include/
Dusb_ops_linux.h18 #define usb_bulkout_zero_complete(purb, regs) \ argument
19 usb_bulkout_zero_complete(purb)
20 #define usb_write_mem_complete(purb, regs) \ argument
21 usb_write_mem_complete(purb)
22 #define usb_write_port_complete(purb, regs) \ argument
23 usb_write_port_complete(purb)
24 #define usb_read_port_complete(purb, regs) \ argument
25 usb_read_port_complete(purb)
26 #define usb_read_interrupt_complete(purb, regs) \ argument
27 usb_read_interrupt_complete(purb)
Drtw_recv.h209 struct urb *purb; member
/linux-6.1.9/drivers/staging/r8188eu/os_dep/
Dusb_ops_linux.c32 if (precvbuf->purb) in rtw_read_port_cancel()
33 usb_kill_urb(precvbuf->purb); in rtw_read_port_cancel()
38 static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs) in usb_write_port_complete() argument
40 struct xmit_buf *pxmitbuf = (struct xmit_buf *)purb->context; in usb_write_port_complete()
68 if (purb->status) { in usb_write_port_complete()
69 if (purb->status == -EINPROGRESS) { in usb_write_port_complete()
71 } else if (purb->status == -ENOENT) { in usb_write_port_complete()
73 } else if (purb->status == -ECONNRESET) { in usb_write_port_complete()
75 } else if (purb->status == -ESHUTDOWN) { in usb_write_port_complete()
78 } else if ((purb->status != -EPIPE) && (purb->status != -EPROTO)) { in usb_write_port_complete()
[all …]
/linux-6.1.9/drivers/staging/rtl8712/
Dusb_ops_linux.c31 void *purb; member
141 static void usb_write_mem_complete(struct urb *purb) in usb_write_mem_complete() argument
143 struct io_queue *pio_q = (struct io_queue *)purb->context; in usb_write_mem_complete()
148 if (purb->status != 0) { in usb_write_mem_complete()
149 if (purb->status == (-ESHUTDOWN)) in usb_write_mem_complete()
181 static void r8712_usb_read_port_complete(struct urb *purb) in r8712_usb_read_port_complete() argument
185 struct recv_buf *precvbuf = (struct recv_buf *)purb->context; in r8712_usb_read_port_complete()
191 if (purb->status == 0) { /* SUCCESS */ in r8712_usb_read_port_complete()
192 if ((purb->actual_length > (MAX_RECVBUF_SZ)) || in r8712_usb_read_port_complete()
193 (purb->actual_length < RXDESC_SIZE)) { in r8712_usb_read_port_complete()
[all …]
Drecv_linux.c46 precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); in r8712_os_recvbuf_resource_alloc()
47 if (!precvbuf->purb) in r8712_os_recvbuf_resource_alloc()
67 if (precvbuf->purb) { in r8712_os_recvbuf_resource_free()
68 usb_kill_urb(precvbuf->purb); in r8712_os_recvbuf_resource_free()
69 usb_free_urb(precvbuf->purb); in r8712_os_recvbuf_resource_free()
Drtl8712_recv.h93 struct urb *purb; member
/linux-6.1.9/drivers/media/usb/au0828/
Dau0828-dvb.c108 static void urb_completion(struct urb *purb) in urb_completion() argument
110 struct au0828_dev *dev = purb->context; in urb_completion()
111 int ptype = usb_pipetype(purb->pipe); in urb_completion()
114 dprintk(2, "%s: %d\n", __func__, purb->actual_length); in urb_completion()
134 ptr = purb->transfer_buffer; in urb_completion()
135 if (purb->actual_length > 0 && ptr[0] != 0x47) { in urb_completion()
137 ptr[0], purb->actual_length); in urb_completion()
151 purb->transfer_buffer, purb->actual_length / 188); in urb_completion()
154 memset(purb->transfer_buffer, 0, URB_BUFSIZE); in urb_completion()
157 usb_submit_urb(purb, GFP_ATOMIC); in urb_completion()
[all …]
/linux-6.1.9/drivers/media/usb/dvb-usb/
Ddib0700_core.c708 static void dib0700_rc_urb_completion(struct urb *purb) in dib0700_rc_urb_completion() argument
710 struct dvb_usb_device *d = purb->context; in dib0700_rc_urb_completion()
719 kfree(purb->transfer_buffer); in dib0700_rc_urb_completion()
720 usb_free_urb(purb); in dib0700_rc_urb_completion()
724 poll_reply = purb->transfer_buffer; in dib0700_rc_urb_completion()
726 if (purb->status < 0) { in dib0700_rc_urb_completion()
728 kfree(purb->transfer_buffer); in dib0700_rc_urb_completion()
729 usb_free_urb(purb); in dib0700_rc_urb_completion()
733 if (purb->actual_length != RC_MSG_SIZE_V1_20) { in dib0700_rc_urb_completion()
734 deb_info("malformed rc msg size=%d\n", purb->actual_length); in dib0700_rc_urb_completion()
[all …]
/linux-6.1.9/drivers/staging/r8188eu/hal/
Dusb_ops_linux.c366 static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs) in usb_read_port_complete() argument
368 struct recv_buf *precvbuf = (struct recv_buf *)purb->context; in usb_read_port_complete()
379 if (purb->status == 0) { /* SUCCESS */ in usb_read_port_complete()
380 if ((purb->actual_length > MAX_RECVBUF_SZ) || (purb->actual_length < RXDESC_SIZE)) { in usb_read_port_complete()
386 skb_put(precvbuf->pskb, purb->actual_length); in usb_read_port_complete()
397 skb_put(precvbuf->pskb, purb->actual_length); in usb_read_port_complete()
403 switch (purb->status) { in usb_read_port_complete()
426 struct urb *purb = NULL; in rtw_read_port() local
464 purb = precvbuf->purb; in rtw_read_port()
469 usb_fill_bulk_urb(purb, pusbd, pipe, in rtw_read_port()
[all …]
/linux-6.1.9/drivers/staging/media/deprecated/zr364xx/
Dzr364xx.c552 struct urb *purb) in zr364xx_read_video_callback() argument
566 for (i = 0; i < purb->actual_length/2; i++) in zr364xx_read_video_callback()
581 if (purb->actual_length < 128) { in zr364xx_read_video_callback()
585 __func__, purb->actual_length); in zr364xx_read_video_callback()
608 purb->actual_length - 128); in zr364xx_read_video_callback()
609 ptr += purb->actual_length - 128; in zr364xx_read_video_callback()
616 if (frm->cur_size + purb->actual_length > MAX_FRAME_SIZE) { in zr364xx_read_video_callback()
622 memcpy(pdest, psrc, purb->actual_length); in zr364xx_read_video_callback()
623 frm->cur_size += purb->actual_length; in zr364xx_read_video_callback()
629 if (purb->actual_length < pipe_info->transfer_size) { in zr364xx_read_video_callback()
[all …]
/linux-6.1.9/sound/usb/usx2y/
Dusx2yhwdeppcm.c320 struct urb **purb; in usx2y_usbpcm_urbs_allocate() local
330 purb = subs->urb + i; in usx2y_usbpcm_urbs_allocate()
331 if (*purb) { in usx2y_usbpcm_urbs_allocate()
332 usb_kill_urb(*purb); in usx2y_usbpcm_urbs_allocate()
335 *purb = usb_alloc_urb(nr_of_packs(), GFP_KERNEL); in usx2y_usbpcm_urbs_allocate()
336 if (!*purb) { in usx2y_usbpcm_urbs_allocate()
340 (*purb)->transfer_buffer = is_playback ? in usx2y_usbpcm_urbs_allocate()
346 (*purb)->dev = dev; in usx2y_usbpcm_urbs_allocate()
347 (*purb)->pipe = pipe; in usx2y_usbpcm_urbs_allocate()
348 (*purb)->number_of_packets = nr_of_packs(); in usx2y_usbpcm_urbs_allocate()
[all …]
Dusbusx2yaudio.c420 struct urb **purb; in usx2y_urbs_allocate() local
435 purb = subs->urb + i; in usx2y_urbs_allocate()
436 if (*purb) { in usx2y_urbs_allocate()
437 usb_kill_urb(*purb); in usx2y_urbs_allocate()
440 *purb = usb_alloc_urb(nr_of_packs(), GFP_KERNEL); in usx2y_urbs_allocate()
441 if (!*purb) { in usx2y_urbs_allocate()
445 if (!is_playback && !(*purb)->transfer_buffer) { in usx2y_urbs_allocate()
447 (*purb)->transfer_buffer = in usx2y_urbs_allocate()
450 if (!(*purb)->transfer_buffer) { in usx2y_urbs_allocate()
455 (*purb)->dev = dev; in usx2y_urbs_allocate()
[all …]
/linux-6.1.9/drivers/media/usb/pvrusb2/
Dpvrusb2-io.c84 struct urb *purb; member
110 (bp ? bp->purb : NULL), in pvr2_buffer_describe()
243 usb_kill_urb(bp->purb); in pvr2_buffer_wipe()
259 bp->purb = usb_alloc_urb(0, GFP_KERNEL); in pvr2_buffer_init()
260 if (! bp->purb) return -ENOMEM; in pvr2_buffer_init()
276 usb_free_urb(bp->purb); in pvr2_buffer_done()
616 usb_fill_bulk_urb(bp->purb, // struct urb *urb in pvr2_buffer_queue()
624 usb_submit_urb(bp->purb, GFP_KERNEL); in pvr2_buffer_queue()
/linux-6.1.9/drivers/usb/usbip/
Dusbip_common.h308 void usbip_dump_urb(struct urb *purb);
/linux-6.1.9/drivers/media/usb/s2255/
Ds2255drv.c2033 static void read_pipe_completion(struct urb *purb) in read_pipe_completion() argument
2039 pipe_info = purb->context; in read_pipe_completion()
2041 dev_err(&purb->dev->dev, "no context!\n"); in read_pipe_completion()
2046 dev_err(&purb->dev->dev, "no context!\n"); in read_pipe_completion()
2049 status = purb->status; in read_pipe_completion()
/linux-6.1.9/drivers/staging/r8188eu/core/
Drtw_recv.c65 precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); in rtl8188eu_init_recv_priv()
66 if (!precvbuf->purb) { in rtl8188eu_init_recv_priv()
164 usb_free_urb(precvbuf->purb); in rtl8188eu_free_recv_priv()