Lines Matching refs:minsz
473 unsigned long minsz; in vfio_ccw_mdev_ioctl() local
480 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_ccw_mdev_ioctl()
482 if (copy_from_user(&info, (void __user *)arg, minsz)) in vfio_ccw_mdev_ioctl()
485 if (info.argsz < minsz) in vfio_ccw_mdev_ioctl()
492 return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0; in vfio_ccw_mdev_ioctl()
498 minsz = offsetofend(struct vfio_region_info, offset); in vfio_ccw_mdev_ioctl()
500 if (copy_from_user(&info, (void __user *)arg, minsz)) in vfio_ccw_mdev_ioctl()
503 if (info.argsz < minsz) in vfio_ccw_mdev_ioctl()
510 return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0; in vfio_ccw_mdev_ioctl()
516 minsz = offsetofend(struct vfio_irq_info, count); in vfio_ccw_mdev_ioctl()
518 if (copy_from_user(&info, (void __user *)arg, minsz)) in vfio_ccw_mdev_ioctl()
521 if (info.argsz < minsz || info.index >= VFIO_CCW_NUM_IRQS) in vfio_ccw_mdev_ioctl()
531 return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0; in vfio_ccw_mdev_ioctl()
539 minsz = offsetofend(struct vfio_irq_set, count); in vfio_ccw_mdev_ioctl()
541 if (copy_from_user(&hdr, (void __user *)arg, minsz)) in vfio_ccw_mdev_ioctl()
550 data = (void __user *)(arg + minsz); in vfio_ccw_mdev_ioctl()