Lines Matching refs:file
158 static int mxr_querycap(struct file *file, void *priv, in mxr_querycap() argument
161 struct mxr_layer *layer = video_drvdata(file); in mxr_querycap()
241 static int mxr_enum_fmt(struct file *file, void *priv, in mxr_enum_fmt() argument
244 struct mxr_layer *layer = video_drvdata(file); in mxr_enum_fmt()
297 static int mxr_g_fmt(struct file *file, void *priv, in mxr_g_fmt() argument
300 struct mxr_layer *layer = video_drvdata(file); in mxr_g_fmt()
315 static int mxr_s_fmt(struct file *file, void *priv, in mxr_s_fmt() argument
318 struct mxr_layer *layer = video_drvdata(file); in mxr_s_fmt()
354 mxr_g_fmt(file, priv, f); in mxr_s_fmt()
359 static int mxr_g_selection(struct file *file, void *fh, in mxr_g_selection() argument
362 struct mxr_layer *layer = video_drvdata(file); in mxr_g_selection()
420 static int mxr_s_selection(struct file *file, void *fh, in mxr_s_selection() argument
423 struct mxr_layer *layer = video_drvdata(file); in mxr_s_selection()
505 static int mxr_enum_dv_timings(struct file *file, void *fh, in mxr_enum_dv_timings() argument
508 struct mxr_layer *layer = video_drvdata(file); in mxr_enum_dv_timings()
522 static int mxr_s_dv_timings(struct file *file, void *fh, in mxr_s_dv_timings() argument
525 struct mxr_layer *layer = video_drvdata(file); in mxr_s_dv_timings()
550 static int mxr_g_dv_timings(struct file *file, void *fh, in mxr_g_dv_timings() argument
553 struct mxr_layer *layer = video_drvdata(file); in mxr_g_dv_timings()
565 static int mxr_dv_timings_cap(struct file *file, void *fh, in mxr_dv_timings_cap() argument
568 struct mxr_layer *layer = video_drvdata(file); in mxr_dv_timings_cap()
582 static int mxr_s_std(struct file *file, void *fh, v4l2_std_id norm) in mxr_s_std() argument
584 struct mxr_layer *layer = video_drvdata(file); in mxr_s_std()
608 static int mxr_g_std(struct file *file, void *fh, v4l2_std_id *norm) in mxr_g_std() argument
610 struct mxr_layer *layer = video_drvdata(file); in mxr_g_std()
622 static int mxr_enum_output(struct file *file, void *fh, struct v4l2_output *a) in mxr_enum_output() argument
624 struct mxr_layer *layer = video_drvdata(file); in mxr_enum_output()
648 static int mxr_s_output(struct file *file, void *fh, unsigned int i) in mxr_s_output() argument
650 struct video_device *vfd = video_devdata(file); in mxr_s_output()
651 struct mxr_layer *layer = video_drvdata(file); in mxr_s_output()
676 static int mxr_g_output(struct file *file, void *fh, unsigned int *p) in mxr_g_output() argument
678 struct mxr_layer *layer = video_drvdata(file); in mxr_g_output()
688 static int mxr_reqbufs(struct file *file, void *priv, in mxr_reqbufs() argument
691 struct mxr_layer *layer = video_drvdata(file); in mxr_reqbufs()
697 static int mxr_querybuf(struct file *file, void *priv, struct v4l2_buffer *p) in mxr_querybuf() argument
699 struct mxr_layer *layer = video_drvdata(file); in mxr_querybuf()
705 static int mxr_qbuf(struct file *file, void *priv, struct v4l2_buffer *p) in mxr_qbuf() argument
707 struct mxr_layer *layer = video_drvdata(file); in mxr_qbuf()
713 static int mxr_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p) in mxr_dqbuf() argument
715 struct mxr_layer *layer = video_drvdata(file); in mxr_dqbuf()
718 return vb2_dqbuf(&layer->vb_queue, p, file->f_flags & O_NONBLOCK); in mxr_dqbuf()
721 static int mxr_expbuf(struct file *file, void *priv, in mxr_expbuf() argument
724 struct mxr_layer *layer = video_drvdata(file); in mxr_expbuf()
730 static int mxr_streamon(struct file *file, void *priv, enum v4l2_buf_type i) in mxr_streamon() argument
732 struct mxr_layer *layer = video_drvdata(file); in mxr_streamon()
738 static int mxr_streamoff(struct file *file, void *priv, enum v4l2_buf_type i) in mxr_streamoff() argument
740 struct mxr_layer *layer = video_drvdata(file); in mxr_streamoff()
778 static int mxr_video_open(struct file *file) in mxr_video_open() argument
780 struct mxr_layer *layer = video_drvdata(file); in mxr_video_open()
790 ret = v4l2_fh_open(file); in mxr_video_open()
797 if (!v4l2_fh_is_singular_file(file)) in mxr_video_open()
824 v4l2_fh_release(file); in mxr_video_open()
833 mxr_video_poll(struct file *file, struct poll_table_struct *wait) in mxr_video_poll() argument
835 struct mxr_layer *layer = video_drvdata(file); in mxr_video_poll()
841 res = vb2_poll(&layer->vb_queue, file, wait); in mxr_video_poll()
846 static int mxr_video_mmap(struct file *file, struct vm_area_struct *vma) in mxr_video_mmap() argument
848 struct mxr_layer *layer = video_drvdata(file); in mxr_video_mmap()
860 static int mxr_video_release(struct file *file) in mxr_video_release() argument
862 struct mxr_layer *layer = video_drvdata(file); in mxr_video_release()
866 if (v4l2_fh_is_singular_file(file)) { in mxr_video_release()
870 v4l2_fh_release(file); in mxr_video_release()