Lines Matching refs:video
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()
173 schedule_work(&video->pump); in uvc_v4l2_qbuf()
183 struct uvc_video *video = &uvc->video; in uvc_v4l2_dqbuf() local
185 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK); in uvc_v4l2_dqbuf()
193 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamon() local
196 if (type != video->queue.queue.type) in uvc_v4l2_streamon()
200 ret = uvcg_video_enable(video, 1); in uvc_v4l2_streamon()
219 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamoff() local
221 if (type != video->queue.queue.type) in uvc_v4l2_streamoff()
224 return uvcg_video_enable(video, 0); in uvc_v4l2_streamoff()
258 uvcg_video_enable(&uvc->video, 0); in uvc_v4l2_disable()
259 uvcg_free_buffers(&uvc->video.queue); in uvc_v4l2_disable()
331 handle->device = &uvc->video; in uvc_v4l2_open()
343 struct uvc_video *video = handle->device; in uvc_v4l2_release() local
345 mutex_lock(&video->mutex); in uvc_v4l2_release()
348 mutex_unlock(&video->mutex); in uvc_v4l2_release()
364 return uvcg_queue_mmap(&uvc->video.queue, vma); in uvc_v4l2_mmap()
373 return uvcg_queue_poll(&uvc->video.queue, file, wait); in uvc_v4l2_poll()
384 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff); in uvcg_v4l2_get_unmapped_area()