Searched refs:eventfp (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/vhost/
H A Dvhost.c735 struct file *eventfp, *filep = NULL; vhost_vring_ioctl() local
860 eventfp = f.fd == -1 ? NULL : eventfd_fget(f.fd); vhost_vring_ioctl()
861 if (IS_ERR(eventfp)) { vhost_vring_ioctl()
862 r = PTR_ERR(eventfp); vhost_vring_ioctl()
865 if (eventfp != vq->kick) { vhost_vring_ioctl()
867 pollstart = (vq->kick = eventfp) != NULL; vhost_vring_ioctl()
869 filep = eventfp; vhost_vring_ioctl()
876 eventfp = f.fd == -1 ? NULL : eventfd_fget(f.fd); vhost_vring_ioctl()
877 if (IS_ERR(eventfp)) { vhost_vring_ioctl()
878 r = PTR_ERR(eventfp); vhost_vring_ioctl()
881 if (eventfp != vq->call) { vhost_vring_ioctl()
884 vq->call = eventfp; vhost_vring_ioctl()
885 vq->call_ctx = eventfp ? vhost_vring_ioctl()
886 eventfd_ctx_fileget(eventfp) : NULL; vhost_vring_ioctl()
888 filep = eventfp; vhost_vring_ioctl()
895 eventfp = f.fd == -1 ? NULL : eventfd_fget(f.fd); vhost_vring_ioctl()
896 if (IS_ERR(eventfp)) { vhost_vring_ioctl()
897 r = PTR_ERR(eventfp); vhost_vring_ioctl()
900 if (eventfp != vq->error) { vhost_vring_ioctl()
902 vq->error = eventfp; vhost_vring_ioctl()
904 vq->error_ctx = eventfp ? vhost_vring_ioctl()
905 eventfd_ctx_fileget(eventfp) : NULL; vhost_vring_ioctl()
907 filep = eventfp; vhost_vring_ioctl()
941 struct file *eventfp, *filep = NULL; vhost_dev_ioctl() local
988 eventfp = fd == -1 ? NULL : eventfd_fget(fd); vhost_dev_ioctl()
989 if (IS_ERR(eventfp)) { vhost_dev_ioctl()
990 r = PTR_ERR(eventfp); vhost_dev_ioctl()
993 if (eventfp != d->log_file) { vhost_dev_ioctl()
995 d->log_file = eventfp; vhost_dev_ioctl()
997 d->log_ctx = eventfp ? vhost_dev_ioctl()
998 eventfd_ctx_fileget(eventfp) : NULL; vhost_dev_ioctl()
1000 filep = eventfp; vhost_dev_ioctl()

Completed in 44 milliseconds