Lines Matching refs:pipe_info
551 struct zr364xx_pipeinfo *pipe_info, in zr364xx_read_video_callback() argument
565 u16 *buf = (u16 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
577 psrc = (u8 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
629 if (purb->actual_length < pipe_info->transfer_size) { in zr364xx_read_video_callback()
950 struct zr364xx_pipeinfo *pipe_info; in read_pipe_completion() local
954 pipe_info = purb->context; in read_pipe_completion()
956 if (!pipe_info) { in read_pipe_completion()
961 cam = pipe_info->cam; in read_pipe_completion()
970 pipe_info->err_count++; in read_pipe_completion()
974 if (pipe_info->state == 0) { in read_pipe_completion()
979 if (purb->actual_length > pipe_info->transfer_size) { in read_pipe_completion()
985 zr364xx_read_video_callback(cam, pipe_info, purb); in read_pipe_completion()
987 pipe_info->err_count++; in read_pipe_completion()
994 usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, in read_pipe_completion()
996 pipe_info->transfer_buffer, in read_pipe_completion()
997 pipe_info->transfer_size, in read_pipe_completion()
998 read_pipe_completion, pipe_info); in read_pipe_completion()
1000 if (pipe_info->state != 0) { in read_pipe_completion()
1001 purb->status = usb_submit_urb(pipe_info->stream_urb, in read_pipe_completion()
1016 struct zr364xx_pipeinfo *pipe_info = cam->pipe; in zr364xx_start_readpipe() local
1020 pipe_info->state = 1; in zr364xx_start_readpipe()
1021 pipe_info->err_count = 0; in zr364xx_start_readpipe()
1022 pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL); in zr364xx_start_readpipe()
1023 if (!pipe_info->stream_urb) in zr364xx_start_readpipe()
1026 usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, in zr364xx_start_readpipe()
1028 pipe_info->transfer_buffer, in zr364xx_start_readpipe()
1029 pipe_info->transfer_size, in zr364xx_start_readpipe()
1030 read_pipe_completion, pipe_info); in zr364xx_start_readpipe()
1032 DBG("submitting URB %p\n", pipe_info->stream_urb); in zr364xx_start_readpipe()
1033 retval = usb_submit_urb(pipe_info->stream_urb, GFP_KERNEL); in zr364xx_start_readpipe()
1035 usb_free_urb(pipe_info->stream_urb); in zr364xx_start_readpipe()
1045 struct zr364xx_pipeinfo *pipe_info; in zr364xx_stop_readpipe() local
1052 pipe_info = cam->pipe; in zr364xx_stop_readpipe()
1053 if (pipe_info) { in zr364xx_stop_readpipe()
1054 if (pipe_info->state != 0) in zr364xx_stop_readpipe()
1055 pipe_info->state = 0; in zr364xx_stop_readpipe()
1057 if (pipe_info->stream_urb) { in zr364xx_stop_readpipe()
1059 usb_kill_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1060 usb_free_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1061 pipe_info->stream_urb = NULL; in zr364xx_stop_readpipe()