Lines Matching refs:pipe_info
568 struct zr364xx_pipeinfo *pipe_info, in zr364xx_read_video_callback() argument
584 u16 *buf = (u16 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
596 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) { 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()
1051 usb_fill_bulk_urb(pipe_info->stream_urb, cam->udev, in zr364xx_start_readpipe()
1053 pipe_info->transfer_buffer, in zr364xx_start_readpipe()
1054 pipe_info->transfer_size, in zr364xx_start_readpipe()
1055 read_pipe_completion, pipe_info); in zr364xx_start_readpipe()
1057 DBG("submitting URB %p\n", pipe_info->stream_urb); in zr364xx_start_readpipe()
1058 retval = usb_submit_urb(pipe_info->stream_urb, GFP_KERNEL); in zr364xx_start_readpipe()
1069 struct zr364xx_pipeinfo *pipe_info; in zr364xx_stop_readpipe() local
1076 pipe_info = cam->pipe; in zr364xx_stop_readpipe()
1077 if (pipe_info) { in zr364xx_stop_readpipe()
1078 if (pipe_info->state != 0) in zr364xx_stop_readpipe()
1079 pipe_info->state = 0; in zr364xx_stop_readpipe()
1081 if (pipe_info->stream_urb) { in zr364xx_stop_readpipe()
1083 usb_kill_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1084 usb_free_urb(pipe_info->stream_urb); in zr364xx_stop_readpipe()
1085 pipe_info->stream_urb = NULL; in zr364xx_stop_readpipe()