Lines Matching refs:vfh
297 isp_video_check_format(struct isp_video *video, struct isp_video_fh *vfh) in isp_video_check_format() argument
302 memcpy(&format, &vfh->format, sizeof(format)); in isp_video_check_format()
307 if (vfh->format.fmt.pix.pixelformat != format.fmt.pix.pixelformat || in isp_video_check_format()
308 vfh->format.fmt.pix.height != format.fmt.pix.height || in isp_video_check_format()
309 vfh->format.fmt.pix.width != format.fmt.pix.width || in isp_video_check_format()
310 vfh->format.fmt.pix.bytesperline != format.fmt.pix.bytesperline || in isp_video_check_format()
311 vfh->format.fmt.pix.sizeimage != format.fmt.pix.sizeimage || in isp_video_check_format()
312 vfh->format.fmt.pix.field != format.fmt.pix.field) in isp_video_check_format()
327 struct isp_video_fh *vfh = vb2_get_drv_priv(queue); in isp_video_queue_setup() local
328 struct isp_video *video = vfh->video; in isp_video_queue_setup()
332 sizes[0] = vfh->format.fmt.pix.sizeimage; in isp_video_queue_setup()
346 struct isp_video_fh *vfh = vb2_get_drv_priv(buf->vb2_queue); in isp_video_buffer_prepare() local
348 struct isp_video *video = vfh->video; in isp_video_buffer_prepare()
368 vfh->format.fmt.pix.sizeimage); in isp_video_buffer_prepare()
386 struct isp_video_fh *vfh = vb2_get_drv_priv(buf->vb2_queue); in isp_video_buffer_queue() local
388 struct isp_video *video = vfh->video; in isp_video_buffer_queue()
618 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_get_format() local
625 *format = vfh->format; in isp_video_get_format()
634 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_set_format() local
683 vfh->format = *format; in isp_video_set_format()
790 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_get_param() local
800 a->parm.output.timeperframe = vfh->timeperframe; in isp_video_get_param()
808 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_set_param() local
818 vfh->timeperframe = a->parm.output.timeperframe; in isp_video_set_param()
826 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_reqbufs() local
831 ret = vb2_reqbufs(&vfh->queue, rb); in isp_video_reqbufs()
840 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_querybuf() local
845 ret = vb2_querybuf(&vfh->queue, b); in isp_video_querybuf()
854 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_qbuf() local
859 ret = vb2_qbuf(&vfh->queue, b); in isp_video_qbuf()
868 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_dqbuf() local
873 ret = vb2_dqbuf(&vfh->queue, b, file->f_flags & O_NONBLOCK); in isp_video_dqbuf()
1004 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_streamon() local
1035 ret = isp_video_check_format(video, vfh); in isp_video_streamon()
1040 video->bpl_value = vfh->format.fmt.pix.bytesperline; in isp_video_streamon()
1067 pipe->max_timeperframe = vfh->timeperframe; in isp_video_streamon()
1069 video->queue = &vfh->queue; in isp_video_streamon()
1072 pipe->field = vfh->format.fmt.pix.field; in isp_video_streamon()
1075 ret = vb2_streamon(&vfh->queue, type); in isp_video_streamon()
1100 vb2_streamoff(&vfh->queue, type); in isp_video_streamon()
1123 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_streamoff() local
1137 streaming = vb2_is_streaming(&vfh->queue); in isp_video_streamoff()
1160 vb2_streamoff(&vfh->queue, type); in isp_video_streamoff()
1238 v4l2_fh_init(&handle->vfh, &video->video); in isp_video_open()
1239 v4l2_fh_add(&handle->vfh); in isp_video_open()
1273 file->private_data = &handle->vfh; in isp_video_open()
1277 v4l2_fh_del(&handle->vfh); in isp_video_open()
1287 struct v4l2_fh *vfh = file->private_data; in isp_video_release() local
1288 struct isp_video_fh *handle = to_isp_video_fh(vfh); in isp_video_release()
1291 isp_video_streamoff(file, vfh, video->type); in isp_video_release()
1300 v4l2_fh_del(vfh); in isp_video_release()
1311 struct isp_video_fh *vfh = to_isp_video_fh(file->private_data); in isp_video_poll() local
1316 ret = vb2_poll(&vfh->queue, file, wait); in isp_video_poll()
1324 struct isp_video_fh *vfh = to_isp_video_fh(file->private_data); in isp_video_mmap() local
1326 return vb2_mmap(&vfh->queue, vma); in isp_video_mmap()