Lines Matching refs:video

137 	struct uvc_video *video = &uvc->video;
172 uvcg_dbg(&video->uvc->func, "Unsupported size %ux%u\n", rw, rh);
221 struct uvc_video *video = &uvc->video;
223 fmt->fmt.pix.pixelformat = video->fcc;
224 fmt->fmt.pix.width = video->width;
225 fmt->fmt.pix.height = video->height;
227 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8;
228 fmt->fmt.pix.sizeimage = video->imagesize;
240 struct uvc_video *video = &uvc->video;
245 if (fmt->type != video->queue.queue.type)
280 struct uvc_video *video = &uvc->video;
287 video->fcc = fmt->fmt.pix.pixelformat;
288 video->bpp = fmt->fmt.pix.bytesperline * 8 / video->width;
289 video->width = fmt->fmt.pix.width;
290 video->height = fmt->fmt.pix.height;
291 video->imagesize = fmt->fmt.pix.sizeimage;
388 struct uvc_video *video = &uvc->video;
390 if (b->type != video->queue.queue.type)
393 return uvcg_alloc_buffers(&video->queue, b);
401 struct uvc_video *video = &uvc->video;
403 return uvcg_query_buffer(&video->queue, b);
411 struct uvc_video *video = &uvc->video;
414 ret = uvcg_queue_buffer(&video->queue, b);
419 queue_work(video->async_wq, &video->pump);
429 struct uvc_video *video = &uvc->video;
431 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK);
439 struct uvc_video *video = &uvc->video;
442 if (type != video->queue.queue.type)
445 /* Enable UVC video. */
446 ret = uvcg_video_enable(video, 1);
452 * userspace is ready to provide video frames.
465 struct uvc_video *video = &uvc->video;
467 if (type != video->queue.queue.type)
470 return uvcg_video_enable(video, 0);
503 uvcg_video_enable(&uvc->video, 0);
504 uvcg_free_buffers(&uvc->video.queue);
582 handle->device = &uvc->video;
594 struct uvc_video *video = handle->device;
596 mutex_lock(&video->mutex);
599 mutex_unlock(&video->mutex);
615 return uvcg_queue_mmap(&uvc->video.queue, vma);
624 return uvcg_queue_poll(&uvc->video.queue, file, wait);
635 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff);