Lines Matching refs:file

727 		dprintk(q, 1, "file io in progress\n");
818 dprintk(q, 1, "file io in progress\n");
843 dprintk(q, 1, "file io in progress\n");
872 dprintk(q, 1, "file io in progress\n");
882 dprintk(q, 1, "file io in progress\n");
975 __poll_t vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait)
977 struct video_device *vfd = video_devdata(file);
980 res = vb2_core_poll(q, file, wait);
983 struct v4l2_fh *fh = file->private_data;
985 poll_wait(file, &fh->wait, wait);
1004 int vb2_ioctl_remove_bufs(struct file *file, void *priv,
1007 struct video_device *vdev = video_devdata(file);
1015 if (vb2_queue_is_busy(vdev->queue, file))
1022 int vb2_ioctl_reqbufs(struct file *file, void *priv,
1025 struct video_device *vdev = video_devdata(file);
1034 if (vb2_queue_is_busy(vdev->queue, file))
1040 vdev->queue->owner = p->count ? file->private_data : NULL;
1045 int vb2_ioctl_create_bufs(struct file *file, void *priv,
1048 struct video_device *vdev = video_devdata(file);
1062 if (vb2_queue_is_busy(vdev->queue, file))
1067 vdev->queue->owner = file->private_data;
1072 int vb2_ioctl_prepare_buf(struct file *file, void *priv,
1075 struct video_device *vdev = video_devdata(file);
1077 if (vb2_queue_is_busy(vdev->queue, file))
1083 int vb2_ioctl_querybuf(struct file *file, void *priv, struct v4l2_buffer *p)
1085 struct video_device *vdev = video_devdata(file);
1092 int vb2_ioctl_qbuf(struct file *file, void *priv, struct v4l2_buffer *p)
1094 struct video_device *vdev = video_devdata(file);
1096 if (vb2_queue_is_busy(vdev->queue, file))
1102 int vb2_ioctl_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p)
1104 struct video_device *vdev = video_devdata(file);
1106 if (vb2_queue_is_busy(vdev->queue, file))
1108 return vb2_dqbuf(vdev->queue, p, file->f_flags & O_NONBLOCK);
1112 int vb2_ioctl_streamon(struct file *file, void *priv, enum v4l2_buf_type i)
1114 struct video_device *vdev = video_devdata(file);
1116 if (vb2_queue_is_busy(vdev->queue, file))
1122 int vb2_ioctl_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
1124 struct video_device *vdev = video_devdata(file);
1126 if (vb2_queue_is_busy(vdev->queue, file))
1132 int vb2_ioctl_expbuf(struct file *file, void *priv, struct v4l2_exportbuffer *p)
1134 struct video_device *vdev = video_devdata(file);
1136 if (vb2_queue_is_busy(vdev->queue, file))
1144 int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma)
1146 struct video_device *vdev = video_devdata(file);
1152 int _vb2_fop_release(struct file *file, struct mutex *lock)
1154 struct video_device *vdev = video_devdata(file);
1158 if (!vdev->queue->owner || file->private_data == vdev->queue->owner) {
1164 return v4l2_fh_release(file);
1168 int vb2_fop_release(struct file *file)
1170 struct video_device *vdev = video_devdata(file);
1173 return _vb2_fop_release(file, lock);
1177 ssize_t vb2_fop_write(struct file *file, const char __user *buf,
1180 struct video_device *vdev = video_devdata(file);
1188 if (vb2_queue_is_busy(vdev->queue, file))
1191 file->f_flags & O_NONBLOCK);
1193 vdev->queue->owner = file->private_data;
1201 ssize_t vb2_fop_read(struct file *file, char __user *buf,
1204 struct video_device *vdev = video_devdata(file);
1212 if (vb2_queue_is_busy(vdev->queue, file))
1214 vdev->queue->owner = file->private_data;
1216 file->f_flags & O_NONBLOCK);
1226 __poll_t vb2_fop_poll(struct file *file, poll_table *wait)
1228 struct video_device *vdev = video_devdata(file);
1245 res = vb2_poll(vdev->queue, file, wait);
1249 q->owner = file->private_data;
1257 unsigned long vb2_fop_get_unmapped_area(struct file *file, unsigned long addr,
1260 struct video_device *vdev = video_devdata(file);