Lines Matching refs:file
928 static int video_open(struct file *file)
930 struct video_device *vdev = video_devdata(file);
931 struct saa7134_dev *dev = video_drvdata(file);
932 int ret = v4l2_fh_open(file);
951 static int video_release(struct file *file)
953 struct video_device *vdev = video_devdata(file);
954 struct saa7134_dev *dev = video_drvdata(file);
961 v4l2_fh_release(file);
963 _vb2_fop_release(file, NULL);
979 static ssize_t radio_read(struct file *file, char __user *data,
982 struct saa7134_dev *dev = video_drvdata(file);
986 cmd.nonblocking = file->f_flags & O_NONBLOCK;
988 cmd.instance = file;
998 static __poll_t radio_poll(struct file *file, poll_table *wait)
1000 struct saa7134_dev *dev = video_drvdata(file);
1002 __poll_t rc = v4l2_ctrl_poll(file, wait);
1004 cmd.instance = file;
1016 static int saa7134_try_get_set_fmt_vbi_cap(struct file *file, void *priv,
1019 struct saa7134_dev *dev = video_drvdata(file);
1036 static int saa7134_g_fmt_vid_cap(struct file *file, void *priv,
1039 struct saa7134_dev *dev = video_drvdata(file);
1056 static int saa7134_try_fmt_vid_cap(struct file *file, void *priv,
1059 struct saa7134_dev *dev = video_drvdata(file);
1109 static int saa7134_s_fmt_vid_cap(struct file *file, void *priv,
1112 struct saa7134_dev *dev = video_drvdata(file);
1115 err = saa7134_try_fmt_vid_cap(file, priv, f);
1126 int saa7134_enum_input(struct file *file, void *priv, struct v4l2_input *i)
1128 struct saa7134_dev *dev = video_drvdata(file);
1164 int saa7134_g_input(struct file *file, void *priv, unsigned int *i)
1166 struct saa7134_dev *dev = video_drvdata(file);
1173 int saa7134_s_input(struct file *file, void *priv, unsigned int i)
1175 struct saa7134_dev *dev = video_drvdata(file);
1186 int saa7134_querycap(struct file *file, void *priv,
1189 struct saa7134_dev *dev = video_drvdata(file);
1206 int saa7134_s_std(struct file *file, void *priv, v4l2_std_id id)
1208 struct saa7134_dev *dev = video_drvdata(file);
1250 int saa7134_g_std(struct file *file, void *priv, v4l2_std_id *id)
1252 struct saa7134_dev *dev = video_drvdata(file);
1280 int saa7134_querystd(struct file *file, void *priv, v4l2_std_id *std)
1282 struct saa7134_dev *dev = video_drvdata(file);
1288 static int saa7134_g_pixelaspect(struct file *file, void *priv,
1291 struct saa7134_dev *dev = video_drvdata(file);
1307 static int saa7134_g_selection(struct file *file, void *f, struct v4l2_selection *sel)
1309 struct saa7134_dev *dev = video_drvdata(file);
1330 static int saa7134_s_selection(struct file *file, void *f, struct v4l2_selection *sel)
1332 struct saa7134_dev *dev = video_drvdata(file);
1363 int saa7134_g_tuner(struct file *file, void *priv,
1366 struct saa7134_dev *dev = video_drvdata(file);
1396 int saa7134_s_tuner(struct file *file, void *priv,
1399 struct saa7134_dev *dev = video_drvdata(file);
1417 int saa7134_g_frequency(struct file *file, void *priv,
1420 struct saa7134_dev *dev = video_drvdata(file);
1431 int saa7134_s_frequency(struct file *file, void *priv,
1434 struct saa7134_dev *dev = video_drvdata(file);
1446 static int saa7134_enum_fmt_vid_cap(struct file *file, void *priv,
1458 static int vidioc_g_register (struct file *file, void *priv,
1461 struct saa7134_dev *dev = video_drvdata(file);
1468 static int vidioc_s_register (struct file *file, void *priv,
1471 struct saa7134_dev *dev = video_drvdata(file);
1478 static int radio_g_tuner(struct file *file, void *priv,
1481 struct saa7134_dev *dev = video_drvdata(file);
1497 static int radio_s_tuner(struct file *file, void *priv,
1500 struct saa7134_dev *dev = video_drvdata(file);