Lines Matching refs:ioeventfd
306 struct vfio_pci_ioeventfd *ioeventfd, *ioeventfd_tmp; in vfio_pci_disable() local
317 list_for_each_entry_safe(ioeventfd, ioeventfd_tmp, in vfio_pci_disable()
319 vfio_virqfd_disable(&ioeventfd->virqfd); in vfio_pci_disable()
320 list_del(&ioeventfd->next); in vfio_pci_disable()
321 kfree(ioeventfd); in vfio_pci_disable()
1026 struct vfio_device_ioeventfd ioeventfd; in vfio_pci_ioctl() local
1031 if (copy_from_user(&ioeventfd, (void __user *)arg, minsz)) in vfio_pci_ioctl()
1034 if (ioeventfd.argsz < minsz) in vfio_pci_ioctl()
1037 if (ioeventfd.flags & ~VFIO_DEVICE_IOEVENTFD_SIZE_MASK) in vfio_pci_ioctl()
1040 count = ioeventfd.flags & VFIO_DEVICE_IOEVENTFD_SIZE_MASK; in vfio_pci_ioctl()
1042 if (hweight8(count) != 1 || ioeventfd.fd < -1) in vfio_pci_ioctl()
1045 return vfio_pci_ioeventfd(vdev, ioeventfd.offset, in vfio_pci_ioctl()
1046 ioeventfd.data, count, ioeventfd.fd); in vfio_pci_ioctl()