• Home
  • Raw
  • Download

Lines Matching refs:file

673 unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait)  in vb2_poll()  argument
675 struct video_device *vfd = video_devdata(file); in vb2_poll()
680 struct v4l2_fh *fh = file->private_data; in vb2_poll()
685 poll_wait(file, &fh->wait, wait); in vb2_poll()
688 return res | vb2_core_poll(q, file, wait); in vb2_poll()
701 static inline bool vb2_queue_is_busy(struct video_device *vdev, struct file *file) in vb2_queue_is_busy() argument
703 return vdev->queue->owner && vdev->queue->owner != file->private_data; in vb2_queue_is_busy()
708 int vb2_ioctl_reqbufs(struct file *file, void *priv, in vb2_ioctl_reqbufs() argument
711 struct video_device *vdev = video_devdata(file); in vb2_ioctl_reqbufs()
716 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_reqbufs()
722 vdev->queue->owner = p->count ? file->private_data : NULL; in vb2_ioctl_reqbufs()
727 int vb2_ioctl_create_bufs(struct file *file, void *priv, in vb2_ioctl_create_bufs() argument
730 struct video_device *vdev = video_devdata(file); in vb2_ioctl_create_bufs()
743 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_create_bufs()
748 vdev->queue->owner = file->private_data; in vb2_ioctl_create_bufs()
753 int vb2_ioctl_prepare_buf(struct file *file, void *priv, in vb2_ioctl_prepare_buf() argument
756 struct video_device *vdev = video_devdata(file); in vb2_ioctl_prepare_buf()
758 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_prepare_buf()
764 int vb2_ioctl_querybuf(struct file *file, void *priv, struct v4l2_buffer *p) in vb2_ioctl_querybuf() argument
766 struct video_device *vdev = video_devdata(file); in vb2_ioctl_querybuf()
773 int vb2_ioctl_qbuf(struct file *file, void *priv, struct v4l2_buffer *p) in vb2_ioctl_qbuf() argument
775 struct video_device *vdev = video_devdata(file); in vb2_ioctl_qbuf()
777 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_qbuf()
783 int vb2_ioctl_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p) in vb2_ioctl_dqbuf() argument
785 struct video_device *vdev = video_devdata(file); in vb2_ioctl_dqbuf()
787 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_dqbuf()
789 return vb2_dqbuf(vdev->queue, p, file->f_flags & O_NONBLOCK); in vb2_ioctl_dqbuf()
793 int vb2_ioctl_streamon(struct file *file, void *priv, enum v4l2_buf_type i) in vb2_ioctl_streamon() argument
795 struct video_device *vdev = video_devdata(file); in vb2_ioctl_streamon()
797 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_streamon()
803 int vb2_ioctl_streamoff(struct file *file, void *priv, enum v4l2_buf_type i) in vb2_ioctl_streamoff() argument
805 struct video_device *vdev = video_devdata(file); in vb2_ioctl_streamoff()
807 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_streamoff()
813 int vb2_ioctl_expbuf(struct file *file, void *priv, struct v4l2_exportbuffer *p) in vb2_ioctl_expbuf() argument
815 struct video_device *vdev = video_devdata(file); in vb2_ioctl_expbuf()
817 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_expbuf()
825 int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma) in vb2_fop_mmap() argument
827 struct video_device *vdev = video_devdata(file); in vb2_fop_mmap()
833 int _vb2_fop_release(struct file *file, struct mutex *lock) in _vb2_fop_release() argument
835 struct video_device *vdev = video_devdata(file); in _vb2_fop_release()
839 if (file->private_data == vdev->queue->owner) { in _vb2_fop_release()
845 return v4l2_fh_release(file); in _vb2_fop_release()
849 int vb2_fop_release(struct file *file) in vb2_fop_release() argument
851 struct video_device *vdev = video_devdata(file); in vb2_fop_release()
854 return _vb2_fop_release(file, lock); in vb2_fop_release()
858 ssize_t vb2_fop_write(struct file *file, const char __user *buf, in vb2_fop_write() argument
861 struct video_device *vdev = video_devdata(file); in vb2_fop_write()
869 if (vb2_queue_is_busy(vdev, file)) in vb2_fop_write()
872 file->f_flags & O_NONBLOCK); in vb2_fop_write()
874 vdev->queue->owner = file->private_data; in vb2_fop_write()
882 ssize_t vb2_fop_read(struct file *file, char __user *buf, in vb2_fop_read() argument
885 struct video_device *vdev = video_devdata(file); in vb2_fop_read()
893 if (vb2_queue_is_busy(vdev, file)) in vb2_fop_read()
896 file->f_flags & O_NONBLOCK); in vb2_fop_read()
898 vdev->queue->owner = file->private_data; in vb2_fop_read()
906 unsigned int vb2_fop_poll(struct file *file, poll_table *wait) in vb2_fop_poll() argument
908 struct video_device *vdev = video_devdata(file); in vb2_fop_poll()
925 res = vb2_poll(vdev->queue, file, wait); in vb2_fop_poll()
929 q->owner = file->private_data; in vb2_fop_poll()
937 unsigned long vb2_fop_get_unmapped_area(struct file *file, unsigned long addr, in vb2_fop_get_unmapped_area() argument
940 struct video_device *vdev = video_devdata(file); in vb2_fop_get_unmapped_area()