Lines Matching refs:purb
569 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()
973 static void read_pipe_completion(struct urb *purb) in read_pipe_completion() argument
979 pipe_info = purb->context; in read_pipe_completion()
980 _DBG("%s %p, status %d\n", __func__, purb, purb->status); in read_pipe_completion()
993 if (purb->status == -ESHUTDOWN) { in read_pipe_completion()
1004 if (purb->actual_length > pipe_info->transfer_size) { in read_pipe_completion()
1009 if (purb->status == 0) in read_pipe_completion()
1010 zr364xx_read_video_callback(cam, pipe_info, purb); in read_pipe_completion()
1013 DBG("%s: failed URB %d\n", __func__, purb->status); in read_pipe_completion()
1026 purb->status = usb_submit_urb(pipe_info->stream_urb, in read_pipe_completion()
1029 if (purb->status) in read_pipe_completion()
1032 purb->status); in read_pipe_completion()