Lines Matching refs:vfh
303 isp_video_check_format(struct isp_video *video, struct isp_video_fh *vfh)
308 memcpy(&format, &vfh->format, sizeof(format));
313 if (vfh->format.fmt.pix.pixelformat != format.fmt.pix.pixelformat ||
314 vfh->format.fmt.pix.height != format.fmt.pix.height ||
315 vfh->format.fmt.pix.width != format.fmt.pix.width ||
316 vfh->format.fmt.pix.bytesperline != format.fmt.pix.bytesperline ||
317 vfh->format.fmt.pix.sizeimage != format.fmt.pix.sizeimage ||
318 vfh->format.fmt.pix.field != format.fmt.pix.field)
332 struct isp_video_fh *vfh = vb2_get_drv_priv(queue);
333 struct isp_video *video = vfh->video;
337 sizes[0] = vfh->format.fmt.pix.sizeimage;
349 struct isp_video_fh *vfh = vb2_get_drv_priv(buf->vb2_queue);
351 struct isp_video *video = vfh->video;
371 vfh->format.fmt.pix.sizeimage);
389 struct isp_video_fh *vfh = vb2_get_drv_priv(buf->vb2_queue);
391 struct isp_video *video = vfh->video;
460 struct isp_video_fh *vfh = vb2_get_drv_priv(queue);
461 struct isp_video *video = vfh->video;
667 struct isp_video_fh *vfh = to_isp_video_fh(fh);
674 *format = vfh->format;
683 struct isp_video_fh *vfh = to_isp_video_fh(fh);
732 vfh->format = *format;
866 struct isp_video_fh *vfh = to_isp_video_fh(fh);
876 a->parm.output.timeperframe = vfh->timeperframe;
884 struct isp_video_fh *vfh = to_isp_video_fh(fh);
894 vfh->timeperframe = a->parm.output.timeperframe;
902 struct isp_video_fh *vfh = to_isp_video_fh(fh);
907 ret = vb2_reqbufs(&vfh->queue, rb);
916 struct isp_video_fh *vfh = to_isp_video_fh(fh);
921 ret = vb2_querybuf(&vfh->queue, b);
930 struct isp_video_fh *vfh = to_isp_video_fh(fh);
935 ret = vb2_qbuf(&vfh->queue, video->video.v4l2_dev->mdev, b);
944 struct isp_video_fh *vfh = to_isp_video_fh(fh);
949 ret = vb2_dqbuf(&vfh->queue, b, file->f_flags & O_NONBLOCK);
1081 struct isp_video_fh *vfh = to_isp_video_fh(fh);
1114 ret = isp_video_check_format(video, vfh);
1119 video->bpl_value = vfh->format.fmt.pix.bytesperline;
1146 pipe->max_timeperframe = vfh->timeperframe;
1148 video->queue = &vfh->queue;
1151 pipe->field = vfh->format.fmt.pix.field;
1154 ret = vb2_streamon(&vfh->queue, type);
1188 struct isp_video_fh *vfh = to_isp_video_fh(fh);
1202 streaming = vb2_is_streaming(&vfh->queue);
1225 vb2_streamoff(&vfh->queue, type);
1304 v4l2_fh_init(&handle->vfh, &video->video);
1305 v4l2_fh_add(&handle->vfh);
1340 file->private_data = &handle->vfh;
1344 v4l2_fh_del(&handle->vfh);
1345 v4l2_fh_exit(&handle->vfh);
1355 struct v4l2_fh *vfh = file->private_data;
1356 struct isp_video_fh *handle = to_isp_video_fh(vfh);
1359 isp_video_streamoff(file, vfh, video->type);
1368 v4l2_fh_del(vfh);
1369 v4l2_fh_exit(vfh);
1380 struct isp_video_fh *vfh = to_isp_video_fh(file->private_data);
1385 ret = vb2_poll(&vfh->queue, file, wait);
1393 struct isp_video_fh *vfh = to_isp_video_fh(file->private_data);
1395 return vb2_mmap(&vfh->queue, vma);