Home
last modified time | relevance | path

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

/drivers/staging/rtl8712/
Dusb_ops_linux.c43 void *purb; member
152 static void usb_write_mem_complete(struct urb *purb) in usb_write_mem_complete() argument
154 struct io_queue *pio_q = (struct io_queue *)purb->context; in usb_write_mem_complete()
159 if (purb->status != 0) { in usb_write_mem_complete()
160 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
196 struct recv_buf *precvbuf = (struct recv_buf *)purb->context; in r8712_usb_read_port_complete()
202 if (purb->status == 0) { /* SUCCESS */ in r8712_usb_read_port_complete()
203 if ((purb->actual_length > (MAX_RECVBUF_SZ)) || in r8712_usb_read_port_complete()
204 (purb->actual_length < RXDESC_SIZE)) { in r8712_usb_read_port_complete()
[all …]
Drecv_linux.c58 precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); in r8712_os_recvbuf_resource_alloc()
59 if (precvbuf->purb == NULL) 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.h104 struct urb *purb; member
/drivers/media/usb/au0828/
Dau0828-dvb.c107 static void urb_completion(struct urb *purb) in urb_completion() argument
109 struct au0828_dev *dev = purb->context; in urb_completion()
110 int ptype = usb_pipetype(purb->pipe); in urb_completion()
129 ptr = purb->transfer_buffer; in urb_completion()
130 if (purb->actual_length > 0 && ptr[0] != 0x47) { in urb_completion()
132 ptr[0], purb->actual_length); in urb_completion()
139 purb->transfer_buffer, purb->actual_length / 188); in urb_completion()
142 memset(purb->transfer_buffer, 0, URB_BUFSIZE); in urb_completion()
145 usb_submit_urb(purb, GFP_ATOMIC); in urb_completion()
166 struct urb *purb; in start_urb_transfer() local
[all …]
/drivers/media/usb/dvb-usb/
Ddib0700_core.c673 static void dib0700_rc_urb_completion(struct urb *purb) in dib0700_rc_urb_completion() argument
675 struct dvb_usb_device *d = purb->context; in dib0700_rc_urb_completion()
683 kfree(purb->transfer_buffer); in dib0700_rc_urb_completion()
684 usb_free_urb(purb); in dib0700_rc_urb_completion()
688 poll_reply = purb->transfer_buffer; in dib0700_rc_urb_completion()
690 if (purb->status < 0) { in dib0700_rc_urb_completion()
692 kfree(purb->transfer_buffer); in dib0700_rc_urb_completion()
693 usb_free_urb(purb); in dib0700_rc_urb_completion()
697 if (purb->actual_length != RC_MSG_SIZE_V1_20) { in dib0700_rc_urb_completion()
698 deb_info("malformed rc msg size=%d\n", purb->actual_length); in dib0700_rc_urb_completion()
[all …]
/drivers/media/usb/zr364xx/
Dzr364xx.c577 struct urb *purb) in zr364xx_read_video_callback() argument
593 for (i = 0; i < purb->actual_length/2; i++) 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()
642 memcpy(pdest, psrc, purb->actual_length); in zr364xx_read_video_callback()
643 frm->cur_size += purb->actual_length; in zr364xx_read_video_callback()
649 if (purb->actual_length < pipe_info->transfer_size) { in zr364xx_read_video_callback()
977 static void read_pipe_completion(struct urb *purb) in read_pipe_completion() argument
983 pipe_info = purb->context; in read_pipe_completion()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-io.c98 struct urb *purb; member
125 (bp ? bp->purb : NULL), in pvr2_buffer_describe()
262 usb_kill_urb(bp->purb); in pvr2_buffer_wipe()
278 bp->purb = usb_alloc_urb(0,GFP_KERNEL); in pvr2_buffer_init()
279 if (! bp->purb) return -ENOMEM; in pvr2_buffer_init()
295 usb_free_urb(bp->purb); in pvr2_buffer_done()
630 usb_fill_bulk_urb(bp->purb, // struct urb *urb in pvr2_buffer_queue()
638 usb_submit_urb(bp->purb,GFP_KERNEL); in pvr2_buffer_queue()
/drivers/isdn/hisax/
Dhfc_usb.c141 struct urb *purb; member
464 if (!(fifo->iso[i].purb)) { in start_isoc_chain()
465 fifo->iso[i].purb = in start_isoc_chain()
467 if (!(fifo->iso[i].purb)) { in start_isoc_chain()
478 fill_isoc_urb(fifo->iso[i].purb, in start_isoc_chain()
489 fifo->iso[i].purb-> in start_isoc_chain()
492 fifo->iso[i].purb-> in start_isoc_chain()
503 errcode = usb_submit_urb(fifo->iso[i].purb, GFP_KERNEL); in start_isoc_chain()
519 if (fifo->iso[i].purb) { in stop_isoc_chain()
523 usb_kill_urb(fifo->iso[i].purb); in stop_isoc_chain()
[all …]
/drivers/staging/usbip/
Dusbip_common.h313 void usbip_dump_urb(struct urb *purb);
/drivers/media/usb/s2255/
Ds2255drv.c2319 static void read_pipe_completion(struct urb *purb) in read_pipe_completion() argument
2325 pipe_info = purb->context; in read_pipe_completion()
2326 dprintk(100, "%s: urb:%p, status %d\n", __func__, purb, in read_pipe_completion()
2327 purb->status); in read_pipe_completion()
2329 dev_err(&purb->dev->dev, "no context!\n"); in read_pipe_completion()
2335 dev_err(&purb->dev->dev, "no context!\n"); in read_pipe_completion()
2338 status = purb->status; in read_pipe_completion()