Lines Matching refs:minsz
123 unsigned long minsz; in vfio_fsl_mc_ioctl() local
133 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_fsl_mc_ioctl()
135 if (copy_from_user(&info, (void __user *)arg, minsz)) in vfio_fsl_mc_ioctl()
138 if (info.argsz < minsz) in vfio_fsl_mc_ioctl()
149 return copy_to_user((void __user *)arg, &info, minsz) ? in vfio_fsl_mc_ioctl()
156 minsz = offsetofend(struct vfio_region_info, offset); in vfio_fsl_mc_ioctl()
158 if (copy_from_user(&info, (void __user *)arg, minsz)) in vfio_fsl_mc_ioctl()
161 if (info.argsz < minsz) in vfio_fsl_mc_ioctl()
172 if (copy_to_user((void __user *)arg, &info, minsz)) in vfio_fsl_mc_ioctl()
180 minsz = offsetofend(struct vfio_irq_info, count); in vfio_fsl_mc_ioctl()
181 if (copy_from_user(&info, (void __user *)arg, minsz)) in vfio_fsl_mc_ioctl()
184 if (info.argsz < minsz) in vfio_fsl_mc_ioctl()
193 if (copy_to_user((void __user *)arg, &info, minsz)) in vfio_fsl_mc_ioctl()
204 minsz = offsetofend(struct vfio_irq_set, count); in vfio_fsl_mc_ioctl()
206 if (copy_from_user(&hdr, (void __user *)arg, minsz)) in vfio_fsl_mc_ioctl()
215 data = memdup_user((void __user *)(arg + minsz), in vfio_fsl_mc_ioctl()