Lines Matching refs:file

534 static int s3c_camif_open(struct file *file)  in s3c_camif_open()  argument
536 struct camif_vp *vp = video_drvdata(file); in s3c_camif_open()
546 ret = v4l2_fh_open(file); in s3c_camif_open()
560 v4l2_fh_release(file); in s3c_camif_open()
566 static int s3c_camif_close(struct file *file) in s3c_camif_close() argument
568 struct camif_vp *vp = video_drvdata(file); in s3c_camif_close()
577 if (vp->owner == file->private_data) { in s3c_camif_close()
586 ret = v4l2_fh_release(file); in s3c_camif_close()
592 static __poll_t s3c_camif_poll(struct file *file, in s3c_camif_poll() argument
595 struct camif_vp *vp = video_drvdata(file); in s3c_camif_poll()
600 if (vp->owner && vp->owner != file->private_data) in s3c_camif_poll()
603 ret = vb2_poll(&vp->vb_queue, file, wait); in s3c_camif_poll()
609 static int s3c_camif_mmap(struct file *file, struct vm_area_struct *vma) in s3c_camif_mmap() argument
611 struct camif_vp *vp = video_drvdata(file); in s3c_camif_mmap()
614 if (vp->owner && vp->owner != file->private_data) in s3c_camif_mmap()
635 static int s3c_camif_vidioc_querycap(struct file *file, void *priv, in s3c_camif_vidioc_querycap() argument
638 struct camif_vp *vp = video_drvdata(file); in s3c_camif_vidioc_querycap()
647 static int s3c_camif_vidioc_enum_input(struct file *file, void *priv, in s3c_camif_vidioc_enum_input() argument
650 struct camif_vp *vp = video_drvdata(file); in s3c_camif_vidioc_enum_input()
661 static int s3c_camif_vidioc_s_input(struct file *file, void *priv, in s3c_camif_vidioc_s_input() argument
667 static int s3c_camif_vidioc_g_input(struct file *file, void *priv, in s3c_camif_vidioc_g_input() argument
674 static int s3c_camif_vidioc_enum_fmt(struct file *file, void *priv, in s3c_camif_vidioc_enum_fmt() argument
677 struct camif_vp *vp = video_drvdata(file); in s3c_camif_vidioc_enum_fmt()
688 static int s3c_camif_vidioc_g_fmt(struct file *file, void *priv, in s3c_camif_vidioc_g_fmt() argument
691 struct camif_vp *vp = video_drvdata(file); in s3c_camif_vidioc_g_fmt()
759 static int s3c_camif_vidioc_try_fmt(struct file *file, void *priv, in s3c_camif_vidioc_try_fmt() argument
762 struct camif_vp *vp = video_drvdata(file); in s3c_camif_vidioc_try_fmt()
766 static int s3c_camif_vidioc_s_fmt(struct file *file, void *priv, in s3c_camif_vidioc_s_fmt() argument
770 struct camif_vp *vp = video_drvdata(file); in s3c_camif_vidioc_s_fmt()
832 static int s3c_camif_streamon(struct file *file, void *priv, in s3c_camif_streamon() argument
835 struct camif_vp *vp = video_drvdata(file); in s3c_camif_streamon()
864 static int s3c_camif_streamoff(struct file *file, void *priv, in s3c_camif_streamoff() argument
867 struct camif_vp *vp = video_drvdata(file); in s3c_camif_streamoff()
885 static int s3c_camif_reqbufs(struct file *file, void *priv, in s3c_camif_reqbufs() argument
888 struct camif_vp *vp = video_drvdata(file); in s3c_camif_reqbufs()
919 static int s3c_camif_querybuf(struct file *file, void *priv, in s3c_camif_querybuf() argument
922 struct camif_vp *vp = video_drvdata(file); in s3c_camif_querybuf()
926 static int s3c_camif_qbuf(struct file *file, void *priv, in s3c_camif_qbuf() argument
929 struct camif_vp *vp = video_drvdata(file); in s3c_camif_qbuf()
939 static int s3c_camif_dqbuf(struct file *file, void *priv, in s3c_camif_dqbuf() argument
942 struct camif_vp *vp = video_drvdata(file); in s3c_camif_dqbuf()
949 return vb2_dqbuf(&vp->vb_queue, buf, file->f_flags & O_NONBLOCK); in s3c_camif_dqbuf()
952 static int s3c_camif_create_bufs(struct file *file, void *priv, in s3c_camif_create_bufs() argument
955 struct camif_vp *vp = video_drvdata(file); in s3c_camif_create_bufs()
970 static int s3c_camif_prepare_buf(struct file *file, void *priv, in s3c_camif_prepare_buf() argument
973 struct camif_vp *vp = video_drvdata(file); in s3c_camif_prepare_buf()
977 static int s3c_camif_g_selection(struct file *file, void *priv, in s3c_camif_g_selection() argument
980 struct camif_vp *vp = video_drvdata(file); in s3c_camif_g_selection()
1014 static int s3c_camif_s_selection(struct file *file, void *priv, in s3c_camif_s_selection() argument
1017 struct camif_vp *vp = video_drvdata(file); in s3c_camif_s_selection()