Lines Matching refs:urb
74 static void hdpvr_read_bulk_callback(struct urb *urb) in hdpvr_read_bulk_callback() argument
76 struct hdpvr_buffer *buf = (struct hdpvr_buffer *)urb->context; in hdpvr_read_bulk_callback()
93 usb_kill_urb(buf->urb); in hdpvr_cancel_queue()
107 struct urb *urb; in hdpvr_free_queue() local
112 urb = buf->urb; in hdpvr_free_queue()
113 usb_free_coherent(urb->dev, urb->transfer_buffer_length, in hdpvr_free_queue()
114 urb->transfer_buffer, urb->transfer_dma); in hdpvr_free_queue()
115 usb_free_urb(urb); in hdpvr_free_queue()
143 struct urb *urb; in hdpvr_alloc_buffers() local
157 urb = usb_alloc_urb(0, GFP_KERNEL); in hdpvr_alloc_buffers()
158 if (!urb) { in hdpvr_alloc_buffers()
162 buf->urb = urb; in hdpvr_alloc_buffers()
165 &urb->transfer_dma); in hdpvr_alloc_buffers()
172 usb_fill_bulk_urb(buf->urb, dev->udev, in hdpvr_alloc_buffers()
178 buf->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; in hdpvr_alloc_buffers()
184 usb_free_urb(urb); in hdpvr_alloc_buffers()
195 struct urb *urb; in hdpvr_submit_buffers() local
212 urb = buf->urb; in hdpvr_submit_buffers()
213 urb->status = 0; in hdpvr_submit_buffers()
214 urb->actual_length = 0; in hdpvr_submit_buffers()
215 ret = usb_submit_urb(urb, GFP_KERNEL); in hdpvr_submit_buffers()
421 struct urb *urb; in hdpvr_read() local
475 urb = buf->urb; in hdpvr_read()
476 rem = urb->actual_length - buf->pos; in hdpvr_read()
479 if (copy_to_user(buffer, urb->transfer_buffer + buf->pos, in hdpvr_read()
493 if (buf->pos == urb->actual_length) { in hdpvr_read()