Lines Matching refs:minsz
517 unsigned long minsz; in mdpy_ioctl() local
526 minsz = offsetofend(struct vfio_device_info, num_irqs); in mdpy_ioctl()
528 if (copy_from_user(&info, (void __user *)arg, minsz)) in mdpy_ioctl()
531 if (info.argsz < minsz) in mdpy_ioctl()
540 if (copy_to_user((void __user *)arg, &info, minsz)) in mdpy_ioctl()
551 minsz = offsetofend(struct vfio_region_info, offset); in mdpy_ioctl()
553 if (copy_from_user(&info, (void __user *)arg, minsz)) in mdpy_ioctl()
556 if (info.argsz < minsz) in mdpy_ioctl()
564 if (copy_to_user((void __user *)arg, &info, minsz)) in mdpy_ioctl()
574 minsz = offsetofend(struct vfio_irq_info, count); in mdpy_ioctl()
576 if (copy_from_user(&info, (void __user *)arg, minsz)) in mdpy_ioctl()
579 if ((info.argsz < minsz) || in mdpy_ioctl()
587 if (copy_to_user((void __user *)arg, &info, minsz)) in mdpy_ioctl()
597 minsz = offsetofend(struct vfio_device_gfx_plane_info, in mdpy_ioctl()
600 if (copy_from_user(&plane, (void __user *)arg, minsz)) in mdpy_ioctl()
603 if (plane.argsz < minsz) in mdpy_ioctl()
610 if (copy_to_user((void __user *)arg, &plane, minsz)) in mdpy_ioctl()