Lines Matching refs:minsz
1139 unsigned long minsz; in intel_vgpu_ioctl() local
1146 minsz = offsetofend(struct vfio_device_info, num_irqs); in intel_vgpu_ioctl()
1148 if (copy_from_user(&info, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1151 if (info.argsz < minsz) in intel_vgpu_ioctl()
1160 return copy_to_user((void __user *)arg, &info, minsz) ? in intel_vgpu_ioctl()
1172 minsz = offsetofend(struct vfio_region_info, offset); in intel_vgpu_ioctl()
1174 if (copy_from_user(&info, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1177 if (info.argsz < minsz) in intel_vgpu_ioctl()
1312 return copy_to_user((void __user *)arg, &info, minsz) ? in intel_vgpu_ioctl()
1317 minsz = offsetofend(struct vfio_irq_info, count); in intel_vgpu_ioctl()
1319 if (copy_from_user(&info, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1322 if (info.argsz < minsz || info.index >= VFIO_PCI_NUM_IRQS) in intel_vgpu_ioctl()
1343 return copy_to_user((void __user *)arg, &info, minsz) ? in intel_vgpu_ioctl()
1351 minsz = offsetofend(struct vfio_irq_set, count); in intel_vgpu_ioctl()
1353 if (copy_from_user(&hdr, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1366 data = memdup_user((void __user *)(arg + minsz), in intel_vgpu_ioctl()
1385 minsz = offsetofend(struct vfio_device_gfx_plane_info, in intel_vgpu_ioctl()
1387 if (copy_from_user(&dmabuf, (void __user *)arg, minsz)) in intel_vgpu_ioctl()
1389 if (dmabuf.argsz < minsz) in intel_vgpu_ioctl()
1396 return copy_to_user((void __user *)arg, &dmabuf, minsz) ? in intel_vgpu_ioctl()