Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/include/uapi/linux/
A Dvfio.h147 __u32 argsz; member
206 __u32 argsz; member
256 __u32 argsz; member
516 __u32 argsz; member
566 __u32 argsz; member
664 __u32 argsz; member
679 __u32 argsz; member
713 __u32 argsz; member
762 __u32 argsz; member
793 __u32 argsz; member
[all …]
A 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
A Diommu.h151 __u32 argsz; member
/linux-6.3-rc2/drivers/vfio/
A Dvfio_main.c771 size_t argsz) in vfio_ioctl_device_feature_mig_device_state() argument
821 size_t argsz) in vfio_ioctl_device_feature_migration_data_size() argument
848 size_t argsz) in vfio_ioctl_device_feature_migration() argument
874 size_t argsz) in vfio_ioctl_device_feature_logging_start() argument
959 size_t argsz) in vfio_ioctl_device_feature_logging_stop() argument
986 size_t argsz) in vfio_ioctl_device_feature_logging_report() argument
1056 feature.argsz - minsz); in vfio_ioctl_device_feature()
1060 feature.argsz - minsz); in vfio_ioctl_device_feature()
1064 feature.argsz - minsz); in vfio_ioctl_device_feature()
1068 feature.argsz - minsz); in vfio_ioctl_device_feature()
[all …]
A Dvfio_iommu_spapr_tce.c791 if (op.argsz < minsz || op.flags) in vfio_spapr_ioctl_eeh_pe_op()
816 if (op.argsz < minsz) in vfio_spapr_ioctl_eeh_pe_op()
878 if (info.argsz < minsz) in tce_iommu_ioctl()
897 if (info.argsz >= ddwsz) in tce_iommu_ioctl()
919 if (param.argsz < minsz) in tce_iommu_ioctl()
986 if (param.argsz < minsz) in tce_iommu_ioctl()
1032 if (param.argsz < minsz) in tce_iommu_ioctl()
1061 if (param.argsz < minsz) in tce_iommu_ioctl()
1125 if (create.argsz < minsz) in tce_iommu_ioctl()
1166 if (remove.argsz < minsz) in tce_iommu_ioctl()
A Dvfio_iommu_type1.c2771 if (info.argsz < minsz) in vfio_iommu_type1_get_info()
2774 if (info.argsz >= capsz) { in vfio_iommu_type1_get_info()
2800 if (info.argsz < sizeof(info) + caps.size) { in vfio_iommu_type1_get_info()
2801 info.argsz = sizeof(info) + caps.size; in vfio_iommu_type1_get_info()
2833 if (map.argsz < minsz || map.flags & ~mask) in vfio_iommu_type1_map_dma()
2855 if (unmap.argsz < minsz || unmap.flags & ~mask) in vfio_iommu_type1_unmap_dma()
2866 if (unmap.argsz < (minsz + sizeof(bitmap))) in vfio_iommu_type1_unmap_dma()
2910 if (dirty.argsz < minsz || dirty.flags & ~mask) in vfio_iommu_type1_dirty_pages()
2940 size_t data_size = dirty.argsz - minsz; in vfio_iommu_type1_dirty_pages()
/linux-6.3-rc2/drivers/iommu/iommufd/
A Dvfio_compat.c173 if (map.argsz < minsz || map.flags & ~supported_flags) in iommufd_vfio_map_dma()
216 if (unmap.argsz < minsz || unmap.flags & ~supported_flags) in iommufd_vfio_unmap_dma()
460 if (info.argsz < minsz) in iommufd_vfio_iommu_get_info()
462 minsz = min_t(size_t, info.argsz, sizeof(info)); in iommufd_vfio_iommu_get_info()
477 if (info.argsz > total_cap_size) in iommufd_vfio_iommu_get_info()
479 info.argsz - total_cap_size); in iommufd_vfio_iommu_get_info()
486 if (last_cap && info.argsz >= total_cap_size && in iommufd_vfio_iommu_get_info()
500 if (info.argsz >= total_cap_size) in iommufd_vfio_iommu_get_info()
502 info.argsz = total_cap_size; in iommufd_vfio_iommu_get_info()
/linux-6.3-rc2/Documentation/userspace-api/
A 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.3-rc2/drivers/vfio/pci/
A Dvfio_pci_core.c306 void __user *arg, size_t argsz) in vfio_pci_core_pm_entry() argument
328 size_t argsz) in vfio_pci_core_pm_entry_with_wakeup() argument
383 void __user *arg, size_t argsz) in vfio_pci_core_pm_exit() argument
900 if (info.argsz < minsz) in vfio_pci_ioctl_get_info()
903 if (info.argsz >= capsz) { in vfio_pci_ioctl_get_info()
954 if (info.argsz < minsz) in vfio_pci_ioctl_get_region_info()
1198 if (hdr.argsz < minsz) in vfio_pci_ioctl_get_pci_hot_reset_info()
1272 if (hdr.argsz < minsz || hdr.flags) in vfio_pci_ioctl_pci_hot_reset()
1362 if (ioeventfd.argsz < minsz) in vfio_pci_ioctl_ioeventfd()
1436 void __user *arg, size_t argsz) in vfio_pci_core_ioctl_feature() argument
[all …]
/linux-6.3-rc2/tools/testing/selftests/iommu/
A Diommufd.c1282 unmap_cmd.argsz = 1; in TEST_F()
1301 map_cmd.argsz = 1; in TEST_F()
1304 map_cmd.argsz = sizeof(map_cmd); in TEST_F()
1318 info_cmd.argsz = 1; in TEST_F()
1522 .argsz = sizeof(*info_cmd), in TEST_F()
1532 caplen = info_cmd->argsz; in TEST_F()
1535 .argsz = i, in TEST_F()
1563 .argsz = sizeof(map_cmd), in TEST_F()
1570 .argsz = sizeof(unmap_cmd), in TEST_F()
1614 .argsz = sizeof(map_cmd), in TEST_F()
[all …]
/linux-6.3-rc2/include/linux/
A Dvfio.h113 void __user *arg, size_t argsz);
202 static inline int vfio_check_feature(u32 flags, size_t argsz, u32 supported_ops, in vfio_check_feature() argument
213 if (argsz < minsz) in vfio_check_feature()
A Dvfio_pci_core.h119 void __user *arg, size_t argsz);
/linux-6.3-rc2/drivers/s390/cio/
A Dvfio_ccw_ops.c360 if (info->argsz < sizeof(*info) + caps.size) { in vfio_ccw_mdev_get_region_info()
361 info->argsz = sizeof(*info) + caps.size; in vfio_ccw_mdev_get_region_info()
526 if (info.argsz < minsz) in vfio_ccw_mdev_ioctl()
544 if (info.argsz < minsz) in vfio_ccw_mdev_ioctl()
562 if (info.argsz < minsz || info.index >= VFIO_CCW_NUM_IRQS) in vfio_ccw_mdev_ioctl()
/linux-6.3-rc2/samples/vfio-mdev/
A Dmdpy.c530 if (info.argsz < minsz) in mdpy_ioctl()
555 if (info.argsz < minsz) in mdpy_ioctl()
578 if ((info.argsz < minsz) || in mdpy_ioctl()
602 if (plane.argsz < minsz) in mdpy_ioctl()
A Dmbochs.c1062 ext->base.argsz = sizeof(*ext); in mbochs_get_region_info()
1203 if (info.argsz < minsz) in mbochs_ioctl()
1224 outsz = info.base.argsz; in mbochs_ioctl()
1249 if ((info.argsz < minsz) || in mbochs_ioctl()
1273 if (plane.argsz < minsz) in mbochs_ioctl()
A Dmtty.c1136 if (info.argsz < minsz) in mtty_ioctl()
1161 if (info.argsz < minsz) in mtty_ioctl()
1184 if ((info.argsz < minsz) || in mtty_ioctl()
/linux-6.3-rc2/drivers/fpga/
A 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()
A Ddfl-fme-pr.c86 if (port_pr.argsz < minsz || port_pr.flags) in fme_pr()
/linux-6.3-rc2/drivers/vfio/fsl-mc/
A 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.3-rc2/drivers/vfio/platform/
A Dvfio_platform_common.c291 if (info.argsz < minsz) in vfio_platform_ioctl()
311 if (info.argsz < minsz) in vfio_platform_ioctl()
333 if (info.argsz < minsz) in vfio_platform_ioctl()
/linux-6.3-rc2/Documentation/driver-api/
A 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) };
295 void __user *arg, size_t argsz);
385 struct vfio_eeh_pe_op pe_op = { .argsz = sizeof(pe_op), .flags = 0 };
/linux-6.3-rc2/drivers/gpu/drm/i915/gvt/
A Dkvmgt.c1154 if (info.argsz < minsz) in intel_vgpu_ioctl()
1180 if (info.argsz < minsz) in intel_vgpu_ioctl()
1296 if (info.argsz < sizeof(info) + caps.size) { in intel_vgpu_ioctl()
1297 info.argsz = sizeof(info) + caps.size; in intel_vgpu_ioctl()
1325 if (info.argsz < minsz || info.index >= VFIO_PCI_NUM_IRQS) in intel_vgpu_ioctl()
1392 if (dmabuf.argsz < minsz) in intel_vgpu_ioctl()
/linux-6.3-rc2/fs/nilfs2/
A 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.3-rc2/io_uring/
A Dio_uring.c3347 static int io_validate_ext_arg(unsigned flags, const void __user *argp, size_t argsz) in io_validate_ext_arg() argument
3352 if (argsz != sizeof(arg)) in io_validate_ext_arg()
3360 static int io_get_ext_arg(unsigned flags, const void __user *argp, size_t *argsz, in io_get_ext_arg() argument
3380 if (*argsz != sizeof(arg)) in io_get_ext_arg()
3387 *argsz = arg.sigmask_sz; in io_get_ext_arg()
3394 size_t, argsz) in SYSCALL_DEFINE6() argument
3488 ret2 = io_validate_ext_arg(flags, argp, argsz); in SYSCALL_DEFINE6()
3499 ret2 = io_get_ext_arg(flags, argp, &argsz, &ts, &sig); in SYSCALL_DEFINE6()
3504 argsz, ts); in SYSCALL_DEFINE6()
/linux-6.3-rc2/drivers/vfio/pci/hisilicon/
A Dhisi_acc_vfio_pci.c783 if (info.argsz < minsz) in hisi_acc_vf_precopy_ioctl()
1278 if (info.argsz < minsz) in hisi_acc_vfio_pci_ioctl()

Completed in 75 milliseconds

12