Home
last modified time | relevance | path

Searched refs:argsz (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.1.9/include/uapi/linux/
Dvfio.h143 __u32 argsz; member
202 __u32 argsz; member
252 __u32 argsz; member
512 __u32 argsz; member
562 __u32 argsz; member
660 __u32 argsz; member
675 __u32 argsz; member
709 __u32 argsz; member
758 __u32 argsz; member
789 __u32 argsz; member
[all …]
Dfpga-dfl.h79 __u32 argsz; /* Structure length */ member
99 __u32 argsz; /* Structure length */ member
128 __u32 argsz; /* Structure length */ member
147 __u32 argsz; /* Structure length */ member
229 __u32 argsz; /* Structure length */ member
Diommu.h151 __u32 argsz; member
/linux-6.1.9/Documentation/userspace-api/
Diommu.rst63 structure passed by setting argsz appropriately.
64 Though at the same time, argsz is user provided data which is not
65 trusted. The argsz field allows the user app to indicate how much data
130 __u32 argsz;
138 In order to determine the size and feature set of the user data, argsz
142 A "__u32 argsz" field is *always* at the beginning of each structure.
148 __u32 argsz;
165 VFIO is responsible for checking its own argsz and flags. It then
170 - Generic IOMMU layer checks argsz range based on UAPI data in the
178 - Vendor IOMMU driver checks argsz based on vendor flags. UAPI data
[all …]
/linux-6.1.9/drivers/vfio/
Dvfio_main.c884 if (status.argsz < minsz) in vfio_group_ioctl_get_status()
1228 size_t argsz) in vfio_ioctl_device_feature_mig_device_state() argument
1239 ret = vfio_check_feature(flags, argsz, in vfio_ioctl_device_feature_mig_device_state()
1277 size_t argsz) in vfio_ioctl_device_feature_migration() argument
1287 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_GET, in vfio_ioctl_device_feature_migration()
1303 size_t argsz) in vfio_ioctl_device_feature_logging_start() argument
1320 ret = vfio_check_feature(flags, argsz, in vfio_ioctl_device_feature_logging_start()
1388 size_t argsz) in vfio_ioctl_device_feature_logging_stop() argument
1395 ret = vfio_check_feature(flags, argsz, in vfio_ioctl_device_feature_logging_stop()
1415 size_t argsz) in vfio_ioctl_device_feature_logging_report() argument
[all …]
Dvfio_spapr_eeh.c54 if (op.argsz < minsz || op.flags) in vfio_spapr_iommu_eeh_ioctl()
87 if (op.argsz < minsz) in vfio_spapr_iommu_eeh_ioctl()
Dvfio_iommu_spapr_tce.c828 if (info.argsz < minsz) in tce_iommu_ioctl()
847 if (info.argsz >= ddwsz) in tce_iommu_ioctl()
869 if (param.argsz < minsz) in tce_iommu_ioctl()
936 if (param.argsz < minsz) in tce_iommu_ioctl()
982 if (param.argsz < minsz) in tce_iommu_ioctl()
1011 if (param.argsz < minsz) in tce_iommu_ioctl()
1076 if (create.argsz < minsz) in tce_iommu_ioctl()
1117 if (remove.argsz < minsz) in tce_iommu_ioctl()
Dvfio_iommu_type1.c2798 if (info.argsz < minsz) in vfio_iommu_type1_get_info()
2801 if (info.argsz >= capsz) { in vfio_iommu_type1_get_info()
2827 if (info.argsz < sizeof(info) + caps.size) { in vfio_iommu_type1_get_info()
2828 info.argsz = sizeof(info) + caps.size; in vfio_iommu_type1_get_info()
2860 if (map.argsz < minsz || map.flags & ~mask) in vfio_iommu_type1_map_dma()
2882 if (unmap.argsz < minsz || unmap.flags & ~mask) in vfio_iommu_type1_unmap_dma()
2893 if (unmap.argsz < (minsz + sizeof(bitmap))) in vfio_iommu_type1_unmap_dma()
2937 if (dirty.argsz < minsz || dirty.flags & ~mask) in vfio_iommu_type1_dirty_pages()
2967 size_t data_size = dirty.argsz - minsz; in vfio_iommu_type1_dirty_pages()
/linux-6.1.9/drivers/vfio/pci/
Dvfio_pci_core.c302 void __user *arg, size_t argsz) in vfio_pci_core_pm_entry() argument
308 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, 0); in vfio_pci_core_pm_entry()
324 size_t argsz) in vfio_pci_core_pm_entry_with_wakeup() argument
332 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, in vfio_pci_core_pm_entry_with_wakeup()
379 void __user *arg, size_t argsz) in vfio_pci_core_pm_exit() argument
385 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, 0); in vfio_pci_core_pm_exit()
892 if (info.argsz < minsz) in vfio_pci_ioctl_get_info()
895 if (info.argsz >= capsz) { in vfio_pci_ioctl_get_info()
917 if (info.argsz < sizeof(info) + caps.size) { in vfio_pci_ioctl_get_info()
918 info.argsz = sizeof(info) + caps.size; in vfio_pci_ioctl_get_info()
[all …]
/linux-6.1.9/include/linux/
Dvfio.h96 void __user *arg, size_t argsz);
154 static inline int vfio_check_feature(u32 flags, size_t argsz, u32 supported_ops, in vfio_check_feature() argument
165 if (argsz < minsz) in vfio_check_feature()
Dvfio_pci_core.h119 void __user *arg, size_t argsz);
/linux-6.1.9/drivers/s390/cio/
Dvfio_ccw_ops.c319 if (info->argsz < sizeof(*info) + caps.size) { in vfio_ccw_mdev_get_region_info()
320 info->argsz = sizeof(*info) + caps.size; in vfio_ccw_mdev_get_region_info()
485 if (info.argsz < minsz) in vfio_ccw_mdev_ioctl()
503 if (info.argsz < minsz) in vfio_ccw_mdev_ioctl()
521 if (info.argsz < minsz || info.index >= VFIO_CCW_NUM_IRQS) in vfio_ccw_mdev_ioctl()
/linux-6.1.9/samples/vfio-mdev/
Dmdpy.c531 if (info.argsz < minsz) in mdpy_ioctl()
556 if (info.argsz < minsz) in mdpy_ioctl()
579 if ((info.argsz < minsz) || in mdpy_ioctl()
603 if (plane.argsz < minsz) in mdpy_ioctl()
Dmbochs.c1063 ext->base.argsz = sizeof(*ext); in mbochs_get_region_info()
1204 if (info.argsz < minsz) in mbochs_ioctl()
1225 outsz = info.base.argsz; in mbochs_ioctl()
1250 if ((info.argsz < minsz) || in mbochs_ioctl()
1274 if (plane.argsz < minsz) in mbochs_ioctl()
Dmtty.c1137 if (info.argsz < minsz) in mtty_ioctl()
1162 if (info.argsz < minsz) in mtty_ioctl()
1185 if ((info.argsz < minsz) || in mtty_ioctl()
/linux-6.1.9/drivers/fpga/
Ddfl-afu-main.c662 if (info.argsz < minsz) in afu_ioctl_get_info()
691 if (rinfo.argsz < minsz || rinfo.padding) in afu_ioctl_get_region_info()
720 if (map.argsz < minsz || map.flags) in afu_ioctl_dma_map()
751 if (unmap.argsz < minsz || unmap.flags) in afu_ioctl_dma_unmap()
Ddfl-fme-pr.c86 if (port_pr.argsz < minsz || port_pr.flags) in fme_pr()
/linux-6.1.9/drivers/vfio/fsl-mc/
Dvfio_fsl_mc.c138 if (info.argsz < minsz) in vfio_fsl_mc_ioctl()
161 if (info.argsz < minsz) in vfio_fsl_mc_ioctl()
184 if (info.argsz < minsz) in vfio_fsl_mc_ioctl()
/linux-6.1.9/drivers/vfio/platform/
Dvfio_platform_common.c294 if (info.argsz < minsz) in vfio_platform_ioctl()
314 if (info.argsz < minsz) in vfio_platform_ioctl()
336 if (info.argsz < minsz) in vfio_platform_ioctl()
/linux-6.1.9/Documentation/driver-api/
Dvfio.rst171 { .argsz = sizeof(group_status) };
172 struct vfio_iommu_type1_info iommu_info = { .argsz = sizeof(iommu_info) };
173 struct vfio_iommu_type1_dma_map dma_map = { .argsz = sizeof(dma_map) };
174 struct vfio_device_info device_info = { .argsz = sizeof(device_info) };
219 struct vfio_region_info reg = { .argsz = sizeof(reg) };
230 struct vfio_irq_info irq = { .argsz = sizeof(irq) };
347 struct vfio_eeh_pe_op pe_op = { .argsz = sizeof(pe_op), .flags = 0 };
/linux-6.1.9/drivers/gpu/drm/i915/gvt/
Dkvmgt.c1162 if (info.argsz < minsz) in intel_vgpu_ioctl()
1188 if (info.argsz < minsz) in intel_vgpu_ioctl()
1304 if (info.argsz < sizeof(info) + caps.size) { in intel_vgpu_ioctl()
1305 info.argsz = sizeof(info) + caps.size; in intel_vgpu_ioctl()
1333 if (info.argsz < minsz || info.index >= VFIO_PCI_NUM_IRQS) in intel_vgpu_ioctl()
1400 if (dmabuf.argsz < minsz) in intel_vgpu_ioctl()
/linux-6.1.9/fs/nilfs2/
Dioctl.c847 static const size_t argsz[5] = { in nilfs_ioctl_clean_segments() local
873 if (argv[4].v_size != argsz[4]) in nilfs_ioctl_clean_segments()
893 if (argv[n].v_size != argsz[n]) in nilfs_ioctl_clean_segments()
/linux-6.1.9/io_uring/
Dio_uring.c3089 static int io_validate_ext_arg(unsigned flags, const void __user *argp, size_t argsz) in io_validate_ext_arg() argument
3094 if (argsz != sizeof(arg)) in io_validate_ext_arg()
3102 static int io_get_ext_arg(unsigned flags, const void __user *argp, size_t *argsz, in io_get_ext_arg() argument
3122 if (*argsz != sizeof(arg)) in io_get_ext_arg()
3129 *argsz = arg.sigmask_sz; in io_get_ext_arg()
3136 size_t, argsz) in SYSCALL_DEFINE6() argument
3232 ret2 = io_validate_ext_arg(flags, argp, argsz); in SYSCALL_DEFINE6()
3243 ret2 = io_get_ext_arg(flags, argp, &argsz, &ts, &sig); in SYSCALL_DEFINE6()
3248 argsz, ts); in SYSCALL_DEFINE6()
/linux-6.1.9/drivers/vfio/pci/hisilicon/
Dhisi_acc_vfio_pci.c1155 if (info.argsz < minsz) in hisi_acc_vfio_pci_ioctl()
/linux-6.1.9/drivers/s390/crypto/
Dvfio_ap_ops.c1695 if (info.argsz < minsz) in vfio_ap_mdev_get_device_info()

12