Home
last modified time | relevance | path

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

/linux/include/uapi/linux/
H 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
/linux/drivers/iommu/iommufd/
H 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()
455 if (info.argsz < minsz) in iommufd_vfio_iommu_get_info()
457 minsz = min_t(size_t, info.argsz, sizeof(info)); in iommufd_vfio_iommu_get_info()
472 if (info.argsz > total_cap_size) in iommufd_vfio_iommu_get_info()
474 info.argsz - total_cap_size); in iommufd_vfio_iommu_get_info()
483 if (last_cap && info.argsz >= total_cap_size && in iommufd_vfio_iommu_get_info()
497 if (info.argsz >= total_cap_size) in iommufd_vfio_iommu_get_info()
499 info.argsz = total_cap_size; in iommufd_vfio_iommu_get_info()
/linux/drivers/vfio/
H A Dvfio_main.c888 size_t argsz) in vfio_ioctl_device_feature_mig_device_state() argument
899 ret = vfio_check_feature(flags, argsz, in vfio_ioctl_device_feature_mig_device_state()
938 size_t argsz) in vfio_ioctl_device_feature_migration_data_size() argument
947 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_GET, in vfio_ioctl_device_feature_migration_data_size()
965 size_t argsz) in vfio_ioctl_device_feature_migration() argument
975 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_GET, in vfio_ioctl_device_feature_migration()
1048 size_t argsz) in vfio_ioctl_device_feature_logging_start() argument
1065 ret = vfio_check_feature(flags, argsz, in vfio_ioctl_device_feature_logging_start()
1133 size_t argsz) in vfio_ioctl_device_feature_logging_stop() argument
1140 ret = vfio_check_feature(flags, argsz, in vfio_ioctl_device_feature_logging_stop()
[all …]
H 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()
H A Dvfio_iommu_type1.c2752 if (info.argsz < minsz) in vfio_iommu_type1_get_info()
2755 minsz = min_t(size_t, info.argsz, sizeof(info)); in vfio_iommu_type1_get_info()
2778 if (info.argsz < sizeof(info) + caps.size) { in vfio_iommu_type1_get_info()
2779 info.argsz = sizeof(info) + caps.size; in vfio_iommu_type1_get_info()
2811 if (map.argsz < minsz || map.flags & ~mask) in vfio_iommu_type1_map_dma()
2833 if (unmap.argsz < minsz || unmap.flags & ~mask) in vfio_iommu_type1_unmap_dma()
2844 if (unmap.argsz < (minsz + sizeof(bitmap))) in vfio_iommu_type1_unmap_dma()
2888 if (dirty.argsz < minsz || dirty.flags & ~mask) in vfio_iommu_type1_dirty_pages()
2918 size_t data_size = dirty.argsz - minsz; in vfio_iommu_type1_dirty_pages()
H A Dgroup.c360 if (status.argsz < minsz) in vfio_group_ioctl_get_status()
/linux/drivers/vfio/cdx/
H A Dmain.c68 void __user *arg, size_t argsz) in vfio_cdx_bm_ctrl() argument
81 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, in vfio_cdx_bm_ctrl()
100 void __user *arg, size_t argsz) in vfio_cdx_ioctl_feature() argument
104 return vfio_cdx_bm_ctrl(device, flags, arg, argsz); in vfio_cdx_ioctl_feature()
120 if (info.argsz < minsz) in vfio_cdx_ioctl_get_info()
142 if (info.argsz < minsz) in vfio_cdx_ioctl_get_region_info()
166 if (info.argsz < minsz) in vfio_cdx_ioctl_get_irq_info()
/linux/drivers/vfio/pci/
H A Dvfio_pci_core.c304 void __user *arg, size_t argsz) in vfio_pci_core_pm_entry() argument
310 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, 0); in vfio_pci_core_pm_entry()
326 size_t argsz) in vfio_pci_core_pm_entry_with_wakeup() argument
334 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, in vfio_pci_core_pm_entry_with_wakeup()
381 void __user *arg, size_t argsz) in vfio_pci_core_pm_exit() argument
387 ret = vfio_check_feature(flags, argsz, VFIO_DEVICE_FEATURE_SET, 0); in vfio_pci_core_pm_exit()
962 if (info.argsz < minsz) in vfio_pci_ioctl_get_info()
965 minsz = min_t(size_t, info.argsz, sizeof(info)); in vfio_pci_ioctl_get_info()
991 if (info.argsz < sizeof(info) + caps.size) { in vfio_pci_ioctl_get_info()
992 info.argsz = sizeof(info) + caps.size; in vfio_pci_ioctl_get_info()
[all …]
/linux/arch/x86/xen/
H A Dmulticalls.c51 size_t argsz[MC_BATCH]; member
132 if (mcdb->argsz[idx]) { in print_debug_data()
134 for (arg = 0; arg < mcdb->argsz[idx] / 8; arg++) in print_debug_data()
241 mcdb->argsz[b->mcidx] = args; in __xen_mc_entry()
/linux/include/linux/
H A Dvfio.h131 void __user *arg, size_t argsz);
239 * @argsz: Arg from the device_feature op
249 static inline int vfio_check_feature(u32 flags, size_t argsz, u32 supported_ops, in vfio_check_feature()
260 if (argsz < minsz) in vfio_check_feature()
248 vfio_check_feature(u32 flags,size_t argsz,u32 supported_ops,size_t minsz) vfio_check_feature() argument
H A Dvfio_pci_core.h117 void __user *arg, size_t argsz);
H A Dsyscalls.h337 const void __user *argp, size_t argsz);
/linux/drivers/s390/cio/
H 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/tools/testing/selftests/iommu/
H A Diommufd.c2259 unmap_cmd.argsz = 1; in TEST_F()
2262 unmap_cmd.argsz = sizeof(unmap_cmd); in TEST_F()
2278 map_cmd.argsz = 1; in TEST_F()
2281 map_cmd.argsz = sizeof(map_cmd); in TEST_F()
2295 info_cmd.argsz = 1; in TEST_F()
2298 info_cmd.argsz = sizeof(info_cmd); in TEST_F()
2439 ASSERT_GE(info_cmd->argsz, info_cmd->cap_offset + sizeof(*cap)); in check_vfio_info_cap_chain()
2447 cap_size = (buffer + info_cmd->argsz) - (void *)cap; in check_vfio_info_cap_chain()
2476 ASSERT_GE(info_cmd->argsz, cap->next + sizeof(*cap)); in check_vfio_info_cap_chain()
2490 .argsz = offsetof(struct vfio_iommu_type1_info, cap_offset), in TEST_F()
[all …]
/linux/samples/vfio-mdev/
H A Dmdpy.c533 if (info.argsz < minsz) in mdpy_ioctl()
558 if (info.argsz < minsz) in mdpy_ioctl()
581 if ((info.argsz < minsz) || in mdpy_ioctl()
605 if (plane.argsz < minsz) in mdpy_ioctl()
H A Dmbochs.c1065 ext->base.argsz = sizeof(*ext); in mbochs_get_region_info()
1206 if (info.argsz < minsz) in mbochs_ioctl()
1227 outsz = info.base.argsz; in mbochs_ioctl()
1252 if ((info.argsz < minsz) || in mbochs_ioctl()
1276 if (plane.argsz < minsz) in mbochs_ioctl()
H A Dmtty.c850 if (info.argsz < minsz) in mtty_precopy_ioctl()
1806 if (info.argsz < minsz) in mtty_ioctl()
1831 if (info.argsz < minsz) in mtty_ioctl()
1854 if ((info.argsz < minsz) || in mtty_ioctl()
/linux/drivers/vfio/fsl-mc/
H 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/drivers/vfio/platform/
H 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/io_uring/
H A Dio_uring.c2500 size_t argsz; member
2553 ext_arg->argsz); in io_cqring_wait()
2556 ret = set_user_sigmask(ext_arg->sig, ext_arg->argsz); in io_cqring_wait()
3240 const void __user *argp, size_t argsz) in io_validate_ext_arg() argument
3248 if (argsz != sizeof(arg)) in io_validate_ext_arg()
3273 if (ext_arg->argsz != sizeof(struct io_uring_reg_wait)) in io_get_ext_arg()
3283 ext_arg->argsz = READ_ONCE(w->sigmask_sz); in io_get_ext_arg()
3296 if (ext_arg->argsz != sizeof(arg)) in io_get_ext_arg()
3312 ext_arg->argsz = arg.sigmask_sz; in io_get_ext_arg()
3328 size_t, argsz) in SYSCALL_DEFINE6() argument
[all …]
/linux/drivers/gpu/drm/i915/gvt/
H A Dkvmgt.c1159 if (info.argsz < minsz) in intel_vgpu_ioctl()
1185 if (info.argsz < minsz) in intel_vgpu_ioctl()
1301 if (info.argsz < sizeof(info) + caps.size) { in intel_vgpu_ioctl()
1302 info.argsz = sizeof(info) + caps.size; in intel_vgpu_ioctl()
1330 if (info.argsz < minsz || info.index >= VFIO_PCI_NUM_IRQS) in intel_vgpu_ioctl()
1397 if (dmabuf.argsz < minsz) in intel_vgpu_ioctl()
/linux/fs/nilfs2/
H A Dioctl.c861 static const size_t argsz[5] = { in nilfs_ioctl_clean_segments() local
887 if (argv[4].v_size != argsz[4]) in nilfs_ioctl_clean_segments()
905 if (argv[n].v_size != argsz[n]) in nilfs_ioctl_clean_segments()
/linux/drivers/fpga/
H A Ddfl-fme-pr.c86 if (port_pr.argsz < minsz || port_pr.flags) in fme_pr()
/linux/drivers/vfio/pci/qat/
H A Dmain.c134 if (info.argsz < minsz) in qat_vf_precopy_ioctl()
/linux/drivers/vfio/pci/mlx5/
H A Dmain.c504 if (info.argsz < minsz) in mlx5vf_precopy_ioctl()