Lines Matching refs:file
768 unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait) in vb2_poll() argument
770 struct video_device *vfd = video_devdata(file); in vb2_poll()
777 struct v4l2_fh *fh = file->private_data; in vb2_poll()
782 poll_wait(file, &fh->wait, wait); in vb2_poll()
839 poll_wait(file, &q->done_wq, wait); in vb2_poll()
1399 static inline bool vb2_queue_is_busy(struct video_device *vdev, struct file *file) in vb2_queue_is_busy() argument
1401 return vdev->queue->owner && vdev->queue->owner != file->private_data; in vb2_queue_is_busy()
1406 int vb2_ioctl_reqbufs(struct file *file, void *priv, in vb2_ioctl_reqbufs() argument
1409 struct video_device *vdev = video_devdata(file); in vb2_ioctl_reqbufs()
1414 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_reqbufs()
1420 vdev->queue->owner = p->count ? file->private_data : NULL; in vb2_ioctl_reqbufs()
1425 int vb2_ioctl_create_bufs(struct file *file, void *priv, in vb2_ioctl_create_bufs() argument
1428 struct video_device *vdev = video_devdata(file); in vb2_ioctl_create_bufs()
1441 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_create_bufs()
1446 vdev->queue->owner = file->private_data; in vb2_ioctl_create_bufs()
1451 int vb2_ioctl_prepare_buf(struct file *file, void *priv, in vb2_ioctl_prepare_buf() argument
1454 struct video_device *vdev = video_devdata(file); in vb2_ioctl_prepare_buf()
1456 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_prepare_buf()
1462 int vb2_ioctl_querybuf(struct file *file, void *priv, struct v4l2_buffer *p) in vb2_ioctl_querybuf() argument
1464 struct video_device *vdev = video_devdata(file); in vb2_ioctl_querybuf()
1471 int vb2_ioctl_qbuf(struct file *file, void *priv, struct v4l2_buffer *p) in vb2_ioctl_qbuf() argument
1473 struct video_device *vdev = video_devdata(file); in vb2_ioctl_qbuf()
1475 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_qbuf()
1481 int vb2_ioctl_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p) in vb2_ioctl_dqbuf() argument
1483 struct video_device *vdev = video_devdata(file); in vb2_ioctl_dqbuf()
1485 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_dqbuf()
1487 return vb2_dqbuf(vdev->queue, p, file->f_flags & O_NONBLOCK); in vb2_ioctl_dqbuf()
1491 int vb2_ioctl_streamon(struct file *file, void *priv, enum v4l2_buf_type i) in vb2_ioctl_streamon() argument
1493 struct video_device *vdev = video_devdata(file); in vb2_ioctl_streamon()
1495 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_streamon()
1501 int vb2_ioctl_streamoff(struct file *file, void *priv, enum v4l2_buf_type i) in vb2_ioctl_streamoff() argument
1503 struct video_device *vdev = video_devdata(file); in vb2_ioctl_streamoff()
1505 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_streamoff()
1511 int vb2_ioctl_expbuf(struct file *file, void *priv, struct v4l2_exportbuffer *p) in vb2_ioctl_expbuf() argument
1513 struct video_device *vdev = video_devdata(file); in vb2_ioctl_expbuf()
1515 if (vb2_queue_is_busy(vdev, file)) in vb2_ioctl_expbuf()
1523 int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma) in vb2_fop_mmap() argument
1525 struct video_device *vdev = video_devdata(file); in vb2_fop_mmap()
1531 int _vb2_fop_release(struct file *file, struct mutex *lock) in _vb2_fop_release() argument
1533 struct video_device *vdev = video_devdata(file); in _vb2_fop_release()
1537 if (file->private_data == vdev->queue->owner) { in _vb2_fop_release()
1543 return v4l2_fh_release(file); in _vb2_fop_release()
1547 int vb2_fop_release(struct file *file) in vb2_fop_release() argument
1549 struct video_device *vdev = video_devdata(file); in vb2_fop_release()
1552 return _vb2_fop_release(file, lock); in vb2_fop_release()
1556 ssize_t vb2_fop_write(struct file *file, const char __user *buf, in vb2_fop_write() argument
1559 struct video_device *vdev = video_devdata(file); in vb2_fop_write()
1567 if (vb2_queue_is_busy(vdev, file)) in vb2_fop_write()
1570 file->f_flags & O_NONBLOCK); in vb2_fop_write()
1572 vdev->queue->owner = file->private_data; in vb2_fop_write()
1580 ssize_t vb2_fop_read(struct file *file, char __user *buf, in vb2_fop_read() argument
1583 struct video_device *vdev = video_devdata(file); in vb2_fop_read()
1591 if (vb2_queue_is_busy(vdev, file)) in vb2_fop_read()
1594 file->f_flags & O_NONBLOCK); in vb2_fop_read()
1596 vdev->queue->owner = file->private_data; in vb2_fop_read()
1604 unsigned int vb2_fop_poll(struct file *file, poll_table *wait) in vb2_fop_poll() argument
1606 struct video_device *vdev = video_devdata(file); in vb2_fop_poll()
1623 res = vb2_poll(vdev->queue, file, wait); in vb2_fop_poll()
1627 q->owner = file->private_data; in vb2_fop_poll()
1635 unsigned long vb2_fop_get_unmapped_area(struct file *file, unsigned long addr, in vb2_fop_get_unmapped_area() argument
1638 struct video_device *vdev = video_devdata(file); in vb2_fop_get_unmapped_area()