Home
last modified time | relevance | path

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

/linux/include/uapi/linux/
H A Dvfio.h147 __u32 argsz; member
206 __u32 argsz; member
272 __u32 argsz; member
535 __u32 argsz; member
585 __u32 argsz; member
741 __u32 argsz; member
776 __u32 argsz; member
810 __u32 argsz; member
860 __u32 argsz; member
892 __u32 argsz; member
[all …]
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()
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()
488 if (last_cap && info.argsz >= total_cap_size && in iommufd_vfio_iommu_get_info()
502 if (info.argsz >= total_cap_size) in iommufd_vfio_iommu_get_info()
504 info.argsz = total_cap_size; in iommufd_vfio_iommu_get_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/drivers/vfio/
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.c2762 if (info.argsz < minsz) in vfio_iommu_type1_get_info()
2765 minsz = min_t(size_t, info.argsz, sizeof(info)); in vfio_iommu_type1_get_info()
2788 if (info.argsz < sizeof(info) + caps.size) { in vfio_iommu_type1_get_info()
2789 info.argsz = sizeof(info) + caps.size; in vfio_iommu_type1_get_info()
2821 if (map.argsz < minsz || map.flags & ~mask) in vfio_iommu_type1_map_dma()
2843 if (unmap.argsz < minsz || unmap.flags & ~mask) in vfio_iommu_type1_unmap_dma()
2854 if (unmap.argsz < (minsz + sizeof(bitmap))) in vfio_iommu_type1_unmap_dma()
2898 if (dirty.argsz < minsz || dirty.flags & ~mask) in vfio_iommu_type1_dirty_pages()
2928 size_t data_size = dirty.argsz - minsz; in vfio_iommu_type1_dirty_pages()
H A Dgroup.c362 if (status.argsz < minsz) in vfio_group_ioctl_get_status()
/linux/tools/testing/selftests/iommu/
H A Diommufd.c2017 unmap_cmd.argsz = 1; in TEST_F()
2020 unmap_cmd.argsz = sizeof(unmap_cmd); in TEST_F()
2036 map_cmd.argsz = 1; in TEST_F()
2039 map_cmd.argsz = sizeof(map_cmd); in TEST_F()
2053 info_cmd.argsz = 1; in TEST_F()
2056 info_cmd.argsz = sizeof(info_cmd); in TEST_F()
2197 ASSERT_GE(info_cmd->argsz, info_cmd->cap_offset + sizeof(*cap)); in check_vfio_info_cap_chain()
2205 cap_size = (buffer + info_cmd->argsz) - (void *)cap; in check_vfio_info_cap_chain()
2234 ASSERT_GE(info_cmd->argsz, cap->next + sizeof(*cap)); in check_vfio_info_cap_chain()
2248 .argsz = offsetof(struct vfio_iommu_type1_info, cap_offset), in TEST_F()
[all …]
/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.h336 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/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/drivers/vfio/pci/nvgrace-gpu/
H A Dmain.c214 if (info.argsz < minsz) in nvgrace_gpu_ioctl_get_region_info()
261 if (info.argsz < sizeof(info) + caps.size) { in nvgrace_gpu_ioctl_get_region_info()
262 info.argsz = sizeof(info) + caps.size; in nvgrace_gpu_ioctl_get_region_info()
/linux/io_uring/
H A Dio_uring.c2504 size_t argsz;
2560 ext_arg->argsz); in io_cqring_wait()
2563 ret = set_user_sigmask(ext_arg->sig, ext_arg->argsz); in io_cqring_wait()
3236 static int io_validate_ext_arg(unsigned flags, const void __user *argp, size_t argsz) in io_validate_ext_arg()
3241 if (argsz != sizeof(arg)) in io_validate_ext_arg()
3268 if (ext_arg->argsz != sizeof(arg)) in io_get_ext_arg()
3274 ext_arg->argsz = arg.sigmask_sz; in io_get_ext_arg()
3281 size_t, argsz) in SYSCALL_DEFINE6()
3373 ret2 = io_validate_ext_arg(flags, argp, argsz); in SYSCALL_DEFINE6()
3381 struct ext_arg ext_arg = { .argsz in SYSCALL_DEFINE6()
2501 size_t argsz; global() member
3233 io_validate_ext_arg(unsigned flags,const void __user * argp,size_t argsz) io_validate_ext_arg() argument
3278 SYSCALL_DEFINE6(io_uring_enter,unsigned int,fd,u32,to_submit,u32,min_complete,u32,flags,const void __user *,argp,size_t,argsz) 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/virtio/
H A Dmain.c309 if (info.argsz < minsz) in virtiovf_pci_ioctl_get_region_info()
/linux/drivers/s390/crypto/
H A Dvfio_ap_ops.c2078 if (info.argsz < minsz) in vfio_ap_mdev_get_device_info()
2098 if (info.argsz < minsz || info.index >= VFIO_AP_NUM_IRQS) in vfio_ap_get_irq_info()