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
322 static int soc_camera_g_input(struct file *file, void *priv, unsigned int *i) in soc_camera_g_input() argument
329 static int soc_camera_s_input(struct file *file, void *priv, unsigned int i) in soc_camera_s_input() argument
337 static int soc_camera_s_std(struct file *file, void *priv, v4l2_std_id a) in soc_camera_s_std() argument
339 struct soc_camera_device *icd = file->private_data; in soc_camera_s_std()
345 static int soc_camera_g_std(struct file *file, void *priv, v4l2_std_id *a) in soc_camera_g_std() argument
347 struct soc_camera_device *icd = file->private_data; in soc_camera_g_std()
353 static int soc_camera_enum_framesizes(struct file *file, void *fh, in soc_camera_enum_framesizes() argument
356 struct soc_camera_device *icd = file->private_data; in soc_camera_enum_framesizes()
362 static int soc_camera_reqbufs(struct file *file, void *priv, in soc_camera_reqbufs() argument
366 struct soc_camera_device *icd = file->private_data; in soc_camera_reqbufs()
369 WARN_ON(priv != file->private_data); in soc_camera_reqbufs()
371 if (icd->streamer && icd->streamer != file) in soc_camera_reqbufs()
385 icd->streamer = file; in soc_camera_reqbufs()
390 static int soc_camera_querybuf(struct file *file, void *priv, in soc_camera_querybuf() argument
393 struct soc_camera_device *icd = file->private_data; in soc_camera_querybuf()
396 WARN_ON(priv != file->private_data); in soc_camera_querybuf()
404 static int soc_camera_qbuf(struct file *file, void *priv, in soc_camera_qbuf() argument
407 struct soc_camera_device *icd = file->private_data; in soc_camera_qbuf()
410 WARN_ON(priv != file->private_data); in soc_camera_qbuf()
412 if (icd->streamer != file) in soc_camera_qbuf()
421 static int soc_camera_dqbuf(struct file *file, void *priv, in soc_camera_dqbuf() argument
424 struct soc_camera_device *icd = file->private_data; in soc_camera_dqbuf()
427 WARN_ON(priv != file->private_data); in soc_camera_dqbuf()
429 if (icd->streamer != file) in soc_camera_dqbuf()
433 return videobuf_dqbuf(&icd->vb_vidq, p, file->f_flags & O_NONBLOCK); in soc_camera_dqbuf()
435 return vb2_dqbuf(&icd->vb2_vidq, p, file->f_flags & O_NONBLOCK); in soc_camera_dqbuf()
438 static int soc_camera_create_bufs(struct file *file, void *priv, in soc_camera_create_bufs() argument
441 struct soc_camera_device *icd = file->private_data; in soc_camera_create_bufs()
451 static int soc_camera_prepare_buf(struct file *file, void *priv, in soc_camera_prepare_buf() argument
454 struct soc_camera_device *icd = file->private_data; in soc_camera_prepare_buf()
464 static int soc_camera_expbuf(struct file *file, void *priv, in soc_camera_expbuf() argument
467 struct soc_camera_device *icd = file->private_data; in soc_camera_expbuf()
470 if (icd->streamer != file) in soc_camera_expbuf()
646 static int soc_camera_open(struct file *file) in soc_camera_open() argument
648 struct video_device *vdev = video_devdata(file); in soc_camera_open()
746 file->private_data = icd; in soc_camera_open()
772 static int soc_camera_close(struct file *file) in soc_camera_close() argument
774 struct soc_camera_device *icd = file->private_data; in soc_camera_close()
790 if (icd->streamer == file) in soc_camera_close()
801 static ssize_t soc_camera_read(struct file *file, char __user *buf, in soc_camera_read() argument
804 struct soc_camera_device *icd = file->private_data; in soc_camera_read()
811 file->f_flags & O_NONBLOCK); in soc_camera_read()
818 static int soc_camera_mmap(struct file *file, struct vm_area_struct *vma) in soc_camera_mmap() argument
820 struct soc_camera_device *icd = file->private_data; in soc_camera_mmap()
826 if (icd->streamer != file) in soc_camera_mmap()
845 static unsigned int soc_camera_poll(struct file *file, poll_table *pt) in soc_camera_poll() argument
847 struct soc_camera_device *icd = file->private_data; in soc_camera_poll()
851 if (icd->streamer != file) in soc_camera_poll()
858 res = ici->ops->poll(file, pt); in soc_camera_poll()
873 static int soc_camera_s_fmt_vid_cap(struct file *file, void *priv, in soc_camera_s_fmt_vid_cap() argument
876 struct soc_camera_device *icd = file->private_data; in soc_camera_s_fmt_vid_cap()
879 WARN_ON(priv != file->private_data); in soc_camera_s_fmt_vid_cap()
886 if (icd->streamer && icd->streamer != file) in soc_camera_s_fmt_vid_cap()
897 icd->streamer = file; in soc_camera_s_fmt_vid_cap()
902 static int soc_camera_enum_fmt_vid_cap(struct file *file, void *priv, in soc_camera_enum_fmt_vid_cap() argument
905 struct soc_camera_device *icd = file->private_data; in soc_camera_enum_fmt_vid_cap()
908 WARN_ON(priv != file->private_data); in soc_camera_enum_fmt_vid_cap()
921 static int soc_camera_g_fmt_vid_cap(struct file *file, void *priv, in soc_camera_g_fmt_vid_cap() argument
924 struct soc_camera_device *icd = file->private_data; in soc_camera_g_fmt_vid_cap()
927 WARN_ON(priv != file->private_data); in soc_camera_g_fmt_vid_cap()
944 static int soc_camera_querycap(struct file *file, void *priv, in soc_camera_querycap() argument
947 struct soc_camera_device *icd = file->private_data; in soc_camera_querycap()
950 WARN_ON(priv != file->private_data); in soc_camera_querycap()
956 static int soc_camera_streamon(struct file *file, void *priv, in soc_camera_streamon() argument
959 struct soc_camera_device *icd = file->private_data; in soc_camera_streamon()
964 WARN_ON(priv != file->private_data); in soc_camera_streamon()
969 if (icd->streamer != file) in soc_camera_streamon()
984 static int soc_camera_streamoff(struct file *file, void *priv, in soc_camera_streamoff() argument
987 struct soc_camera_device *icd = file->private_data; in soc_camera_streamoff()
991 WARN_ON(priv != file->private_data); in soc_camera_streamoff()
996 if (icd->streamer != file) in soc_camera_streamoff()
1013 static int soc_camera_cropcap(struct file *file, void *fh, in soc_camera_cropcap() argument
1016 struct soc_camera_device *icd = file->private_data; in soc_camera_cropcap()
1022 static int soc_camera_g_crop(struct file *file, void *fh, in soc_camera_g_crop() argument
1025 struct soc_camera_device *icd = file->private_data; in soc_camera_g_crop()
1039 static int soc_camera_s_crop(struct file *file, void *fh, in soc_camera_s_crop() argument
1042 struct soc_camera_device *icd = file->private_data; in soc_camera_s_crop()
1079 static int soc_camera_g_selection(struct file *file, void *fh, in soc_camera_g_selection() argument
1082 struct soc_camera_device *icd = file->private_data; in soc_camera_g_selection()
1095 static int soc_camera_s_selection(struct file *file, void *fh, in soc_camera_s_selection() argument
1098 struct soc_camera_device *icd = file->private_data; in soc_camera_s_selection()
1119 if (icd->streamer && icd->streamer != file) in soc_camera_s_selection()
1132 icd->streamer = file; in soc_camera_s_selection()
1138 static int soc_camera_g_parm(struct file *file, void *fh, in soc_camera_g_parm() argument
1141 struct soc_camera_device *icd = file->private_data; in soc_camera_g_parm()
1150 static int soc_camera_s_parm(struct file *file, void *fh, in soc_camera_s_parm() argument
1153 struct soc_camera_device *icd = file->private_data; in soc_camera_s_parm()