Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/staging/rtl8188eu/include/
Dusb_ops_linux.h31 #define usb_bulkout_zero_complete(purb, regs) \ argument
32 usb_bulkout_zero_complete(purb)
33 #define usb_write_mem_complete(purb, regs) \ argument
34 usb_write_mem_complete(purb)
35 #define usb_write_port_complete(purb, regs) \ argument
36 usb_write_port_complete(purb)
37 #define usb_read_port_complete(purb, regs) \ argument
38 usb_read_port_complete(purb)
39 #define usb_read_interrupt_complete(purb, regs) \ argument
40 usb_read_interrupt_complete(purb)
Drtw_recv.h200 struct urb *purb; member
/Linux-v4.19/drivers/staging/rtl8712/
Dusb_ops_linux.c43 void *purb; member
153 static void usb_write_mem_complete(struct urb *purb) in usb_write_mem_complete() argument
155 struct io_queue *pio_q = (struct io_queue *)purb->context; in usb_write_mem_complete()
160 if (purb->status != 0) { in usb_write_mem_complete()
161 if (purb->status == (-ESHUTDOWN)) in usb_write_mem_complete()
193 static void r8712_usb_read_port_complete(struct urb *purb) in r8712_usb_read_port_complete() argument
197 struct recv_buf *precvbuf = (struct recv_buf *)purb->context; in r8712_usb_read_port_complete()
203 if (purb->status == 0) { /* SUCCESS */ in r8712_usb_read_port_complete()
204 if ((purb->actual_length > (MAX_RECVBUF_SZ)) || in r8712_usb_read_port_complete()
205 (purb->actual_length < RXDESC_SIZE)) { in r8712_usb_read_port_complete()
[all …]
Drecv_linux.c59 precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); in r8712_os_recvbuf_resource_alloc()
60 if (!precvbuf->purb) in r8712_os_recvbuf_resource_alloc()
80 if (precvbuf->purb) { in r8712_os_recvbuf_resource_free()
81 usb_kill_urb(precvbuf->purb); in r8712_os_recvbuf_resource_free()
82 usb_free_urb(precvbuf->purb); in r8712_os_recvbuf_resource_free()
Drtl8712_recv.h105 struct urb *purb; member
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/
Dusb_ops_linux.c345 static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs) in usb_read_port_complete() argument
347 struct recv_buf *precvbuf = (struct recv_buf *)purb->context; in usb_read_port_complete()
365 if (purb->status == 0) { /* SUCCESS */ in usb_read_port_complete()
366 if ((purb->actual_length > MAX_RECVBUF_SZ) || (purb->actual_length < RXDESC_SIZE)) { in usb_read_port_complete()
373 skb_put(precvbuf->pskb, purb->actual_length); in usb_read_port_complete()
384 …dule_hci_ops_os_c_, _drv_err_, ("usb_read_port_complete : purb->status(%d) != 0\n", purb->status)); in usb_read_port_complete()
386 DBG_88E("###=> usb_read_port_complete => urb status(%d)\n", purb->status); in usb_read_port_complete()
387 skb_put(precvbuf->pskb, purb->actual_length); in usb_read_port_complete()
390 switch (purb->status) { in usb_read_port_complete()
418 struct urb *purb = NULL; in usb_read_port() local
[all …]
Drecv_linux.c22 precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); in rtw_os_recvbuf_resource_alloc()
23 if (!precvbuf->purb) in rtw_os_recvbuf_resource_alloc()
/Linux-v4.19/drivers/media/usb/au0828/
Dau0828-dvb.c118 static void urb_completion(struct urb *purb) in urb_completion() argument
120 struct au0828_dev *dev = purb->context; in urb_completion()
121 int ptype = usb_pipetype(purb->pipe); in urb_completion()
124 dprintk(2, "%s: %d\n", __func__, purb->actual_length); in urb_completion()
144 ptr = purb->transfer_buffer; in urb_completion()
145 if (purb->actual_length > 0 && ptr[0] != 0x47) { in urb_completion()
147 ptr[0], purb->actual_length); in urb_completion()
161 purb->transfer_buffer, purb->actual_length / 188); in urb_completion()
164 memset(purb->transfer_buffer, 0, URB_BUFSIZE); in urb_completion()
167 usb_submit_urb(purb, GFP_ATOMIC); in urb_completion()
[all …]
/Linux-v4.19/drivers/media/usb/dvb-usb/
Ddib0700_core.c711 static void dib0700_rc_urb_completion(struct urb *purb) in dib0700_rc_urb_completion() argument
713 struct dvb_usb_device *d = purb->context; in dib0700_rc_urb_completion()
722 kfree(purb->transfer_buffer); in dib0700_rc_urb_completion()
723 usb_free_urb(purb); in dib0700_rc_urb_completion()
727 poll_reply = purb->transfer_buffer; in dib0700_rc_urb_completion()
729 if (purb->status < 0) { in dib0700_rc_urb_completion()
731 kfree(purb->transfer_buffer); in dib0700_rc_urb_completion()
732 usb_free_urb(purb); in dib0700_rc_urb_completion()
736 if (purb->actual_length != RC_MSG_SIZE_V1_20) { in dib0700_rc_urb_completion()
737 deb_info("malformed rc msg size=%d\n", purb->actual_length); in dib0700_rc_urb_completion()
[all …]
/Linux-v4.19/drivers/media/usb/zr364xx/
Dzr364xx.c569 struct urb *purb) in zr364xx_read_video_callback() argument
585 for (i = 0; i < purb->actual_length/2; i++) in zr364xx_read_video_callback()
600 if (purb->actual_length < 128) { in zr364xx_read_video_callback()
604 __func__, purb->actual_length); in zr364xx_read_video_callback()
627 purb->actual_length - 128); in zr364xx_read_video_callback()
628 ptr += purb->actual_length - 128; in zr364xx_read_video_callback()
635 if (frm->cur_size + purb->actual_length > MAX_FRAME_SIZE) { in zr364xx_read_video_callback()
641 memcpy(pdest, psrc, purb->actual_length); in zr364xx_read_video_callback()
642 frm->cur_size += purb->actual_length; in zr364xx_read_video_callback()
648 if (purb->actual_length < pipe_info->transfer_size) { in zr364xx_read_video_callback()
[all …]
/Linux-v4.19/sound/usb/usx2y/
Dusx2yhwdeppcm.c327 struct urb **purb = subs->urb + i; in usX2Y_usbpcm_urbs_allocate() local
328 if (*purb) { in usX2Y_usbpcm_urbs_allocate()
329 usb_kill_urb(*purb); in usX2Y_usbpcm_urbs_allocate()
332 *purb = usb_alloc_urb(nr_of_packs(), GFP_KERNEL); in usX2Y_usbpcm_urbs_allocate()
333 if (NULL == *purb) { in usX2Y_usbpcm_urbs_allocate()
337 (*purb)->transfer_buffer = is_playback ? in usX2Y_usbpcm_urbs_allocate()
343 (*purb)->dev = dev; in usX2Y_usbpcm_urbs_allocate()
344 (*purb)->pipe = pipe; in usX2Y_usbpcm_urbs_allocate()
345 (*purb)->number_of_packets = nr_of_packs(); in usX2Y_usbpcm_urbs_allocate()
346 (*purb)->context = subs; in usX2Y_usbpcm_urbs_allocate()
[all …]
Dusbusx2yaudio.c427 struct urb **purb = subs->urb + i; in usX2Y_urbs_allocate() local
428 if (*purb) { in usX2Y_urbs_allocate()
429 usb_kill_urb(*purb); in usX2Y_urbs_allocate()
432 *purb = usb_alloc_urb(nr_of_packs(), GFP_KERNEL); in usX2Y_urbs_allocate()
433 if (NULL == *purb) { in usX2Y_urbs_allocate()
437 if (!is_playback && !(*purb)->transfer_buffer) { in usX2Y_urbs_allocate()
439 (*purb)->transfer_buffer = in usX2Y_urbs_allocate()
442 if (NULL == (*purb)->transfer_buffer) { in usX2Y_urbs_allocate()
447 (*purb)->dev = dev; in usX2Y_urbs_allocate()
448 (*purb)->pipe = pipe; in usX2Y_urbs_allocate()
[all …]
/Linux-v4.19/drivers/media/usb/pvrusb2/
Dpvrusb2-io.c94 struct urb *purb; member
120 (bp ? bp->purb : NULL), in pvr2_buffer_describe()
253 usb_kill_urb(bp->purb); in pvr2_buffer_wipe()
269 bp->purb = usb_alloc_urb(0, GFP_KERNEL); in pvr2_buffer_init()
270 if (! bp->purb) return -ENOMEM; in pvr2_buffer_init()
286 usb_free_urb(bp->purb); in pvr2_buffer_done()
626 usb_fill_bulk_urb(bp->purb, // struct urb *urb in pvr2_buffer_queue()
634 usb_submit_urb(bp->purb, GFP_KERNEL); in pvr2_buffer_queue()
/Linux-v4.19/drivers/isdn/hisax/
Dhfc_usb.c141 struct urb *purb; member
462 if (!(fifo->iso[i].purb)) { in start_isoc_chain()
463 fifo->iso[i].purb = in start_isoc_chain()
465 if (!(fifo->iso[i].purb)) { in start_isoc_chain()
476 fill_isoc_urb(fifo->iso[i].purb, in start_isoc_chain()
487 fifo->iso[i].purb-> in start_isoc_chain()
490 fifo->iso[i].purb-> in start_isoc_chain()
501 errcode = usb_submit_urb(fifo->iso[i].purb, GFP_KERNEL); in start_isoc_chain()
517 if (fifo->iso[i].purb) { in stop_isoc_chain()
521 usb_kill_urb(fifo->iso[i].purb); in stop_isoc_chain()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/hal/
Drtl8188eu_recv.c80 usb_free_urb(precvbuf->purb); in rtw_hal_free_recv_priv()
/Linux-v4.19/drivers/usb/usbip/
Dusbip_common.h293 void usbip_dump_urb(struct urb *purb);
/Linux-v4.19/drivers/media/usb/s2255/
Ds2255drv.c2055 static void read_pipe_completion(struct urb *purb) in read_pipe_completion() argument
2061 pipe_info = purb->context; in read_pipe_completion()
2063 dev_err(&purb->dev->dev, "no context!\n"); in read_pipe_completion()
2068 dev_err(&purb->dev->dev, "no context!\n"); in read_pipe_completion()
2071 status = purb->status; in read_pipe_completion()