Lines Matching full:video

3  *	uvc_v4l2.c  --  USB Video Class Gadget driver
82 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local
84 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
85 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
86 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
88 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
89 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
101 struct uvc_video *video = &uvc->video; in uvc_v4l2_set_format() local
122 video->fcc = format->fcc; in uvc_v4l2_set_format()
123 video->bpp = format->bpp; in uvc_v4l2_set_format()
124 video->width = fmt->fmt.pix.width; in uvc_v4l2_set_format()
125 video->height = fmt->fmt.pix.height; in uvc_v4l2_set_format()
126 video->imagesize = imagesize; in uvc_v4l2_set_format()
142 struct uvc_video *video = &uvc->video; in uvc_v4l2_reqbufs() local
144 if (b->type != video->queue.queue.type) in uvc_v4l2_reqbufs()
147 return uvcg_alloc_buffers(&video->queue, b); in uvc_v4l2_reqbufs()
155 struct uvc_video *video = &uvc->video; in uvc_v4l2_querybuf() local
157 return uvcg_query_buffer(&video->queue, b); in uvc_v4l2_querybuf()
165 struct uvc_video *video = &uvc->video; in uvc_v4l2_qbuf() local
168 ret = uvcg_queue_buffer(&video->queue, b); in uvc_v4l2_qbuf()
172 schedule_work(&video->pump); in uvc_v4l2_qbuf()
182 struct uvc_video *video = &uvc->video; in uvc_v4l2_dqbuf() local
184 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK); in uvc_v4l2_dqbuf()
192 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamon() local
195 if (type != video->queue.queue.type) in uvc_v4l2_streamon()
198 /* Enable UVC video. */ in uvc_v4l2_streamon()
199 ret = uvcg_video_enable(video, 1); in uvc_v4l2_streamon()
205 * userspace is ready to provide video frames. in uvc_v4l2_streamon()
218 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamoff() local
220 if (type != video->queue.queue.type) in uvc_v4l2_streamoff()
223 return uvcg_video_enable(video, 0); in uvc_v4l2_streamoff()
292 handle->device = &uvc->video; in uvc_v4l2_open()
305 struct uvc_video *video = handle->device; in uvc_v4l2_release() local
309 mutex_lock(&video->mutex); in uvc_v4l2_release()
310 uvcg_video_enable(video, 0); in uvc_v4l2_release()
311 uvcg_free_buffers(&video->queue); in uvc_v4l2_release()
312 mutex_unlock(&video->mutex); in uvc_v4l2_release()
328 return uvcg_queue_mmap(&uvc->video.queue, vma); in uvc_v4l2_mmap()
337 return uvcg_queue_poll(&uvc->video.queue, file, wait); in uvc_v4l2_poll()
348 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff); in uvcg_v4l2_get_unmapped_area()