Lines Matching refs:file
294 static int soc_camera_try_fmt_vid_cap(struct file *file, void *priv, in soc_camera_try_fmt_vid_cap() argument
297 struct soc_camera_device *icd = file->private_data; in soc_camera_try_fmt_vid_cap()
299 WARN_ON(priv != file->private_data); in soc_camera_try_fmt_vid_cap()
309 static int soc_camera_enum_input(struct file *file, void *priv, in soc_camera_enum_input() argument
312 struct soc_camera_device *icd = file->private_data; in soc_camera_enum_input()
325 static int soc_camera_g_input(struct file *file, void *priv, unsigned int *i) in soc_camera_g_input() argument
332 static int soc_camera_s_input(struct file *file, void *priv, unsigned int i) in soc_camera_s_input() argument
340 static int soc_camera_s_std(struct file *file, void *priv, v4l2_std_id a) in soc_camera_s_std() argument
342 struct soc_camera_device *icd = file->private_data; in soc_camera_s_std()
348 static int soc_camera_g_std(struct file *file, void *priv, v4l2_std_id *a) in soc_camera_g_std() argument
350 struct soc_camera_device *icd = file->private_data; in soc_camera_g_std()
356 static int soc_camera_enum_framesizes(struct file *file, void *fh, in soc_camera_enum_framesizes() argument
359 struct soc_camera_device *icd = file->private_data; in soc_camera_enum_framesizes()
365 static int soc_camera_reqbufs(struct file *file, void *priv, in soc_camera_reqbufs() argument
369 struct soc_camera_device *icd = file->private_data; in soc_camera_reqbufs()
372 WARN_ON(priv != file->private_data); in soc_camera_reqbufs()
374 if (icd->streamer && icd->streamer != file) in soc_camera_reqbufs()
388 icd->streamer = p->count ? file : NULL; in soc_camera_reqbufs()
392 static int soc_camera_querybuf(struct file *file, void *priv, in soc_camera_querybuf() argument
395 struct soc_camera_device *icd = file->private_data; in soc_camera_querybuf()
398 WARN_ON(priv != file->private_data); in soc_camera_querybuf()
406 static int soc_camera_qbuf(struct file *file, void *priv, in soc_camera_qbuf() argument
409 struct soc_camera_device *icd = file->private_data; in soc_camera_qbuf()
412 WARN_ON(priv != file->private_data); in soc_camera_qbuf()
414 if (icd->streamer != file) in soc_camera_qbuf()
423 static int soc_camera_dqbuf(struct file *file, void *priv, in soc_camera_dqbuf() argument
426 struct soc_camera_device *icd = file->private_data; in soc_camera_dqbuf()
429 WARN_ON(priv != file->private_data); in soc_camera_dqbuf()
431 if (icd->streamer != file) in soc_camera_dqbuf()
435 return videobuf_dqbuf(&icd->vb_vidq, p, file->f_flags & O_NONBLOCK); in soc_camera_dqbuf()
437 return vb2_dqbuf(&icd->vb2_vidq, p, file->f_flags & O_NONBLOCK); in soc_camera_dqbuf()
440 static int soc_camera_create_bufs(struct file *file, void *priv, in soc_camera_create_bufs() argument
443 struct soc_camera_device *icd = file->private_data; in soc_camera_create_bufs()
451 if (icd->streamer && icd->streamer != file) in soc_camera_create_bufs()
456 icd->streamer = file; in soc_camera_create_bufs()
460 static int soc_camera_prepare_buf(struct file *file, void *priv, in soc_camera_prepare_buf() argument
463 struct soc_camera_device *icd = file->private_data; in soc_camera_prepare_buf()
473 static int soc_camera_expbuf(struct file *file, void *priv, in soc_camera_expbuf() argument
476 struct soc_camera_device *icd = file->private_data; in soc_camera_expbuf()
483 if (icd->streamer && icd->streamer != file) in soc_camera_expbuf()
659 static int soc_camera_open(struct file *file) in soc_camera_open() argument
661 struct video_device *vdev = video_devdata(file); in soc_camera_open()
759 file->private_data = icd; in soc_camera_open()
785 static int soc_camera_close(struct file *file) in soc_camera_close() argument
787 struct soc_camera_device *icd = file->private_data; in soc_camera_close()
791 if (icd->streamer == file) { in soc_camera_close()
815 static ssize_t soc_camera_read(struct file *file, char __user *buf, in soc_camera_read() argument
818 struct soc_camera_device *icd = file->private_data; in soc_camera_read()
825 file->f_flags & O_NONBLOCK); in soc_camera_read()
832 static int soc_camera_mmap(struct file *file, struct vm_area_struct *vma) in soc_camera_mmap() argument
834 struct soc_camera_device *icd = file->private_data; in soc_camera_mmap()
840 if (icd->streamer != file) in soc_camera_mmap()
859 static unsigned int soc_camera_poll(struct file *file, poll_table *pt) in soc_camera_poll() argument
861 struct soc_camera_device *icd = file->private_data; in soc_camera_poll()
865 if (icd->streamer != file) in soc_camera_poll()
872 res = ici->ops->poll(file, pt); in soc_camera_poll()
887 static int soc_camera_s_fmt_vid_cap(struct file *file, void *priv, in soc_camera_s_fmt_vid_cap() argument
890 struct soc_camera_device *icd = file->private_data; in soc_camera_s_fmt_vid_cap()
893 WARN_ON(priv != file->private_data); in soc_camera_s_fmt_vid_cap()
900 if (icd->streamer && icd->streamer != file) in soc_camera_s_fmt_vid_cap()
911 icd->streamer = file; in soc_camera_s_fmt_vid_cap()
916 static int soc_camera_enum_fmt_vid_cap(struct file *file, void *priv, in soc_camera_enum_fmt_vid_cap() argument
919 struct soc_camera_device *icd = file->private_data; in soc_camera_enum_fmt_vid_cap()
922 WARN_ON(priv != file->private_data); in soc_camera_enum_fmt_vid_cap()
935 static int soc_camera_g_fmt_vid_cap(struct file *file, void *priv, in soc_camera_g_fmt_vid_cap() argument
938 struct soc_camera_device *icd = file->private_data; in soc_camera_g_fmt_vid_cap()
941 WARN_ON(priv != file->private_data); in soc_camera_g_fmt_vid_cap()
958 static int soc_camera_querycap(struct file *file, void *priv, in soc_camera_querycap() argument
961 struct soc_camera_device *icd = file->private_data; in soc_camera_querycap()
964 WARN_ON(priv != file->private_data); in soc_camera_querycap()
970 static int soc_camera_streamon(struct file *file, void *priv, in soc_camera_streamon() argument
973 struct soc_camera_device *icd = file->private_data; in soc_camera_streamon()
978 WARN_ON(priv != file->private_data); in soc_camera_streamon()
983 if (icd->streamer != file) in soc_camera_streamon()
998 static int soc_camera_streamoff(struct file *file, void *priv, in soc_camera_streamoff() argument
1001 struct soc_camera_device *icd = file->private_data; in soc_camera_streamoff()
1006 WARN_ON(priv != file->private_data); in soc_camera_streamoff()
1011 if (icd->streamer != file) in soc_camera_streamoff()
1028 static int soc_camera_cropcap(struct file *file, void *fh, in soc_camera_cropcap() argument
1031 struct soc_camera_device *icd = file->private_data; in soc_camera_cropcap()
1037 static int soc_camera_g_crop(struct file *file, void *fh, in soc_camera_g_crop() argument
1040 struct soc_camera_device *icd = file->private_data; in soc_camera_g_crop()
1054 static int soc_camera_s_crop(struct file *file, void *fh, in soc_camera_s_crop() argument
1057 struct soc_camera_device *icd = file->private_data; in soc_camera_s_crop()
1094 static int soc_camera_g_selection(struct file *file, void *fh, in soc_camera_g_selection() argument
1097 struct soc_camera_device *icd = file->private_data; in soc_camera_g_selection()
1110 static int soc_camera_s_selection(struct file *file, void *fh, in soc_camera_s_selection() argument
1113 struct soc_camera_device *icd = file->private_data; in soc_camera_s_selection()
1134 if (icd->streamer && icd->streamer != file) in soc_camera_s_selection()
1147 icd->streamer = file; in soc_camera_s_selection()
1153 static int soc_camera_g_parm(struct file *file, void *fh, in soc_camera_g_parm() argument
1156 struct soc_camera_device *icd = file->private_data; in soc_camera_g_parm()
1165 static int soc_camera_s_parm(struct file *file, void *fh, in soc_camera_s_parm() argument
1168 struct soc_camera_device *icd = file->private_data; in soc_camera_s_parm()