Lines Matching refs:pipe_info

1712 static int save_frame(struct s2255_dev *dev, struct s2255_pipeinfo *pipe_info)  in save_frame()  argument
1734 pdata = (unsigned char *)pipe_info->transfer_buffer; in save_frame()
1736 for (jj = 0; jj < (pipe_info->cur_transfer_size - 12); jj++) { in save_frame()
1827 psrc = (u8 *)pipe_info->transfer_buffer + offset; in save_frame()
1838 copy_size = (pipe_info->cur_transfer_size - offset); in save_frame()
1871 struct s2255_pipeinfo *pipe_info) in s2255_read_video_callback() argument
1882 res = save_frame(dev, pipe_info); in s2255_read_video_callback()
2057 struct s2255_pipeinfo *pipe_info; in read_pipe_completion() local
2061 pipe_info = purb->context; in read_pipe_completion()
2062 if (pipe_info == NULL) { in read_pipe_completion()
2066 dev = pipe_info->dev; in read_pipe_completion()
2075 pipe_info->err_count++; in read_pipe_completion()
2079 if (pipe_info->state == 0) { in read_pipe_completion()
2085 s2255_read_video_callback(dev, pipe_info); in read_pipe_completion()
2087 pipe_info->err_count++; in read_pipe_completion()
2093 usb_fill_bulk_urb(pipe_info->stream_urb, dev->udev, in read_pipe_completion()
2095 pipe_info->transfer_buffer, in read_pipe_completion()
2096 pipe_info->cur_transfer_size, in read_pipe_completion()
2097 read_pipe_completion, pipe_info); in read_pipe_completion()
2099 if (pipe_info->state != 0) { in read_pipe_completion()
2100 if (usb_submit_urb(pipe_info->stream_urb, GFP_ATOMIC)) in read_pipe_completion()
2112 struct s2255_pipeinfo *pipe_info = &dev->pipe; in s2255_start_readpipe() local
2115 pipe_info->state = 1; in s2255_start_readpipe()
2116 pipe_info->err_count = 0; in s2255_start_readpipe()
2117 pipe_info->stream_urb = usb_alloc_urb(0, GFP_KERNEL); in s2255_start_readpipe()
2118 if (!pipe_info->stream_urb) in s2255_start_readpipe()
2121 usb_fill_bulk_urb(pipe_info->stream_urb, dev->udev, in s2255_start_readpipe()
2123 pipe_info->transfer_buffer, in s2255_start_readpipe()
2124 pipe_info->cur_transfer_size, in s2255_start_readpipe()
2125 read_pipe_completion, pipe_info); in s2255_start_readpipe()
2126 retval = usb_submit_urb(pipe_info->stream_urb, GFP_KERNEL); in s2255_start_readpipe()