Lines Matching refs:pipe_info

575 					struct zr364xx_pipeinfo *pipe_info,  in zr364xx_read_video_callback()  argument
591 u16 *buf = (u16 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
603 psrc = (u8 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
648 if (purb->actual_length < pipe_info->transfer_size) { in zr364xx_read_video_callback()
975 struct zr364xx_pipeinfo *pipe_info; in read_pipe_completion() local
979 pipe_info = purb->context; in read_pipe_completion()
981 if (pipe_info == NULL) { in read_pipe_completion()
986 cam = pipe_info->cam; in read_pipe_completion()
995 pipe_info->err_count++; in read_pipe_completion()
999 if (pipe_info->state == 0) { in read_pipe_completion()
1004 if (purb->actual_length > pipe_info->transfer_size) { in read_pipe_completion()
1010 zr364xx_read_video_callback(cam, pipe_info, purb); in read_pipe_completion()
1012 pipe_info->err_count++; in read_pipe_completion()
1019 usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, in read_pipe_completion()
1021 pipe_info->transfer_buffer, in read_pipe_completion()
1022 pipe_info->transfer_size, in read_pipe_completion()
1023 read_pipe_completion, pipe_info); in read_pipe_completion()
1025 if (pipe_info->state != 0) { in read_pipe_completion()
1026 purb->status = usb_submit_urb(pipe_info->stream_urb, in read_pipe_completion()
1041 struct zr364xx_pipeinfo *pipe_info = cam->pipe; in zr364xx_start_readpipe() local
1045 pipe_info->state = 1; in zr364xx_start_readpipe()
1046 pipe_info->err_count = 0; in zr364xx_start_readpipe()
1047 pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL); in zr364xx_start_readpipe()
1048 if (!pipe_info->stream_urb) { in zr364xx_start_readpipe()
1053 usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, in zr364xx_start_readpipe()
1055 pipe_info->transfer_buffer, in zr364xx_start_readpipe()
1056 pipe_info->transfer_size, in zr364xx_start_readpipe()
1057 read_pipe_completion, pipe_info); in zr364xx_start_readpipe()
1059 DBG("submitting URB %p\n", pipe_info->stream_urb); in zr364xx_start_readpipe()
1060 retval = usb_submit_urb(pipe_info->stream_urb, GFP_KERNEL); in zr364xx_start_readpipe()
1071 struct zr364xx_pipeinfo *pipe_info; in zr364xx_stop_readpipe() local
1078 pipe_info = cam->pipe; in zr364xx_stop_readpipe()
1079 if (pipe_info) { in zr364xx_stop_readpipe()
1080 if (pipe_info->state != 0) in zr364xx_stop_readpipe()
1081 pipe_info->state = 0; in zr364xx_stop_readpipe()
1083 if (pipe_info->stream_urb) { in zr364xx_stop_readpipe()
1085 usb_kill_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1086 usb_free_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1087 pipe_info->stream_urb = NULL; in zr364xx_stop_readpipe()