Lines Matching refs:pipe_info

576 					struct zr364xx_pipeinfo *pipe_info,  in zr364xx_read_video_callback()  argument
592 u16 *buf = (u16 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
604 psrc = (u8 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
649 if (purb->actual_length < pipe_info->transfer_size) { in zr364xx_read_video_callback()
976 struct zr364xx_pipeinfo *pipe_info; in read_pipe_completion() local
980 pipe_info = purb->context; in read_pipe_completion()
982 if (pipe_info == NULL) { in read_pipe_completion()
987 cam = pipe_info->cam; in read_pipe_completion()
996 pipe_info->err_count++; in read_pipe_completion()
1000 if (pipe_info->state == 0) { in read_pipe_completion()
1005 if (purb->actual_length > pipe_info->transfer_size) { in read_pipe_completion()
1011 zr364xx_read_video_callback(cam, pipe_info, purb); in read_pipe_completion()
1013 pipe_info->err_count++; in read_pipe_completion()
1020 usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, in read_pipe_completion()
1022 pipe_info->transfer_buffer, in read_pipe_completion()
1023 pipe_info->transfer_size, in read_pipe_completion()
1024 read_pipe_completion, pipe_info); in read_pipe_completion()
1026 if (pipe_info->state != 0) { in read_pipe_completion()
1027 purb->status = usb_submit_urb(pipe_info->stream_urb, in read_pipe_completion()
1042 struct zr364xx_pipeinfo *pipe_info = cam->pipe; in zr364xx_start_readpipe() local
1046 pipe_info->state = 1; in zr364xx_start_readpipe()
1047 pipe_info->err_count = 0; in zr364xx_start_readpipe()
1048 pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL); in zr364xx_start_readpipe()
1049 if (!pipe_info->stream_urb) { in zr364xx_start_readpipe()
1054 usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, in zr364xx_start_readpipe()
1056 pipe_info->transfer_buffer, in zr364xx_start_readpipe()
1057 pipe_info->transfer_size, in zr364xx_start_readpipe()
1058 read_pipe_completion, pipe_info); in zr364xx_start_readpipe()
1060 DBG("submitting URB %p\n", pipe_info->stream_urb); in zr364xx_start_readpipe()
1061 retval = usb_submit_urb(pipe_info->stream_urb, GFP_KERNEL); in zr364xx_start_readpipe()
1072 struct zr364xx_pipeinfo *pipe_info; in zr364xx_stop_readpipe() local
1079 pipe_info = cam->pipe; in zr364xx_stop_readpipe()
1080 if (pipe_info) { in zr364xx_stop_readpipe()
1081 if (pipe_info->state != 0) in zr364xx_stop_readpipe()
1082 pipe_info->state = 0; in zr364xx_stop_readpipe()
1084 if (pipe_info->stream_urb) { in zr364xx_stop_readpipe()
1086 usb_kill_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1087 usb_free_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1088 pipe_info->stream_urb = NULL; in zr364xx_stop_readpipe()