Lines Matching refs:minsz
1150 unsigned long minsz; in intel_vgpu_ioctl() local
1157 minsz = offsetofend(struct vfio_device_info, num_irqs); in intel_vgpu_ioctl()
1159 if (copy_from_user(&info, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1162 if (info.argsz < minsz) in intel_vgpu_ioctl()
1171 return copy_to_user((void __user *)arg, &info, minsz) ? in intel_vgpu_ioctl()
1183 minsz = offsetofend(struct vfio_region_info, offset); in intel_vgpu_ioctl()
1185 if (copy_from_user(&info, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1188 if (info.argsz < minsz) in intel_vgpu_ioctl()
1323 return copy_to_user((void __user *)arg, &info, minsz) ? in intel_vgpu_ioctl()
1328 minsz = offsetofend(struct vfio_irq_info, count); in intel_vgpu_ioctl()
1330 if (copy_from_user(&info, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1333 if (info.argsz < minsz || info.index >= VFIO_PCI_NUM_IRQS) in intel_vgpu_ioctl()
1354 return copy_to_user((void __user *)arg, &info, minsz) ? in intel_vgpu_ioctl()
1362 minsz = offsetofend(struct vfio_irq_set, count); in intel_vgpu_ioctl()
1364 if (copy_from_user(&hdr, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1377 data = memdup_user((void __user *)(arg + minsz), in intel_vgpu_ioctl()
1396 minsz = offsetofend(struct vfio_device_gfx_plane_info, in intel_vgpu_ioctl()
1398 if (copy_from_user(&dmabuf, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1400 if (dmabuf.argsz < minsz) in intel_vgpu_ioctl()
1407 return copy_to_user((void __user *)arg, &dmabuf, minsz) ? in intel_vgpu_ioctl()