Lines Matching refs:filp

505 ssize_t ivtv_v4l2_read(struct file * filp, char __user *buf, size_t count, loff_t * pos)  in ivtv_v4l2_read()  argument
507 struct ivtv_open_id *id = fh2id(filp->private_data); in ivtv_v4l2_read()
518 rc = ivtv_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK); in ivtv_v4l2_read()
548 static ssize_t ivtv_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) in ivtv_write() argument
550 struct ivtv_open_id *id = fh2id(filp->private_data); in ivtv_write()
631 if (filp->f_flags & O_NONBLOCK) in ivtv_write()
714 if (count && !(filp->f_flags & O_NONBLOCK)) in ivtv_write()
720 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) in ivtv_v4l2_write() argument
722 struct ivtv_open_id *id = fh2id(filp->private_data); in ivtv_v4l2_write()
728 res = ivtv_write(filp, user_buf, count, pos); in ivtv_v4l2_write()
733 unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait) in ivtv_v4l2_dec_poll() argument
735 struct ivtv_open_id *id = fh2id(filp->private_data); in ivtv_v4l2_dec_poll()
746 poll_wait(filp, &id->fh.wait, wait); in ivtv_v4l2_dec_poll()
754 poll_wait(filp, &s->waitq, wait); in ivtv_v4l2_dec_poll()
767 unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table *wait) in ivtv_v4l2_enc_poll() argument
770 struct ivtv_open_id *id = fh2id(filp->private_data); in ivtv_v4l2_enc_poll()
795 poll_wait(filp, &s->waitq, wait); in ivtv_v4l2_enc_poll()
799 poll_wait(filp, &id->fh.wait, wait); in ivtv_v4l2_enc_poll()
878 int ivtv_v4l2_close(struct file *filp) in ivtv_v4l2_close() argument
880 struct v4l2_fh *fh = filp->private_data; in ivtv_v4l2_close()
891 v4l2_fh_is_singular_file(filp)) { in ivtv_v4l2_close()
943 static int ivtv_open(struct file *filp) argument
945 struct video_device *vdev = video_devdata(filp);
1002 filp->private_data = &item->fh;
1006 v4l2_fh_is_singular_file(filp)) {
1046 int ivtv_v4l2_open(struct file *filp) argument
1048 struct video_device *vdev = video_devdata(filp);
1053 res = ivtv_open(filp);