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()
345 struct isp_video_fh *vfh = vb2_get_drv_priv(buf->vb2_queue); in isp_video_buffer_prepare() local
347 struct isp_video *video = vfh->video; in isp_video_buffer_prepare()
366 vb2_set_plane_payload(&buffer->vb, 0, vfh->format.fmt.pix.sizeimage); in isp_video_buffer_prepare()
383 struct isp_video_fh *vfh = vb2_get_drv_priv(buf->vb2_queue); in isp_video_buffer_queue() local
385 struct isp_video *video = vfh->video; in isp_video_buffer_queue()
615 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_get_format() local
622 *format = vfh->format; in isp_video_get_format()
631 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_set_format() local
680 vfh->format = *format; in isp_video_set_format()
787 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_get_param() local
797 a->parm.output.timeperframe = vfh->timeperframe; in isp_video_get_param()
805 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_set_param() local
815 vfh->timeperframe = a->parm.output.timeperframe; in isp_video_set_param()
823 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_reqbufs() local
828 ret = vb2_reqbufs(&vfh->queue, rb); in isp_video_reqbufs()
837 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_querybuf() local
842 ret = vb2_querybuf(&vfh->queue, b); in isp_video_querybuf()
851 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_qbuf() local
856 ret = vb2_qbuf(&vfh->queue, b); in isp_video_qbuf()
865 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_dqbuf() local
870 ret = vb2_dqbuf(&vfh->queue, b, file->f_flags & O_NONBLOCK); in isp_video_dqbuf()
1001 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_streamon() local
1033 ret = isp_video_check_format(video, vfh); in isp_video_streamon()
1038 video->bpl_value = vfh->format.fmt.pix.bytesperline; in isp_video_streamon()
1065 pipe->max_timeperframe = vfh->timeperframe; in isp_video_streamon()
1067 video->queue = &vfh->queue; in isp_video_streamon()
1070 pipe->field = vfh->format.fmt.pix.field; in isp_video_streamon()
1073 ret = vb2_streamon(&vfh->queue, type); in isp_video_streamon()
1098 vb2_streamoff(&vfh->queue, type); in isp_video_streamon()
1122 struct isp_video_fh *vfh = to_isp_video_fh(fh); in isp_video_streamoff() local
1136 streaming = vb2_is_streaming(&vfh->queue); in isp_video_streamoff()
1159 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()