Lines Matching refs:pipe_info
553 struct zr364xx_pipeinfo *pipe_info, in zr364xx_read_video_callback() argument
567 u16 *buf = (u16 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
579 psrc = (u8 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
631 if (purb->actual_length < pipe_info->transfer_size) { in zr364xx_read_video_callback()
952 struct zr364xx_pipeinfo *pipe_info; in read_pipe_completion() local
956 pipe_info = purb->context; in read_pipe_completion()
958 if (!pipe_info) { in read_pipe_completion()
963 cam = pipe_info->cam; in read_pipe_completion()
972 pipe_info->err_count++; in read_pipe_completion()
976 if (pipe_info->state == 0) { in read_pipe_completion()
981 if (purb->actual_length > pipe_info->transfer_size) { in read_pipe_completion()
987 zr364xx_read_video_callback(cam, pipe_info, purb); in read_pipe_completion()
989 pipe_info->err_count++; in read_pipe_completion()
996 usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, in read_pipe_completion()
998 pipe_info->transfer_buffer, in read_pipe_completion()
999 pipe_info->transfer_size, in read_pipe_completion()
1000 read_pipe_completion, pipe_info); in read_pipe_completion()
1002 if (pipe_info->state != 0) { in read_pipe_completion()
1003 purb->status = usb_submit_urb(pipe_info->stream_urb, in read_pipe_completion()
1018 struct zr364xx_pipeinfo *pipe_info = cam->pipe; in zr364xx_start_readpipe() local
1022 pipe_info->state = 1; in zr364xx_start_readpipe()
1023 pipe_info->err_count = 0; in zr364xx_start_readpipe()
1024 pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL); in zr364xx_start_readpipe()
1025 if (!pipe_info->stream_urb) in zr364xx_start_readpipe()
1028 usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, in zr364xx_start_readpipe()
1030 pipe_info->transfer_buffer, in zr364xx_start_readpipe()
1031 pipe_info->transfer_size, in zr364xx_start_readpipe()
1032 read_pipe_completion, pipe_info); in zr364xx_start_readpipe()
1034 DBG("submitting URB %p\n", pipe_info->stream_urb); in zr364xx_start_readpipe()
1035 retval = usb_submit_urb(pipe_info->stream_urb, GFP_KERNEL); in zr364xx_start_readpipe()
1037 usb_free_urb(pipe_info->stream_urb); in zr364xx_start_readpipe()
1047 struct zr364xx_pipeinfo *pipe_info; in zr364xx_stop_readpipe() local
1054 pipe_info = cam->pipe; in zr364xx_stop_readpipe()
1055 if (pipe_info) { in zr364xx_stop_readpipe()
1056 if (pipe_info->state != 0) in zr364xx_stop_readpipe()
1057 pipe_info->state = 0; in zr364xx_stop_readpipe()
1059 if (pipe_info->stream_urb) { in zr364xx_stop_readpipe()
1061 usb_kill_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1062 usb_free_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1063 pipe_info->stream_urb = NULL; in zr364xx_stop_readpipe()