Lines Matching refs:video
90 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local
92 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
93 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
94 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
96 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
97 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
109 struct uvc_video *video = &uvc->video; in uvc_v4l2_set_format() local
130 video->fcc = format->fcc; in uvc_v4l2_set_format()
131 video->bpp = format->bpp; in uvc_v4l2_set_format()
132 video->width = fmt->fmt.pix.width; in uvc_v4l2_set_format()
133 video->height = fmt->fmt.pix.height; in uvc_v4l2_set_format()
134 video->imagesize = imagesize; in uvc_v4l2_set_format()
150 struct uvc_video *video = &uvc->video; in uvc_v4l2_reqbufs() local
152 if (b->type != video->queue.queue.type) in uvc_v4l2_reqbufs()
155 return uvcg_alloc_buffers(&video->queue, b); in uvc_v4l2_reqbufs()
163 struct uvc_video *video = &uvc->video; in uvc_v4l2_querybuf() local
165 return uvcg_query_buffer(&video->queue, b); in uvc_v4l2_querybuf()
173 struct uvc_video *video = &uvc->video; in uvc_v4l2_qbuf() local
176 ret = uvcg_queue_buffer(&video->queue, b); in uvc_v4l2_qbuf()
180 return uvcg_video_pump(video); in uvc_v4l2_qbuf()
188 struct uvc_video *video = &uvc->video; in uvc_v4l2_dqbuf() local
190 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK); in uvc_v4l2_dqbuf()
198 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamon() local
201 if (type != video->queue.queue.type) in uvc_v4l2_streamon()
205 ret = uvcg_video_enable(video, 1); in uvc_v4l2_streamon()
224 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamoff() local
226 if (type != video->queue.queue.type) in uvc_v4l2_streamoff()
229 return uvcg_video_enable(video, 0); in uvc_v4l2_streamoff()
298 handle->device = &uvc->video; in uvc_v4l2_open()
311 struct uvc_video *video = handle->device; in uvc_v4l2_release() local
315 mutex_lock(&video->mutex); in uvc_v4l2_release()
316 uvcg_video_enable(video, 0); in uvc_v4l2_release()
317 uvcg_free_buffers(&video->queue); in uvc_v4l2_release()
318 mutex_unlock(&video->mutex); in uvc_v4l2_release()
334 return uvcg_queue_mmap(&uvc->video.queue, vma); in uvc_v4l2_mmap()
343 return uvcg_queue_poll(&uvc->video.queue, file, wait); in uvc_v4l2_poll()
354 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff); in uvcg_v4l2_get_unmapped_area()