Lines Matching refs:minsz
1192 unsigned long minsz, outsz; in mbochs_ioctl() local
1199 minsz = offsetofend(struct vfio_device_info, num_irqs); in mbochs_ioctl()
1201 if (copy_from_user(&info, (void __user *)arg, minsz)) in mbochs_ioctl()
1204 if (info.argsz < minsz) in mbochs_ioctl()
1211 if (copy_to_user((void __user *)arg, &info, minsz)) in mbochs_ioctl()
1220 minsz = offsetofend(typeof(info), base.offset); in mbochs_ioctl()
1222 if (copy_from_user(&info, (void __user *)arg, minsz)) in mbochs_ioctl()
1226 if (outsz < minsz) in mbochs_ioctl()
1245 minsz = offsetofend(struct vfio_irq_info, count); in mbochs_ioctl()
1247 if (copy_from_user(&info, (void __user *)arg, minsz)) in mbochs_ioctl()
1250 if ((info.argsz < minsz) || in mbochs_ioctl()
1258 if (copy_to_user((void __user *)arg, &info, minsz)) in mbochs_ioctl()
1268 minsz = offsetofend(struct vfio_device_gfx_plane_info, in mbochs_ioctl()
1271 if (copy_from_user(&plane, (void __user *)arg, minsz)) in mbochs_ioctl()
1274 if (plane.argsz < minsz) in mbochs_ioctl()
1281 if (copy_to_user((void __user *)arg, &plane, minsz)) in mbochs_ioctl()