Lines Matching refs:file
57 struct file *file; member
141 static int pvr2_querycap(struct file *file, void *priv, struct v4l2_capability *cap) in pvr2_querycap() argument
143 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querycap()
165 static int pvr2_g_std(struct file *file, void *priv, v4l2_std_id *std) in pvr2_g_std() argument
167 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_std()
178 static int pvr2_s_std(struct file *file, void *priv, v4l2_std_id std) in pvr2_s_std() argument
180 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_std()
187 static int pvr2_querystd(struct file *file, void *priv, v4l2_std_id *std) in pvr2_querystd() argument
189 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querystd()
200 static int pvr2_enum_input(struct file *file, void *priv, struct v4l2_input *vi) in pvr2_enum_input() argument
202 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_enum_input()
248 static int pvr2_g_input(struct file *file, void *priv, unsigned int *i) in pvr2_g_input() argument
250 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_input()
270 static int pvr2_s_input(struct file *file, void *priv, unsigned int inp) in pvr2_s_input() argument
272 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_input()
282 static int pvr2_enumaudio(struct file *file, void *priv, struct v4l2_audio *vin) in pvr2_enumaudio() argument
306 static int pvr2_g_audio(struct file *file, void *priv, struct v4l2_audio *vin) in pvr2_g_audio() argument
315 static int pvr2_s_audio(struct file *file, void *priv, const struct v4l2_audio *vout) in pvr2_s_audio() argument
322 static int pvr2_g_tuner(struct file *file, void *priv, struct v4l2_tuner *vt) in pvr2_g_tuner() argument
324 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_tuner()
334 static int pvr2_s_tuner(struct file *file, void *priv, const struct v4l2_tuner *vt) in pvr2_s_tuner() argument
336 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_tuner()
347 static int pvr2_s_frequency(struct file *file, void *priv, const struct v4l2_frequency *vf) in pvr2_s_frequency() argument
349 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_frequency()
380 static int pvr2_g_frequency(struct file *file, void *priv, struct v4l2_frequency *vf) in pvr2_g_frequency() argument
382 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_frequency()
412 static int pvr2_enum_fmt_vid_cap(struct file *file, void *priv, struct v4l2_fmtdesc *fd) in pvr2_enum_fmt_vid_cap() argument
422 static int pvr2_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *vf) in pvr2_g_fmt_vid_cap() argument
424 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_fmt_vid_cap()
442 static int pvr2_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *vf) in pvr2_try_fmt_vid_cap() argument
444 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_try_fmt_vid_cap()
480 static int pvr2_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *vf) in pvr2_s_fmt_vid_cap() argument
482 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_fmt_vid_cap()
485 int ret = pvr2_try_fmt_vid_cap(file, fh, vf); in pvr2_s_fmt_vid_cap()
496 static int pvr2_streamon(struct file *file, void *priv, enum v4l2_buf_type i) in pvr2_streamon() argument
498 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_streamon()
515 static int pvr2_streamoff(struct file *file, void *priv, enum v4l2_buf_type i) in pvr2_streamoff() argument
517 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_streamoff()
529 static int pvr2_queryctrl(struct file *file, void *priv, in pvr2_queryctrl() argument
532 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_queryctrl()
588 static int pvr2_querymenu(struct file *file, void *priv, struct v4l2_querymenu *vm) in pvr2_querymenu() argument
590 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querymenu()
603 static int pvr2_g_ctrl(struct file *file, void *priv, struct v4l2_control *vc) in pvr2_g_ctrl() argument
605 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_ctrl()
616 static int pvr2_s_ctrl(struct file *file, void *priv, struct v4l2_control *vc) in pvr2_s_ctrl() argument
618 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_ctrl()
625 static int pvr2_g_ext_ctrls(struct file *file, void *priv, in pvr2_g_ext_ctrls() argument
628 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_ext_ctrls()
652 static int pvr2_s_ext_ctrls(struct file *file, void *priv, in pvr2_s_ext_ctrls() argument
655 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_ext_ctrls()
675 static int pvr2_try_ext_ctrls(struct file *file, void *priv, in pvr2_try_ext_ctrls() argument
678 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_try_ext_ctrls()
697 static int pvr2_cropcap(struct file *file, void *priv, struct v4l2_cropcap *cap) in pvr2_cropcap() argument
699 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_cropcap()
710 static int pvr2_g_crop(struct file *file, void *priv, struct v4l2_crop *crop) in pvr2_g_crop() argument
712 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_crop()
742 static int pvr2_s_crop(struct file *file, void *priv, const struct v4l2_crop *crop) in pvr2_s_crop() argument
744 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_crop()
773 static int pvr2_log_status(struct file *file, void *priv) in pvr2_log_status() argument
775 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_log_status()
895 static long pvr2_v4l2_ioctl(struct file *file, in pvr2_v4l2_ioctl() argument
899 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_v4l2_ioctl()
912 ret = video_ioctl2(file, cmd, arg); in pvr2_v4l2_ioctl()
933 static int pvr2_v4l2_release(struct file *file) in pvr2_v4l2_release() argument
935 struct pvr2_v4l2_fh *fhp = file->private_data; in pvr2_v4l2_release()
952 file->private_data = NULL; in pvr2_v4l2_release()
971 static int pvr2_v4l2_open(struct file *file) in pvr2_v4l2_open() argument
981 dip = container_of(video_devdata(file),struct pvr2_v4l2_dev,devbase); in pvr2_v4l2_open()
1050 fhp->file = file; in pvr2_v4l2_open()
1051 file->private_data = fhp; in pvr2_v4l2_open()
1101 static ssize_t pvr2_v4l2_read(struct file *file, in pvr2_v4l2_read() argument
1104 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_v4l2_read()
1151 if (file->f_flags & O_NONBLOCK) break; in pvr2_v4l2_read()
1163 static unsigned int pvr2_v4l2_poll(struct file *file, poll_table *wait) in pvr2_v4l2_poll() argument
1166 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_v4l2_poll()
1179 poll_wait(file,&fh->wait_data,wait); in pvr2_v4l2_poll()