Lines Matching refs:minsz
880 unsigned long minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_pci_ioctl_get_info() local
889 if (copy_from_user(&info, arg, minsz)) in vfio_pci_ioctl_get_info()
892 if (info.argsz < minsz) in vfio_pci_ioctl_get_info()
896 minsz = capsz; in vfio_pci_ioctl_get_info()
931 return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; in vfio_pci_ioctl_get_info()
937 unsigned long minsz = offsetofend(struct vfio_region_info, offset); in vfio_pci_ioctl_get_region_info() local
943 if (copy_from_user(&info, arg, minsz)) in vfio_pci_ioctl_get_region_info()
946 if (info.argsz < minsz) in vfio_pci_ioctl_get_region_info()
1072 return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; in vfio_pci_ioctl_get_region_info()
1078 unsigned long minsz = offsetofend(struct vfio_irq_info, count); in vfio_pci_ioctl_get_irq_info() local
1081 if (copy_from_user(&info, arg, minsz)) in vfio_pci_ioctl_get_irq_info()
1084 if (info.argsz < minsz || info.index >= VFIO_PCI_NUM_IRQS) in vfio_pci_ioctl_get_irq_info()
1109 return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; in vfio_pci_ioctl_get_irq_info()
1115 unsigned long minsz = offsetofend(struct vfio_irq_set, count); in vfio_pci_ioctl_set_irqs() local
1121 if (copy_from_user(&hdr, arg, minsz)) in vfio_pci_ioctl_set_irqs()
1179 unsigned long minsz = in vfio_pci_ioctl_get_pci_hot_reset_info() local
1187 if (copy_from_user(&hdr, arg, minsz)) in vfio_pci_ioctl_get_pci_hot_reset_info()
1190 if (hdr.argsz < minsz) in vfio_pci_ioctl_get_pci_hot_reset_info()
1237 if (copy_to_user(arg, &hdr, minsz)) in vfio_pci_ioctl_get_pci_hot_reset_info()
1253 unsigned long minsz = offsetofend(struct vfio_pci_hot_reset, count); in vfio_pci_ioctl_pci_hot_reset() local
1261 if (copy_from_user(&hdr, arg, minsz)) in vfio_pci_ioctl_pci_hot_reset()
1264 if (hdr.argsz < minsz || hdr.flags) in vfio_pci_ioctl_pci_hot_reset()
1347 unsigned long minsz = offsetofend(struct vfio_device_ioeventfd, fd); in vfio_pci_ioctl_ioeventfd() local
1351 if (copy_from_user(&ioeventfd, arg, minsz)) in vfio_pci_ioctl_ioeventfd()
1354 if (ioeventfd.argsz < minsz) in vfio_pci_ioctl_ioeventfd()