Lines Matching full:video
3 * uvc_v4l2.c -- USB Video Class Gadget driver
86 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local
88 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
89 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
90 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
92 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
93 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
105 struct uvc_video *video = &uvc->video; in uvc_v4l2_set_format() local
126 video->fcc = format->fcc; in uvc_v4l2_set_format()
127 video->bpp = format->bpp; in uvc_v4l2_set_format()
128 video->width = fmt->fmt.pix.width; in uvc_v4l2_set_format()
129 video->height = fmt->fmt.pix.height; in uvc_v4l2_set_format()
130 video->imagesize = imagesize; in uvc_v4l2_set_format()
146 struct uvc_video *video = &uvc->video; in uvc_v4l2_reqbufs() local
148 if (b->type != video->queue.queue.type) in uvc_v4l2_reqbufs()
151 return uvcg_alloc_buffers(&video->queue, b); in uvc_v4l2_reqbufs()
159 struct uvc_video *video = &uvc->video; in uvc_v4l2_querybuf() local
161 return uvcg_query_buffer(&video->queue, b); in uvc_v4l2_querybuf()
169 struct uvc_video *video = &uvc->video; in uvc_v4l2_qbuf() local
172 ret = uvcg_queue_buffer(&video->queue, b); in uvc_v4l2_qbuf()
177 schedule_work(&video->pump); in uvc_v4l2_qbuf()
187 struct uvc_video *video = &uvc->video; in uvc_v4l2_dqbuf() local
189 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK); in uvc_v4l2_dqbuf()
197 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamon() local
200 if (type != video->queue.queue.type) in uvc_v4l2_streamon()
206 /* Enable UVC video. */ in uvc_v4l2_streamon()
207 ret = uvcg_video_enable(video, 1); in uvc_v4l2_streamon()
220 * to provide video frames. in uvc_v4l2_streamon()
222 if (!usb_endpoint_xfer_bulk(video->ep->desc)) in uvc_v4l2_streamon()
235 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamoff() local
237 if (type != video->queue.queue.type) in uvc_v4l2_streamoff()
240 return uvcg_video_enable(video, 0); in uvc_v4l2_streamoff()
273 uvcg_video_enable(&uvc->video, 0); in uvc_v4l2_disable()
274 uvcg_free_buffers(&uvc->video.queue); in uvc_v4l2_disable()
348 handle->device = &uvc->video; in uvc_v4l2_open()
360 struct uvc_video *video = handle->device; in uvc_v4l2_release() local
362 mutex_lock(&video->mutex); in uvc_v4l2_release()
365 mutex_unlock(&video->mutex); in uvc_v4l2_release()
381 return uvcg_queue_mmap(&uvc->video.queue, vma); in uvc_v4l2_mmap()
390 return uvcg_queue_poll(&uvc->video.queue, file, wait); in uvc_v4l2_poll()
401 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff); in uvcg_v4l2_get_unmapped_area()