Lines Matching refs:purb
554 struct urb *purb) in zr364xx_read_video_callback() argument
568 for (i = 0; i < purb->actual_length/2; i++) in zr364xx_read_video_callback()
583 if (purb->actual_length < 128) { in zr364xx_read_video_callback()
587 __func__, purb->actual_length); in zr364xx_read_video_callback()
610 purb->actual_length - 128); in zr364xx_read_video_callback()
611 ptr += purb->actual_length - 128; in zr364xx_read_video_callback()
618 if (frm->cur_size + purb->actual_length > MAX_FRAME_SIZE) { in zr364xx_read_video_callback()
624 memcpy(pdest, psrc, purb->actual_length); in zr364xx_read_video_callback()
625 frm->cur_size += purb->actual_length; in zr364xx_read_video_callback()
631 if (purb->actual_length < pipe_info->transfer_size) { in zr364xx_read_video_callback()
950 static void read_pipe_completion(struct urb *purb) in read_pipe_completion() argument
956 pipe_info = purb->context; in read_pipe_completion()
957 _DBG("%s %p, status %d\n", __func__, purb, purb->status); in read_pipe_completion()
970 if (purb->status == -ESHUTDOWN) { in read_pipe_completion()
981 if (purb->actual_length > pipe_info->transfer_size) { in read_pipe_completion()
986 if (purb->status == 0) in read_pipe_completion()
987 zr364xx_read_video_callback(cam, pipe_info, purb); in read_pipe_completion()
990 DBG("%s: failed URB %d\n", __func__, purb->status); in read_pipe_completion()
1003 purb->status = usb_submit_urb(pipe_info->stream_urb, in read_pipe_completion()
1006 if (purb->status) in read_pipe_completion()
1009 purb->status); in read_pipe_completion()