Home
last modified time | relevance | path

Searched refs:minsz (Results 1 – 3 of 3) sorted by relevance

/samples/vfio-mdev/
Dmdpy.c516 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()
[all …]
Dmtty.c1131 unsigned long minsz; in mtty_ioctl() local
1146 minsz = offsetofend(struct vfio_device_info, num_irqs); in mtty_ioctl()
1148 if (copy_from_user(&info, (void __user *)arg, minsz)) in mtty_ioctl()
1151 if (info.argsz < minsz) in mtty_ioctl()
1160 if (copy_to_user((void __user *)arg, &info, minsz)) in mtty_ioctl()
1171 minsz = offsetofend(struct vfio_region_info, offset); in mtty_ioctl()
1173 if (copy_from_user(&info, (void __user *)arg, minsz)) in mtty_ioctl()
1176 if (info.argsz < minsz) in mtty_ioctl()
1184 if (copy_to_user((void __user *)arg, &info, minsz)) in mtty_ioctl()
1194 minsz = offsetofend(struct vfio_irq_info, count); in mtty_ioctl()
[all …]
Dmbochs.c1187 unsigned long minsz, outsz; in mbochs_ioctl() local
1194 minsz = offsetofend(struct vfio_device_info, num_irqs); in mbochs_ioctl()
1196 if (copy_from_user(&info, (void __user *)arg, minsz)) in mbochs_ioctl()
1199 if (info.argsz < minsz) in mbochs_ioctl()
1206 if (copy_to_user((void __user *)arg, &info, minsz)) in mbochs_ioctl()
1215 minsz = offsetofend(typeof(info), base.offset); in mbochs_ioctl()
1217 if (copy_from_user(&info, (void __user *)arg, minsz)) in mbochs_ioctl()
1221 if (outsz < minsz) in mbochs_ioctl()
1240 minsz = offsetofend(struct vfio_irq_info, count); in mbochs_ioctl()
1242 if (copy_from_user(&info, (void __user *)arg, minsz)) in mbochs_ioctl()
[all …]