Lines Matching refs:filp
493 ssize_t ivtv_v4l2_read(struct file * filp, char __user *buf, size_t count, loff_t * pos)
495 struct ivtv_open_id *id = fh2id(filp->private_data);
506 rc = ivtv_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK);
536 static ssize_t ivtv_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos)
538 struct ivtv_open_id *id = fh2id(filp->private_data);
619 if (filp->f_flags & O_NONBLOCK)
702 if (count && !(filp->f_flags & O_NONBLOCK))
708 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos)
710 struct ivtv_open_id *id = fh2id(filp->private_data);
716 res = ivtv_write(filp, user_buf, count, pos);
721 __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait)
723 struct ivtv_open_id *id = fh2id(filp->private_data);
734 poll_wait(filp, &id->fh.wait, wait);
742 poll_wait(filp, &s->waitq, wait);
755 __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table *wait)
758 struct ivtv_open_id *id = fh2id(filp->private_data);
783 poll_wait(filp, &s->waitq, wait);
787 poll_wait(filp, &id->fh.wait, wait);
866 int ivtv_v4l2_close(struct file *filp)
868 struct v4l2_fh *fh = filp->private_data;
879 v4l2_fh_is_singular_file(filp)) {
931 static int ivtv_open(struct file *filp)
933 struct video_device *vdev = video_devdata(filp);
990 filp->private_data = &item->fh;
994 v4l2_fh_is_singular_file(filp)) {
1034 int ivtv_v4l2_open(struct file *filp)
1036 struct video_device *vdev = video_devdata(filp);
1041 res = ivtv_open(filp);