Lines Matching refs:video
137 struct uvc_video *video = &uvc->video; in find_closest_frame_by_size() local
172 uvcg_dbg(&video->uvc->func, "Unsupported size %ux%u\n", rw, rh); in find_closest_frame_by_size()
221 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local
223 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
224 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
225 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
227 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
228 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
240 struct uvc_video *video = &uvc->video; in uvc_v4l2_try_format() local
245 if (fmt->type != video->queue.queue.type) in uvc_v4l2_try_format()
280 struct uvc_video *video = &uvc->video; in uvc_v4l2_set_format() local
287 video->fcc = fmt->fmt.pix.pixelformat; in uvc_v4l2_set_format()
288 video->bpp = fmt->fmt.pix.bytesperline * 8 / video->width; in uvc_v4l2_set_format()
289 video->width = fmt->fmt.pix.width; in uvc_v4l2_set_format()
290 video->height = fmt->fmt.pix.height; in uvc_v4l2_set_format()
291 video->imagesize = fmt->fmt.pix.sizeimage; in uvc_v4l2_set_format()
394 struct uvc_video *video = &uvc->video; in uvc_v4l2_reqbufs() local
396 if (b->type != video->queue.queue.type) in uvc_v4l2_reqbufs()
399 return uvcg_alloc_buffers(&video->queue, b); in uvc_v4l2_reqbufs()
407 struct uvc_video *video = &uvc->video; in uvc_v4l2_querybuf() local
409 return uvcg_query_buffer(&video->queue, b); in uvc_v4l2_querybuf()
417 struct uvc_video *video = &uvc->video; in uvc_v4l2_qbuf() local
420 ret = uvcg_queue_buffer(&video->queue, b); in uvc_v4l2_qbuf()
425 queue_work(video->async_wq, &video->pump); in uvc_v4l2_qbuf()
435 struct uvc_video *video = &uvc->video; in uvc_v4l2_dqbuf() local
437 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK); in uvc_v4l2_dqbuf()
445 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamon() local
448 if (type != video->queue.queue.type) in uvc_v4l2_streamon()
452 ret = uvcg_video_enable(video, 1); in uvc_v4l2_streamon()
471 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamoff() local
473 if (type != video->queue.queue.type) in uvc_v4l2_streamoff()
476 return uvcg_video_enable(video, 0); in uvc_v4l2_streamoff()
509 uvcg_video_enable(&uvc->video, 0); in uvc_v4l2_disable()
510 uvcg_free_buffers(&uvc->video.queue); in uvc_v4l2_disable()
588 handle->device = &uvc->video; in uvc_v4l2_open()
600 struct uvc_video *video = handle->device; in uvc_v4l2_release() local
602 mutex_lock(&video->mutex); in uvc_v4l2_release()
605 mutex_unlock(&video->mutex); in uvc_v4l2_release()
621 return uvcg_queue_mmap(&uvc->video.queue, vma); in uvc_v4l2_mmap()
630 return uvcg_queue_poll(&uvc->video.queue, file, wait); in uvc_v4l2_poll()
641 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff); in uvcg_v4l2_get_unmapped_area()