Lines Matching refs:eventfp

635 	struct file *eventfp, *filep = NULL;  in vhost_vring_ioctl()  local
760 eventfp = f.fd == -1 ? NULL : eventfd_fget(f.fd); in vhost_vring_ioctl()
761 if (IS_ERR(eventfp)) { in vhost_vring_ioctl()
762 r = PTR_ERR(eventfp); in vhost_vring_ioctl()
765 if (eventfp != vq->kick) { in vhost_vring_ioctl()
767 pollstart = (vq->kick = eventfp) != NULL; in vhost_vring_ioctl()
769 filep = eventfp; in vhost_vring_ioctl()
776 eventfp = f.fd == -1 ? NULL : eventfd_fget(f.fd); in vhost_vring_ioctl()
777 if (IS_ERR(eventfp)) { in vhost_vring_ioctl()
778 r = PTR_ERR(eventfp); in vhost_vring_ioctl()
781 if (eventfp != vq->call) { in vhost_vring_ioctl()
784 vq->call = eventfp; in vhost_vring_ioctl()
785 vq->call_ctx = eventfp ? in vhost_vring_ioctl()
786 eventfd_ctx_fileget(eventfp) : NULL; in vhost_vring_ioctl()
788 filep = eventfp; in vhost_vring_ioctl()
795 eventfp = f.fd == -1 ? NULL : eventfd_fget(f.fd); in vhost_vring_ioctl()
796 if (IS_ERR(eventfp)) { in vhost_vring_ioctl()
797 r = PTR_ERR(eventfp); in vhost_vring_ioctl()
800 if (eventfp != vq->error) { in vhost_vring_ioctl()
802 vq->error = eventfp; in vhost_vring_ioctl()
804 vq->error_ctx = eventfp ? in vhost_vring_ioctl()
805 eventfd_ctx_fileget(eventfp) : NULL; in vhost_vring_ioctl()
807 filep = eventfp; in vhost_vring_ioctl()
835 struct file *eventfp, *filep = NULL; in vhost_dev_ioctl() local
882 eventfp = fd == -1 ? NULL : eventfd_fget(fd); in vhost_dev_ioctl()
883 if (IS_ERR(eventfp)) { in vhost_dev_ioctl()
884 r = PTR_ERR(eventfp); in vhost_dev_ioctl()
887 if (eventfp != d->log_file) { in vhost_dev_ioctl()
889 d->log_file = eventfp; in vhost_dev_ioctl()
891 d->log_ctx = eventfp ? in vhost_dev_ioctl()
892 eventfd_ctx_fileget(eventfp) : NULL; in vhost_dev_ioctl()
894 filep = eventfp; in vhost_dev_ioctl()