arch/alpha/kernel/rtc.c
141
.ioctl = alpha_rtc_ioctl,
arch/alpha/kernel/rtc.c
199
.ioctl = alpha_rtc_ioctl,
arch/arm64/include/asm/kvm_host.h
1686
long kvm_get_cap_for_kvm_ioctl(unsigned int ioctl, long *ext);
arch/arm64/include/asm/kvm_pkvm.h
61
static inline bool kvm_pkvm_ioctl_allowed(struct kvm *kvm, unsigned int ioctl)
arch/arm64/include/asm/kvm_pkvm.h
66
r = kvm_get_cap_for_kvm_ioctl(ioctl, &ext);
arch/arm64/kvm/arm.c
1758
unsigned int ioctl, unsigned long arg)
arch/arm64/kvm/arm.c
1765
switch (ioctl) {
arch/arm64/kvm/arm.c
1796
if (ioctl == KVM_SET_ONE_REG)
arch/arm64/kvm/arm.c
1892
long kvm_arch_vcpu_unlocked_ioctl(struct file *filp, unsigned int ioctl,
arch/arm64/kvm/arm.c
1936
int kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/arm64/kvm/arm.c
1942
if (is_protected_kvm_enabled() && !kvm_pkvm_ioctl_allowed(kvm, ioctl))
arch/arm64/kvm/arm.c
1945
switch (ioctl) {
arch/arm64/kvm/arm.c
481
unsigned int ioctl, unsigned long arg)
arch/arm64/kvm/arm.c
66
unsigned int ioctl;
arch/arm64/kvm/arm.c
93
long kvm_get_cap_for_kvm_ioctl(unsigned int ioctl, long *ext)
arch/arm64/kvm/arm.c
98
if (vm_ioctl_caps[i].ioctl == ioctl) {
arch/loongarch/kvm/main.c
287
unsigned int ioctl, unsigned long arg)
arch/loongarch/kvm/vcpu.c
1237
unsigned int ioctl, unsigned long arg)
arch/loongarch/kvm/vcpu.c
1256
switch (ioctl) {
arch/loongarch/kvm/vcpu.c
1264
if (ioctl == KVM_SET_ONE_REG) {
arch/loongarch/kvm/vcpu.c
1506
long kvm_arch_vcpu_unlocked_ioctl(struct file *filp, unsigned int ioctl,
arch/loongarch/kvm/vcpu.c
1512
if (ioctl == KVM_INTERRUPT) {
arch/loongarch/kvm/vm.c
179
int kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/loongarch/kvm/vm.c
185
switch (ioctl) {
arch/m68k/kernel/time.c
132
.ioctl = rtc_ioctl,
arch/mips/kvm/mips.c
175
long kvm_arch_dev_ioctl(struct file *filp, unsigned int ioctl,
arch/mips/kvm/mips.c
898
long kvm_arch_vcpu_unlocked_ioctl(struct file *filp, unsigned int ioctl,
arch/mips/kvm/mips.c
904
if (ioctl == KVM_INTERRUPT) {
arch/mips/kvm/mips.c
918
long kvm_arch_vcpu_ioctl(struct file *filp, unsigned int ioctl,
arch/mips/kvm/mips.c
927
switch (ioctl) {
arch/mips/kvm/mips.c
935
if (ioctl == KVM_SET_ONE_REG)
arch/mips/kvm/mips.c
987
int kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/mips/kvm/mips.c
991
switch (ioctl) {
arch/powerpc/include/asm/kvm_ppc.h
299
int (*arch_vm_ioctl)(struct file *filp, unsigned int ioctl,
arch/powerpc/kvm/book3s_hv.c
6147
unsigned int ioctl, unsigned long arg)
arch/powerpc/kvm/book3s_hv.c
6153
switch (ioctl) {
arch/powerpc/kvm/book3s_pr.c
2040
unsigned int ioctl, unsigned long arg)
arch/powerpc/kvm/powerpc.c
2025
long kvm_arch_vcpu_unlocked_ioctl(struct file *filp, unsigned int ioctl,
arch/powerpc/kvm/powerpc.c
2031
if (ioctl == KVM_INTERRUPT) {
arch/powerpc/kvm/powerpc.c
2041
unsigned int ioctl, unsigned long arg)
arch/powerpc/kvm/powerpc.c
2047
switch (ioctl) {
arch/powerpc/kvm/powerpc.c
2067
if (ioctl == KVM_SET_ONE_REG)
arch/powerpc/kvm/powerpc.c
2356
int kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/powerpc/kvm/powerpc.c
2362
switch (ioctl) {
arch/powerpc/kvm/powerpc.c
2468
r = kvm->arch.kvm_ops->arch_vm_ioctl(filp, ioctl, arg);
arch/powerpc/kvm/powerpc.c
709
unsigned int ioctl, unsigned long arg)
arch/powerpc/platforms/pseries/papr-hvpipe.c
534
static long papr_hvpipe_dev_ioctl(struct file *filp, unsigned int ioctl,
arch/powerpc/platforms/pseries/papr-hvpipe.c
556
switch (ioctl) {
arch/powerpc/platforms/pseries/papr-indices.c
438
static long papr_indices_dev_ioctl(struct file *filp, unsigned int ioctl,
arch/powerpc/platforms/pseries/papr-indices.c
444
switch (ioctl) {
arch/powerpc/platforms/pseries/papr-phy-attest.c
255
static long papr_phy_attest_dev_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/powerpc/platforms/pseries/papr-phy-attest.c
260
switch (ioctl) {
arch/powerpc/platforms/pseries/papr-platform-dump.c
235
unsigned int ioctl, unsigned long arg)
arch/powerpc/platforms/pseries/papr-platform-dump.c
241
if (ioctl != PAPR_PLATFORM_DUMP_IOC_INVALIDATE)
arch/powerpc/platforms/pseries/papr-platform-dump.c
357
unsigned int ioctl,
arch/powerpc/platforms/pseries/papr-platform-dump.c
367
switch (ioctl) {
arch/powerpc/platforms/pseries/papr-sysparm.c
313
static long papr_sysparm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/powerpc/platforms/pseries/papr-sysparm.c
318
switch (ioctl) {
arch/powerpc/platforms/pseries/papr-vpd.c
242
static long papr_vpd_dev_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/powerpc/platforms/pseries/papr-vpd.c
247
switch (ioctl) {
arch/riscv/kvm/main.c
31
unsigned int ioctl, unsigned long arg)
arch/riscv/kvm/vcpu.c
241
long kvm_arch_vcpu_unlocked_ioctl(struct file *filp, unsigned int ioctl,
arch/riscv/kvm/vcpu.c
247
if (ioctl == KVM_INTERRUPT) {
arch/riscv/kvm/vcpu.c
263
unsigned int ioctl, unsigned long arg)
arch/riscv/kvm/vcpu.c
269
switch (ioctl) {
arch/riscv/kvm/vcpu.c
278
if (ioctl == KVM_SET_ONE_REG)
arch/riscv/kvm/vm.c
225
int kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/s390/kvm/kvm-s390.c
2839
int kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/s390/kvm/kvm-s390.c
2846
switch (ioctl) {
arch/s390/kvm/kvm-s390.c
5325
long kvm_arch_vcpu_unlocked_ioctl(struct file *filp, unsigned int ioctl,
arch/s390/kvm/kvm-s390.c
5332
switch (ioctl) {
arch/s390/kvm/kvm-s390.c
5413
unsigned int ioctl, unsigned long arg)
arch/s390/kvm/kvm-s390.c
5423
switch (ioctl) {
arch/s390/kvm/kvm-s390.c
5478
if (ioctl == KVM_SET_ONE_REG)
arch/s390/kvm/kvm-s390.c
590
unsigned int ioctl, unsigned long arg)
arch/s390/kvm/kvm-s390.c
592
if (ioctl == KVM_S390_ENABLE_SIE)
arch/um/drivers/chan_user.c
196
if (ioctl(pty_fd, TIOCSCTTY, 0) < 0) {
arch/um/drivers/chan_user.c
70
if (ioctl(fd, TIOCGWINSZ, &size) < 0)
arch/um/drivers/ubd_kern.c
117
.ioctl = ubd_ioctl,
arch/um/drivers/vector_user.c
149
err = ioctl(fd, TUNSETIFF, (void *) &ifr);
arch/um/drivers/vector_user.c
156
ioctl(fd, TUNSETOFFLOAD, offload);
arch/um/drivers/vector_user.c
178
if (ioctl(fd, SIOCGIFINDEX, (void *) &ifr) < 0) {
arch/um/drivers/vector_user.c
589
if (ioctl(fd, TUNGETFEATURES, &features) == -1) {
arch/um/drivers/vector_user.c
597
ioctl(fd, TUNSETVNETHDRSZ, &len);
arch/um/drivers/vfio_user.c
138
if (ioctl(group, VFIO_GROUP_SET_CONTAINER, &container) < 0)
arch/um/drivers/vfio_user.c
145
if (ioctl(group, VFIO_GROUP_UNSET_CONTAINER, &container) < 0)
arch/um/drivers/vfio_user.c
167
if (ioctl(device, VFIO_DEVICE_SET_IRQS, irq_set) < 0) {
arch/um/drivers/vfio_user.c
184
dev->device = ioctl(group, VFIO_GROUP_GET_DEVICE_FD, device);
arch/um/drivers/vfio_user.c
188
if (ioctl(dev->device, VFIO_DEVICE_GET_INFO, &device_info) < 0) {
arch/um/drivers/vfio_user.c
209
if (ioctl(dev->device, VFIO_DEVICE_GET_REGION_INFO, ®ion) < 0) {
arch/um/drivers/vfio_user.c
219
if (ioctl(dev->device, VFIO_DEVICE_GET_IRQ_INFO, &irq_info) < 0) {
arch/um/drivers/vfio_user.c
31
r = ioctl(fd, VFIO_GET_API_VERSION);
arch/um/drivers/vfio_user.c
37
r = ioctl(fd, VFIO_CHECK_EXTENSION, VFIO_TYPE1_IOMMU);
arch/um/drivers/vfio_user.c
65
if (ioctl(container, VFIO_SET_IOMMU, VFIO_TYPE1_IOMMU) < 0)
arch/um/drivers/vfio_user.c
68
if (ioctl(container, VFIO_IOMMU_MAP_DMA, &dma_map) < 0)
arch/um/os-Linux/file.c
103
if (ioctl(fd, SIOCGIFNAME, namebuf) < 0)
arch/um/os-Linux/file.c
323
if (ioctl(fd, BLKGETSIZE, &blocks) < 0) {
arch/um/os-Linux/file.c
93
err = ioctl(fd, cmd, arg);
arch/x86/kvm/x86.c
5043
unsigned int ioctl, unsigned long arg)
arch/x86/kvm/x86.c
5048
switch (ioctl) {
arch/x86/kvm/x86.c
5085
ioctl);
arch/x86/kvm/x86.c
5980
unsigned int ioctl,
arch/x86/kvm/x86.c
5992
switch (ioctl) {
arch/x86/kvm/x86.c
6118
static int kvm_get_set_one_reg(struct kvm_vcpu *vcpu, unsigned int ioctl,
arch/x86/kvm/x86.c
6156
if (ioctl == KVM_GET_ONE_REG)
arch/x86/kvm/x86.c
6189
unsigned int ioctl, unsigned long arg)
arch/x86/kvm/x86.c
6205
switch (ioctl) {
arch/x86/kvm/x86.c
6306
r = kvm_get_set_one_reg(vcpu, ioctl, argp);
arch/x86/kvm/x86.c
6650
r = kvm_vcpu_ioctl_device_attr(vcpu, ioctl, argp);
arch/x86/kvm/x86.c
7115
long kvm_arch_vm_compat_ioctl(struct file *filp, unsigned int ioctl,
arch/x86/kvm/x86.c
7122
switch (ioctl) {
arch/x86/kvm/x86.c
7240
long kvm_arch_vcpu_unlocked_ioctl(struct file *filp, unsigned int ioctl,
arch/x86/kvm/x86.c
7246
if (ioctl == KVM_MEMORY_ENCRYPT_OP &&
arch/x86/kvm/x86.c
7253
int kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
arch/x86/kvm/x86.c
7272
switch (ioctl) {
block/ioctl.c
312
if (disk->fops->ioctl)
block/ioctl.c
313
return disk->fops->ioctl(bdev, mode, cmd,
block/ioctl.c
802
if (!bdev->bd_disk->fops->ioctl)
block/ioctl.c
804
return bdev->bd_disk->fops->ioctl(bdev, mode, cmd, arg);
crypto/af_alg.c
485
.ioctl = sock_no_ioctl,
crypto/algif_aead.c
271
.ioctl = sock_no_ioctl,
crypto/algif_aead.c
349
.ioctl = sock_no_ioctl,
crypto/algif_hash.c
282
.ioctl = sock_no_ioctl,
crypto/algif_hash.c
371
.ioctl = sock_no_ioctl,
crypto/algif_rng.c
170
.ioctl = sock_no_ioctl,
crypto/algif_rng.c
188
.ioctl = sock_no_ioctl,
crypto/algif_skcipher.c
252
.ioctl = sock_no_ioctl,
crypto/algif_skcipher.c
330
.ioctl = sock_no_ioctl,
drivers/accel/habanalabs/common/habanalabs_ioctl.c
1227
#define HL_IOCTL_DEF(ioctl, _func) \
drivers/accel/habanalabs/common/habanalabs_ioctl.c
1228
[_IOC_NR(ioctl) - HL_COMMAND_START] = {.cmd = ioctl, .func = _func}
drivers/accel/habanalabs/common/habanalabs_ioctl.c
1235
const struct hl_ioctl_desc *ioctl, struct device *dev)
drivers/accel/habanalabs/common/habanalabs_ioctl.c
1246
func = ioctl->func;
drivers/accel/habanalabs/common/habanalabs_ioctl.c
1254
hl_size = _IOC_SIZE(ioctl->cmd);
drivers/accel/habanalabs/common/habanalabs_ioctl.c
1259
cmd = ioctl->cmd;
drivers/accel/habanalabs/common/habanalabs_ioctl.c
1301
const struct hl_ioctl_desc *ioctl = NULL;
drivers/accel/habanalabs/common/habanalabs_ioctl.c
1310
ioctl = &hl_ioctls_control[nr - HL_COMMAND_START];
drivers/accel/habanalabs/common/habanalabs_ioctl.c
1318
return _hl_ioctl(hpriv, cmd, arg, ioctl, hdev->dev_ctrl);
drivers/atm/atmtcp.c
346
.ioctl = atmtcp_v_ioctl,
drivers/atm/atmtcp.c
495
.ioctl = atmtcp_ioctl,
drivers/atm/eni.c
2029
if (!dev->phy->ioctl) return -ENOIOCTLCMD;
drivers/atm/eni.c
2030
return dev->phy->ioctl(dev,cmd,arg);
drivers/atm/eni.c
2205
.ioctl = eni_ioctl,
drivers/atm/fore200e.c
2995
.ioctl = fore200e_ioctl,
drivers/atm/he.c
168
.ioctl = he_ioctl,
drivers/atm/he.c
2656
if (atm_dev->phy && atm_dev->phy->ioctl)
drivers/atm/he.c
2657
err = atm_dev->phy->ioctl(atm_dev, cmd, arg);
drivers/atm/idt77105.c
352
.ioctl = idt77105_ioctl,
drivers/atm/idt77252.c
3455
if (dev->phy->ioctl == NULL) {
drivers/atm/iphase.c
2756
if (!dev->phy->ioctl) return -EINVAL;
drivers/atm/iphase.c
2757
return dev->phy->ioctl(dev,cmd,arg);
drivers/atm/iphase.c
3149
.ioctl = ia_ioctl,
drivers/atm/nicstar.c
163
.ioctl = ns_ioctl,
drivers/atm/nicstar.c
2677
if (dev->phy && dev->phy->ioctl) {
drivers/atm/nicstar.c
2678
return dev->phy->ioctl(dev, cmd, arg);
drivers/atm/solos-pci.c
1181
.ioctl = NULL,
drivers/atm/suni.c
360
.ioctl = suni_ioctl,
drivers/block/amiflop.c
1769
.ioctl = fd_ioctl,
drivers/block/aoe/aoeblk.c
318
.ioctl = aoeblk_ioctl,
drivers/block/ataflop.c
1986
.ioctl = fd_ioctl,
drivers/block/floppy.c
4222
.ioctl = fd_ioctl,
drivers/block/loop.c
1770
.ioctl = lo_ioctl,
drivers/block/mtip32xx/mtip32xx.c
3195
.ioctl = mtip_block_ioctl,
drivers/block/nbd.c
1772
.ioctl = nbd_ioctl,
drivers/block/sunvdc.c
174
.ioctl = vdc_ioctl,
drivers/block/swim.c
743
.ioctl = floppy_ioctl,
drivers/block/swim3.c
1075
.ioctl = floppy_ioctl,
drivers/block/xen-blkfront.c
2500
.ioctl = blkif_ioctl,
drivers/bluetooth/hci_ldisc.c
836
.ioctl = hci_uart_tty_ioctl,
drivers/cdrom/gdrom.c
519
.ioctl = gdrom_bdops_ioctl,
drivers/char/tpm/tpm_vtpm_proxy.c
625
static long vtpmx_ioc_new_dev(struct file *file, unsigned int ioctl,
drivers/char/tpm/tpm_vtpm_proxy.c
663
static long vtpmx_fops_ioctl(struct file *f, unsigned int ioctl,
drivers/char/tpm/tpm_vtpm_proxy.c
666
switch (ioctl) {
drivers/char/tpm/tpm_vtpm_proxy.c
668
return vtpmx_ioc_new_dev(f, ioctl, arg);
drivers/crypto/ccp/sev-dev.c
2524
static long sev_ioctl(struct file *file, unsigned int ioctl, unsigned long arg)
drivers/crypto/ccp/sev-dev.c
2534
if (ioctl != SEV_ISSUE_CMD)
drivers/crypto/hisilicon/qm.c
2820
.ioctl = hisi_qm_uacce_ioctl,
drivers/dma-buf/udmabuf.c
508
static long udmabuf_ioctl(struct file *filp, unsigned int ioctl,
drivers/dma-buf/udmabuf.c
513
switch (ioctl) {
drivers/firmware/xilinx/zynqmp-debug.c
74
static int zynqmp_pm_ioctl(const u32 node, const u32 ioctl, const u32 arg1,
drivers/firmware/xilinx/zynqmp-debug.c
77
return zynqmp_pm_invoke_fn(PM_IOCTL, out, 5, node, ioctl, arg1, arg2, arg3);
drivers/fpga/dfl-afu-error.c
249
.ioctl = port_err_ioctl,
drivers/fpga/dfl-afu-main.c
456
.ioctl = port_hdr_ioctl,
drivers/fpga/dfl-afu-main.c
574
.ioctl = port_uint_ioctl,
drivers/fpga/dfl-afu-main.c
792
if (f->ops && f->ops->ioctl) {
drivers/fpga/dfl-afu-main.c
793
ret = f->ops->ioctl(pdev, f, cmd, arg);
drivers/fpga/dfl-fme-error.c
380
.ioctl = fme_global_error_ioctl,
drivers/fpga/dfl-fme-main.c
190
.ioctl = fme_hdr_ioctl,
drivers/fpga/dfl-fme-main.c
665
if (f->ops && f->ops->ioctl) {
drivers/fpga/dfl-fme-main.c
666
ret = f->ops->ioctl(pdev, f, cmd, arg);
drivers/fpga/dfl-fme-pr.c
475
.ioctl = fme_pr_ioctl,
drivers/fpga/dfl.h
407
long (*ioctl)(struct platform_device *pdev, struct dfl_feature *feature,
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3207
#define AMDKFD_IOCTL_DEF(ioctl, _func, _flags) \
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3208
[_IOC_NR(ioctl)] = {.cmd = ioctl, .func = _func, .flags = _flags, \
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3209
.cmd_drv = 0, .name = #ioctl}
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3336
const struct amdkfd_ioctl_desc *ioctl = NULL;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3352
ioctl = &amdkfd_ioctls[nr];
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3354
amdkfd_size = _IOC_SIZE(ioctl->cmd);
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3359
cmd = ioctl->cmd;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3374
if ((ioctl->flags & KFD_IOC_FLAG_CHECKPOINT_RESTORE) &&
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3387
func = ioctl->func;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3400
if (unlikely(ioctl->flags & KFD_IOC_FLAG_CHECKPOINT_RESTORE)) {
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
3438
if (!ioctl)
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
534
.ioctl = snd_pcm_lib_ioctl,
drivers/gpu/drm/drm_ioctl.c
623
#define DRM_IOCTL_DEF(ioctl, _func, _flags) \
drivers/gpu/drm/drm_ioctl.c
624
[DRM_IOCTL_NR(ioctl)] = { \
drivers/gpu/drm/drm_ioctl.c
625
.cmd = ioctl, \
drivers/gpu/drm/drm_ioctl.c
628
.name = #ioctl \
drivers/gpu/drm/drm_ioctl.c
826
const struct drm_ioctl_desc *ioctl = NULL;
drivers/gpu/drm/drm_ioctl.c
852
ioctl = &dev->driver->ioctls[index];
drivers/gpu/drm/drm_ioctl.c
858
ioctl = &drm_ioctls[nr];
drivers/gpu/drm/drm_ioctl.c
861
drv_size = _IOC_SIZE(ioctl->cmd);
drivers/gpu/drm/drm_ioctl.c
863
if ((cmd & ioctl->cmd & IOC_IN) == 0)
drivers/gpu/drm/drm_ioctl.c
865
if ((cmd & ioctl->cmd & IOC_OUT) == 0)
drivers/gpu/drm/drm_ioctl.c
872
file_priv->authenticated, ioctl->name);
drivers/gpu/drm/drm_ioctl.c
875
func = ioctl->func;
drivers/gpu/drm/drm_ioctl.c
901
retcode = drm_ioctl_kernel(filp, func, kdata, ioctl->flags);
drivers/gpu/drm/drm_ioctl.c
906
if (!ioctl)
drivers/gpu/drm/i915/gvt/kvmgt.c
1448
.ioctl = intel_vgpu_ioctl,
drivers/gpu/drm/nouveau/include/nvif/driver.h
13
int (*ioctl)(void *priv, void *data, u32 size, void **hack);
drivers/gpu/drm/nouveau/nouveau_abi16.c
713
nouveau_abi16_ioctl_mthd(struct nouveau_abi16 *abi16, struct nvif_ioctl_v0 *ioctl, u32 argc)
drivers/gpu/drm/nouveau/nouveau_abi16.c
720
if (ioctl->route || argc < sizeof(*args))
drivers/gpu/drm/nouveau/nouveau_abi16.c
722
args = (void *)ioctl->data;
drivers/gpu/drm/nouveau/nouveau_abi16.c
725
obj = nouveau_abi16_obj_find(abi16, ioctl->object);
drivers/gpu/drm/nouveau/nouveau_abi16.c
743
nouveau_abi16_ioctl_del(struct nouveau_abi16 *abi16, struct nvif_ioctl_v0 *ioctl, u32 argc)
drivers/gpu/drm/nouveau/nouveau_abi16.c
747
if (ioctl->route || argc)
drivers/gpu/drm/nouveau/nouveau_abi16.c
750
obj = nouveau_abi16_obj_find(abi16, ioctl->object);
drivers/gpu/drm/nouveau/nouveau_abi16.c
761
nouveau_abi16_ioctl_new(struct nouveau_abi16 *abi16, struct nvif_ioctl_v0 *ioctl, u32 argc)
drivers/gpu/drm/nouveau/nouveau_abi16.c
770
args = (void *)ioctl->data;
drivers/gpu/drm/nouveau/nouveau_abi16.c
776
if (!ioctl->route) {
drivers/gpu/drm/nouveau/nouveau_abi16.c
777
if (ioctl->object || args->oclass != NV_DEVICE)
drivers/gpu/drm/nouveau/nouveau_abi16.c
787
chan = nouveau_abi16_chan(abi16, ioctl->token);
drivers/gpu/drm/nouveau/nouveau_abi16.c
804
nouveau_abi16_ioctl_sclass(struct nouveau_abi16 *abi16, struct nvif_ioctl_v0 *ioctl, u32 argc)
drivers/gpu/drm/nouveau/nouveau_abi16.c
811
if (!ioctl->route || argc < sizeof(*args))
drivers/gpu/drm/nouveau/nouveau_abi16.c
813
args = (void *)ioctl->data;
drivers/gpu/drm/nouveau/nouveau_abi16.c
819
chan = nouveau_abi16_chan(abi16, ioctl->token);
drivers/gpu/drm/nouveau/nouveau_abi16.c
841
struct nvif_ioctl_v0 *ioctl;
drivers/gpu/drm/nouveau/nouveau_abi16.c
846
if (argc < sizeof(*ioctl))
drivers/gpu/drm/nouveau/nouveau_abi16.c
848
argc -= sizeof(*ioctl);
drivers/gpu/drm/nouveau/nouveau_abi16.c
850
ioctl = kmalloc(size, GFP_KERNEL);
drivers/gpu/drm/nouveau/nouveau_abi16.c
851
if (!ioctl)
drivers/gpu/drm/nouveau/nouveau_abi16.c
855
if (copy_from_user(ioctl, user, size))
drivers/gpu/drm/nouveau/nouveau_abi16.c
858
if (ioctl->version != 0x00 ||
drivers/gpu/drm/nouveau/nouveau_abi16.c
859
(ioctl->route && ioctl->route != 0xff)) {
drivers/gpu/drm/nouveau/nouveau_abi16.c
870
switch (ioctl->type) {
drivers/gpu/drm/nouveau/nouveau_abi16.c
871
case NVIF_IOCTL_V0_SCLASS: ret = nouveau_abi16_ioctl_sclass(abi16, ioctl, argc); break;
drivers/gpu/drm/nouveau/nouveau_abi16.c
872
case NVIF_IOCTL_V0_NEW : ret = nouveau_abi16_ioctl_new (abi16, ioctl, argc); break;
drivers/gpu/drm/nouveau/nouveau_abi16.c
873
case NVIF_IOCTL_V0_DEL : ret = nouveau_abi16_ioctl_del (abi16, ioctl, argc); break;
drivers/gpu/drm/nouveau/nouveau_abi16.c
874
case NVIF_IOCTL_V0_MTHD : ret = nouveau_abi16_ioctl_mthd (abi16, ioctl, argc); break;
drivers/gpu/drm/nouveau/nouveau_abi16.c
883
if (copy_to_user(user, ioctl, size))
drivers/gpu/drm/nouveau/nouveau_abi16.c
888
kfree(ioctl);
drivers/gpu/drm/nouveau/nouveau_nvif.c
103
.ioctl = nvkm_client_ioctl,
drivers/gpu/drm/nouveau/nvif/object.c
104
struct nvif_ioctl_v0_hdr ioctl;
drivers/gpu/drm/nouveau/nvif/object.c
121
args->ioctl.version = 0;
drivers/gpu/drm/nouveau/nvif/object.c
122
args->ioctl.type = NVIF_IOCTL_V0_MTHD;
drivers/gpu/drm/nouveau/nvif/object.c
138
struct nvif_ioctl_v0_hdr ioctl;
drivers/gpu/drm/nouveau/nvif/object.c
141
.ioctl.type = NVIF_IOCTL_V0_UNMAP,
drivers/gpu/drm/nouveau/nvif/object.c
152
struct nvif_ioctl_v0_hdr ioctl;
drivers/gpu/drm/nouveau/nvif/object.c
160
args->ioctl.type = NVIF_IOCTL_V0_MAP;
drivers/gpu/drm/nouveau/nvif/object.c
214
struct nvif_ioctl_v0_hdr ioctl;
drivers/gpu/drm/nouveau/nvif/object.c
217
.ioctl.type = NVIF_IOCTL_V0_DEL,
drivers/gpu/drm/nouveau/nvif/object.c
233
struct nvif_ioctl_v0_hdr ioctl;
drivers/gpu/drm/nouveau/nvif/object.c
261
args->ioctl.version = 0;
drivers/gpu/drm/nouveau/nvif/object.c
262
args->ioctl.type = NVIF_IOCTL_V0_NEW;
drivers/gpu/drm/nouveau/nvif/object.c
46
return client->driver->ioctl(client->object.priv, data, size, hack);
drivers/gpu/drm/nouveau/nvif/object.c
60
struct nvif_ioctl_v0_hdr ioctl;
drivers/gpu/drm/nouveau/nvif/object.c
70
args->ioctl.version = 0;
drivers/gpu/drm/nouveau/nvif/object.c
71
args->ioctl.type = NVIF_IOCTL_V0_SCLASS;
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
1245
const struct drm_ioctl_desc *ioctl =
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
1256
if (unlikely(ioctl->cmd != cmd))
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
1259
flags = ioctl->flags;
drivers/hv/mshv_root_main.c
1587
mshv_partition_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
drivers/hv/mshv_root_main.c
1596
switch (ioctl) {
drivers/hv/mshv_root_main.c
2046
static long mshv_dev_ioctl(struct file *filp, unsigned int ioctl,
drivers/hv/mshv_root_main.c
2051
switch (ioctl) {
drivers/hv/mshv_root_main.c
57
static long mshv_dev_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg);
drivers/hv/mshv_root_main.c
61
static long mshv_vp_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg);
drivers/hv/mshv_root_main.c
63
static long mshv_partition_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg);
drivers/hv/mshv_root_main.c
868
mshv_vp_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
drivers/hv/mshv_root_main.c
876
switch (ioctl) {
drivers/hv/mshv_root_main.c
891
vp_warn(vp, "Invalid ioctl: %#x\n", ioctl);
drivers/hv/mshv_vtl_main.c
164
mshv_dev_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
drivers/hv/mshv_vtl_main.c
168
switch (ioctl) {
drivers/hv/mshv_vtl_main.c
763
mshv_vtl_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
drivers/hv/mshv_vtl_main.c
768
switch (ioctl) {
drivers/hv/mshv_vtl_main.c
785
dev_err(vtl->module_dev, "invalid vtl ioctl: %#x\n", ioctl);
drivers/iio/iio_core.h
29
long (*ioctl)(struct iio_dev *indio_dev, struct file *filp,
drivers/iio/industrialio-buffer.c
2303
iio_dev_opaque->buffer_ioctl_handler->ioctl = iio_device_buffer_ioctl;
drivers/iio/industrialio-core.c
1866
ret = h->ioctl(indio_dev, filp, cmd, arg);
drivers/iio/industrialio-event.c
628
ev_int->ioctl_handler.ioctl = iio_event_ioctl;
drivers/input/serio/serport.c
269
.ioctl = serport_ldisc_ioctl,
drivers/ipack/devices/ipoctal.c
672
.ioctl = NULL,
drivers/isdn/mISDN/socket.c
576
.ioctl = data_sock_ioctl,
drivers/isdn/mISDN/socket.c
734
.ioctl = base_sock_ioctl,
drivers/md/bcache/bcache.h
282
int (*ioctl)(struct bcache_device *d, blk_mode_t mode,
drivers/md/bcache/request.c
1239
if (!dc->bdev->bd_disk->fops->ioctl)
drivers/md/bcache/request.c
1241
return dc->bdev->bd_disk->fops->ioctl(dc->bdev, mode, cmd, arg);
drivers/md/bcache/request.c
1247
dc->disk.ioctl = cached_dev_ioctl;
drivers/md/bcache/request.c
1331
d->ioctl = flash_dev_ioctl;
drivers/md/bcache/super.c
758
return d->ioctl(d, mode, cmd, arg);
drivers/md/bcache/super.c
765
.ioctl = ioctl_dev,
drivers/md/bcache/super.c
773
.ioctl = ioctl_dev,
drivers/md/dm.c
3786
.ioctl = dm_blk_ioctl,
drivers/md/dm.c
3797
.ioctl = dm_blk_ioctl,
drivers/md/dm.c
478
if (!bdev->bd_disk->fops->ioctl)
drivers/md/dm.c
481
r = bdev->bd_disk->fops->ioctl(bdev, mode, cmd, arg);
drivers/md/md.c
8461
.ioctl = md_ioctl,
drivers/media/i2c/adv7842.c
3354
.ioctl = adv7842_ioctl,
drivers/media/mc/mc-device.c
544
.ioctl = media_device_ioctl,
drivers/media/mc/mc-devnode.c
124
return __media_ioctl(filp, cmd, arg, devnode->fops->ioctl);
drivers/media/platform/ti/omap3isp/ispccdc.c
2482
.ioctl = ccdc_ioctl,
drivers/media/platform/ti/omap3isp/isph3a_aewb.c
270
.ioctl = h3a_aewb_ioctl,
drivers/media/platform/ti/omap3isp/isph3a_af.c
335
.ioctl = h3a_af_ioctl,
drivers/media/platform/ti/omap3isp/isphist.c
457
.ioctl = hist_ioctl,
drivers/media/platform/ti/omap3isp/isppreview.c
2100
.ioctl = preview_ioctl,
drivers/media/radio/si4713/radio-platform-si4713.c
110
ioctl, cmd, arg);
drivers/media/radio/si4713/si4713.c
1400
.ioctl = si4713_ioctl,
drivers/media/usb/uvc/uvc_ctrl.c
1436
unsigned long ioctl)
drivers/media/usb/uvc/uvc_ctrl.c
1463
if (ioctl == VIDIOC_G_EXT_CTRLS)
drivers/media/usb/uvc/uvc_ctrl.c
1469
if (ioctl != VIDIOC_S_EXT_CTRLS || !mapping->master_id)
drivers/media/usb/uvc/uvc_v4l2.c
768
u32 which, unsigned long ioctl)
drivers/media/usb/uvc/uvc_v4l2.c
776
ioctl);
drivers/media/usb/uvc/uvc_v4l2.c
781
ctrls->error_idx = ioctl == VIDIOC_TRY_EXT_CTRLS ? i : ctrls->count;
drivers/media/usb/uvc/uvc_v4l2.c
834
unsigned long ioctl)
drivers/media/usb/uvc/uvc_v4l2.c
845
ioctl);
drivers/media/usb/uvc/uvc_v4l2.c
857
ctrls->error_idx = ioctl == VIDIOC_S_EXT_CTRLS ?
drivers/media/usb/uvc/uvc_v4l2.c
865
if (ioctl == VIDIOC_S_EXT_CTRLS)
drivers/media/usb/uvc/uvcvideo.h
791
unsigned long ioctl);
drivers/media/v4l2-core/v4l2-ioctl.c
2851
unsigned int ioctl;
drivers/media/v4l2-core/v4l2-ioctl.c
2883
.ioctl = _ioctl, \
drivers/media/v4l2-core/v4l2-ioctl.c
3007
return v4l2_ioctls[_IOC_NR(cmd)].ioctl == cmd;
drivers/media/v4l2-core/v4l2-ioctl.c
3125
default_info.ioctl = cmd;
drivers/media/v4l2-core/v4l2-ioctl.c
875
static bool check_ext_ctrls(struct v4l2_ext_controls *c, unsigned long ioctl)
drivers/media/v4l2-core/v4l2-ioctl.c
892
if (ioctl == VIDIOC_G_CTRL || ioctl == VIDIOC_S_CTRL)
drivers/media/v4l2-core/v4l2-ioctl.c
899
if (ioctl == VIDIOC_S_EXT_CTRLS ||
drivers/media/v4l2-core/v4l2-ioctl.c
900
ioctl == VIDIOC_TRY_EXT_CTRLS) {
drivers/media/v4l2-core/v4l2-ioctl.c
915
c->error_idx = ioctl == VIDIOC_TRY_EXT_CTRLS ? i :
drivers/media/v4l2-core/v4l2-subdev.c
1143
return v4l2_subdev_call(sd, core, ioctl, cmd, arg);
drivers/mfd/menelaus.c
1063
.ioctl = menelaus_ioctl,
drivers/misc/uacce/uacce.c
100
if (uacce->ops->ioctl)
drivers/misc/uacce/uacce.c
101
ret = uacce->ops->ioctl(q, cmd, arg);
drivers/mmc/core/block.c
876
.ioctl = mmc_blk_ioctl,
drivers/net/can/can327.c
1114
.ioctl = can327_ldisc_ioctl,
drivers/net/can/slcan/slcan-core.c
926
.ioctl = slcan_ioctl,
drivers/net/ethernet/ti/netcp.h
208
int (*ioctl)(void *intf_priv, struct ifreq *req, int cmd);
drivers/net/ethernet/ti/netcp_core.c
1853
if (!module->ioctl)
drivers/net/ethernet/ti/netcp_core.c
1856
err = module->ioctl(intf_modpriv->module_priv, req, cmd);
drivers/net/ethernet/ti/netcp_ethss.c
3830
.ioctl = gbe_ioctl,
drivers/net/ethernet/ti/netcp_ethss.c
3849
.ioctl = gbe_ioctl,
drivers/net/hamradio/6pack.c
692
.ioctl = sixpack_ioctl,
drivers/net/hamradio/baycom_par.c
393
.ioctl = baycom_ioctl
drivers/net/hamradio/baycom_ser_fdx.c
476
.ioctl = baycom_ioctl,
drivers/net/hamradio/baycom_ser_hdx.c
534
.ioctl = baycom_ioctl,
drivers/net/hamradio/hdlcdrv.c
504
if (s->ops && s->ops->ioctl)
drivers/net/hamradio/hdlcdrv.c
505
return s->ops->ioctl(dev, data, &bi, cmd);
drivers/net/hamradio/mkiss.c
944
.ioctl = mkiss_ioctl,
drivers/net/ppp/ppp_async.c
112
.ioctl = ppp_async_ioctl,
drivers/net/ppp/ppp_async.c
373
.ioctl = ppp_asynctty_ioctl,
drivers/net/ppp/ppp_generic.c
802
if (chan && chan->ops->ioctl)
drivers/net/ppp/ppp_generic.c
803
err = chan->ops->ioctl(chan, cmd, arg);
drivers/net/ppp/ppp_synctty.c
101
.ioctl = ppp_sync_ioctl,
drivers/net/ppp/ppp_synctty.c
365
.ioctl = ppp_synctty_ioctl,
drivers/net/ppp/pppoe.c
1138
.ioctl = pppox_ioctl,
drivers/net/ppp/pppoe.c
1146
.ioctl = pppoe_ioctl,
drivers/net/ppp/pppox.c
92
rc = pppox_protos[sk->sk_protocol]->ioctl ?
drivers/net/ppp/pppox.c
93
pppox_protos[sk->sk_protocol]->ioctl(sock, cmd, arg) : -ENOTTY;
drivers/net/ppp/pptp.c
613
.ioctl = pptp_ppp_ioctl,
drivers/net/ppp/pptp.c
636
.ioctl = pppox_ioctl,
drivers/net/slip/slip.c
1275
.ioctl = slip_ioctl,
drivers/net/usb/hso.c
3205
.ioctl = hso_serial_ioctl,
drivers/net/wan/hdlc.c
205
result = dev_to_hdlc(dev)->proto->ioctl(dev, ifs);
drivers/net/wan/hdlc.c
213
result = proto->ioctl(dev, ifs);
drivers/net/wan/hdlc_cisco.c
300
.ioctl = cisco_ioctl,
drivers/net/wan/hdlc_fr.c
1179
.ioctl = fr_ioctl,
drivers/net/wan/hdlc_ppp.c
647
.ioctl = ppp_ioctl,
drivers/net/wan/hdlc_raw.c
31
.ioctl = raw_ioctl,
drivers/net/wan/hdlc_raw_eth.c
46
.ioctl = raw_eth_ioctl,
drivers/net/wan/hdlc_x25.c
271
.ioctl = x25_ioctl,
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
745
u32 ioctl = bcma_aread32(core, BCMA_IOCTL) & ~m;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
747
bcma_awrite32(core, BCMA_IOCTL, ioctl | v);
drivers/nvme/host/core.c
2609
.ioctl = nvme_ioctl,
drivers/nvme/host/multipath.c
601
.ioctl = nvme_ns_head_ioctl,
drivers/pcmcia/i82092.c
556
unsigned char map, ioctl;
drivers/pcmcia/i82092.c
576
ioctl = indirect_read(sock, I365_IOCTL) & ~I365_IOCTL_MASK(map);
drivers/pcmcia/i82092.c
579
ioctl |= I365_IOCTL_16BIT(map);
drivers/pcmcia/i82092.c
581
indirect_write(sock, I365_IOCTL, ioctl);
drivers/pcmcia/i82365.c
1034
u_char map, ioctl;
drivers/pcmcia/i82365.c
1047
ioctl = i365_get(sock, I365_IOCTL) & ~I365_IOCTL_MASK(map);
drivers/pcmcia/i82365.c
1048
if (io->speed) ioctl |= I365_IOCTL_WAIT(map);
drivers/pcmcia/i82365.c
1049
if (io->flags & MAP_0WS) ioctl |= I365_IOCTL_0WS(map);
drivers/pcmcia/i82365.c
1050
if (io->flags & MAP_16BIT) ioctl |= I365_IOCTL_16BIT(map);
drivers/pcmcia/i82365.c
1051
if (io->flags & MAP_AUTOSZ) ioctl |= I365_IOCTL_IOCS16(map);
drivers/pcmcia/i82365.c
1052
i365_set(sock, I365_IOCTL, ioctl);
drivers/pcmcia/pd6729.c
428
unsigned char map, ioctl;
drivers/pcmcia/pd6729.c
449
ioctl = indirect_read(socket, I365_IOCTL) & ~I365_IOCTL_MASK(map);
drivers/pcmcia/pd6729.c
452
ioctl |= I365_IOCTL_0WS(map);
drivers/pcmcia/pd6729.c
454
ioctl |= I365_IOCTL_16BIT(map);
drivers/pcmcia/pd6729.c
456
ioctl |= I365_IOCTL_IOCS16(map);
drivers/pcmcia/pd6729.c
458
indirect_write(socket, I365_IOCTL, ioctl);
drivers/pcmcia/tcic.c
296
u_short scf1, ioctl, base, num;
drivers/pcmcia/tcic.c
309
ioctl = tcic_getw(TCIC_DATA);
drivers/pcmcia/tcic.c
311
if (ioctl & TCIC_ICTL_TINY)
drivers/pcmcia/tcic.c
319
(scf1 & TCIC_SCF1_IOSTS) && (ioctl & TCIC_ICTL_ENA) &&
drivers/pcmcia/tcic.c
698
u_short base, len, ioctl;
drivers/pcmcia/tcic.c
715
ioctl = (psock << TCIC_ICTL_SS_SHFT);
drivers/pcmcia/tcic.c
716
ioctl |= (len == 0) ? TCIC_ICTL_TINY : 0;
drivers/pcmcia/tcic.c
717
ioctl |= (io->flags & MAP_ACTIVE) ? TCIC_ICTL_ENA : 0;
drivers/pcmcia/tcic.c
718
ioctl |= to_cycles(io->speed) & TCIC_ICTL_WSCNT_MASK;
drivers/pcmcia/tcic.c
720
ioctl |= TCIC_ICTL_QUIET;
drivers/pcmcia/tcic.c
721
ioctl |= (io->flags & MAP_16BIT) ? TCIC_ICTL_BW_16 : TCIC_ICTL_BW_8;
drivers/pcmcia/tcic.c
724
tcic_setw(TCIC_DATA, ioctl);
drivers/pcmcia/yenta_socket.c
409
unsigned char ioctl, addr, enable;
drivers/pcmcia/yenta_socket.c
428
ioctl = exca_readb(socket, I365_IOCTL) & ~I365_IOCTL_MASK(map);
drivers/pcmcia/yenta_socket.c
430
ioctl |= I365_IOCTL_0WS(map);
drivers/pcmcia/yenta_socket.c
432
ioctl |= I365_IOCTL_16BIT(map);
drivers/pcmcia/yenta_socket.c
434
ioctl |= I365_IOCTL_IOCS16(map);
drivers/pcmcia/yenta_socket.c
435
exca_writeb(socket, I365_IOCTL, ioctl);
drivers/ptp/ptp_clock.c
195
.ioctl = ptp_ioctl,
drivers/remoteproc/remoteproc_cdev.c
48
static long rproc_device_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
drivers/remoteproc/remoteproc_cdev.c
54
switch (ioctl) {
drivers/rtc/dev.c
452
if (ops->ioctl) {
drivers/rtc/dev.c
453
err = ops->ioctl(rtc->dev.parent, cmd, arg);
drivers/rtc/rtc-abx80x.c
565
.ioctl = abx80x_ioctl,
drivers/rtc/rtc-ds1286.c
314
.ioctl = ds1286_ioctl,
drivers/rtc/rtc-gamecube.c
217
.ioctl = gamecube_rtc_ioctl,
drivers/rtc/rtc-isl12022.c
457
.ioctl = isl12022_rtc_ioctl,
drivers/rtc/rtc-nct3018y.c
491
.ioctl = nct3018y_ioctl,
drivers/rtc/rtc-pcf2127.c
835
.ioctl = pcf2127_rtc_ioctl,
drivers/rtc/rtc-pcf85063.c
324
.ioctl = pcf85063_ioctl,
drivers/rtc/rtc-pcf8523.c
403
.ioctl = pcf8523_rtc_ioctl,
drivers/rtc/rtc-pcf8563.c
459
.ioctl = pcf8563_rtc_ioctl,
drivers/rtc/rtc-rs5c372.c
671
.ioctl = rs5c372_ioctl,
drivers/rtc/rtc-rv3028.c
854
.ioctl = rv3028_ioctl,
drivers/rtc/rtc-rv3029c2.c
700
.ioctl = rv3029_ioctl,
drivers/rtc/rtc-rv3032.c
880
.ioctl = rv3032_ioctl,
drivers/rtc/rtc-rv8803.c
562
.ioctl = rv8803_ioctl,
drivers/rtc/rtc-rx8010.c
360
.ioctl = rx8010_ioctl,
drivers/rtc/rtc-rx8111.c
300
.ioctl = rx8111_ioctl,
drivers/rtc/rtc-s35390a.c
417
.ioctl = s35390a_rtc_ioctl,
drivers/s390/block/dasd.c
3303
.ioctl = dasd_ioctl,
drivers/s390/block/dasd_eckd.c
6895
.ioctl = dasd_eckd_ioctl,
drivers/s390/block/dasd_int.h
378
int (*ioctl) (struct dasd_block *, unsigned int, void __user *);
drivers/s390/block/dasd_ioctl.c
688
if (base->discipline->ioctl)
drivers/s390/block/dasd_ioctl.c
689
rc = base->discipline->ioctl(block, cmd, argp);
drivers/s390/char/con3270.c
1962
.ioctl = tty3270_ioctl,
drivers/s390/char/uvdevice.c
404
static int uvio_lock_secrets(struct uvio_ioctl_cb *ioctl)
drivers/s390/char/uvdevice.c
411
if (ioctl->argument_addr || ioctl->argument_len)
drivers/s390/char/uvdevice.c
415
ioctl->uv_rc = uvcb.header.rc;
drivers/s390/char/uvdevice.c
416
ioctl->uv_rrc = uvcb.header.rrc;
drivers/s390/char/uvdevice.c
474
static int uvio_copy_and_check_ioctl(struct uvio_ioctl_cb *ioctl, void __user *argp,
drivers/s390/char/uvdevice.c
485
if (_IOC_SIZE(cmd) != sizeof(*ioctl))
drivers/s390/char/uvdevice.c
487
if (copy_from_user(ioctl, argp, sizeof(*ioctl)))
drivers/s390/char/uvdevice.c
489
if (ioctl->flags != 0)
drivers/s390/char/uvdevice.c
491
if (memchr_inv(ioctl->reserved14, 0, sizeof(ioctl->reserved14)))
drivers/s390/cio/vfio_ccw_ops.c
594
.ioctl = vfio_ccw_mdev_ioctl,
drivers/s390/crypto/vfio_ap_ops.c
2365
.ioctl = vfio_ap_mdev_ioctl,
drivers/scsi/aacraid/linit.c
1485
.ioctl = aac_ioctl,
drivers/scsi/be2iscsi/be_cmds.c
1488
struct be_cmd_get_port_name *ioctl;
drivers/scsi/be2iscsi/be_cmds.c
1493
ioctl = embedded_payload(wrb);
drivers/scsi/be2iscsi/be_cmds.c
1495
be_wrb_hdr_prepare(wrb, sizeof(*ioctl), true, 0);
drivers/scsi/be2iscsi/be_cmds.c
1496
be_cmd_hdr_prepare(&ioctl->h.req_hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
1502
phba->port_name = ioctl->p.resp.port_names >>
drivers/scsi/be2iscsi/be_cmds.c
1507
ret, ioctl->h.resp_hdr.status);
drivers/scsi/be2iscsi/be_cmds.c
1520
struct be_cmd_set_host_data *ioctl;
drivers/scsi/be2iscsi/be_cmds.c
1530
ioctl = embedded_payload(wrb);
drivers/scsi/be2iscsi/be_cmds.c
1532
be_wrb_hdr_prepare(wrb, sizeof(*ioctl), true, 0);
drivers/scsi/be2iscsi/be_cmds.c
1533
be_cmd_hdr_prepare(&ioctl->h.req_hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
1536
ioctl->param.req.param_id = BE_CMD_SET_HOST_PARAM_ID;
drivers/scsi/be2iscsi/be_cmds.c
1537
ioctl->param.req.param_len =
drivers/scsi/be2iscsi/be_cmds.c
1538
snprintf((char *)ioctl->param.req.param_data,
drivers/scsi/be2iscsi/be_cmds.c
1539
sizeof(ioctl->param.req.param_data),
drivers/scsi/be2iscsi/be_cmds.c
1541
ioctl->param.req.param_len = ALIGN(ioctl->param.req.param_len + 1, 4);
drivers/scsi/be2iscsi/be_cmds.c
1542
if (ioctl->param.req.param_len > BE_CMD_MAX_DRV_VERSION)
drivers/scsi/be2iscsi/be_cmds.c
1543
ioctl->param.req.param_len = BE_CMD_MAX_DRV_VERSION;
drivers/scsi/be2iscsi/be_cmds.c
1566
struct be_cmd_set_features *ioctl;
drivers/scsi/be2iscsi/be_cmds.c
1573
ioctl = embedded_payload(wrb);
drivers/scsi/be2iscsi/be_cmds.c
1575
be_wrb_hdr_prepare(wrb, sizeof(*ioctl), true, 0);
drivers/scsi/be2iscsi/be_cmds.c
1576
be_cmd_hdr_prepare(&ioctl->h.req_hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
1579
ioctl->feature = BE_CMD_SET_FEATURE_UER;
drivers/scsi/be2iscsi/be_cmds.c
1580
ioctl->param_len = sizeof(ioctl->param.req);
drivers/scsi/be2iscsi/be_cmds.c
1581
ioctl->param.req.uer = BE_CMD_UER_SUPP_BIT;
drivers/scsi/be2iscsi/be_cmds.c
1584
phba->ue2rp = ioctl->param.resp.ue2rp;
drivers/scsi/esas2r/atvda.h
1223
struct atto_vda_ioctl_req ioctl;
drivers/scsi/esas2r/esas2r_disc.c
901
esas2r_sgc_init(&sgc, a, rq, rq->vrq->ioctl.sge);
drivers/scsi/esas2r/esas2r_ioctl.c
1232
bi.ioctl = ioctl_hba;
drivers/scsi/esas2r/esas2r_ioctl.c
1270
struct atto_express_ioctl *ioctl = NULL;
drivers/scsi/esas2r/esas2r_ioctl.c
1283
ioctl = memdup_user(arg, sizeof(struct atto_express_ioctl));
drivers/scsi/esas2r/esas2r_ioctl.c
1284
if (IS_ERR(ioctl)) {
drivers/scsi/esas2r/esas2r_ioctl.c
1288
return PTR_ERR(ioctl);
drivers/scsi/esas2r/esas2r_ioctl.c
1293
if (memcmp(ioctl->header.signature,
drivers/scsi/esas2r/esas2r_ioctl.c
1297
kfree(ioctl);
drivers/scsi/esas2r/esas2r_ioctl.c
1304
ioctl->header.return_code = IOCTL_SUCCESS;
drivers/scsi/esas2r/esas2r_ioctl.c
1315
ioctl->data.chanlist.num_channels = 0;
drivers/scsi/esas2r/esas2r_ioctl.c
1319
ioctl->data.chanlist.num_channels++;
drivers/scsi/esas2r/esas2r_ioctl.c
1320
ioctl->data.chanlist.channel[k] = i;
drivers/scsi/esas2r/esas2r_ioctl.c
1331
if (ioctl->header.channel == 0xFF) {
drivers/scsi/esas2r/esas2r_ioctl.c
1334
if (ioctl->header.channel >= MAX_ADAPTERS ||
drivers/scsi/esas2r/esas2r_ioctl.c
1335
esas2r_adapters[ioctl->header.channel] == NULL) {
drivers/scsi/esas2r/esas2r_ioctl.c
1336
ioctl->header.return_code = IOCTL_BAD_CHANNEL;
drivers/scsi/esas2r/esas2r_ioctl.c
1338
kfree(ioctl);
drivers/scsi/esas2r/esas2r_ioctl.c
1342
a = esas2r_adapters[ioctl->header.channel];
drivers/scsi/esas2r/esas2r_ioctl.c
1348
if (ioctl->data.fwrw.img_type == FW_IMG_FM_API) {
drivers/scsi/esas2r/esas2r_ioctl.c
1350
(char *)ioctl->data.fwrw.image,
drivers/scsi/esas2r/esas2r_ioctl.c
1357
(char *)ioctl->data.fwrw.
drivers/scsi/esas2r/esas2r_ioctl.c
1363
} else if (ioctl->data.fwrw.img_type == FW_IMG_FS_API) {
drivers/scsi/esas2r/esas2r_ioctl.c
1365
(char *)ioctl->data.fwrw.image,
drivers/scsi/esas2r/esas2r_ioctl.c
1372
(char *)ioctl->data.fwrw.
drivers/scsi/esas2r/esas2r_ioctl.c
1379
ioctl->header.return_code = IOCTL_BAD_FLASH_IMGTYPE;
drivers/scsi/esas2r/esas2r_ioctl.c
1386
memcpy(ioctl->data.prw.data_buffer, a->nvram,
drivers/scsi/esas2r/esas2r_ioctl.c
1388
ioctl->data.prw.code = 1;
drivers/scsi/esas2r/esas2r_ioctl.c
1395
kfree(ioctl);
drivers/scsi/esas2r/esas2r_ioctl.c
1402
(struct esas2r_sas_nvram *)ioctl->data.prw.data_buffer);
drivers/scsi/esas2r/esas2r_ioctl.c
1403
ioctl->data.prw.code = code;
drivers/scsi/esas2r/esas2r_ioctl.c
1412
(struct esas2r_sas_nvram *)ioctl->data.prw.data_buffer);
drivers/scsi/esas2r/esas2r_ioctl.c
1413
ioctl->data.prw.code = 1;
drivers/scsi/esas2r/esas2r_ioctl.c
1418
ioctl->data.chaninfo.major_rev = ESAS2R_MAJOR_REV;
drivers/scsi/esas2r/esas2r_ioctl.c
1419
ioctl->data.chaninfo.minor_rev = ESAS2R_MINOR_REV;
drivers/scsi/esas2r/esas2r_ioctl.c
1420
ioctl->data.chaninfo.IRQ = a->pcid->irq;
drivers/scsi/esas2r/esas2r_ioctl.c
1421
ioctl->data.chaninfo.device_id = a->pcid->device;
drivers/scsi/esas2r/esas2r_ioctl.c
1422
ioctl->data.chaninfo.vendor_id = a->pcid->vendor;
drivers/scsi/esas2r/esas2r_ioctl.c
1423
ioctl->data.chaninfo.ven_dev_id = a->pcid->subsystem_device;
drivers/scsi/esas2r/esas2r_ioctl.c
1424
ioctl->data.chaninfo.revision_id = a->pcid->revision;
drivers/scsi/esas2r/esas2r_ioctl.c
1425
ioctl->data.chaninfo.pci_bus = a->pcid->bus->number;
drivers/scsi/esas2r/esas2r_ioctl.c
1426
ioctl->data.chaninfo.pci_dev_func = a->pcid->devfn;
drivers/scsi/esas2r/esas2r_ioctl.c
1427
ioctl->data.chaninfo.core_rev = 0;
drivers/scsi/esas2r/esas2r_ioctl.c
1428
ioctl->data.chaninfo.host_no = a->host->host_no;
drivers/scsi/esas2r/esas2r_ioctl.c
1429
ioctl->data.chaninfo.hbaapi_rev = 0;
drivers/scsi/esas2r/esas2r_ioctl.c
1433
ioctl->header.return_code = handle_smp_ioctl(a,
drivers/scsi/esas2r/esas2r_ioctl.c
1434
&ioctl->data.
drivers/scsi/esas2r/esas2r_ioctl.c
1439
ioctl->header.return_code =
drivers/scsi/esas2r/esas2r_ioctl.c
1440
handle_csmi_ioctl(a, &ioctl->data.csmi);
drivers/scsi/esas2r/esas2r_ioctl.c
1444
ioctl->header.return_code = handle_hba_ioctl(a,
drivers/scsi/esas2r/esas2r_ioctl.c
1445
&ioctl->data.
drivers/scsi/esas2r/esas2r_ioctl.c
1451
(char *)&ioctl->data.ioctl_vda,
drivers/scsi/esas2r/esas2r_ioctl.c
1454
ioctl->data.ioctl_vda.data_length);
drivers/scsi/esas2r/esas2r_ioctl.c
1458
(char *)&ioctl->data.ioctl_vda,
drivers/scsi/esas2r/esas2r_ioctl.c
1461
ioctl->data.ioctl_vda.data_length);
drivers/scsi/esas2r/esas2r_ioctl.c
1471
ioctl->data.modinfo.adapter = a;
drivers/scsi/esas2r/esas2r_ioctl.c
1472
ioctl->data.modinfo.pci_dev = a->pcid;
drivers/scsi/esas2r/esas2r_ioctl.c
1473
ioctl->data.modinfo.scsi_host = a->host;
drivers/scsi/esas2r/esas2r_ioctl.c
1474
ioctl->data.modinfo.host_no = a->host->host_no;
drivers/scsi/esas2r/esas2r_ioctl.c
1480
ioctl->header.return_code = IOCTL_ERR_INVCMD;
drivers/scsi/esas2r/esas2r_ioctl.c
1492
ioctl->header.return_code = IOCTL_OUT_OF_RESOURCES;
drivers/scsi/esas2r/esas2r_ioctl.c
1497
ioctl->header.return_code = IOCTL_INVALID_PARAM;
drivers/scsi/esas2r/esas2r_ioctl.c
1501
ioctl->header.return_code = IOCTL_GENERAL_ERROR;
drivers/scsi/esas2r/esas2r_ioctl.c
1508
err = copy_to_user(arg, ioctl, sizeof(struct atto_express_ioctl));
drivers/scsi/esas2r/esas2r_ioctl.c
1513
kfree(ioctl);
drivers/scsi/esas2r/esas2r_ioctl.c
1518
kfree(ioctl);
drivers/scsi/esas2r/esas2r_ioctl.c
251
memcpy(esas2r_buffered_ioctl, bi->ioctl, bi->length);
drivers/scsi/esas2r/esas2r_ioctl.c
288
memcpy(bi->ioctl, esas2r_buffered_ioctl, bi->length);
drivers/scsi/esas2r/esas2r_ioctl.c
302
esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge);
drivers/scsi/esas2r/esas2r_ioctl.c
321
bi.ioctl = si;
drivers/scsi/esas2r/esas2r_ioctl.c
350
struct atto_vda_ioctl_req *ioctl = &rq->vrq->ioctl;
drivers/scsi/esas2r/esas2r_ioctl.c
355
esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge);
drivers/scsi/esas2r/esas2r_ioctl.c
357
ioctl->csmi.ctrl_code = cpu_to_le32(ctrl_code);
drivers/scsi/esas2r/esas2r_ioctl.c
358
ioctl->csmi.target_id = cpu_to_le16(target_id);
drivers/scsi/esas2r/esas2r_ioctl.c
359
ioctl->csmi.lun = (u8)le32_to_cpu(rq->vrq->scsi.flags);
drivers/scsi/esas2r/esas2r_ioctl.c
655
bi.ioctl = &ci->data;
drivers/scsi/esas2r/esas2r_ioctl.c
674
esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge);
drivers/scsi/esas2r/esas2r_ioctl.c
71
void *ioctl;
drivers/scsi/esas2r/esas2r_main.c
238
.ioctl = esas2r_ioctl,
drivers/scsi/esas2r/esas2r_vda.c
453
struct atto_vda_ioctl_req *vrq = &rq->vrq->ioctl;
drivers/scsi/hpsa.c
974
.ioctl = hpsa_ioctl,
drivers/scsi/scsi_debug.c
9525
.ioctl = scsi_debug_ioctl,
drivers/scsi/scsi_ioctl.c
956
if (!sdev->host->hostt->ioctl)
drivers/scsi/scsi_ioctl.c
958
return sdev->host->hostt->ioctl(sdev, cmd, arg);
drivers/scsi/sd.c
3876
.ioctl = sd_ioctl,
drivers/scsi/smartpqi/smartpqi_init.c
7607
.ioctl = pqi_ioctl,
drivers/scsi/sr.c
594
.ioctl = sr_block_ioctl,
drivers/soundwire/intel.c
211
u16 ioctl;
drivers/soundwire/intel.c
214
ioctl = intel_readw(shim, SDW_SHIM_IOCTL(link_id));
drivers/soundwire/intel.c
216
ioctl &= ~(SDW_SHIM_IOCTL_DOE);
drivers/soundwire/intel.c
217
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/soundwire/intel.c
220
ioctl &= ~(SDW_SHIM_IOCTL_DO);
drivers/soundwire/intel.c
221
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/soundwire/intel.c
224
ioctl |= (SDW_SHIM_IOCTL_MIF);
drivers/soundwire/intel.c
225
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/soundwire/intel.c
228
ioctl &= ~(SDW_SHIM_IOCTL_BKE);
drivers/soundwire/intel.c
229
ioctl &= ~(SDW_SHIM_IOCTL_COE);
drivers/soundwire/intel.c
230
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/soundwire/intel.c
241
u16 ioctl;
drivers/soundwire/intel.c
244
ioctl = intel_readw(shim, SDW_SHIM_IOCTL(link_id));
drivers/soundwire/intel.c
245
ioctl |= SDW_SHIM_IOCTL_BKE;
drivers/soundwire/intel.c
246
ioctl |= SDW_SHIM_IOCTL_COE;
drivers/soundwire/intel.c
247
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/soundwire/intel.c
250
ioctl &= ~(SDW_SHIM_IOCTL_MIF);
drivers/soundwire/intel.c
251
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/soundwire/intel.c
262
u16 ioctl = 0, act;
drivers/soundwire/intel.c
265
ioctl |= SDW_SHIM_IOCTL_BKE;
drivers/soundwire/intel.c
266
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/soundwire/intel.c
269
ioctl |= SDW_SHIM_IOCTL_WPDD;
drivers/soundwire/intel.c
270
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/soundwire/intel.c
273
ioctl |= SDW_SHIM_IOCTL_DO;
drivers/soundwire/intel.c
274
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/soundwire/intel.c
277
ioctl |= SDW_SHIM_IOCTL_DOE;
drivers/soundwire/intel.c
278
intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl);
drivers/staging/greybus/uart.c
784
.ioctl = gb_tty_ioctl,
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
759
.ioctl = gc2235_ioctl,
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
895
.ioctl = ov2722_ioctl,
drivers/staging/media/atomisp/pci/atomisp_subdev.c
569
.ioctl = isp_subdev_ioctl,
drivers/tty/amiserial.c
1437
.ioctl = rs_ioctl,
drivers/tty/ipwireless/network.c
245
.ioctl = ipwireless_ppp_ioctl
drivers/tty/ipwireless/tty.c
555
.ioctl = ipw_ioctl,
drivers/tty/mxser.c
1647
.ioctl = mxser_ioctl,
drivers/tty/n_gsm.c
4103
.ioctl = gsmld_ioctl,
drivers/tty/n_gsm.c
4608
.ioctl = gsmtty_ioctl,
drivers/tty/n_hdlc.c
771
.ioctl = n_hdlc_tty_ioctl,
drivers/tty/n_tty.c
2509
.ioctl = n_tty_ioctl,
drivers/tty/nozomi.c
1780
.ioctl = ntty_ioctl,
drivers/tty/pty.c
502
.ioctl = pty_bsd_ioctl,
drivers/tty/pty.c
730
.ioctl = pty_unix98_ioctl,
drivers/tty/serial/serial_core.c
1613
if (uport->ops->ioctl)
drivers/tty/serial/serial_core.c
1614
ret = uport->ops->ioctl(uport, cmd, arg);
drivers/tty/serial/serial_core.c
2663
.ioctl = uart_ioctl,
drivers/tty/synclink_gt.c
1151
rc = ioctl(tty, cmd, (unsigned long)compat_ptr(arg));
drivers/tty/synclink_gt.c
1154
rc = ioctl(tty, cmd, arg);
drivers/tty/synclink_gt.c
3610
.ioctl = ioctl,
drivers/tty/tty_io.c
2791
if (tty->ops->ioctl) {
drivers/tty/tty_io.c
2792
retval = tty->ops->ioctl(tty, cmd, arg);
drivers/tty/tty_io.c
2800
if (ld->ops->ioctl) {
drivers/tty/tty_io.c
2801
retval = ld->ops->ioctl(tty, cmd, arg);
drivers/tty/tty_io.c
2981
if (retval == -ENOIOCTLCMD && ld->ops->ioctl)
drivers/tty/tty_io.c
2982
retval = ld->ops->ioctl(tty, (unsigned long)compat_ptr(cmd),
drivers/tty/vt/vt.c
3843
.ioctl = vt_ioctl,
drivers/usb/atm/usbatm.c
166
.ioctl = usbatm_atm_ioctl,
drivers/usb/class/cdc-acm.c
2076
.ioctl = acm_tty_ioctl,
drivers/usb/gadget/function/f_fs.c
680
} else if (gadget && gadget->ops->ioctl) {
drivers/usb/gadget/function/f_fs.c
681
ret = gadget->ops->ioctl(gadget, code, value);
drivers/usb/gadget/legacy/inode.c
1261
} else if (gadget->ops->ioctl) {
drivers/usb/gadget/legacy/inode.c
1265
ret = gadget->ops->ioctl (gadget, code, value);
drivers/usb/serial/ftdi_sio.c
2862
.ioctl = ftdi_ioctl,
drivers/usb/serial/io_edgeport.c
3001
.ioctl = edge_ioctl,
drivers/usb/serial/io_edgeport.c
3035
.ioctl = edge_ioctl,
drivers/usb/serial/io_edgeport.c
3069
.ioctl = edge_ioctl,
drivers/usb/serial/io_edgeport.c
3103
.ioctl = edge_ioctl,
drivers/usb/serial/kobil_sct.c
88
.ioctl = kobil_ioctl,
drivers/usb/serial/mos7720.c
1743
.ioctl = mos7720_ioctl,
drivers/usb/serial/mos7840.c
1786
.ioctl = mos7840_ioctl,
drivers/usb/serial/usb-serial.c
1294
.ioctl = serial_ioctl,
drivers/usb/serial/usb-serial.c
514
if (port->serial->type->ioctl)
drivers/usb/serial/usb-serial.c
515
retval = port->serial->type->ioctl(tty, cmd, arg);
drivers/usb/serial/xr_serial.c
1098
.ioctl = xr_ioctl,
drivers/vfio/cdx/main.c
278
.ioctl = vfio_cdx_ioctl,
drivers/vfio/container.c
216
ret = driver->ops->ioctl(NULL,
drivers/vfio/container.c
225
ret = driver->ops->ioctl(container->iommu_data,
drivers/vfio/container.c
297
if (driver->ops->ioctl(NULL, VFIO_CHECK_EXTENSION, arg) <= 0) {
drivers/vfio/container.c
353
ret = driver->ops->ioctl(data, cmd, arg);
drivers/vfio/container.c
71
.ioctl = vfio_noiommu_ioctl,
drivers/vfio/fsl-mc/vfio_fsl_mc.c
583
.ioctl = vfio_fsl_mc_ioctl,
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
1625
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
1646
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/mlx5/main.c
1368
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/nvgrace-gpu/main.c
939
.ioctl = nvgrace_gpu_ioctl,
drivers/vfio/pci/nvgrace-gpu/main.c
964
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/pds/vfio_dev.c
197
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/qat/main.c
611
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/vfio_pci.c
134
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/virtio/main.c
112
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/virtio/main.c
134
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/virtio/main.c
90
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/pci/xe/main.c
508
.ioctl = vfio_pci_core_ioctl,
drivers/vfio/platform/vfio_amba.c
117
.ioctl = vfio_platform_ioctl,
drivers/vfio/platform/vfio_platform.c
103
.ioctl = vfio_platform_ioctl,
drivers/vfio/vfio.h
207
long (*ioctl)(void *iommu_data, unsigned int cmd,
drivers/vfio/vfio_iommu_spapr_tce.c
1357
.ioctl = tce_iommu_ioctl,
drivers/vfio/vfio_iommu_type1.c
3258
.ioctl = vfio_iommu_type1_ioctl,
drivers/vfio/vfio_main.c
1350
if (unlikely(!device->ops->ioctl))
drivers/vfio/vfio_main.c
1353
ret = device->ops->ioctl(device, cmd, arg);
drivers/vhost/net.c
1729
static long vhost_net_ioctl(struct file *f, unsigned int ioctl,
drivers/vhost/net.c
1741
switch (ioctl) {
drivers/vhost/net.c
1819
r = vhost_dev_ioctl(&n->dev, ioctl, argp);
drivers/vhost/net.c
1821
r = vhost_vring_ioctl(&n->dev, ioctl, argp);
drivers/vhost/scsi.c
2363
unsigned int ioctl,
drivers/vhost/scsi.c
2376
switch (ioctl) {
drivers/vhost/scsi.c
2423
r = vhost_worker_ioctl(&vs->dev, ioctl, argp);
drivers/vhost/scsi.c
2428
r = vhost_dev_ioctl(&vs->dev, ioctl, argp);
drivers/vhost/scsi.c
2431
r = vhost_vring_ioctl(&vs->dev, ioctl, argp);
drivers/vhost/test.c
317
static long vhost_test_ioctl(struct file *f, unsigned int ioctl,
drivers/vhost/test.c
327
switch (ioctl) {
drivers/vhost/test.c
351
r = vhost_dev_ioctl(&n->dev, ioctl, argp);
drivers/vhost/test.c
353
r = vhost_vring_ioctl(&n->dev, ioctl, argp);
drivers/vhost/vhost.c
1009
long vhost_worker_ioctl(struct vhost_dev *dev, unsigned int ioctl,
drivers/vhost/vhost.c
1029
switch (ioctl) {
drivers/vhost/vhost.c
1060
switch (ioctl) {
drivers/vhost/vhost.c
2108
unsigned int ioctl,
drivers/vhost/vhost.c
2115
switch (ioctl) {
drivers/vhost/vhost.c
2130
long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp)
drivers/vhost/vhost.c
2145
if (ioctl == VHOST_SET_VRING_NUM ||
drivers/vhost/vhost.c
2146
ioctl == VHOST_SET_VRING_ADDR) {
drivers/vhost/vhost.c
2147
return vhost_vring_set_num_addr(d, vq, ioctl, argp);
drivers/vhost/vhost.c
2152
switch (ioctl) {
drivers/vhost/vhost.c
2298
long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp)
drivers/vhost/vhost.c
2306
if (ioctl == VHOST_SET_OWNER) {
drivers/vhost/vhost.c
2312
if (ioctl == VHOST_SET_FORK_FROM_OWNER) {
drivers/vhost/vhost.c
2333
if (ioctl == VHOST_GET_FORK_FROM_OWNER) {
drivers/vhost/vhost.c
2355
switch (ioctl) {
drivers/vhost/vhost.h
222
long vhost_dev_ioctl(struct vhost_dev *, unsigned int ioctl, void __user *argp);
drivers/vhost/vhost.h
223
long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp);
drivers/vhost/vhost.h
224
long vhost_worker_ioctl(struct vhost_dev *dev, unsigned int ioctl,
drivers/vhost/vsock.c
860
static long vhost_vsock_dev_ioctl(struct file *f, unsigned int ioctl,
drivers/vhost/vsock.c
870
switch (ioctl) {
drivers/vhost/vsock.c
905
r = vhost_dev_ioctl(&vsock->dev, ioctl, argp);
drivers/vhost/vsock.c
907
r = vhost_vring_ioctl(&vsock->dev, ioctl, argp);
drivers/virt/coco/sev-guest/sev-guest.c
285
static long snp_guest_ioctl(struct file *file, unsigned int ioctl, unsigned long arg)
drivers/virt/coco/sev-guest/sev-guest.c
302
switch (ioctl) {
drivers/watchdog/kempld_wdt.c
431
.ioctl = kempld_wdt_ioctl,
drivers/watchdog/watchdog_dev.c
675
if (!wdd->ops->ioctl)
drivers/watchdog/watchdog_dev.c
678
return wdd->ops->ioctl(wdd, cmd, arg);
fs/cachefiles/ondemand.c
116
static long cachefiles_ondemand_fd_ioctl(struct file *filp, unsigned int ioctl,
fs/cachefiles/ondemand.c
124
if (ioctl != CACHEFILES_IOC_READ_COMPLETE)
fs/coda/upcall.c
508
inp->coda_ioctl.data = (char *)(INSIZE(ioctl));
fs/coda/upcall.c
517
error = coda_upcall(coda_vcp(sb), SIZE(ioctl) + data->vi.in_size,
fs/ioctl.c
583
SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg)
fs/ioctl.c
638
COMPAT_SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd,
fs/nsfs.c
213
static long ns_ioctl(struct file *filp, unsigned int ioctl,
fs/nsfs.c
226
if (!nsfs_ioctl_valid(ioctl))
fs/nsfs.c
228
if (!may_use_nsfs_ioctl(ioctl))
fs/nsfs.c
232
switch (ioctl) {
fs/nsfs.c
263
if (ioctl == NS_GET_PID_IN_PIDNS ||
fs/nsfs.c
264
ioctl == NS_GET_TGID_IN_PIDNS)
fs/nsfs.c
271
switch (ioctl) {
fs/nsfs.c
308
switch (_IOC_NR(ioctl)) {
fs/nsfs.c
312
size_t usize = _IOC_SIZE(ioctl);
fs/nsfs.c
332
size_t usize = _IOC_SIZE(ioctl);
fs/nsfs.c
36
static long ns_ioctl(struct file *filp, unsigned int ioctl,
fs/proc/inode.c
372
const auto ioctl = pde->proc_ops->proc_ioctl;
fs/proc/inode.c
373
if (ioctl)
fs/proc/inode.c
374
return ioctl(file, cmd, arg);
fs/smb/client/trace.h
1583
DEFINE_SMB3_IOCTL_EVENT(ioctl);
include/drm/drm_ioctl.h
151
#define DRM_IOCTL_DEF_DRV(ioctl, _func, _flags) \
include/drm/drm_ioctl.h
152
[DRM_IOCTL_NR(DRM_IOCTL_##ioctl) - DRM_COMMAND_BASE] = { \
include/drm/drm_ioctl.h
153
.cmd = DRM_IOCTL_##ioctl, \
include/drm/drm_ioctl.h
156
.name = #ioctl \
include/linux/atmdev.h
183
int (*ioctl)(struct atm_dev *dev,unsigned int cmd,void __user *arg);
include/linux/atmdev.h
202
int (*ioctl)(struct atm_dev *dev,unsigned int cmd,void __user *arg);
include/linux/atmdev.h
306
int (*ioctl)(struct socket *, unsigned int cmd, unsigned long arg);
include/linux/blkdev.h
1654
int (*ioctl)(struct block_device *bdev, blk_mode_t mode,
include/linux/hdlc.h
25
int (*ioctl)(struct net_device *dev, struct if_settings *ifs);
include/linux/hdlcdrv.h
82
int (*ioctl)(struct net_device *, void __user *,
include/linux/if_pppox.h
72
int (*ioctl)(struct socket *sock, unsigned int cmd,
include/linux/kvm_host.h
1563
unsigned int ioctl, unsigned long arg);
include/linux/kvm_host.h
1565
unsigned int ioctl, unsigned long arg);
include/linux/kvm_host.h
1567
unsigned int ioctl, unsigned long arg);
include/linux/kvm_host.h
1588
int kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg);
include/linux/kvm_host.h
1589
long kvm_arch_vm_compat_ioctl(struct file *filp, unsigned int ioctl,
include/linux/kvm_host.h
2357
long (*ioctl)(struct kvm_device *dev, unsigned int ioctl,
include/linux/libata.h
1460
.ioctl = ata_scsi_ioctl, \
include/linux/net.h
180
int (*ioctl) (struct socket *sock, unsigned int cmd,
include/linux/posix-clock.h
54
long (*ioctl)(struct posix_clock_context *pccontext, unsigned int cmd,
include/linux/ppp_channel.h
32
int (*ioctl)(struct ppp_channel *, unsigned int, unsigned long);
include/linux/rtc.h
60
int (*ioctl)(struct device *, unsigned int, unsigned long);
include/linux/serial_core.h
401
int (*ioctl)(struct uart_port *, unsigned int, unsigned long);
include/linux/tty_driver.h
456
int (*ioctl)(struct tty_struct *tty,
include/linux/tty_ldisc.h
244
int (*ioctl)(struct tty_struct *tty, unsigned int cmd,
include/linux/uacce.h
48
long (*ioctl)(struct uacce_queue *q, unsigned int cmd,
include/linux/usb/gadget.h
346
int (*ioctl)(struct usb_gadget *,
include/linux/usb/serial.h
275
int (*ioctl)(struct tty_struct *tty,
include/linux/vfio.h
134
long (*ioctl)(struct vfio_device *vdev, unsigned int cmd,
include/linux/watchdog.h
59
long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long);
include/media/media-devnode.h
56
long (*ioctl) (struct file *, unsigned int, unsigned long);
include/media/v4l2-subdev.h
205
long (*ioctl)(struct v4l2_subdev *sd, unsigned int cmd, void *arg);
include/net/phonet/phonet.h
128
return sk->sk_prot->ioctl(sk, cmd, &karg);
include/net/sock.h
1300
int (*ioctl)(struct sock *sk, int cmd,
include/scsi/libsas.h
751
.ioctl = sas_ioctl, \
include/scsi/scsi_host.h
124
int (*ioctl)(struct scsi_device *dev, unsigned int cmd,
include/sound/hwdep.h
27
int (*ioctl)(struct snd_hwdep *hw, struct file *file,
include/sound/info.h
53
int (*ioctl)(struct snd_info_entry *entry, void *file_private_data,
include/sound/pcm.h
58
int (*ioctl)(struct snd_pcm_substream * substream,
include/sound/rawmidi.h
51
long (*ioctl)(struct snd_rawmidi *rmidi, unsigned int cmd,
include/sound/seq_oss.h
41
int (*ioctl)(struct snd_seq_oss_arg *p, unsigned int cmd, unsigned long arg);
include/sound/soc-component.h
119
int (*ioctl)(struct snd_soc_component *component,
io_uring/cmd_net.c
165
if (!prot || !prot->ioctl)
io_uring/cmd_net.c
168
ret = prot->ioctl(sk, SIOCINQ, &arg);
io_uring/cmd_net.c
173
if (!prot || !prot->ioctl)
io_uring/cmd_net.c
176
ret = prot->ioctl(sk, SIOCOUTQ, &arg);
kernel/time/posix-clock.c
85
if (clk->ops.ioctl)
kernel/time/posix-clock.c
86
err = clk->ops.ioctl(pccontext, cmd, arg);
net/appletalk/ddp.c
1899
.ioctl = atalk_ioctl,
net/atm/br2684.c
763
.ioctl = br2684_ioctl,
net/atm/clip.c
731
.ioctl = clip_ioctl,
net/atm/ioctl.c
159
error = ic->ioctl(sock, cmd, arg);
net/atm/ioctl.c
35
void register_atm_ioctl(struct atm_ioctl *ioctl)
net/atm/ioctl.c
38
list_add_tail(&ioctl->list, &ioctl_list);
net/atm/ioctl.c
43
void deregister_atm_ioctl(struct atm_ioctl *ioctl)
net/atm/ioctl.c
46
list_del(&ioctl->list);
net/atm/lec.c
1055
.ioctl = lane_ioctl,
net/atm/mpc.c
1475
.ioctl = atm_mpoa_ioctl,
net/atm/pppoatm.c
386
.ioctl = pppoatm_devppp_ioctl,
net/atm/pppoatm.c
472
.ioctl = pppoatm_ioctl,
net/atm/pvc.c
117
.ioctl = vcc_ioctl,
net/atm/resources.c
383
if (!dev->ops->ioctl) {
net/atm/resources.c
387
size = dev->ops->ioctl(dev, cmd, buf);
net/atm/svc.c
645
.ioctl = svc_ioctl,
net/ax25/af_ax25.c
2023
.ioctl = ax25_ioctl,
net/bluetooth/bnep/sock.c
176
.ioctl = bnep_sock_ioctl,
net/bluetooth/cmtp/sock.c
178
.ioctl = cmtp_sock_ioctl,
net/bluetooth/hci_sock.c
2180
.ioctl = hci_sock_ioctl,
net/bluetooth/hidp/sock.c
227
.ioctl = hidp_sock_ioctl,
net/bluetooth/iso.c
2652
.ioctl = bt_sock_ioctl,
net/bluetooth/l2cap_sock.c
1988
.ioctl = bt_sock_ioctl,
net/bluetooth/rfcomm/sock.c
1018
.ioctl = rfcomm_sock_ioctl,
net/bluetooth/rfcomm/tty.c
1102
.ioctl = rfcomm_tty_ioctl,
net/bluetooth/sco.c
1555
.ioctl = bt_sock_ioctl,
net/caif/caif_socket.c
973
.ioctl = sock_no_ioctl,
net/caif/caif_socket.c
992
.ioctl = sock_no_ioctl,
net/can/bcm.c
1788
.ioctl = bcm_sock_no_ioctlcmd,
net/can/isotp.c
1715
.ioctl = isotp_sock_no_ioctlcmd,
net/can/j1939/socket.c
1383
.ioctl = j1939_sk_no_ioctlcmd,
net/can/raw.c
1075
.ioctl = raw_sock_no_ioctlcmd,
net/core/sock.c
4334
proto_method_implemented(proto->ioctl),
net/core/sock.c
4438
ret = READ_ONCE(sk->sk_prot)->ioctl(sk, cmd, karg);
net/core/sock.c
4457
ret = READ_ONCE(sk->sk_prot)->ioctl(sk, cmd, &karg);
net/ieee802154/socket.c
163
if (!sk->sk_prot->ioctl)
net/ieee802154/socket.c
420
.ioctl = ieee802154_sock_ioctl,
net/ieee802154/socket.c
967
.ioctl = dgram_ioctl,
net/ieee802154/socket.c
982
.ioctl = ieee802154_sock_ioctl,
net/ipv4/af_inet.c
1018
if (sk->sk_prot->ioctl)
net/ipv4/af_inet.c
1076
.ioctl = inet_ioctl,
net/ipv4/af_inet.c
1111
.ioctl = inet_ioctl,
net/ipv4/af_inet.c
1143
.ioctl = inet_ioctl,
net/ipv4/raw.c
939
.ioctl = raw_ioctl,
net/ipv4/tcp_bpf.c
632
prot[TCP_BPF_BASE].ioctl = tcp_bpf_ioctl;
net/ipv4/tcp_ipv4.c
3424
.ioctl = tcp_ioctl,
net/ipv4/udp.c
3272
.ioctl = udp_ioctl,
net/ipv4/udp_bpf.c
134
prot->ioctl = udp_bpf_ioctl;
net/ipv4/udplite.c
50
.ioctl = udp_ioctl,
net/ipv6/af_inet6.c
580
if (!prot->ioctl)
net/ipv6/af_inet6.c
687
.ioctl = inet6_ioctl, /* must change */
net/ipv6/af_inet6.c
722
.ioctl = inet6_ioctl, /* must change */
net/ipv6/raw.c
1202
.ioctl = rawv6_ioctl,
net/ipv6/raw.c
1285
.ioctl = inet6_ioctl, /* must change */
net/ipv6/tcp_ipv6.c
2286
.ioctl = tcp_ioctl,
net/ipv6/udp.c
1911
.ioctl = udp_ioctl,
net/ipv6/udplite.c
49
.ioctl = udp_ioctl,
net/iucv/af_iucv.c
2224
.ioctl = sock_no_ioctl,
net/kcm/kcmsock.c
1754
.ioctl = kcm_ioctl,
net/kcm/kcmsock.c
1775
.ioctl = kcm_ioctl,
net/key/af_key.c
3765
.ioctl = sock_no_ioctl,
net/l2tp/l2tp_ip.c
616
.ioctl = l2tp_ioctl,
net/l2tp/l2tp_ip.c
638
.ioctl = inet_ioctl,
net/l2tp/l2tp_ip6.c
744
.ioctl = l2tp_ioctl,
net/l2tp/l2tp_ip6.c
767
.ioctl = inet6_ioctl,
net/l2tp/l2tp_ppp.c
1646
.ioctl = pppox_ioctl,
net/l2tp/l2tp_ppp.c
1654
.ioctl = pppol2tp_ioctl,
net/llc/af_llc.c
1236
.ioctl = llc_ui_ioctl,
net/mctp/af_mctp.c
637
.ioctl = mctp_ioctl,
net/mptcp/protocol.c
4031
.ioctl = mptcp_ioctl,
net/mptcp/protocol.c
4529
.ioctl = inet_ioctl,
net/mptcp/protocol.c
4632
.ioctl = inet6_ioctl,
net/netlink/af_netlink.c
2812
.ioctl = netlink_ioctl,
net/netrom/af_netrom.c
1363
.ioctl = nr_ioctl,
net/nfc/llcp_sock.c
927
.ioctl = sock_no_ioctl,
net/nfc/llcp_sock.c
947
.ioctl = sock_no_ioctl,
net/nfc/nci/uart.c
434
.ioctl = nci_uart_tty_ioctl,
net/nfc/rawsock.c
289
.ioctl = sock_no_ioctl,
net/nfc/rawsock.c
307
.ioctl = sock_no_ioctl,
net/packet/af_packet.c
4281
return inet_dgram_ops.ioctl(sock, cmd, arg);
net/packet/af_packet.c
4651
.ioctl = packet_ioctl,
net/packet/af_packet.c
4670
.ioctl = packet_ioctl,
net/phonet/datagram.c
169
.ioctl = pn_ioctl,
net/phonet/pep.c
1353
.ioctl = pep_ioctl,
net/phonet/socket.c
437
.ioctl = pn_socket_ioctl,
net/phonet/socket.c
455
.ioctl = pn_socket_ioctl,
net/qrtr/af_qrtr.c
1241
.ioctl = qrtr_ioctl,
net/rds/af_rds.c
648
.ioctl = rds_ioctl,
net/rose/af_rose.c
1536
.ioctl = rose_ioctl,
net/rxrpc/af_rxrpc.c
1014
.ioctl = sock_no_ioctl,
net/sctp/ipv6.c
1051
.ioctl = inet6_ioctl,
net/sctp/protocol.c
1113
.ioctl = inet_ioctl,
net/sctp/socket.c
9632
.ioctl = sctp_ioctl,
net/sctp/socket.c
9687
.ioctl = sctp_ioctl,
net/smc/af_smc.c
3214
answ = smc->clcsock->ops->ioctl(smc->clcsock, cmd, arg);
net/smc/af_smc.c
3342
.ioctl = smc_ioctl,
net/smc/smc_inet.c
43
.ioctl = smc_ioctl,
net/smc/smc_inet.c
90
.ioctl = smc_ioctl,
net/socket.c
1254
err = ops->ioctl(sock, cmd, arg);
net/tipc/socket.c
3364
.ioctl = tipc_ioctl,
net/tipc/socket.c
3384
.ioctl = tipc_ioctl,
net/tipc/socket.c
3404
.ioctl = tipc_ioctl,
net/unix/af_unix.c
1002
.ioctl = unix_ioctl,
net/unix/af_unix.c
1026
.ioctl = unix_ioctl,
net/unix/af_unix.c
976
.ioctl = unix_ioctl,
net/vmw_vsock/af_vsock.c
1595
.ioctl = vsock_ioctl,
net/vmw_vsock/af_vsock.c
2619
.ioctl = vsock_ioctl,
net/vmw_vsock/af_vsock.c
2641
.ioctl = vsock_ioctl,
net/x25/af_x25.c
1748
.ioctl = x25_ioctl,
net/xdp/xsk.c
1835
.ioctl = sock_no_ioctl,
samples/acrn/vm-sample.c
101
ret = ioctl(hsm_fd, ACRN_IOCTL_START_VM, vmid);
samples/acrn/vm-sample.c
106
ret = ioctl(hsm_fd, ACRN_IOCTL_ATTACH_IOREQ_CLIENT, 0);
samples/acrn/vm-sample.c
122
ioctl(hsm_fd, ACRN_IOCTL_NOTIFY_REQUEST_FINISH, ¬ify);
samples/acrn/vm-sample.c
127
ret = ioctl(hsm_fd, ACRN_IOCTL_DESTROY_VM, NULL);
samples/acrn/vm-sample.c
40
ioctl(hsm_fd, ACRN_IOCTL_PAUSE_VM, vmid);
samples/acrn/vm-sample.c
41
ioctl(hsm_fd, ACRN_IOCTL_DESTROY_IOREQ_CLIENT, 0);
samples/acrn/vm-sample.c
64
ret = ioctl(hsm_fd, ACRN_IOCTL_CREATE_VM, &create_vm);
samples/acrn/vm-sample.c
75
ret = ioctl(hsm_fd, ACRN_IOCTL_SET_MEMSEG, &ram_map);
samples/acrn/vm-sample.c
93
ret = ioctl(hsm_fd, ACRN_IOCTL_SET_VCPU_REGS, ®s);
samples/acrn/vm-sample.c
97
ret = ioctl(hsm_fd, ACRN_IOCTL_CREATE_IOREQ_CLIENT, 0);
samples/binderfs/binderfs_example.c
60
ret = ioctl(fd, BINDER_CTL_ADD, &device);
samples/bpf/tracex6_user.c
44
assert(ioctl(pmu_fd, PERF_EVENT_IOC_ENABLE, 0) == 0);
samples/bpf/tracex6_user.c
67
assert(ioctl(pmu_fd, PERF_EVENT_IOC_DISABLE, 0) == 0 || error);
samples/bpf/xdp_sample_user.c
1620
r = ioctl(fd, SIOCETHTOOL, &ifr);
samples/bpf/xdp_sample_user.c
1652
r = ioctl(fd, SIOCGIFHWADDR, &ifr);
samples/hidraw/hid-example.c
102
res = ioctl(fd, HIDIOCGRAWINFO, &info);
samples/hidraw/hid-example.c
118
res = ioctl(fd, HIDIOCSFEATURE(4), buf);
samples/hidraw/hid-example.c
126
res = ioctl(fd, HIDIOCGFEATURE(256), buf);
samples/hidraw/hid-example.c
69
res = ioctl(fd, HIDIOCGRDESCSIZE, &desc_size);
samples/hidraw/hid-example.c
77
res = ioctl(fd, HIDIOCGRDESC, &rpt_desc);
samples/hidraw/hid-example.c
88
res = ioctl(fd, HIDIOCGRAWNAME(256), buf);
samples/hidraw/hid-example.c
95
res = ioctl(fd, HIDIOCGRAWPHYS(256), buf);
samples/mei/mei-amt-version.c
130
result = ioctl(me->fd, IOCTL_MEI_CONNECT_CLIENT, &data);
samples/nitro_enclaves/ne_ioctl_sample.c
167
*enclave_fd = ioctl(ne_dev_fd, NE_CREATE_VM, slot_uid);
samples/nitro_enclaves/ne_ioctl_sample.c
319
rc = ioctl(enclave_fd, NE_GET_IMAGE_LOAD_INFO, &image_load_info);
samples/nitro_enclaves/ne_ioctl_sample.c
417
rc = ioctl(enclave_fd, NE_SET_USER_MEMORY_REGION, &mem_region);
samples/nitro_enclaves/ne_ioctl_sample.c
521
rc = ioctl(enclave_fd, NE_ADD_VCPU, vcpu_id);
samples/nitro_enclaves/ne_ioctl_sample.c
584
rc = ioctl(enclave_fd, NE_START_ENCLAVE, enclave_start_info);
samples/pfsm/pfsm-wakeup.c
111
ioctl(fd_rtc, RTC_AIE_OFF, 0);
samples/pfsm/pfsm-wakeup.c
114
ioctl(fd_pfsm[0], PMIC_SET_ACTIVE_STATE, 0);
samples/pfsm/pfsm-wakeup.c
53
ret = ioctl(fd_rtc, RTC_RD_TIME, &rtc_tm);
samples/pfsm/pfsm-wakeup.c
74
ret = ioctl(fd_rtc, RTC_ALM_SET, &rtc_tm);
samples/pfsm/pfsm-wakeup.c
81
ret = ioctl(fd_rtc, RTC_AIE_ON, 0);
samples/pfsm/pfsm-wakeup.c
96
ret = ioctl(fd_pfsm[i], PMIC_SET_RETENTION_STATE, &pmic_opt);
samples/seccomp/user-trap.c
149
if (ioctl(listener, SECCOMP_IOCTL_NOTIF_ID_VALID, &req->id) < 0) {
samples/seccomp/user-trap.c
313
if (ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, req)) {
samples/seccomp/user-trap.c
330
if (ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, resp) < 0 &&
samples/timers/hpet_example.c
115
if (ioctl(fd, HPET_INFO, &info) < 0) {
samples/timers/hpet_example.c
156
if (ioctl(fd, HPET_IRQFREQ, freq) < 0) {
samples/timers/hpet_example.c
161
if (ioctl(fd, HPET_INFO, &info) < 0) {
samples/timers/hpet_example.c
168
if (info.hi_flags && (ioctl(fd, HPET_EPI, 0) < 0)) {
samples/timers/hpet_example.c
173
if (ioctl(fd, HPET_IE_ON, 0) < 0) {
samples/timers/hpet_example.c
261
if (ioctl(fd, HPET_IRQFREQ, freq) < 0) {
samples/timers/hpet_example.c
266
if (ioctl(fd, HPET_INFO, &info) < 0) {
samples/timers/hpet_example.c
273
if (info.hi_flags && (ioctl(fd, HPET_EPI, 0) < 0)) {
samples/timers/hpet_example.c
278
if (ioctl(fd, HPET_IE_ON, 0) < 0) {
samples/user_events/example.c
31
if (ioctl(fd, DIAG_IOCSREG, ®) == -1)
samples/vfio-mdev/mbochs.c
1354
.ioctl = mbochs_ioctl,
samples/vfio-mdev/mdpy.c
646
.ioctl = mdpy_ioctl,
samples/vfio-mdev/mtty.c
1929
.ioctl = mtty_ioctl,
samples/vfs/mountinfo.c
243
mntns = ioctl(pidfd, PIDFD_GET_MNT_NAMESPACE, NULL);
samples/vfs/mountinfo.c
251
ret = ioctl(mntns, NS_MNT_GET_INFO, &mni);
samples/vfs/mountinfo.c
268
ret = ioctl(mntns, NS_MNT_GET_NEXT, &mni);
samples/vfs/test-list-all-mounts.c
103
fd_mntns_next = ioctl(fd_mntns, NS_MNT_GET_NEXT, &info);
samples/vfs/test-list-all-mounts.c
82
fd_mntns = ioctl(pidfd, PIDFD_GET_MNT_NAMESPACE, 0);
samples/vfs/test-list-all-mounts.c
86
ret = ioctl(fd_mntns, NS_MNT_GET_INFO, &info);
samples/watch_queue/watch_test.c
170
if (ioctl(fd, IOC_WATCH_QUEUE_SET_SIZE, BUF_SIZE) == -1) {
samples/watch_queue/watch_test.c
175
if (ioctl(fd, IOC_WATCH_QUEUE_SET_FILTER, &filter) == -1) {
security/selinux/hooks.c
3839
struct lsm_ioctlop_audit ioctl;
security/selinux/hooks.c
3846
ad.u.op = &ioctl;
sound/core/hwdep.c
251
if (hw->ops.ioctl)
sound/core/hwdep.c
252
return hw->ops.ioctl(hw, file, cmd, arg);
sound/core/info.c
208
if (!entry->c.ops->ioctl)
sound/core/info.c
210
return entry->c.ops->ioctl(entry, data->file_private_data,
sound/core/pcm_native.c
215
if (substream->ops->ioctl)
sound/core/pcm_native.c
216
return substream->ops->ioctl(substream, cmd, arg);
sound/core/rawmidi.c
1036
if (rmidi && rmidi->ops && rmidi->ops->ioctl)
sound/core/rawmidi.c
1037
return rmidi->ops->ioctl(rmidi, cmd, argp);
sound/core/rawmidi.c
985
if (rmidi->ops && rmidi->ops->ioctl)
sound/core/rawmidi.c
986
return rmidi->ops->ioctl(rmidi, cmd, argp);
sound/core/seq/oss/seq_oss_synth.c
506
if (rec->oper.ioctl == NULL)
sound/core/seq/oss/seq_oss_synth.c
509
return rec->oper.ioctl(&info->arg, cmd, addr);
sound/core/seq/oss/seq_oss_synth.c
589
str_enabled_disabled((long)rec->oper.ioctl),
sound/core/timer.c
2075
static long snd_utimer_ioctl(struct file *file, unsigned int ioctl, unsigned long arg)
sound/core/timer.c
2077
switch (ioctl) {
sound/core/ump.c
91
.ioctl = snd_ump_ioctl,
sound/drivers/opl3/opl3_lib.c
504
hw->ops.ioctl = snd_opl3_ioctl;
sound/drivers/opl3/opl3_oss.c
23
.ioctl = snd_opl3_ioctl_seq_oss,
sound/drivers/pcmtest.c
530
.ioctl = snd_pcmtst_ioctl,
sound/drivers/pcmtest.c
543
.ioctl = snd_pcmtst_ioctl,
sound/firewire/bebob/bebob_hwdep.c
160
.ioctl = hwdep_ioctl,
sound/firewire/dice/dice-hwdep.c
156
.ioctl = hwdep_ioctl,
sound/firewire/digi00x/digi00x-hwdep.c
164
.ioctl = hwdep_ioctl,
sound/firewire/fireface/ff-hwdep.c
173
.ioctl = hwdep_ioctl,
sound/firewire/fireworks/fireworks_hwdep.c
296
.ioctl = hwdep_ioctl,
sound/firewire/motu/motu-hwdep.c
267
.ioctl = hwdep_ioctl,
sound/firewire/oxfw/oxfw-hwdep.c
154
.ioctl = hwdep_ioctl,
sound/firewire/tascam/tascam-hwdep.c
241
.ioctl = hwdep_ioctl,
sound/hda/common/hwdep.c
109
hwdep->ops.ioctl = hda_hwdep_ioctl;
sound/isa/sb/sb16_csp.c
144
hw->ops.ioctl = snd_sb_csp_ioctl;
sound/isa/wavefront/wavefront.c
241
wavefront_synth->ops.ioctl = snd_wavefront_synth_ioctl;
sound/isa/wavefront/wavefront.c
264
fx_processor->ops.ioctl = snd_wavefront_fx_ioctl;
sound/pci/asihpi/asihpi.c
2747
hw->ops.ioctl = snd_asihpi_hpi_ioctl;
sound/pci/emu10k1/emufx.c
2607
hw->ops.ioctl = snd_emu10k1_fx8010_ioctl;
sound/pci/emu10k1/p16v.c
536
.ioctl = snd_p16v_pcm_ioctl_playback,
sound/pci/korg1212/korg1212.c
1590
.ioctl = snd_korg1212_ioctl,
sound/pci/korg1212/korg1212.c
1603
.ioctl = snd_korg1212_ioctl,
sound/pci/rme9652/hdsp.c
4855
.ioctl = snd_hdsp_ioctl,
sound/pci/rme9652/hdsp.c
4867
.ioctl = snd_hdsp_ioctl,
sound/pci/rme9652/hdsp.c
4888
hw->ops.ioctl = snd_hdsp_hwdep_ioctl;
sound/pci/rme9652/hdspm.c
6291
.ioctl = snd_hdspm_ioctl,
sound/pci/rme9652/hdspm.c
6314
hw->ops.ioctl = snd_hdspm_hwdep_ioctl;
sound/pci/rme9652/rme9652.c
2292
.ioctl = snd_rme9652_ioctl,
sound/pci/rme9652/rme9652.c
2304
.ioctl = snd_rme9652_ioctl,
sound/soc/codecs/wm8753.c
1018
snd_soc_component_write(component, WM8753_IOCTL, ioctl);
sound/soc/codecs/wm8753.c
1085
u16 ioctl, hifi;
sound/soc/codecs/wm8753.c
1088
ioctl = snd_soc_component_read(component, WM8753_IOCTL) & 0x00ae;
sound/soc/codecs/wm8753.c
1095
ioctl |= 0x1;
sound/soc/codecs/wm8753.c
1144
snd_soc_component_write(component, WM8753_IOCTL, ioctl);
sound/soc/codecs/wm8753.c
239
u16 ioctl;
sound/soc/codecs/wm8753.c
247
ioctl = snd_soc_component_read(component, WM8753_IOCTL);
sound/soc/codecs/wm8753.c
251
if (((ioctl >> 2) & 0x3) == wm8753->dai_func)
sound/soc/codecs/wm8753.c
254
ioctl = (ioctl & 0x1f3) | (wm8753->dai_func << 2);
sound/soc/codecs/wm8753.c
255
snd_soc_component_write(component, WM8753_IOCTL, ioctl);
sound/soc/codecs/wm8753.c
959
u16 voice, ioctl;
sound/soc/codecs/wm8753.c
962
ioctl = snd_soc_component_read(component, WM8753_IOCTL) & 0x015d;
sound/soc/codecs/wm8753.c
969
ioctl |= 0x2;
sound/soc/generic/test-component.c
591
cdriv->ioctl = test_component_ioctl;
sound/soc/soc-component.c
949
if (component->driver->ioctl)
sound/soc/soc-component.c
952
component->driver->ioctl(component,
sound/soc/soc-pcm.c
2969
if (drv->ioctl)
sound/soc/soc-pcm.c
2970
rtd->ops.ioctl = snd_soc_pcm_component_ioctl;
sound/synth/emux/emux_hwdep.c
126
hw->ops.ioctl = snd_emux_hwdep_ioctl;
sound/synth/emux/emux_oss.c
41
.ioctl = snd_emux_ioctl_seq_oss,
sound/usb/fcp.c
883
hw->ops.ioctl = fcp_hwdep_ioctl;
sound/usb/mixer_scarlett2.c
9248
hw->ops.ioctl = scarlett2_hwdep_ioctl;
sound/usb/usx2y/us122l.c
392
hw->ops.ioctl = usb_stream_hwdep_ioctl;
sound/usb/usx2y/us144mkii_capture.c
104
.ioctl = snd_pcm_lib_ioctl,
sound/usb/usx2y/us144mkii_playback.c
150
.ioctl = snd_pcm_lib_ioctl,
sound/virtio/virtio_pcm_ops.c
504
.ioctl = snd_pcm_lib_ioctl,
sound/virtio/virtio_pcm_ops.c
516
.ioctl = snd_pcm_lib_ioctl,
tools/bpf/bpftool/prog.c
2383
ioctl(pmu_fd, PERF_EVENT_IOC_ENABLE, 0)) {
tools/counter/counter_example.c
56
ret = ioctl(fd, COUNTER_ADD_WATCH_IOCTL, watches + i);
tools/counter/counter_example.c
63
ret = ioctl(fd, COUNTER_ENABLE_EVENTS_IOCTL);
tools/counter/counter_watch_events.c
363
ret = ioctl(fd, COUNTER_ADD_WATCH_IOCTL, watches + i);
tools/counter/counter_watch_events.c
372
ret = ioctl(fd, COUNTER_ENABLE_EVENTS_IOCTL);
tools/crypto/ccp/dbc.c
32
if (ioctl(fd, DBCIOCNONCE, &tmp))
tools/crypto/ccp/dbc.c
49
if (ioctl(fd, DBCIOCUID, &tmp))
tools/crypto/ccp/dbc.c
66
if (ioctl(fd, DBCIOCPARAM, &tmp))
tools/dma/dma_map_benchmark.c
114
if (ioctl(fd, cmd, &map)) {
tools/firewire/nosy-dump.c
964
ioctl(fd, NOSY_IOC_FILTER, filter);
tools/firewire/nosy-dump.c
966
ioctl(fd, NOSY_IOC_START);
tools/gpio/gpio-utils.c
115
ret = ioctl(fd, GPIO_V2_LINE_SET_VALUES_IOCTL, values);
tools/gpio/gpio-utils.c
139
ret = ioctl(fd, GPIO_V2_LINE_GET_VALUES_IOCTL, values);
tools/gpio/gpio-utils.c
88
ret = ioctl(fd, GPIO_V2_GET_LINE_IOCTL, &req);
tools/gpio/gpio-watch.c
48
ret = ioctl(fd, GPIO_V2_GET_LINEINFO_WATCH_IOCTL, &req);
tools/gpio/lsgpio.c
121
ret = ioctl(fd, GPIO_GET_CHIPINFO_IOCTL, &cinfo);
tools/gpio/lsgpio.c
137
ret = ioctl(fd, GPIO_V2_GET_LINEINFO_IOCTL, &linfo);
tools/hv/hv_vss_daemon.c
41
ret = ioctl(fd, cmd, 0);
tools/iio/iio_event_monitor.c
418
ret = ioctl(fd, IIO_GET_EVENT_FD_IOCTL, &event_fd);
tools/iio/iio_generic_buffer.c
665
ret = ioctl(fd, IIO_BUFFER_GET_FD_IOCTL, &buf_fd);
tools/include/nolibc/unistd.h
87
return ioctl(fd, TIOCSPGRP, &pid);
tools/laptop/dslm/dslm.c
34
if (ioctl(fd, HDIO_DRIVE_CMD, &args)
tools/laptop/dslm/dslm.c
36
&& ioctl(fd, HDIO_DRIVE_CMD, &args)) {
tools/lib/bpf/libbpf.c
11231
if (ioctl(perf_link->perf_event_fd, PERF_EVENT_IOC_DISABLE, 0) < 0)
tools/lib/bpf/libbpf.c
11309
if (ioctl(pfd, PERF_EVENT_IOC_SET_BPF, prog_fd) < 0) {
tools/lib/bpf/libbpf.c
11322
if (ioctl(pfd, PERF_EVENT_IOC_ENABLE, 0) < 0) {
tools/lib/bpf/libbpf.c
13667
ioctl(cpu_buf->fd, PERF_EVENT_IOC_DISABLE, 0);
tools/lib/bpf/libbpf.c
13733
if (ioctl(cpu_buf->fd, PERF_EVENT_IOC_ENABLE, 0) < 0) {
tools/lib/perf/evlist.c
378
ret = ioctl(fd, PERF_EVENT_IOC_ID, &id);
tools/lib/perf/evlist.c
608
if (ioctl(fd, PERF_EVENT_IOC_SET_OUTPUT, *output) != 0)
tools/lib/perf/evsel.c
436
return ioctl(*fd, ioc, arg);
tools/lib/subcmd/help.c
127
if (ioctl(1, TIOCGWINSZ, ws) == 0 &&
tools/lib/subcmd/pager.c
80
if (ioctl(1, TIOCGWINSZ, &sz) == 0)
tools/perf/arch/x86/tests/amd-ibs-period.c
336
ioctl(fd, PERF_EVENT_IOC_RESET, 0);
tools/perf/arch/x86/tests/amd-ibs-period.c
337
ioctl(fd, PERF_EVENT_IOC_ENABLE, 0);
tools/perf/arch/x86/tests/amd-ibs-period.c
349
ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/arch/x86/tests/amd-ibs-period.c
524
ioctl(fd, PERF_EVENT_IOC_RESET, 0);
tools/perf/arch/x86/tests/amd-ibs-period.c
525
ioctl(fd, PERF_EVENT_IOC_ENABLE, 0);
tools/perf/arch/x86/tests/amd-ibs-period.c
537
ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/arch/x86/tests/amd-ibs-period.c
696
r = ioctl(fd, PERF_EVENT_IOC_PERIOD, &ibs_ioctl->period);
tools/perf/arch/x86/tests/amd-ibs-period.c
830
ioctl(fd, PERF_EVENT_IOC_RESET, 0);
tools/perf/arch/x86/tests/amd-ibs-period.c
831
ioctl(fd, PERF_EVENT_IOC_ENABLE, 0);
tools/perf/arch/x86/tests/amd-ibs-period.c
835
ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/bench/breakpoint.c
232
if (ioctl(fd, PERF_EVENT_IOC_DISABLE, 0))
tools/perf/bench/breakpoint.c
234
if (ioctl(fd, PERF_EVENT_IOC_ENABLE, 0))
tools/perf/bench/sched-seccomp-notify.c
129
if (ioctl(listener, SECCOMP_IOCTL_NOTIF_SET_FLAGS,
tools/perf/bench/sched-seccomp-notify.c
76
if (ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req))
tools/perf/bench/sched-seccomp-notify.c
86
if (ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp))
tools/perf/tests/bp_account.c
147
ret = ioctl(fd, PERF_EVENT_IOC_MODIFY_ATTRIBUTES, &attr);
tools/perf/tests/bp_account.c
98
ret = ioctl(fd[0], PERF_EVENT_IOC_MODIFY_ATTRIBUTES, &attr_mod);
tools/perf/tests/bp_signal.c
136
ioctl(fd, PERF_EVENT_IOC_RESET, 0);
tools/perf/tests/bp_signal.c
246
ioctl(fd1, PERF_EVENT_IOC_ENABLE, 0);
tools/perf/tests/bp_signal.c
247
ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0);
tools/perf/tests/bp_signal.c
248
ioctl(fd3, PERF_EVENT_IOC_ENABLE, 0);
tools/perf/tests/bp_signal.c
256
ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/bp_signal.c
257
ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/bp_signal.c
258
ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/bp_signal.c
76
ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/bp_signal.c
77
ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/bp_signal.c
78
ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/bp_signal.c
97
ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/bp_signal.c
98
ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/bp_signal.c
99
ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/bp_signal_overflow.c
113
ioctl(fd, PERF_EVENT_IOC_RESET, 0);
tools/perf/tests/bp_signal_overflow.c
114
ioctl(fd, PERF_EVENT_IOC_ENABLE, 0);
tools/perf/tests/bp_signal_overflow.c
119
ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
tools/perf/tests/sigtrap.c
193
TEST_ASSERT_EQUAL("enable failed", ioctl(fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/perf/tests/sigtrap.c
195
TEST_ASSERT_EQUAL("disable failed", ioctl(fd, PERF_EVENT_IOC_DISABLE, 0), 0);
tools/perf/tests/wp.c
169
ret = ioctl(fd, PERF_EVENT_IOC_MODIFY_ATTRIBUTES, &new_attr);
tools/perf/tests/wp.c
185
ioctl(fd, PERF_EVENT_IOC_ENABLE, 0);
tools/perf/util/bpf-filter.c
300
int ret = ioctl(FD(evsel, x, y), PERF_EVENT_IOC_ID, &id);
tools/perf/util/bpf-filter.c
498
ret = ioctl(FD(evsel, x, y), PERF_EVENT_IOC_SET_BPF, fd);
tools/perf/util/evlist.c
770
err = ioctl(fd, PERF_EVENT_IOC_PAUSE_OUTPUT, value ? 1 : 0);
tools/perf/util/evsel.c
2887
err = ioctl(evt_fd,
tools/perf/util/term.c
22
if (ioctl(1, TIOCGWINSZ, ws) == 0 &&
tools/power/acpi/tools/pfrut/pfrut.c
230
ret = ioctl(fd_update, PFRU_IOC_QUERY_CAP, &cap);
tools/power/acpi/tools/pfrut/pfrut.c
243
ret = ioctl(fd_update_log, PFRT_LOG_IOC_GET_DATA_INFO, &data_info);
tools/power/acpi/tools/pfrut/pfrut.c
252
ret = ioctl(fd_update_log, PFRT_LOG_IOC_GET_INFO, &info);
tools/power/acpi/tools/pfrut/pfrut.c
305
ret = ioctl(fd_update_log, PFRT_LOG_IOC_SET_INFO, &info);
tools/power/acpi/tools/pfrut/pfrut.c
315
ret = ioctl(fd_update, PFRU_IOC_SET_REV, &revid);
tools/power/acpi/tools/pfrut/pfrut.c
378
ret = ioctl(fd_update, PFRU_IOC_STAGE, NULL);
tools/power/acpi/tools/pfrut/pfrut.c
380
ret = ioctl(fd_update, PFRU_IOC_ACTIVATE, NULL);
tools/power/acpi/tools/pfrut/pfrut.c
382
ret = ioctl(fd_update, PFRU_IOC_STAGE_ACTIVATE, NULL);
tools/power/acpi/tools/pfrut/pfrut.c
398
ret = ioctl(fd_update_log, PFRT_LOG_IOC_GET_DATA_INFO, &data_info);
tools/power/x86/intel-speed-select/isst-config.c
1131
if (ioctl(fd, ISST_IF_GET_PLATFORM_INFO, &isst_platform_info) == -1) {
tools/power/x86/intel-speed-select/isst-config.c
829
if (ioctl(fd, ISST_IF_GET_PHY_ID, &map) == -1) {
tools/power/x86/intel-speed-select/isst-core-mbox.c
101
if (ioctl(fd, cmd, &io_regs) == -1) {
tools/power/x86/intel-speed-select/isst-core-mbox.c
189
if (ioctl(fd, ISST_IF_MBOX_COMMAND, &mbox_cmds) == -1) {
tools/power/x86/intel-speed-select/isst-core-tpmi.c
64
if (ioctl(fd, ioctl_no, info) == -1) {
tools/power/x86/intel-speed-select/isst-core.c
89
if (ioctl(fd, ISST_IF_MSR_COMMAND, &msr_cmds) == -1) {
tools/spi/spidev_fdx.c
68
status = ioctl(fd, SPI_IOC_MESSAGE(2), xfer);
tools/spi/spidev_fdx.c
85
if (ioctl(fd, SPI_IOC_RD_MODE32, &mode) < 0) {
tools/spi/spidev_fdx.c
89
if (ioctl(fd, SPI_IOC_RD_LSB_FIRST, &lsb) < 0) {
tools/spi/spidev_fdx.c
93
if (ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits) < 0) {
tools/spi/spidev_fdx.c
97
if (ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed) < 0) {
tools/spi/spidev_test.c
152
ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr);
tools/spi/spidev_test.c
464
ret = ioctl(fd, SPI_IOC_WR_MODE32, &mode);
tools/spi/spidev_test.c
469
ret = ioctl(fd, SPI_IOC_RD_MODE32, &mode);
tools/spi/spidev_test.c
483
ret = ioctl(fd, SPI_IOC_WR_BITS_PER_WORD, &bits);
tools/spi/spidev_test.c
487
ret = ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits);
tools/spi/spidev_test.c
494
ret = ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed);
tools/spi/spidev_test.c
498
ret = ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed);
tools/testing/selftests/alsa/utimer-test.c
153
utimer_fd = ioctl(timer_dev_fd, SNDRV_TIMER_IOCTL_CREATE, &wrong_timer);
tools/testing/selftests/alsa/utimer-test.c
159
ASSERT_LT(ioctl(timer_dev_fd, SNDRV_TIMER_IOCTL_CREATE, NULL), 0);
tools/testing/selftests/alsa/utimer-test.c
55
ASSERT_EQ(ioctl(timer_dev_fd, SNDRV_TIMER_IOCTL_CREATE, self->utimer_info), 0);
tools/testing/selftests/alsa/utimer-test.c
73
ioctl(*fd, SNDRV_TIMER_IOCTL_TRIGGER, NULL);
tools/testing/selftests/bpf/network_helpers.c
586
err = ioctl(fd, TUNSETIFF, &ifr);
tools/testing/selftests/bpf/network_helpers.c
638
if (ioctl(sockfd, SIOCETHTOOL, &ifr) < 0) {
tools/testing/selftests/bpf/network_helpers.c
662
if (ioctl(sockfd, SIOCETHTOOL, &ifr) < 0) {
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
75
if (ioctl(uffd, UFFDIO_API, &uffd_api)) {
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
83
if (ioctl(uffd, UFFDIO_REGISTER, &uffd_register)) {
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
59
local_udmabuf = ioctl(dev_udmabuf, UDMABUF_CREATE, &create);
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
64
if (!ASSERT_OK(ioctl(local_udmabuf, DMA_BUF_SET_NAME_B, udmabuf_test_buffer_name), "name"))
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
93
ret = ioctl(heap_fd, DMA_HEAP_IOCTL_ALLOC, &data);
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
98
if (!ASSERT_OK(ioctl(data.fd, DMA_BUF_SET_NAME_B, sysheap_test_buffer_name), "name"))
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
579
ret = ioctl(fd, TUNSETIFF, &ifr);
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
608
ret = ioctl(sk, SIOCGIFFLAGS, &ifr);
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
615
ret = ioctl(sk, SIOCSIFFLAGS, &ifr);
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
231
err = ioctl(fd, FS_IOC_ENABLE_VERITY, &arg);
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
248
err = ioctl(fd, FS_IOC_MEASURE_VERITY, skel->bss->expected_digest);
tools/testing/selftests/bpf/prog_tests/perf_skip.c
98
err = ioctl(perf_fd, PERF_EVENT_IOC_REFRESH, 1);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1239
if (ioctl(fd, FIONREAD, &avail) < 0)
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
594
err = ioctl(c1, FIONREAD, &avail);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
687
err = ioctl(c1, FIONREAD, &avail);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
692
err = ioctl(c1, FIONREAD, &avail);
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
346
err = ioctl(p, FIONREAD, &avail);
tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c
47
err = ioctl(pmu_fd, PERF_EVENT_IOC_ENABLE, 0);
tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c
52
err = ioctl(pmu_fd, PERF_EVENT_IOC_SET_BPF, prog_fd);
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
1100
err = ioctl(fd, TUNSETIFF, &ifr);
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
108
err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query);
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
117
err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query);
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
134
ioctl(pmu_fd[i], PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
66
err = ioctl(pmu_fd[i], PERF_EVENT_IOC_ENABLE, 0);
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
74
err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query);
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
82
err = ioctl(pmu_fd[i], PERF_EVENT_IOC_SET_BPF, prog_fd[i]);
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
90
err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query);
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
99
err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF,
tools/testing/selftests/bpf/test_maps.c
681
err = ioctl(sfd[i], FIONBIO, (char *)&one);
tools/testing/selftests/bpf/test_sockmap.c
335
err = ioctl(*fds[i], FIONBIO, (char *)&one);
tools/testing/selftests/bpf/trace_helpers.c
265
err = ioctl(fd, PROCMAP_QUERY, &q);
tools/testing/selftests/bpf/xdp_hw_metadata.c
560
ret = ioctl(fd, SIOCETHTOOL, &ifr);
tools/testing/selftests/bpf/xdp_hw_metadata.c
581
ret = ioctl(fd, op, &ifr);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1420
ASSERT_EQ(ioctl(pidfd[i], PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1560
ASSERT_EQ(ioctl(pidfd[i], PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/coredump/coredump_test_helpers.c
146
ret = ioctl(fd_peer_pidfd, PIDFD_GET_INFO, info);
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
120
ret = ioctl(fd, DMA_HEAP_IOCTL_ALLOC, &data);
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
140
return ioctl(fd, DMA_BUF_IOCTL_SYNC, &sync);
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
305
ret = ioctl(fd, older_alloc_ioctl, &data);
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
31
ret = ioctl(fd, DRM_IOCTL_VERSION, &version);
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
341
ret = ioctl(fd, newer_alloc_ioctl, &data);
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
75
ret = ioctl(vgem_fd, DRM_IOCTL_PRIME_FD_TO_HANDLE, &import_handle);
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
87
ioctl(vgem_fd, DRM_IOCTL_GEM_CLOSE, &close);
tools/testing/selftests/drivers/dma-buf/udmabuf.c
176
buf = ioctl(devfd, UDMABUF_CREATE, &create);
tools/testing/selftests/drivers/dma-buf/udmabuf.c
186
buf = ioctl(devfd, UDMABUF_CREATE, &create);
tools/testing/selftests/drivers/dma-buf/udmabuf.c
196
buf = ioctl(devfd, UDMABUF_CREATE, &create);
tools/testing/selftests/drivers/dma-buf/udmabuf.c
209
buf = ioctl(devfd, UDMABUF_CREATE, &create);
tools/testing/selftests/drivers/dma-buf/udmabuf.c
77
ubuf_fd = ioctl(devfd, UDMABUF_CREATE_LIST, list);
tools/testing/selftests/drivers/net/hw/ncdevmem.c
181
ctx->fd = ioctl(ctx->devfd, UDMABUF_CREATE, &create);
tools/testing/selftests/drivers/net/hw/ncdevmem.c
222
ioctl(dst->fd, DMA_BUF_IOCTL_SYNC, &sync);
tools/testing/selftests/drivers/net/hw/ncdevmem.c
227
ioctl(dst->fd, DMA_BUF_IOCTL_SYNC, &sync);
tools/testing/selftests/drivers/net/hw/ncdevmem.c
236
ioctl(src->fd, DMA_BUF_IOCTL_SYNC, &sync);
tools/testing/selftests/drivers/net/hw/ncdevmem.c
241
ioctl(src->fd, DMA_BUF_IOCTL_SYNC, &sync);
tools/testing/selftests/drivers/ntsync/ntsync.c
1009
ret = ioctl(objs[2], NTSYNC_IOC_EVENT_RESET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
1019
ret = ioctl(objs[3], NTSYNC_IOC_EVENT_RESET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
1023
ret = ioctl(objs[2], NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
1027
ret = ioctl(objs[3], NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
1078
objs[0] = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1083
objs[1] = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1088
event = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1095
ret = ioctl(event, NTSYNC_IOC_EVENT_RESET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
1102
ret = ioctl(event, NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
1115
ret = ioctl(event, NTSYNC_IOC_EVENT_RESET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
112
ret = ioctl(fd, request, &args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1133
ret = ioctl(event, NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
1147
event = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1189
objs[0] = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1194
objs[1] = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1199
event = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1212
ret = ioctl(event, NTSYNC_IOC_EVENT_RESET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
1230
ret = ioctl(event, NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
1244
event = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1289
ioctl(stress_device, NTSYNC_IOC_WAIT_ANY, &wait_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1294
ioctl(stress_device, NTSYNC_IOC_WAIT_ANY, &wait_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1317
stress_mutex = ioctl(stress_device, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1322
stress_start_event = ioctl(stress_device, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
1328
ret = ioctl(stress_start_event, NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
155
sem = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
161
sem = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
23
ret = ioctl(sem, NTSYNC_IOC_SEM_READ, &args);
tools/testing/selftests/drivers/ntsync/ntsync.c
239
mutex = ioctl(fd, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
245
mutex = ioctl(fd, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
251
mutex = ioctl(fd, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
298
ret = ioctl(mutex, NTSYNC_IOC_MUTEX_KILL, &owner);
tools/testing/selftests/drivers/ntsync/ntsync.c
303
ret = ioctl(mutex, NTSYNC_IOC_MUTEX_KILL, &owner);
tools/testing/selftests/drivers/ntsync/ntsync.c
309
ret = ioctl(mutex, NTSYNC_IOC_MUTEX_KILL, &owner);
tools/testing/selftests/drivers/ntsync/ntsync.c
313
ret = ioctl(mutex, NTSYNC_IOC_MUTEX_READ, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
320
ret = ioctl(mutex, NTSYNC_IOC_MUTEX_READ, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
333
ret = ioctl(mutex, NTSYNC_IOC_MUTEX_KILL, &owner);
tools/testing/selftests/drivers/ntsync/ntsync.c
337
ret = ioctl(mutex, NTSYNC_IOC_MUTEX_READ, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
353
mutex = ioctl(fd, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
366
mutex = ioctl(fd, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
390
event = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
395
ret = ioctl(event, NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
40
return ioctl(sem, NTSYNC_IOC_SEM_RELEASE, count);
tools/testing/selftests/drivers/ntsync/ntsync.c
400
ret = ioctl(event, NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
411
ret = ioctl(event, NTSYNC_IOC_EVENT_RESET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
416
ret = ioctl(event, NTSYNC_IOC_EVENT_RESET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
425
ret = ioctl(event, NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
429
ret = ioctl(event, NTSYNC_IOC_EVENT_PULSE, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
434
ret = ioctl(event, NTSYNC_IOC_EVENT_PULSE, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
455
event = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
461
ret = ioctl(event, NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
472
ret = ioctl(event, NTSYNC_IOC_EVENT_RESET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
481
ret = ioctl(event, NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
485
ret = ioctl(event, NTSYNC_IOC_EVENT_PULSE, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
49
ret = ioctl(mutex, NTSYNC_IOC_MUTEX_READ, &args);
tools/testing/selftests/drivers/ntsync/ntsync.c
490
ret = ioctl(event, NTSYNC_IOC_EVENT_PULSE, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
515
objs[0] = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
520
objs[1] = ioctl(fd, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
563
ret = ioctl(objs[1], NTSYNC_IOC_MUTEX_KILL, &owner);
tools/testing/selftests/drivers/ntsync/ntsync.c
627
objs[0] = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
632
objs[1] = ioctl(fd, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
671
ret = ioctl(objs[1], NTSYNC_IOC_MUTEX_KILL, &owner);
tools/testing/selftests/drivers/ntsync/ntsync.c
684
objs[1] = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
71
ret = ioctl(mutex, NTSYNC_IOC_MUTEX_UNLOCK, &args);
tools/testing/selftests/drivers/ntsync/ntsync.c
723
args->ret = ioctl(args->fd, args->request, args->args);
tools/testing/selftests/drivers/ntsync/ntsync.c
762
objs[0] = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
767
objs[1] = ioctl(fd, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
82
ret = ioctl(event, NTSYNC_IOC_EVENT_READ, &args);
tools/testing/selftests/drivers/ntsync/ntsync.c
835
objs[1] = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
845
ret = ioctl(objs[1], NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
862
ret = ioctl(objs[1], NTSYNC_IOC_EVENT_PULSE, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
876
objs[1] = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
886
ret = ioctl(objs[1], NTSYNC_IOC_EVENT_SET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
896
ret = ioctl(objs[1], NTSYNC_IOC_EVENT_RESET, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
907
ret = ioctl(objs[1], NTSYNC_IOC_EVENT_PULSE, &signaled);
tools/testing/selftests/drivers/ntsync/ntsync.c
955
objs[0] = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
960
objs[1] = ioctl(fd, NTSYNC_IOC_CREATE_MUTEX, &mutex_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
965
objs[2] = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &manual_event_args);
tools/testing/selftests/drivers/ntsync/ntsync.c
970
objs[3] = ioctl(fd, NTSYNC_IOC_CREATE_EVENT, &auto_event_args);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
102
rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
109
rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
116
rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
122
rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
139
rc = ioctl(self->uv_fd, cmds[i], &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
195
rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
201
rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
224
rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
230
rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
241
rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
246
rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
59
rc = ioctl(self->uv_fd, variant->ioctl_cmd, NULL);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
64
rc = ioctl(self->uv_fd, variant->ioctl_cmd, self->fault_page);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
75
rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
81
rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
96
rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl);
tools/testing/selftests/efivarfs/open-unlink.c
24
rc = ioctl(fd, FS_IOC_GETFLAGS, &flags);
tools/testing/selftests/efivarfs/open-unlink.c
37
rc = ioctl(fd, FS_IOC_SETFLAGS, &flags);
tools/testing/selftests/efivarfs/open-unlink.c
55
rc = ioctl(fd, FS_IOC_GETFLAGS, &flags);
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
122
ret = ioctl(fd, BINDER_VERSION, &version);
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
366
ret = ioctl(fd, BINDER_VERSION, &version);
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
433
ret = ioctl(fd, BINDER_CTL_ADD, &device);
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
99
ret = ioctl(fd, BINDER_CTL_ADD, &device);
tools/testing/selftests/filesystems/devpts_pts.c
123
slave = ioctl(master, TIOCGPTPEER, O_RDWR | O_NOCTTY | O_CLOEXEC);
tools/testing/selftests/filesystems/devpts_pts.c
48
ret = ioctl(fd, TIOCSCTTY, NULL);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
108
fd_mnt_ns_prev = ioctl(fd_mnt_ns_cur, NS_MNT_GET_PREV, &info);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
131
fd_mnt_ns_next = ioctl(fd_mnt_ns_cur, NS_MNT_GET_NEXT, &info);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
149
fd_mnt_ns_prev = ioctl(fd_mnt_ns_cur, NS_MNT_GET_PREV, &info);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
158
ASSERT_NE(ioctl(self->fd_mnt_ns[0], AUTOFS_DEV_IOCTL_OPENMOUNT, NULL), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
161
ASSERT_NE(ioctl(self->fd_mnt_ns[0], AUTOFS_DEV_IOCTL_CLOSEMOUNT, NULL), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
164
ASSERT_NE(ioctl(self->fd_mnt_ns[0], AUTOFS_DEV_IOCTL_READY, NULL), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
60
ASSERT_EQ(ioctl(self->fd_mnt_ns[i], NS_MNT_GET_INFO, &info), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
85
fd_mnt_ns_next = ioctl(fd_mnt_ns_cur, NS_MNT_GET_NEXT, &info);
tools/testing/selftests/filesystems/nsfs/owner.c
60
uns = ioctl(ns, NS_GET_USERNS);
tools/testing/selftests/filesystems/nsfs/owner.c
74
init_uns = ioctl(uns, NS_GET_USERNS);
tools/testing/selftests/filesystems/nsfs/owner.c
78
if (ioctl(init_uns, NS_GET_USERNS) >= 0 || errno != EPERM)
tools/testing/selftests/filesystems/nsfs/owner.c
84
if (ioctl(ns, NS_GET_USERNS) >= 0 || errno != EPERM)
tools/testing/selftests/filesystems/nsfs/owner.c
86
if (ioctl(init_uns, NS_GET_USERNS) >= 0 || errno != EPERM)
tools/testing/selftests/filesystems/nsfs/pidns.c
60
pns = ioctl(ns, NS_GET_PARENT);
tools/testing/selftests/filesystems/nsfs/pidns.c
72
if (ioctl(pns, NS_GET_PARENT) >= 0 || errno != EPERM)
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
35
if (ioctl(fd, NS_GET_MNTNS_ID, mnt_ns_id) < 0)
tools/testing/selftests/filesystems/statmount/statmount_test_ns.c
73
if (ioctl(fd, NS_GET_MNTNS_ID, mnt_ns_id) < 0) {
tools/testing/selftests/gpio/gpio-chip-info.c
39
ret = ioctl(fd, GPIO_GET_CHIPINFO_IOCTL, &info);
tools/testing/selftests/gpio/gpio-line-name.c
46
ret = ioctl(fd, GPIO_V2_GET_LINEINFO_IOCTL, &info);
tools/testing/selftests/gpio/gpio-mockup-cdev.c
39
ret = ioctl(cfd, GPIO_V2_GET_LINE_IOCTL, &req);
tools/testing/selftests/gpio/gpio-mockup-cdev.c
53
ret = ioctl(lfd, GPIO_V2_LINE_GET_VALUES_IOCTL, &vals);
tools/testing/selftests/gpio/gpio-mockup-cdev.c
73
ret = ioctl(cfd, GPIO_GET_LINEHANDLE_IOCTL, &req);
tools/testing/selftests/gpio/gpio-mockup-cdev.c
85
ret = ioctl(lfd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &vals);
tools/testing/selftests/hid/hid_bpf.c
535
err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf);
tools/testing/selftests/hid/hid_bpf.c
548
err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf);
tools/testing/selftests/hid/hid_bpf.c
571
err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf);
tools/testing/selftests/hid/hid_bpf.c
597
err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf);
tools/testing/selftests/hid/hid_bpf.c
877
err = ioctl(self->hidraw_fd, HIDIOCGRDESCSIZE, &desc_size);
tools/testing/selftests/hid/hid_bpf.c
884
err = ioctl(self->hidraw_fd, HIDIOCGRDESC, &rpt_desc);
tools/testing/selftests/hid/hidraw.c
101
err = ioctl(self->hidraw_fd, HIDIOCREVOKE, NULL);
tools/testing/selftests/hid/hidraw.c
125
err = ioctl(self->hidraw_fd, HIDIOCREVOKE, NULL);
tools/testing/selftests/hid/hidraw.c
129
err = ioctl(self->hidraw_fd, HIDIOCGRDESCSIZE, &desc_size);
tools/testing/selftests/hid/hidraw.c
165
err = ioctl(self->hidraw_fd, HIDIOCREVOKE, NULL);
tools/testing/selftests/hid/hidraw.c
207
err = ioctl(self->hidraw_fd, HIDIOCREVOKE, NULL);
tools/testing/selftests/hid/hidraw.c
230
err = ioctl(self->hidraw_fd, HIDIOCGRDESCSIZE, &desc_size);
tools/testing/selftests/hid/hidraw.c
248
err = ioctl(self->hidraw_fd, HIDIOCGRDESC, &desc);
tools/testing/selftests/hid/hidraw.c
267
err = ioctl(self->hidraw_fd, HIDIOCGRDESC, &desc);
tools/testing/selftests/hid/hidraw.c
284
err = ioctl(self->hidraw_fd, HIDIOCGRAWINFO, &devinfo);
tools/testing/selftests/hid/hidraw.c
308
err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf);
tools/testing/selftests/hid/hidraw.c
330
err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf);
tools/testing/selftests/hid/hidraw.c
350
err = ioctl(self->hidraw_fd, bad_cmd, buf);
tools/testing/selftests/hid/hidraw.c
361
err = ioctl(self->hidraw_fd, bad_cmd, buf);
tools/testing/selftests/hid/hidraw.c
369
err = ioctl(self->hidraw_fd, bad_cmd, buf);
tools/testing/selftests/hid/hidraw.c
377
err = ioctl(self->hidraw_fd, bad_cmd, buf);
tools/testing/selftests/hid/hidraw.c
398
err = ioctl(self->hidraw_fd, bad_cmd, buf);
tools/testing/selftests/hid/hidraw.c
422
err = ioctl(self->hidraw_fd, bad_cmd, buf);
tools/testing/selftests/hid/hidraw.c
429
err = ioctl(self->hidraw_fd, bad_cmd, buf);
tools/testing/selftests/hid/hidraw.c
450
err = ioctl(self->hidraw_fd, bad_cmd, buf);
tools/testing/selftests/hid/hidraw.c
457
err = ioctl(self->hidraw_fd, bad_cmd, buf);
tools/testing/selftests/hid/hidraw.c
476
err = ioctl(self->hidraw_fd, HIDIOCSFEATURE(3), buf);
tools/testing/selftests/hid/hidraw.c
497
err = ioctl(self->hidraw_fd, HIDIOCGINPUT(sizeof(buf)), buf);
tools/testing/selftests/hid/hidraw.c
519
err = ioctl(self->hidraw_fd, HIDIOCGINPUT(sizeof(buf)), buf);
tools/testing/selftests/hid/hidraw.c
538
err = ioctl(self->hidraw_fd, HIDIOCSINPUT(3), buf);
tools/testing/selftests/hid/hidraw.c
559
err = ioctl(self->hidraw_fd, HIDIOCGOUTPUT(sizeof(buf)), buf);
tools/testing/selftests/hid/hidraw.c
581
err = ioctl(self->hidraw_fd, HIDIOCGOUTPUT(sizeof(buf)), buf);
tools/testing/selftests/hid/hidraw.c
600
err = ioctl(self->hidraw_fd, HIDIOCSOUTPUT(3), buf);
tools/testing/selftests/hid/hidraw.c
619
err = ioctl(self->hidraw_fd, HIDIOCGRAWNAME(sizeof(name)), name);
tools/testing/selftests/hid/hidraw.c
640
err = ioctl(self->hidraw_fd, HIDIOCGRAWPHYS(sizeof(phys)), phys);
tools/testing/selftests/hid/hidraw.c
660
err = ioctl(self->hidraw_fd, HIDIOCGRAWUNIQ(sizeof(uniq)), uniq);
tools/testing/selftests/hid/hidraw.c
677
err = ioctl(self->hidraw_fd, HIDIOCGRAWNAME(sizeof(small_buf)), small_buf);
tools/testing/selftests/ia64/aliasing-test.c
37
rc = ioctl(fd, PCIIOC_MMAP_IS_MEM);
tools/testing/selftests/iommu/iommufd.c
1016
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_ALLOW_IOVAS, &allow_cmd));
tools/testing/selftests/iommu/iommufd.c
1020
ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1024
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_ALLOW_IOVAS, &allow_cmd));
tools/testing/selftests/iommu/iommufd.c
1028
ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ADD_RESERVED),
tools/testing/selftests/iommu/iommufd.c
1034
ioctl(self->fd, IOMMU_IOAS_ALLOW_IOVAS, &allow_cmd));
tools/testing/selftests/iommu/iommufd.c
105
EXPECT_ERRNO(EINVAL, ioctl(self->fd, _ioctl, &cmd)); \
tools/testing/selftests/iommu/iommufd.c
1052
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd));
tools/testing/selftests/iommu/iommufd.c
1058
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd));
tools/testing/selftests/iommu/iommufd.c
107
EXPECT_ERRNO(E2BIG, ioctl(self->fd, _ioctl, &cmd)); \
tools/testing/selftests/iommu/iommufd.c
1078
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_IOVA_RANGES, &ranges_cmd));
tools/testing/selftests/iommu/iommufd.c
109
rc = ioctl(self->fd, _ioctl, &cmd); \
tools/testing/selftests/iommu/iommufd.c
1094
ioctl(self->fd, IOMMU_IOAS_IOVA_RANGES, &ranges_cmd));
tools/testing/selftests/iommu/iommufd.c
1101
ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ADD_RESERVED),
tools/testing/selftests/iommu/iommufd.c
1104
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_IOVA_RANGES, &ranges_cmd));
tools/testing/selftests/iommu/iommufd.c
1121
EXPECT_ERRNO(EMSGSIZE, ioctl(self->fd, IOMMU_IOAS_IOVA_RANGES,
tools/testing/selftests/iommu/iommufd.c
1128
ioctl(self->fd, IOMMU_IOAS_IOVA_RANGES, &ranges_cmd));
tools/testing/selftests/iommu/iommufd.c
115
ioctl(self->fd, _ioctl, &cmd)); \
tools/testing/selftests/iommu/iommufd.c
1158
ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_PAGES),
tools/testing/selftests/iommu/iommufd.c
117
ASSERT_EQ(0, ioctl(self->fd, _ioctl, &cmd)); \
tools/testing/selftests/iommu/iommufd.c
1202
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1210
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1214
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1223
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1229
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1257
ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_PAGES),
tools/testing/selftests/iommu/iommufd.c
1294
ASSERT_EQ(0, ioctl(fd,
tools/testing/selftests/iommu/iommufd.c
1307
ASSERT_EQ(0, ioctl(fd,
tools/testing/selftests/iommu/iommufd.c
1325
ASSERT_EQ(0, ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_RW),
tools/testing/selftests/iommu/iommufd.c
1450
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1455
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1459
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1464
EXPECT_ERRNO(EINVAL, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1468
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1508
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
151
EXPECT_ERRNO(ENOENT, ioctl(self->fd, IOMMU_DESTROY, &cmd));
tools/testing/selftests/iommu/iommufd.c
1514
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1518
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1524
EXPECT_ERRNO(EADDRINUSE, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
154
EXPECT_ERRNO(E2BIG, ioctl(self->fd, IOMMU_DESTROY, &cmd));
tools/testing/selftests/iommu/iommufd.c
1559
EXPECT_ERRNO(ENOENT, ioctl(self->fd, IOMMU_IOAS_COPY,
tools/testing/selftests/iommu/iommufd.c
1563
ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd));
tools/testing/selftests/iommu/iommufd.c
157
EXPECT_ERRNO(ENOENT, ioctl(self->fd, IOMMU_DESTROY, &cmd));
tools/testing/selftests/iommu/iommufd.c
160
EXPECT_ERRNO(EINVAL, ioctl(self->fd, IOMMU_DESTROY, &cmd));
tools/testing/selftests/iommu/iommufd.c
1724
ioctl(self->fd, \
tools/testing/selftests/iommu/iommufd.c
173
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1730
ioctl(self->fd, \
tools/testing/selftests/iommu/iommufd.c
179
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
181
EXPECT_ERRNO(EINVAL, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
184
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
189
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
193
EXPECT_ERRNO(ENOENT, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
195
EXPECT_ERRNO(ENOENT, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1981
ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_PAGES),
tools/testing/selftests/iommu/iommufd.c
1984
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd));
tools/testing/selftests/iommu/iommufd.c
1999
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_UNMAP, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2005
ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_PAGES),
tools/testing/selftests/iommu/iommufd.c
2008
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd));
tools/testing/selftests/iommu/iommufd.c
2169
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
2388
ASSERT_EQ(VFIO_API_VERSION, ioctl(self->fd, VFIO_GET_API_VERSION));
tools/testing/selftests/iommu/iommufd.c
2389
ASSERT_EQ(1, ioctl(self->fd, VFIO_CHECK_EXTENSION, VFIO_TYPE1v2_IOMMU));
tools/testing/selftests/iommu/iommufd.c
2400
EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2404
EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2407
EXPECT_ERRNO(ENODEV, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2419
EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2423
EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2427
EXPECT_ERRNO(ENODEV, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2436
EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_GET_INFO, &info_cmd));
tools/testing/selftests/iommu/iommufd.c
2439
EXPECT_ERRNO(ENODEV, ioctl(self->fd, VFIO_IOMMU_GET_INFO, &info_cmd));
tools/testing/selftests/iommu/iommufd.c
2446
ioctl(self->fd, VFIO_SET_IOMMU, VFIO_TYPE1v2_IOMMU));
tools/testing/selftests/iommu/iommufd.c
2447
EXPECT_ERRNO(ENODEV, ioctl(self->fd, VFIO_SET_IOMMU, VFIO_TYPE1_IOMMU));
tools/testing/selftests/iommu/iommufd.c
2459
EXPECT_ERRNO(ENODEV, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2463
EXPECT_ERRNO(ENOENT, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2468
ASSERT_EQ(0, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2472
ASSERT_EQ(0, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2477
ASSERT_EQ(0, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2479
EXPECT_ERRNO(ENODEV, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2509
ASSERT_EQ(0, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2510
ASSERT_EQ(0, ioctl(self->fd, VFIO_SET_IOMMU, variant->version));
tools/testing/selftests/iommu/iommufd.c
2542
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
2569
ASSERT_EQ(0, ioctl(fd, cmd, buffer)); \
tools/testing/selftests/iommu/iommufd.c
264
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &set_limit_cmd));
tools/testing/selftests/iommu/iommufd.c
2695
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2696
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2699
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2702
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2704
EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2708
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2717
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2725
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2751
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2763
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA,
tools/testing/selftests/iommu/iommufd.c
2767
ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA,
tools/testing/selftests/iommu/iommufd.c
302
EXPECT_ERRNO(EINVAL, ioctl(self->fd, IOMMU_IOAS_CHANGE_PROCESS, &cmd));
tools/testing/selftests/iommu/iommufd.c
307
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_CHANGE_PROCESS, &cmd));
tools/testing/selftests/iommu/iommufd.c
321
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_CHANGE_PROCESS, &cmd));
tools/testing/selftests/iommu/iommufd.c
85
EXPECT_ERRNO(EFAULT, ioctl(self->fd, IOMMU_DESTROY, NULL));
tools/testing/selftests/iommu/iommufd.c
88
ioctl(self->fd, _IO(IOMMUFD_TYPE, IOMMUFD_CMD_BASE - 1),
tools/testing/selftests/iommu/iommufd.c
923
ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ADD_RESERVED),
tools/testing/selftests/iommu/iommufd.c
943
ioctl(self->fd, IOMMU_IOAS_ALLOW_IOVAS, &allow_cmd));
tools/testing/selftests/iommu/iommufd.c
953
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_ALLOW_IOVAS, &allow_cmd));
tools/testing/selftests/iommu/iommufd.c
990
ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ADD_RESERVED),
tools/testing/selftests/iommu/iommufd_fail_nth.c
261
if (ioctl(self->fd, IOMMU_IOAS_IOVA_RANGES, &ranges_cmd))
tools/testing/selftests/iommu/iommufd_fail_nth.c
275
if (ioctl(self->fd, IOMMU_IOAS_ALLOW_IOVAS, &allow_cmd))
tools/testing/selftests/iommu/iommufd_fail_nth.c
295
if (ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd))
tools/testing/selftests/iommu/iommufd_fail_nth.c
464
if (ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_RW),
tools/testing/selftests/iommu/iommufd_fail_nth.c
469
if (ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_RW),
tools/testing/selftests/iommu/iommufd_fail_nth.c
474
if (ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_RW),
tools/testing/selftests/iommu/iommufd_fail_nth.c
479
if (ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_RW),
tools/testing/selftests/iommu/iommufd_fail_nth.c
495
if (ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_RW),
tools/testing/selftests/iommu/iommufd_fail_nth.c
543
if (ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_RW),
tools/testing/selftests/iommu/iommufd_fail_nth.c
602
if (ioctl(self->fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_RW),
tools/testing/selftests/iommu/iommufd_utils.h
1015
ret = ioctl(fd, IOMMU_VDEVICE_ALLOC, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
1045
ret = ioctl(fd, IOMMU_HW_QUEUE_ALLOC, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
1073
ret = ioctl(fd, IOMMU_VEVENTQ_ALLOC, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
1103
if (ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_TRIGGER_VEVENT),
tools/testing/selftests/iommu/iommufd_utils.h
111
ret = ioctl(fd, IOMMU_TEST_CMD, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
1187
return ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_PASID_ATTACH),
tools/testing/selftests/iommu/iommufd_utils.h
1213
return ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_PASID_REPLACE),
tools/testing/selftests/iommu/iommufd_utils.h
1237
return ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_PASID_DETACH),
tools/testing/selftests/iommu/iommufd_utils.h
1257
return ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_PASID_CHECK_HWPT),
tools/testing/selftests/iommu/iommufd_utils.h
142
ret = ioctl(fd, IOMMU_TEST_CMD, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
175
ret = ioctl(fd, IOMMU_TEST_CMD, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
206
ret = ioctl(fd, IOMMU_HWPT_ALLOC, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
269
ioctl(self->fd, \
tools/testing/selftests/iommu/iommufd_utils.h
292
ASSERT_EQ(0, ioctl(self->fd, \
tools/testing/selftests/iommu/iommufd_utils.h
317
int rc = ioctl(fd, IOMMU_HWPT_INVALIDATE, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
348
int rc = ioctl(fd, IOMMU_HWPT_INVALIDATE, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
379
ret = ioctl(fd, IOMMU_TEST_CMD, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
396
ret = ioctl(fd, IOMMU_HWPT_SET_DIRTY_TRACKING, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
419
ret = ioctl(fd, IOMMU_HWPT_GET_DIRTY_BITMAP, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
447
ret = ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_DIRTY), &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
528
ret = ioctl(fd, IOMMU_TEST_CMD, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
554
return ioctl(fd, IOMMU_TEST_CMD, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
571
*out_fd = ioctl(fd, IOMMU_TEST_CMD, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
588
ret = ioctl(fd, IOMMU_TEST_CMD, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
602
return ioctl(fd, IOMMU_DESTROY, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
613
ret = ioctl(fd, IOMMU_IOAS_ALLOC, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
640
ret = ioctl(fd, IOMMU_IOAS_MAP, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
708
ret = ioctl(fd, IOMMU_IOAS_UNMAP, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
742
ret = ioctl(fd, IOMMU_IOAS_MAP_FILE, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
785
return ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_SET_TEMP_MEMORY_LIMIT),
tools/testing/selftests/iommu/iommufd_utils.h
811
EXPECT_EQ(0, ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_MD_CHECK_REFS),
tools/testing/selftests/iommu/iommufd_utils.h
843
ret = ioctl(fd, IOMMU_GET_HW_INFO, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
911
ret = ioctl(fd, IOMMU_FAULT_QUEUE_ALLOC, &cmd);
tools/testing/selftests/iommu/iommufd_utils.h
948
ret = ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_TRIGGER_IOPF), &trigger_iopf_cmd);
tools/testing/selftests/iommu/iommufd_utils.h
95
ioctl(self->fd, \
tools/testing/selftests/iommu/iommufd_utils.h
986
ret = ioctl(fd, IOMMU_VIOMMU_ALLOC, &cmd);
tools/testing/selftests/ir/ir_loopback.c
117
if (ioctl(rlircfd, LIRC_SET_REC_MODE, &mode))
tools/testing/selftests/ir/ir_loopback.c
122
if (ioctl(wlircfd, LIRC_SET_SEND_MODE, &mode))
tools/testing/selftests/kvm/arm64/page_fault_test.c
329
ret = ioctl(uffd, UFFDIO_COPY, ©);
tools/testing/selftests/kvm/demand_paging_test.c
100
r = ioctl(uffd, UFFDIO_CONTINUE, &cont);
tools/testing/selftests/kvm/demand_paging_test.c
76
r = ioctl(uffd, UFFDIO_COPY, ©);
tools/testing/selftests/kvm/include/kvm_util.h
323
ioctl(fd, cmd, arg); \
tools/testing/selftests/kvm/lib/arm64/processor.c
598
vcpu_fd = ioctl(vm_fd, KVM_CREATE_VCPU, 0);
tools/testing/selftests/kvm/lib/arm64/processor.c
601
err = ioctl(vm_fd, KVM_ARM_PREFERRED_TARGET, &preferred_init);
tools/testing/selftests/kvm/lib/arm64/processor.c
603
err = ioctl(vcpu_fd, KVM_ARM_VCPU_INIT, &preferred_init);
tools/testing/selftests/kvm/lib/arm64/processor.c
606
err = ioctl(vcpu_fd, KVM_GET_ONE_REG, ®);
tools/testing/selftests/kvm/lib/kvm_util.c
1318
ret = ioctl(dev_fd, KVM_GET_VCPU_MMAP_SIZE, NULL);
tools/testing/selftests/kvm/lib/kvm_util.c
1829
return ioctl(dev_fd, KVM_HAS_DEVICE_ATTR, &attribute);
tools/testing/selftests/kvm/lib/kvm_util.c
603
int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION2, ®ion->region);
tools/testing/selftests/kvm/lib/kvm_util.c
932
return ioctl(vm->fd, KVM_SET_USER_MEMORY_REGION, ®ion);
tools/testing/selftests/kvm/lib/kvm_util.c
964
return ioctl(vm->fd, KVM_SET_USER_MEMORY_REGION2, ®ion);
tools/testing/selftests/kvm/lib/riscv/processor.c
557
vcpu_fd = ioctl(vm_fd, KVM_CREATE_VCPU, 0);
tools/testing/selftests/kvm/lib/riscv/processor.c
560
err = ioctl(vcpu_fd, KVM_GET_ONE_REG, ®);
tools/testing/selftests/kvm/lib/userfaultfd_util.c
142
TEST_ASSERT(ioctl(uffd, UFFDIO_API, &uffdio_api) != -1,
tools/testing/selftests/kvm/lib/userfaultfd_util.c
149
TEST_ASSERT(ioctl(uffd, UFFDIO_REGISTER, &uffdio_register) != -1,
tools/testing/selftests/kvm/s390/keyop.c
98
r = ioctl(vcpu->fd, KVM_S390_VCPU_FAULT, BUF_START_ADDR + i * PAGE_SIZE);
tools/testing/selftests/kvm/s390/shared_zeropage_test.c
45
return ioctl(pagemap_fd, PAGEMAP_SCAN, &arg);
tools/testing/selftests/kvm/s390/ucontrol_test.c
132
self->vm_fd = ioctl(self->kvm_fd, KVM_CREATE_VM, KVM_VM_S390_UCONTROL);
tools/testing/selftests/kvm/s390/ucontrol_test.c
139
self->vcpu_fd = ioctl(self->vm_fd, KVM_CREATE_VCPU, 0);
tools/testing/selftests/kvm/s390/ucontrol_test.c
142
self->kvm_run_size = ioctl(self->kvm_fd, KVM_GET_VCPU_MMAP_SIZE, NULL);
tools/testing/selftests/kvm/s390/ucontrol_test.c
173
rc = ioctl(self->vcpu_fd, KVM_S390_UCAS_MAP, &map);
tools/testing/selftests/kvm/s390/ucontrol_test.c
178
rc = ioctl(self->vcpu_fd, KVM_S390_VCPU_FAULT, self->base_gpa);
tools/testing/selftests/kvm/s390/ucontrol_test.c
211
rc = ioctl(self->vm_fd, KVM_HAS_DEVICE_ATTR, &attr);
tools/testing/selftests/kvm/s390/ucontrol_test.c
214
rc = ioctl(self->vm_fd, KVM_GET_DEVICE_ATTR, &attr);
tools/testing/selftests/kvm/s390/ucontrol_test.c
219
rc = ioctl(self->vm_fd, KVM_SET_DEVICE_ATTR, &attr);
tools/testing/selftests/kvm/s390/ucontrol_test.c
229
rc = ioctl(self->vm_fd, KVM_GET_DIRTY_LOG, &dlog);
tools/testing/selftests/kvm/s390/ucontrol_test.c
247
vm_fd = ioctl(kvm_fd, KVM_CREATE_VM, KVM_VM_S390_UCONTROL);
tools/testing/selftests/kvm/s390/ucontrol_test.c
251
rc = ioctl(vm_fd, KVM_CHECK_EXTENSION, KVM_CAP_S390_HPAGE_1M);
tools/testing/selftests/kvm/s390/ucontrol_test.c
255
rc = ioctl(vm_fd, KVM_ENABLE_CAP, cap);
tools/testing/selftests/kvm/s390/ucontrol_test.c
260
vcpu_fd = ioctl(vm_fd, KVM_CREATE_VCPU, 0);
tools/testing/selftests/kvm/s390/ucontrol_test.c
262
rc = ioctl(vm_fd, KVM_ENABLE_CAP, cap);
tools/testing/selftests/kvm/s390/ucontrol_test.c
287
return ioctl(self->vcpu_fd, KVM_S390_UCAS_MAP, &map);
tools/testing/selftests/kvm/s390/ucontrol_test.c
300
return ioctl(self->vcpu_fd, KVM_S390_UCAS_UNMAP, &map);
tools/testing/selftests/kvm/s390/ucontrol_test.c
422
rc = ioctl(self->vcpu_fd, KVM_RUN, NULL);
tools/testing/selftests/kvm/s390/ucontrol_test.c
455
ASSERT_EQ(-1, ioctl(self->vm_fd, KVM_SET_USER_MEMORY_REGION, ®ion));
tools/testing/selftests/kvm/s390/ucontrol_test.c
460
ASSERT_EQ(-1, ioctl(self->vm_fd, KVM_SET_USER_MEMORY_REGION2, ®ion2));
tools/testing/selftests/kvm/s390/ucontrol_test.c
553
ASSERT_EQ(0, ioctl(self->vcpu_fd, KVM_GET_REGS, ®s));
tools/testing/selftests/kvm/s390/ucontrol_test.c
565
ASSERT_EQ(0, ioctl(self->vcpu_fd, KVM_GET_REGS, ®s));
tools/testing/selftests/kvm/s390/ucontrol_test.c
734
rc = ioctl(self->vm_fd, KVM_CREATE_DEVICE, &cd);
tools/testing/selftests/kvm/s390/ucontrol_test.c
748
rc = ioctl(cd.fd, KVM_HAS_DEVICE_ATTR, &attr);
tools/testing/selftests/kvm/s390/ucontrol_test.c
753
rc = ioctl(cd.fd, KVM_GET_DEVICE_ATTR, &attr);
tools/testing/selftests/kvm/s390/ucontrol_test.c
764
rc = ioctl(cd.fd, KVM_SET_DEVICE_ATTR, &attr);
tools/testing/selftests/kvm/s390/ucontrol_test.c
793
rc = ioctl(self->vm_fd, KVM_SET_GSI_ROUTING, routing);
tools/testing/selftests/kvm/x86/sev_init2_tests.c
42
ret = ioctl(vm_fd, KVM_MEMORY_ENCRYPT_OP, &cmd);
tools/testing/selftests/landlock/fs_test.c
4116
if (ioctl(fd, FS_IOC_GETFLAGS, &flags) < 0)
tools/testing/selftests/landlock/fs_test.c
4159
if (ioctl(fd, FIONREAD, &sz) < 0 && errno == EACCES)
tools/testing/selftests/landlock/fs_test.c
4228
res = ioctl(fd, cmd, &buf);
tools/testing/selftests/landlock/fs_test.c
4407
FIXTURE(ioctl) {};
tools/testing/selftests/landlock/fs_test.c
4409
FIXTURE_SETUP(ioctl) {};
tools/testing/selftests/landlock/fs_test.c
4411
FIXTURE_TEARDOWN(ioctl) {};
tools/testing/selftests/landlock/fs_test.c
4414
FIXTURE_VARIANT(ioctl)
tools/testing/selftests/landlock/fs_test.c
4428
FIXTURE_VARIANT_ADD(ioctl, handled_i_allowed_none) {
tools/testing/selftests/landlock/fs_test.c
4437
FIXTURE_VARIANT_ADD(ioctl, handled_i_allowed_i) {
tools/testing/selftests/landlock/fs_test.c
4446
FIXTURE_VARIANT_ADD(ioctl, unhandled) {
tools/testing/selftests/landlock/fs_test.c
4454
TEST_F_FORK(ioctl, handle_dir_access_file)
tools/testing/selftests/landlock/fs_test.c
4480
EXPECT_EQ(0, ioctl(file_fd, FIOCLEX));
tools/testing/selftests/landlock/fs_test.c
4481
EXPECT_EQ(0, ioctl(file_fd, FIONCLEX));
tools/testing/selftests/landlock/fs_test.c
4482
EXPECT_EQ(0, ioctl(file_fd, FIONBIO, &flag));
tools/testing/selftests/landlock/fs_test.c
4483
EXPECT_EQ(0, ioctl(file_fd, FIOASYNC, &flag));
tools/testing/selftests/landlock/fs_test.c
4484
EXPECT_EQ(0, ioctl(file_fd, FIGETBSZ, &flag));
tools/testing/selftests/landlock/fs_test.c
4489
TEST_F_FORK(ioctl, handle_dir_access_dir)
tools/testing/selftests/landlock/fs_test.c
4525
EXPECT_EQ(0, ioctl(dir_fd, FIOCLEX));
tools/testing/selftests/landlock/fs_test.c
4526
EXPECT_EQ(0, ioctl(dir_fd, FIONCLEX));
tools/testing/selftests/landlock/fs_test.c
4527
EXPECT_EQ(0, ioctl(dir_fd, FIONBIO, &flag));
tools/testing/selftests/landlock/fs_test.c
4528
EXPECT_EQ(0, ioctl(dir_fd, FIOASYNC, &flag));
tools/testing/selftests/landlock/fs_test.c
4529
EXPECT_EQ(0, ioctl(dir_fd, FIGETBSZ, &flag));
tools/testing/selftests/landlock/fs_test.c
4534
TEST_F_FORK(ioctl, handle_file_access_file)
tools/testing/selftests/landlock/fs_test.c
4563
EXPECT_EQ(0, ioctl(file_fd, FIOCLEX));
tools/testing/selftests/landlock/fs_test.c
4564
EXPECT_EQ(0, ioctl(file_fd, FIONCLEX));
tools/testing/selftests/landlock/fs_test.c
4565
EXPECT_EQ(0, ioctl(file_fd, FIONBIO, &flag));
tools/testing/selftests/landlock/fs_test.c
4566
EXPECT_EQ(0, ioctl(file_fd, FIOASYNC, &flag));
tools/testing/selftests/landlock/fs_test.c
4567
EXPECT_EQ(0, ioctl(file_fd, FIGETBSZ, &flag));
tools/testing/selftests/liveupdate/liveupdate.c
164
if (ioctl(session_fd, LIVEUPDATE_SESSION_PRESERVE_FD, &args))
tools/testing/selftests/liveupdate/liveupdate.c
99
if (ioctl(lu_fd, LIVEUPDATE_IOCTL_CREATE_SESSION, &args))
tools/testing/selftests/liveupdate/luo_test_utils.c
101
if (ioctl(session_fd, LIVEUPDATE_SESSION_RETRIEVE_FD, &arg) < 0)
tools/testing/selftests/liveupdate/luo_test_utils.c
131
if (ioctl(session_fd, LIVEUPDATE_SESSION_FINISH, &arg) < 0)
tools/testing/selftests/liveupdate/luo_test_utils.c
38
if (ioctl(luo_fd, LIVEUPDATE_IOCTL_CREATE_SESSION, &arg) < 0)
tools/testing/selftests/liveupdate/luo_test_utils.c
51
if (ioctl(luo_fd, LIVEUPDATE_IOCTL_RETRIEVE_SESSION, &arg) < 0)
tools/testing/selftests/liveupdate/luo_test_utils.c
80
if (ioctl(session_fd, LIVEUPDATE_SESSION_PRESERVE_FD, &arg) < 0)
tools/testing/selftests/media_tests/media_device_open.c
76
ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi);
tools/testing/selftests/media_tests/media_device_test.c
94
ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi);
tools/testing/selftests/media_tests/video_device_test.c
105
ret = ioctl(fd, VIDIOC_G_TUNER, &vtuner);
tools/testing/selftests/media_tests/video_device_test.c
50
ret = ioctl(fd, VIDIOC_G_PRIORITY, &old_priority);
tools/testing/selftests/media_tests/video_device_test.c
56
ret = ioctl(fd, VIDIOC_S_PRIORITY, &new_priority);
tools/testing/selftests/media_tests/video_device_test.c
61
ret = ioctl(fd, VIDIOC_G_PRIORITY, &priority_to_compare);
tools/testing/selftests/media_tests/video_device_test.c
73
ret = ioctl(fd, VIDIOC_S_PRIORITY, &old_priority);
tools/testing/selftests/media_tests/video_device_test.c
99
ret = ioctl(fd, VIDIOC_QUERYCAP, &vcap);
tools/testing/selftests/mm/cow.c
692
ret = ioctl(gup_fd, PIN_LONGTERM_TEST_START, &args);
tools/testing/selftests/mm/cow.c
711
ret = ioctl(gup_fd, PIN_LONGTERM_TEST_READ, &tmp_val);
tools/testing/selftests/mm/cow.c
724
ret = ioctl(gup_fd, PIN_LONGTERM_TEST_STOP);
tools/testing/selftests/mm/guard-regions.c
1515
ASSERT_EQ(ioctl(uffd, UFFDIO_API, &api), 0);
tools/testing/selftests/mm/guard-regions.c
1527
ASSERT_EQ(ioctl(uffd, UFFDIO_REGISTER, ®), 0);
tools/testing/selftests/mm/guard-regions.c
1540
ASSERT_EQ(ioctl(uffd, UFFDIO_UNREGISTER, &range), 0);
tools/testing/selftests/mm/guard-regions.c
2160
ASSERT_EQ(ioctl(proc_fd, PAGEMAP_SCAN, &pm_scan_args), 0);
tools/testing/selftests/mm/guard-regions.c
2174
ASSERT_EQ(ioctl(proc_fd, PAGEMAP_SCAN, &pm_scan_args), 5);
tools/testing/selftests/mm/gup_longterm.c
196
ret = ioctl(gup_fd, PIN_LONGTERM_TEST_START, &args);
tools/testing/selftests/mm/gup_longterm.c
214
if (ioctl(gup_fd, PIN_LONGTERM_TEST_STOP))
tools/testing/selftests/mm/gup_test.c
60
status = ioctl(gup_fd, cmd, &gup);
tools/testing/selftests/mm/gup_test.c
75
status = ioctl(gup_fd, cmd, &gup);
tools/testing/selftests/mm/hmm-tests.c
1919
if (ioctl(gup_fd, cmd, &gup)) {
tools/testing/selftests/mm/hmm-tests.c
195
ret = ioctl(fd, request, &cmd);
tools/testing/selftests/mm/hugepage-mremap.c
85
if (ioctl(uffd, UFFDIO_API, &uffdio_api) == -1)
tools/testing/selftests/mm/ksm_functional_tests.c
314
if (ioctl(uffd, UFFDIO_API, &uffdio_api) < 0) {
tools/testing/selftests/mm/ksm_functional_tests.c
342
if (ioctl(uffd, UFFDIO_API, &uffdio_api) < 0) {
tools/testing/selftests/mm/ksm_functional_tests.c
357
if (ioctl(uffd, UFFDIO_WRITEPROTECT, &uffd_writeprotect)) {
tools/testing/selftests/mm/mkdirty.c
296
if (ioctl(uffd, UFFDIO_API, &uffdio_api) < 0) {
tools/testing/selftests/mm/mkdirty.c
304
if (ioctl(uffd, UFFDIO_REGISTER, &uffdio_register)) {
tools/testing/selftests/mm/mkdirty.c
314
if (ioctl(uffd, UFFDIO_COPY, &uffdio_copy)) {
tools/testing/selftests/mm/mremap_test.c
776
if (ioctl(uffd, UFFDIO_API, &api)) {
tools/testing/selftests/mm/mremap_test.c
822
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
tools/testing/selftests/mm/pagemap_ioctl.c
104
if (ioctl(uffd, UFFDIO_API, &uffdio_api))
tools/testing/selftests/mm/pagemap_ioctl.c
124
if (ioctl(uffd, UFFDIO_REGISTER, &uffdio_register))
tools/testing/selftests/mm/pagemap_ioctl.c
1334
ret = ioctl(pagemap_fd, PAGEMAP_SCAN, &arg);
tools/testing/selftests/mm/pagemap_ioctl.c
134
if (ioctl(uffd, UFFDIO_WRITEPROTECT, &wp))
tools/testing/selftests/mm/pagemap_ioctl.c
147
if (ioctl(uffd, UFFDIO_UNREGISTER, &uffdio_register.range))
tools/testing/selftests/mm/pagemap_ioctl.c
62
return ioctl(pagemap_fd, PAGEMAP_SCAN, &arg);
tools/testing/selftests/mm/pagemap_ioctl.c
84
ret = ioctl(pagemap_fd, PAGEMAP_SCAN, &arg);
tools/testing/selftests/mm/uffd-common.c
268
if (ioctl(gopts->uffd, UFFDIO_API, &uffdio_api))
tools/testing/selftests/mm/uffd-common.c
412
if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms))
tools/testing/selftests/mm/uffd-common.c
427
if (ioctl(ufd, UFFDIO_CONTINUE, &req))
tools/testing/selftests/mm/uffd-common.c
437
ret = ioctl(ufd, UFFDIO_CONTINUE, &req);
tools/testing/selftests/mm/uffd-common.c
584
if (ioctl(gopts->uffd, UFFDIO_UNREGISTER, &uffd_reg.range))
tools/testing/selftests/mm/uffd-common.c
604
if (ioctl(gopts->uffd, UFFDIO_COPY, uffdio_copy)) {
tools/testing/selftests/mm/uffd-common.c
622
if (ioctl(ufd, UFFDIO_WAKE, &uffdio_wake))
tools/testing/selftests/mm/uffd-common.c
641
if (ioctl(gopts->uffd, UFFDIO_COPY, &uffdio_copy)) {
tools/testing/selftests/mm/uffd-common.c
675
if (ioctl(gopts->uffd, UFFDIO_MOVE, &uffdio_move)) {
tools/testing/selftests/mm/uffd-common.c
695
uffd = ioctl(fd, USERFAULTFD_IOC_NEW, flags);
tools/testing/selftests/mm/uffd-common.c
736
if (ioctl(fd, UFFDIO_API, &uffdio_api)) {
tools/testing/selftests/mm/uffd-unit-tests.c
1278
ret = ioctl(fd, ioctl_name, &args); \
tools/testing/selftests/mm/uffd-unit-tests.c
149
if (ioctl(uffd, UFFDIO_API, &uffdio_api) == 0) {
tools/testing/selftests/mm/uffd-unit-tests.c
157
if (ioctl(uffd, UFFDIO_API, &uffdio_api) == 0) {
tools/testing/selftests/mm/uffd-unit-tests.c
165
if (ioctl(uffd, UFFDIO_API, &uffdio_api)) {
tools/testing/selftests/mm/uffd-unit-tests.c
172
if (ioctl(uffd, UFFDIO_API, &uffdio_api) == 0) {
tools/testing/selftests/mm/uffd-unit-tests.c
262
if (ioctl(args->gup_fd, PIN_LONGTERM_TEST_START, &test)) {
tools/testing/selftests/mm/uffd-unit-tests.c
275
if (ioctl(args->gup_fd, PIN_LONGTERM_TEST_STOP))
tools/testing/selftests/mm/uffd-unit-tests.c
877
if (ioctl(gopts->uffd, UFFDIO_ZEROPAGE, uffdio_zeropage)) {
tools/testing/selftests/mm/uffd-unit-tests.c
896
ret = ioctl(gopts->uffd, UFFDIO_ZEROPAGE, &uffdio_zeropage);
tools/testing/selftests/mm/uffd-unit-tests.c
984
ret = ioctl(gopts->uffd, UFFDIO_POISON, &uffdio_poison);
tools/testing/selftests/mm/uffd-wp-mremap.c
194
if (ioctl(gopts->uffd, UFFDIO_WRITEPROTECT, &wp_prms)) {
tools/testing/selftests/mm/vm_util.c
373
if (ioctl(uffd, UFFDIO_REGISTER, &uffdio_register) == -1)
tools/testing/selftests/mm/vm_util.c
393
if (ioctl(uffd, UFFDIO_UNREGISTER, &range) == -1)
tools/testing/selftests/mm/vm_util.c
498
if (ioctl(procmap->fd, PROCMAP_QUERY, &procmap->query) == -1)
tools/testing/selftests/mm/vm_util.c
53
return ioctl(fd, PAGEMAP_SCAN, &arg);
tools/testing/selftests/namespaces/cred_change_test.c
222
if (ioctl(fd, NS_GET_ID, &child_userns_id) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
338
if (ioctl(fd, NS_GET_ID, &child_userns_id) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
456
if (ioctl(fd, NS_GET_ID, &parent_id) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
484
if (ioctl(fd, NS_GET_ID, &child_id) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
627
if (ioctl(fd, NS_GET_ID, &child_userns_id) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
761
if (ioctl(fd, NS_GET_ID, &child_userns_id) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
85
if (ioctl(fd, NS_GET_ID, &child_userns_id) < 0) {
tools/testing/selftests/namespaces/listns_permissions_test.c
179
if (ioctl(fd, NS_GET_ID, &userns_id) < 0) {
tools/testing/selftests/namespaces/listns_permissions_test.c
277
if (ioctl(fd, NS_GET_ID, &netns_a_id) < 0) {
tools/testing/selftests/namespaces/listns_permissions_test.c
486
if (ioctl(fd, NS_GET_ID, &parent_userns_id) < 0) {
tools/testing/selftests/namespaces/listns_permissions_test.c
506
if (ioctl(fd, NS_GET_ID, &child_userns_id) < 0) {
tools/testing/selftests/namespaces/listns_permissions_test.c
603
if (ioctl(fd, NS_GET_ID, &our_userns_id) < 0) {
tools/testing/selftests/namespaces/listns_permissions_test.c
77
if (ioctl(fd, NS_GET_ID, &our_netns_id) < 0) {
tools/testing/selftests/namespaces/listns_test.c
110
ns_type = ioctl(fd, NS_GET_NSTYPE);
tools/testing/selftests/namespaces/listns_test.c
263
if (ioctl(fd, NS_GET_ID, &ns_id) < 0) {
tools/testing/selftests/namespaces/listns_test.c
375
if (ioctl(fd, NS_GET_ID, &ns_id) < 0) {
tools/testing/selftests/namespaces/listns_test.c
526
if (ioctl(fd, NS_GET_ID, &parent_ns_id) < 0) {
tools/testing/selftests/namespaces/listns_test.c
545
if (ioctl(fd, NS_GET_ID, &child_ns_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1001
if (ioctl(p_fd, NS_GET_ID, &p_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1019
if (ioctl(c_fd, NS_GET_ID, &c_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1146
if (ioctl(p_fd, NS_GET_ID, &p_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1164
if (ioctl(c1_fd, NS_GET_ID, &c1_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1184
if (ioctl(c2_fd, NS_GET_ID, &c2_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1316
if (ioctl(u_fd, NS_GET_ID, &u_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1334
if (ioctl(n_fd, NS_GET_ID, &n_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1352
if (ioctl(ut_fd, NS_GET_ID, &ut_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1489
if (ioctl(ua_fd, NS_GET_ID, &ua_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1506
if (ioctl(ub_fd, NS_GET_ID, &ub_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1523
if (ioctl(net_fd, NS_GET_ID, &net_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1667
if (ioctl(p_fd, NS_GET_ID, &p_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1687
if (ioctl(n1_fd, NS_GET_ID, &n1_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1710
if (ioctl(n2_fd, NS_GET_ID, &n2_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1857
if (ioctl(ua_fd, NS_GET_ID, &ua_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1875
if (ioctl(ub_fd, NS_GET_ID, &ub_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
1988
if (ioctl(u_fd, NS_GET_ID, &u_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
2005
if (ioctl(n_fd, NS_GET_ID, &n_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
2022
if (ioctl(ut_fd, NS_GET_ID, &ut_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
2148
ret = ioctl(fd, NS_GET_ID, &info->ns_id);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2418
if (ioctl(user_fd, NS_GET_ID, &user_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
2446
if (ioctl(net_fd, NS_GET_ID, &net_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
663
if (ioctl(parent_fd, NS_GET_ID, &parent_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
694
if (ioctl(child_fd, NS_GET_ID, &child_id) < 0) {
tools/testing/selftests/namespaces/ns_active_ref_test.c
790
int parent_fd2 = ioctl(child_nsfd, NS_GET_USERNS);
tools/testing/selftests/namespaces/ns_active_ref_test.c
983
if (ioctl(gp_fd, NS_GET_ID, &gp_id) < 0) {
tools/testing/selftests/namespaces/nsid_test.c
137
ret = ioctl(fd_child_mntns, NS_GET_ID, &child_mnt_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
159
ret = ioctl(fd_cgroupns, NS_GET_ID, &cgroup_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
165
ret = ioctl(fd_cgroupns, NS_GET_ID, &cgroup_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
184
ret = ioctl(fd_parent_cgroupns, NS_GET_ID, &parent_cgroup_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
243
ret = ioctl(fd_child_cgroupns, NS_GET_ID, &child_cgroup_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
265
ret = ioctl(fd_ipcns, NS_GET_ID, &ipc_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
271
ret = ioctl(fd_ipcns, NS_GET_ID, &ipc_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
290
ret = ioctl(fd_parent_ipcns, NS_GET_ID, &parent_ipc_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
349
ret = ioctl(fd_child_ipcns, NS_GET_ID, &child_ipc_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
371
ret = ioctl(fd_utsns, NS_GET_ID, &uts_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
377
ret = ioctl(fd_utsns, NS_GET_ID, &uts_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
396
ret = ioctl(fd_parent_utsns, NS_GET_ID, &parent_uts_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
455
ret = ioctl(fd_child_utsns, NS_GET_ID, &child_uts_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
477
ret = ioctl(fd_userns, NS_GET_ID, &user_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
483
ret = ioctl(fd_userns, NS_GET_ID, &user_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
502
ret = ioctl(fd_parent_userns, NS_GET_ID, &parent_user_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
53
ret = ioctl(fd_mntns, NS_GET_MNTNS_ID, &mnt_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
561
ret = ioctl(fd_child_userns, NS_GET_ID, &child_user_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
585
ret = ioctl(fd_timens, NS_GET_ID, &time_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
59
ret = ioctl(fd_mntns, NS_GET_ID, &mnt_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
591
ret = ioctl(fd_timens, NS_GET_ID, &time_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
614
ret = ioctl(fd_parent_timens, NS_GET_ID, &parent_time_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
688
ret = ioctl(fd_child_timens, NS_GET_ID, &child_time_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
710
ret = ioctl(fd_pidns, NS_GET_ID, &pid_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
716
ret = ioctl(fd_pidns, NS_GET_ID, &pid_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
735
ret = ioctl(fd_parent_pidns, NS_GET_ID, &parent_pid_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
78
ret = ioctl(fd_parent_mntns, NS_GET_ID, &parent_mnt_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
809
ret = ioctl(fd_child_pidns, NS_GET_ID, &child_pid_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
834
ret = ioctl(fd_netns, NS_GET_ID, &net_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
853
ret = ioctl(fd_netns, NS_GET_ID, &net_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
877
ret = ioctl(fd_parent_netns, NS_GET_ID, &parent_net_ns_id);
tools/testing/selftests/namespaces/nsid_test.c
947
ret = ioctl(fd_child_netns, NS_GET_ID, &child_net_ns_id);
tools/testing/selftests/namespaces/siocgskns_test.c
1095
netns_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
1108
ret = ioctl(netns_fd, NS_GET_ID, &netns_id);
tools/testing/selftests/namespaces/siocgskns_test.c
1119
userns_fd = ioctl(netns_fd, NS_GET_USERNS);
tools/testing/selftests/namespaces/siocgskns_test.c
1130
ret = ioctl(userns_fd, NS_GET_ID, &userns_id);
tools/testing/selftests/namespaces/siocgskns_test.c
1197
netns_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
1616
netns_L3A_fd = ioctl(sock_L3A_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
1626
ret = ioctl(netns_L3A_fd, NS_GET_ID, &netns_L3A_id);
tools/testing/selftests/namespaces/siocgskns_test.c
1637
int userns_L3_fd = ioctl(netns_L3A_fd, NS_GET_USERNS);
tools/testing/selftests/namespaces/siocgskns_test.c
1647
ret = ioctl(userns_L3_fd, NS_GET_ID, &userns_L3_id);
tools/testing/selftests/namespaces/siocgskns_test.c
1650
int userns_L2_fd = ioctl(userns_L3_fd, NS_GET_USERNS);
tools/testing/selftests/namespaces/siocgskns_test.c
1652
ret = ioctl(userns_L2_fd, NS_GET_ID, &userns_L2_id);
tools/testing/selftests/namespaces/siocgskns_test.c
1655
int userns_L1_fd = ioctl(userns_L2_fd, NS_GET_USERNS);
tools/testing/selftests/namespaces/siocgskns_test.c
1657
ret = ioctl(userns_L1_fd, NS_GET_ID, &userns_L1_id);
tools/testing/selftests/namespaces/siocgskns_test.c
169
netns_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
1774
netns_L3A_fd = ioctl(sock_L3A_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
194
ASSERT_LT(ioctl(sock_fd, SIOCGSKNS), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
221
netns_tcp = ioctl(sock_tcp, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
232
netns_udp = ioctl(sock_udp, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
237
netns_raw = ioctl(sock_raw, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
285
result_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
322
ASSERT_LT(ioctl(fd, SIOCGSKNS), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
329
ASSERT_LT(ioctl(pipefd[0], SIOCGSKNS), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
359
netns_fds[i] = ioctl(socks[i], SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
50
netns_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
505
netns_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
531
int test_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
558
netns_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
683
netns_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
692
ret = ioctl(netns_fd, NS_GET_ID, &netns_id);
tools/testing/selftests/namespaces/siocgskns_test.c
702
owner_fd = ioctl(netns_fd, NS_GET_USERNS);
tools/testing/selftests/namespaces/siocgskns_test.c
712
ret = ioctl(owner_fd, NS_GET_ID, &owner_id);
tools/testing/selftests/namespaces/siocgskns_test.c
885
netns_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/namespaces/siocgskns_test.c
898
ret = ioctl(netns_fd, NS_GET_ID, &netns_id);
tools/testing/selftests/namespaces/siocgskns_test.c
945
netns_fd = ioctl(sock_fd, SIOCGSKNS);
tools/testing/selftests/nci/nci_dev.c
428
rc = ioctl(self->virtual_nci_fd, IOCTL_GET_NCIDEV_IDX, &self->dev_idex);
tools/testing/selftests/net/af_unix/msg_oob.c
303
ret = ioctl(self->fd[i * 2 + 1], SIOCATMARK, &answ[i]);
tools/testing/selftests/net/af_unix/msg_oob.c
96
ret = ioctl(self->fd[i * 2 + 1], FIOSETOWN, &pid);
tools/testing/selftests/net/af_unix/scm_inq.c
115
err = ioctl(self->fd[1], SIOCINQ, &inq);
tools/testing/selftests/net/af_unix/scm_inq.c
97
ret = ioctl(self->fd[1], SIOCINQ, &inq);
tools/testing/selftests/net/af_unix/scm_pidfd.c
284
if (ioctl(*res.pidfd, PIDFD_GET_INFO, &info)) {
tools/testing/selftests/net/busy_poller.c
316
if (ioctl(epfd, EPIOCSPARAMS, &epoll_params) == -1)
tools/testing/selftests/net/can/test_raw_filter.c
74
ret = ioctl(s, SIOCGIFINDEX, &ifr);
tools/testing/selftests/net/epoll_busy_poll.c
140
ret = ioctl(self->fd, EPIOCGPARAMS, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
157
ret = ioctl(self->fd, EPIOCGPARAMS, self->invalid_params);
tools/testing/selftests/net/epoll_busy_poll.c
174
ret = ioctl(self->fd, EPIOCSPARAMS, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
185
ret = ioctl(self->fd, EPIOCSPARAMS, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
197
ret = ioctl(self->fd, EPIOCSPARAMS, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
225
ret = ioctl(self->fd, EPIOCSPARAMS, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
242
ret = ioctl(self->fd, EPIOCSPARAMS, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
260
ret = ioctl(self->fd, EPIOCSPARAMS, self->invalid_params);
tools/testing/selftests/net/epoll_busy_poll.c
279
ret = ioctl(self->fd, EPIOCSPARAMS, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
288
ret = ioctl(self->fd, EPIOCGPARAMS, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
311
ret = ioctl(self->fd, invalid_ioctl, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
73
ret = ioctl(self->invalid_fd, EPIOCGPARAMS, &self->params);
tools/testing/selftests/net/epoll_busy_poll.c
83
ret = ioctl(self->invalid_fd, EPIOCSPARAMS, &self->params);
tools/testing/selftests/net/hwtstamp_config.c
119
if (ioctl(sock, (argc == 2) ? SIOCGHWTSTAMP : SIOCSHWTSTAMP, &ifr)) {
tools/testing/selftests/net/icmp_rfc4884.c
65
if (ioctl(fd, SIOCGIFFLAGS, &ifr) < 0)
tools/testing/selftests/net/icmp_rfc4884.c
70
if (ioctl(fd, SIOCSIFFLAGS, &ifr) < 0)
tools/testing/selftests/net/ipv6_fragmentation.c
59
if (ioctl(ctl, SIOCSIFMTU, &ifr) == -1)
tools/testing/selftests/net/ipv6_fragmentation.c
63
if (ioctl(ctl, SIOCGIFFLAGS, &ifr) == -1)
tools/testing/selftests/net/ipv6_fragmentation.c
66
if (ioctl(ctl, SIOCSIFFLAGS, &ifr) == -1)
tools/testing/selftests/net/mptcp/mptcp_inq.c
221
ret = ioctl(fd, TIOCOUTQ, &queued);
tools/testing/selftests/net/mptcp/mptcp_inq.c
225
ret = ioctl(fd, SIOCOUTQNSD, &nsd);
tools/testing/selftests/net/mptcp/mptcp_inq.c
368
ret = ioctl(fd, FIONREAD, &queued);
tools/testing/selftests/net/nettest.c
359
rc = ioctl(sd, SIOCGIFINDEX, (char *)&ifdata);
tools/testing/selftests/net/psock_fanout.c
74
err = ioctl(fd, SIOCGIFFLAGS, &ifreq);
tools/testing/selftests/net/psock_fanout.c
81
err = ioctl(fd, SIOCSIFFLAGS, &ifreq);
tools/testing/selftests/net/skf_net_off.c
70
ret = ioctl(fd, TUNSETIFF, &ifr);
tools/testing/selftests/net/tap.c
210
if (ioctl(fd, TUNSETIFF, &ifr, sizeof(ifr)) < 0)
tools/testing/selftests/net/tcp_ao/lib/repair.c
90
if (ioctl(sk, SIOCOUTQ, &state->outq_len))
tools/testing/selftests/net/tcp_ao/lib/repair.c
93
if (ioctl(sk, SIOCOUTQNSD, &state->outq_nsd_len))
tools/testing/selftests/net/tcp_ao/lib/repair.c
97
if (ioctl(sk, SIOCINQ, &state->inq_len))
tools/testing/selftests/net/timestamping.c
260
if (ioctl(sock, SIOCGSTAMP, &tv))
tools/testing/selftests/net/timestamping.c
268
if (ioctl(sock, SIOCGSTAMPNS, &ts))
tools/testing/selftests/net/timestamping.c
389
if (ioctl(sock, SIOCGIFADDR, &device) < 0)
tools/testing/selftests/net/timestamping.c
404
if (ioctl(sock, SIOCSHWTSTAMP, &hwtstamp) < 0) {
tools/testing/selftests/net/tun.c
133
return ioctl(fd, TUNSETQUEUE, (void *)&ifr);
tools/testing/selftests/net/tun.c
144
return ioctl(fd, TUNSETQUEUE, (void *)&ifr);
tools/testing/selftests/net/tun.c
162
err = ioctl(fd, TUNSETIFF, (void *)&ifr);
tools/testing/selftests/net/tun.c
190
if (ioctl(fd, TUNSETIFF, (void *)&ifr) < 0) {
tools/testing/selftests/net/tun.c
197
if (ioctl(fd, TUNSETVNETHDRSZ, &hdrlen) < 0) {
tools/testing/selftests/net/tun.c
204
if (ioctl(fd, TUNSETOFFLOAD, features) < 0) {
tools/testing/selftests/net/tun.c
216
if (ioctl(sk, SIOCGIFFLAGS, &ifr) < 0) {
tools/testing/selftests/net/tun.c
222
if (ioctl(sk, SIOCSIFFLAGS, &ifr) < 0) {
tools/testing/selftests/net/tun.c
231
if (ioctl(sk, SIOCSIFHWADDR, &ifr) < 0) {
tools/testing/selftests/nolibc/nolibc-test.c
1416
CASE_TEST(ioctl_tiocinq); EXPECT_SYSZR(1, ioctl(0, TIOCINQ, &tmp)); break;
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
27
ret = ioctl(self->fd, cmd, arg); \
tools/testing/selftests/perf_events/remove_on_exec.c
107
ASSERT_EQ(ioctl(self->fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/testing/selftests/perf_events/remove_on_exec.c
154
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/testing/selftests/perf_events/remove_on_exec.c
177
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/testing/selftests/perf_events/remove_on_exec.c
212
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
168
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
187
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_MODIFY_ATTRIBUTES, &new_attr), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
206
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
208
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_DISABLE, 0), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
224
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
227
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_DISABLE, 0), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
228
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
233
EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_DISABLE, 0), 0);
tools/testing/selftests/perf_events/watermark_signal.c
110
if (ioctl(fd, PERF_EVENT_IOC_ENABLE, 0)) {
tools/testing/selftests/pidfd/pidfd_bind_mount.c
107
ASSERT_EQ(ioctl(fd_pidfd_mnt, FS_IOC_GETVERSION, &self->gen2), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
42
ASSERT_EQ(ioctl(self->pidfd, FS_IOC_GETVERSION, &self->gen1), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
81
ASSERT_EQ(ioctl(self->pidfd, FS_IOC_GETVERSION, &self->gen2), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
137
ASSERT_EQ(ioctl(self->child_pidfd1, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
140
ASSERT_EQ(ioctl(self->child_pidfd1, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
153
ASSERT_NE(ioctl(self->child_pidfd2, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
157
ASSERT_EQ(ioctl(self->child_pidfd2, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
171
ASSERT_EQ(ioctl(self->child_pidfd3, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
174
ASSERT_EQ(ioctl(self->child_pidfd3, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
187
ASSERT_NE(ioctl(self->child_pidfd4, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
191
ASSERT_EQ(ioctl(self->child_pidfd4, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
214
ASSERT_EQ(ioctl(self->child_pidfd2, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
318
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
329
ASSERT_EQ(ioctl(pidfd_leader_thread, PIDFD_GET_INFO, &info2), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
336
ASSERT_EQ(ioctl(pidfd_thread, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
363
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
375
ASSERT_EQ(ioctl(pidfd_leader_thread, PIDFD_GET_INFO, &info2), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
385
ASSERT_EQ(ioctl(pidfd_thread, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
497
ASSERT_EQ(ioctl(pidfd_thread, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
513
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
538
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
644
ASSERT_EQ(ioctl(pidfd_thread, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
660
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
685
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
714
ASSERT_EQ(ioctl(pidfd, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
753
ASSERT_EQ(ioctl(pidfd, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_open_test.c
160
if (ioctl(pidfd, PIDFD_GET_INFO, &info) < 0) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
127
self->child_pidfd_derived_nsfds[i] = ioctl(self->pidfd, info->pidfd_ioctl, 0);
tools/testing/selftests/pidfd/pidfd_setns_test.c
303
self->child_pidfd_derived_nsfds1[i] = ioctl(self->child_pidfd1, info->pidfd_ioctl, 0);
tools/testing/selftests/pidfd/pidfd_setns_test.c
311
self->child_pidfd_derived_nsfds2[i] = ioctl(self->child_pidfd2, info->pidfd_ioctl, 0);
tools/testing/selftests/powerpc/mce/inject-ra-err.c
46
FAIL_IF(ioctl(fd, VAS_TX_WIN_OPEN, &attr) < 0);
tools/testing/selftests/powerpc/nx-gzip/gzip_vas.c
66
rc = ioctl(fd, VAS_TX_WIN_OPEN, (unsigned long)&txattr);
tools/testing/selftests/powerpc/papr_sysparm/papr_sysparm.c
112
FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_SET, &sp) != -1);
tools/testing/selftests/powerpc/papr_sysparm/papr_sysparm.c
134
FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_SET, &sp) != -1);
tools/testing/selftests/powerpc/papr_sysparm/papr_sysparm.c
37
FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_GET, &sp) != 0);
tools/testing/selftests/powerpc/papr_sysparm/papr_sysparm.c
58
FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_GET, &sp) != -1);
tools/testing/selftests/powerpc/papr_sysparm/papr_sysparm.c
81
FAIL_IF(ioctl(devfd, cmd, NULL) != -1);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
127
fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
146
rc = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, NULL);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
166
fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
189
fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
274
fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
42
fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc);
tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
80
fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc);
tools/testing/selftests/powerpc/pmu/ebb/ebb.c
282
rc = ioctl(e->fd, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/pmu/ebb/multi_counter_test.c
53
FAIL_IF(ioctl(events[0].fd, PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP));
tools/testing/selftests/powerpc/pmu/event.c
107
return ioctl(e->fd, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/pmu/event.c
112
return ioctl(e->fd, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/pmu/event.c
117
return ioctl(e->fd, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
126
ioctl(fd[i], PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
134
ioctl(fd[i], PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
142
ioctl(fd[i], PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
255
ioctl(break_fd, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
268
ioctl(break_fd, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
317
ioctl(break_fd, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
318
ioctl(break_fd, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
321
ioctl(break_fd, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
332
ioctl(break_fd, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
333
ioctl(break_fd, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
336
ioctl(break_fd, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
347
ioctl(break_fd, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
348
ioctl(break_fd, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
351
ioctl(break_fd, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
362
ioctl(break_fd, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
363
ioctl(break_fd, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
366
ioctl(break_fd, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
377
ioctl(break_fd, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
378
ioctl(break_fd, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
381
ioctl(break_fd, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
423
ioctl(fd1, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
424
ioctl(fd2, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
425
ioctl(fd1, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
426
ioctl(fd2, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
428
ioctl(fd1, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
429
ioctl(fd2, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
468
ioctl(fd1, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
469
ioctl(fd2, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
470
ioctl(fd1, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
471
ioctl(fd2, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
473
ioctl(fd1, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
474
ioctl(fd2, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
513
ioctl(fd1, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
514
ioctl(fd2, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
515
ioctl(fd1, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
516
ioctl(fd2, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
518
ioctl(fd1, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
519
ioctl(fd2, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
558
ioctl(fd1, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
559
ioctl(fd2, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
560
ioctl(fd1, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
561
ioctl(fd2, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
563
ioctl(fd1, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
564
ioctl(fd2, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
789
ioctl(fd, PERF_EVENT_IOC_RESET);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
790
ioctl(fd, PERF_EVENT_IOC_ENABLE);
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
792
ioctl(fd, PERF_EVENT_IOC_DISABLE);
tools/testing/selftests/powerpc/tm/tm-signal-pagefault.c
130
if (ioctl(uffd, UFFDIO_COPY, &uffdio_copy) == -1) {
tools/testing/selftests/powerpc/tm/tm-signal-pagefault.c
155
if (ioctl(uffd, UFFDIO_API, &uffdio_api) == -1) {
tools/testing/selftests/powerpc/tm/tm-signal-pagefault.c
180
if (ioctl(uffd, UFFDIO_REGISTER, &uffdio_register) == -1) {
tools/testing/selftests/powerpc/utils.c
564
if (ioctl(fd, PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP) == -1) {
tools/testing/selftests/powerpc/utils.c
574
if (ioctl(fd, PERF_EVENT_IOC_DISABLE, PERF_IOC_FLAG_GROUP) == -1) {
tools/testing/selftests/powerpc/utils.c
584
if (ioctl(fd, PERF_EVENT_IOC_RESET, PERF_IOC_FLAG_GROUP) == -1) {
tools/testing/selftests/proc/proc-maps-race.c
332
if (ioctl(maps_fd, PROCMAP_QUERY, &q))
tools/testing/selftests/proc/proc-pid-vm.c
519
err = ioctl(fd, PROCMAP_QUERY, &q);
tools/testing/selftests/proc/proc-pid-vm.c
546
err = ioctl(fd, PROCMAP_QUERY, &q);
tools/testing/selftests/proc/proc-pid-vm.c
556
err = ioctl(fd, PROCMAP_QUERY, &q);
tools/testing/selftests/proc/proc-pid-vm.c
570
err = ioctl(fd, PROCMAP_QUERY, &q);
tools/testing/selftests/proc/proc-pid-vm.c
580
err = ioctl(fd, PROCMAP_QUERY, &q);
tools/testing/selftests/ptp/testptp.c
336
if (ioctl(fd, PTP_CLOCK_GETCAPS, &caps)) {
tools/testing/selftests/ptp/testptp.c
443
if (ioctl(fd, PTP_PIN_SETFUNC, &desc)) {
tools/testing/selftests/ptp/testptp.c
455
if (ioctl(fd, PTP_EXTTS_REQUEST, &extts_request)) {
tools/testing/selftests/ptp/testptp.c
475
if (ioctl(fd, PTP_EXTTS_REQUEST, &extts_request)) {
tools/testing/selftests/ptp/testptp.c
487
if (ioctl(fd, PTP_CLOCK_GETCAPS, &caps)) {
tools/testing/selftests/ptp/testptp.c
494
if (ioctl(fd, PTP_PIN_GETFUNC, &desc)) {
tools/testing/selftests/ptp/testptp.c
537
if (ioctl(fd, PTP_PEROUT_REQUEST2, &perout_request)) {
tools/testing/selftests/ptp/testptp.c
546
if (ioctl(fd, PTP_ENABLE_PPS, enable)) {
tools/testing/selftests/ptp/testptp.c
567
if (ioctl(fd, PTP_SYS_OFFSET, sysoff))
tools/testing/selftests/ptp/testptp.c
604
if (ioctl(fd, PTP_SYS_OFFSET_EXTENDED, soe)) {
tools/testing/selftests/ptp/testptp.c
664
if (ioctl(fd, PTP_SYS_OFFSET_PRECISE, xts)) {
tools/testing/selftests/ptp/testptp.c
681
if (ioctl(fd, PTP_MASK_CLEAR_ALL)) {
tools/testing/selftests/ptp/testptp.c
683
} else if (ioctl(fd, PTP_MASK_EN_SINGLE, (unsigned int *)&channel)) {
tools/testing/selftests/ptp/testptp.c
80
err = ioctl(fd, request[i], &extts_request);
tools/testing/selftests/ptp/testptp.c
84
err = ioctl(fd, request[i], &extts_request);
tools/testing/selftests/resctrl/cache.c
141
ret = ioctl(pe_fd, PERF_EVENT_IOC_DISABLE, 0);
tools/testing/selftests/resctrl/cache.c
29
ret = ioctl(pe_fd, PERF_EVENT_IOC_RESET, 0);
tools/testing/selftests/resctrl/cache.c
33
ret = ioctl(pe_fd, PERF_EVENT_IOC_ENABLE, 0);
tools/testing/selftests/resctrl/resctrl_val.c
63
ioctl(imc_counters_config[i].fd, PERF_EVENT_IOC_RESET, 0);
tools/testing/selftests/resctrl/resctrl_val.c
64
ioctl(imc_counters_config[i].fd, PERF_EVENT_IOC_ENABLE, 0);
tools/testing/selftests/resctrl/resctrl_val.c
69
ioctl(imc_counters_config[i].fd, PERF_EVENT_IOC_DISABLE, 0);
tools/testing/selftests/ring-buffer/map_test.c
195
ASSERT_EQ(ioctl(desc->cpu_fd, TRACE_MMAP_IOCTL_GET_READER), 0);
tools/testing/selftests/ring-buffer/map_test.c
202
ASSERT_EQ(ioctl(desc->cpu_fd, TRACE_MMAP_IOCTL_GET_READER), 0);
tools/testing/selftests/rtc/rtctest.c
100
rc = ioctl(fd, RTC_PARAM_GET, ¶m);
tools/testing/selftests/rtc/rtctest.c
127
rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
tools/testing/selftests/rtc/rtctest.c
135
rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
tools/testing/selftests/rtc/rtctest.c
163
rc = ioctl(self->fd, RTC_UIE_ON, 0);
tools/testing/selftests/rtc/rtctest.c
179
rc = ioctl(self->fd, RTC_UIE_OFF, 0);
tools/testing/selftests/rtc/rtctest.c
192
rc = ioctl(self->fd, RTC_UIE_ON, 0);
tools/testing/selftests/rtc/rtctest.c
218
rc = ioctl(self->fd, RTC_UIE_OFF, 0);
tools/testing/selftests/rtc/rtctest.c
241
rc = ioctl(self->fd, RTC_RD_TIME, &tm);
tools/testing/selftests/rtc/rtctest.c
247
rc = ioctl(self->fd, RTC_ALM_SET, &tm);
tools/testing/selftests/rtc/rtctest.c
259
rc = ioctl(self->fd, RTC_ALM_READ, &tm);
tools/testing/selftests/rtc/rtctest.c
266
rc = ioctl(self->fd, RTC_AIE_ON, 0);
tools/testing/selftests/rtc/rtctest.c
277
rc = ioctl(self->fd, RTC_AIE_OFF, 0);
tools/testing/selftests/rtc/rtctest.c
284
rc = ioctl(self->fd, RTC_RD_TIME, &tm);
tools/testing/selftests/rtc/rtctest.c
311
rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
tools/testing/selftests/rtc/rtctest.c
319
rc = ioctl(self->fd, RTC_WKALM_SET, &alarm);
tools/testing/selftests/rtc/rtctest.c
331
rc = ioctl(self->fd, RTC_WKALM_RD, &alarm);
tools/testing/selftests/rtc/rtctest.c
349
rc = ioctl(self->fd, RTC_RD_TIME, &tm);
tools/testing/selftests/rtc/rtctest.c
373
rc = ioctl(self->fd, RTC_RD_TIME, &tm);
tools/testing/selftests/rtc/rtctest.c
379
rc = ioctl(self->fd, RTC_ALM_SET, &tm);
tools/testing/selftests/rtc/rtctest.c
391
rc = ioctl(self->fd, RTC_ALM_READ, &tm);
tools/testing/selftests/rtc/rtctest.c
398
rc = ioctl(self->fd, RTC_AIE_ON, 0);
tools/testing/selftests/rtc/rtctest.c
409
rc = ioctl(self->fd, RTC_AIE_OFF, 0);
tools/testing/selftests/rtc/rtctest.c
416
rc = ioctl(self->fd, RTC_RD_TIME, &tm);
tools/testing/selftests/rtc/rtctest.c
441
rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
tools/testing/selftests/rtc/rtctest.c
449
rc = ioctl(self->fd, RTC_WKALM_SET, &alarm);
tools/testing/selftests/rtc/rtctest.c
461
rc = ioctl(self->fd, RTC_WKALM_RD, &alarm);
tools/testing/selftests/rtc/rtctest.c
479
rc = ioctl(self->fd, RTC_RD_TIME, &tm);
tools/testing/selftests/rtc/rtctest.c
56
rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
tools/testing/selftests/seccomp/seccomp_bpf.c
3451
ret = ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req);
tools/testing/selftests/seccomp/seccomp_bpf.c
3457
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3474
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
3478
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3537
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3538
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ID_VALID, &req.id), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3543
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ID_VALID, &req.id), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
3546
ret = ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp);
tools/testing/selftests/seccomp/seccomp_bpf.c
3606
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3621
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
3625
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3631
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3696
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3703
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3766
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3777
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3815
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, NULL), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
3819
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3826
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3883
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3902
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
3907
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
3912
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0) {
tools/testing/selftests/seccomp/seccomp_bpf.c
4026
EXPECT_EQ(ioctl(200, SECCOMP_IOCTL_NOTIF_RECV, &req), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4178
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4187
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4193
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4199
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4204
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD_SMALL, &small), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4210
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD_BIG, &big), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4215
fd = ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd);
tools/testing/selftests/seccomp/seccomp_bpf.c
4223
fd = ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD_BIG, &big);
tools/testing/selftests/seccomp/seccomp_bpf.c
4230
fd = ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd);
tools/testing/selftests/seccomp/seccomp_bpf.c
4238
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4247
while (ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd) != -1 &&
tools/testing/selftests/seccomp/seccomp_bpf.c
4252
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4258
fd = ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd);
tools/testing/selftests/seccomp/seccomp_bpf.c
4274
while (ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd) != -1 &&
tools/testing/selftests/seccomp/seccomp_bpf.c
4279
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4285
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4328
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4339
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4343
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4348
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), -1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4355
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4389
ioctl(listener, SECCOMP_IOCTL_NOTIF_SET_FLAGS, 0xffffffff, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
4391
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SET_FLAGS,
tools/testing/selftests/seccomp/seccomp_bpf.c
4405
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4413
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4563
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4571
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4599
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4602
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4758
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4772
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4822
EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4940
ret = ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req);
tools/testing/selftests/seccomp/seccomp_bpf.c
4948
ASSERT_GE(ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, &addfd), 0)
tools/testing/selftests/sgx/load.c
124
rc = ioctl(encl->fd, SGX_IOC_ENCLAVE_ADD_PAGES, &ioc);
tools/testing/selftests/sgx/load.c
363
ret = ioctl(encl->fd, SGX_IOC_ENCLAVE_INIT, &ioc);
tools/testing/selftests/sgx/load.c
96
rc = ioctl(encl->fd, SGX_IOC_ENCLAVE_CREATE, &ioc);
tools/testing/selftests/sgx/main.c
1251
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &modt_ioc);
tools/testing/selftests/sgx/main.c
1381
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &modt_ioc);
tools/testing/selftests/sgx/main.c
1444
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &modt_ioc);
tools/testing/selftests/sgx/main.c
1499
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_REMOVE_PAGES, &remove_ioc);
tools/testing/selftests/sgx/main.c
1581
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &modt_ioc);
tools/testing/selftests/sgx/main.c
1645
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &modt_ioc);
tools/testing/selftests/sgx/main.c
1661
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_REMOVE_PAGES, &remove_ioc);
tools/testing/selftests/sgx/main.c
1692
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &ioc);
tools/testing/selftests/sgx/main.c
1756
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &ioc);
tools/testing/selftests/sgx/main.c
1807
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &ioc);
tools/testing/selftests/sgx/main.c
1871
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &ioc);
tools/testing/selftests/sgx/main.c
1928
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &modt_ioc);
tools/testing/selftests/sgx/main.c
1956
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &modt_ioc);
tools/testing/selftests/sgx/main.c
1985
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_REMOVE_PAGES, &remove_ioc);
tools/testing/selftests/sgx/main.c
411
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &modt_ioc);
tools/testing/selftests/sgx/main.c
459
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_MODIFY_TYPES, &modt_ioc);
tools/testing/selftests/sgx/main.c
496
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_REMOVE_PAGES, &remove_ioc);
tools/testing/selftests/sgx/main.c
737
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_RESTRICT_PERMISSIONS, &ioc);
tools/testing/selftests/sgx/main.c
761
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_RESTRICT_PERMISSIONS, &ioc);
tools/testing/selftests/sgx/main.c
799
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_RESTRICT_PERMISSIONS,
tools/testing/selftests/sgx/main.c
871
ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_RESTRICT_PERMISSIONS,
tools/testing/selftests/sync/sync.c
114
err = ioctl(fd, SYNC_IOC_FILE_INFO, info);
tools/testing/selftests/sync/sync.c
175
return ioctl(fd, SW_SYNC_IOC_INC, &arg);
tools/testing/selftests/sync/sync.c
204
err = ioctl(fd, SW_SYNC_IOC_CREATE_FENCE, &data);
tools/testing/selftests/sync/sync.c
77
err = ioctl(fd1, SYNC_IOC_MERGE, &data);
tools/testing/selftests/sync/sync.c
94
err = ioctl(fd, SYNC_IOC_FILE_INFO, info);
tools/testing/selftests/tdx/tdx_guest_test.c
145
ASSERT_EQ(0, ioctl(devfd, TDX_CMD_GET_REPORT0, &req));
tools/testing/selftests/timers/rtcpie.c
126
retval = ioctl(fd, RTC_PIE_OFF, 0);
tools/testing/selftests/timers/rtcpie.c
134
ioctl(fd, RTC_IRQP_SET, old_pie_rate);
tools/testing/selftests/timers/rtcpie.c
62
retval = ioctl(fd, RTC_IRQP_READ, &old_pie_rate);
tools/testing/selftests/timers/rtcpie.c
80
retval = ioctl(fd, RTC_IRQP_SET, tmp);
tools/testing/selftests/timers/rtcpie.c
96
retval = ioctl(fd, RTC_PIE_ON, 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
404
ret = ioctl(tty_fd, TIOCSTI, &inject_char);
tools/testing/selftests/tty/tty_tiocsti_test.c
428
ASSERT_EQ(ioctl(self->pty_slave_fd, TIOCSCTTY, 0), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
470
ASSERT_EQ(ioctl(child_slave_fd, TIOCSCTTY, 0), 0);
tools/testing/selftests/ublk/common.c
43
if (ioctl(fd, BLKGETSIZE64, &bytes) != 0)
tools/testing/selftests/ublk/metadata_size.c
26
result = ioctl(fd, FS_IOC_GETLBMD_CAP, &cap);
tools/testing/selftests/user_events/abi_test.c
128
ret = ioctl(fd, DIAG_IOCSDEL, "__abi_event");
tools/testing/selftests/user_events/abi_test.c
161
ret = ioctl(fd, DIAG_IOCSREG, ®);
tools/testing/selftests/user_events/abi_test.c
184
ret = ioctl(fd, DIAG_IOCSREG, ®);
tools/testing/selftests/user_events/abi_test.c
209
ret = ioctl(fd, DIAG_IOCSUNREG, ®);
tools/testing/selftests/user_events/dyn_test.c
32
ret = ioctl(fd, DIAG_IOCSDEL, "__test_event");
tools/testing/selftests/user_events/dyn_test.c
66
if (ioctl(fd, DIAG_IOCSREG, ®) == -1)
tools/testing/selftests/user_events/dyn_test.c
80
return ioctl(fd, DIAG_IOCSUNREG, &unreg);
tools/testing/selftests/user_events/ftrace_test.c
137
if (ioctl(fd, DIAG_IOCSUNREG, &unreg) == -1)
tools/testing/selftests/user_events/ftrace_test.c
141
if (ioctl(fd, DIAG_IOCSDEL, "__test_event") == -1) {
tools/testing/selftests/user_events/ftrace_test.c
183
ret = ioctl(fd, DIAG_IOCSREG, ®);
tools/testing/selftests/user_events/ftrace_test.c
252
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
256
ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
261
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
267
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
273
ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
290
ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSDEL, "__test_event"));
tools/testing/selftests/user_events/ftrace_test.c
294
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNREG, &unreg));
tools/testing/selftests/user_events/ftrace_test.c
296
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNREG, &unreg));
tools/testing/selftests/user_events/ftrace_test.c
298
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNREG, &unreg));
tools/testing/selftests/user_events/ftrace_test.c
329
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
379
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
418
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
448
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/perf_test.c
102
if (ioctl(fd, DIAG_IOCSDEL, "__test_event") == -1)
tools/testing/selftests/user_events/perf_test.c
149
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/perf_test.c
213
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/perf_test.c
98
if (ioctl(fd, DIAG_IOCSUNREG, &unreg) == -1)
tools/testing/selftests/vfio/lib/include/libvfio/assert.h
50
int __ret = ioctl((_fd), (_op), (__arg)); \
tools/testing/selftests/vfio/lib/iommu.c
110
if (ioctl(iommu->container_fd, VFIO_IOMMU_MAP_DMA, &args))
tools/testing/selftests/vfio/lib/iommu.c
129
if (ioctl(iommu->iommufd, IOMMU_IOAS_MAP, &args))
tools/testing/selftests/vfio/lib/iommu.c
161
if (ioctl(fd, VFIO_IOMMU_UNMAP_DMA, &args))
tools/testing/selftests/vfio/lib/iommu.c
186
if (ioctl(fd, IOMMU_IOAS_UNMAP, &args))
tools/testing/selftests/vfio/lib/iommu.c
355
ret = ioctl(iommu->iommufd, IOMMU_IOAS_IOVA_RANGES, &query);
tools/testing/selftests/vfio/lib/iommu.c
439
version = ioctl(iommu->container_fd, VFIO_GET_API_VERSION);
tools/testing/selftests/vfio/lib/vfio_pci_device.c
251
ret = ioctl(iommu->container_fd, VFIO_CHECK_EXTENSION, iommu_type);
tools/testing/selftests/vfio/lib/vfio_pci_device.c
259
(void)ioctl(iommu->container_fd, VFIO_SET_IOMMU, (void *)iommu_type);
tools/testing/selftests/vfio/lib/vfio_pci_device.c
261
device->fd = ioctl(device->group_fd, VFIO_GROUP_GET_DEVICE_FD, bdf);
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
25
return ioctl(cdev_fd, VFIO_DEVICE_BIND_IOMMUFD, &bind_args);
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
32
return ioctl(cdev_fd, VFIO_DEVICE_GET_INFO, &info_args);
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
41
return ioctl(iommufd, IOMMU_IOAS_ALLOC, alloc_args);
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
51
return ioctl(cdev_fd, VFIO_DEVICE_ATTACH_IOMMUFD_PT, &attach_args);
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
60
return ioctl(cdev_fd, VFIO_DEVICE_DETACH_IOMMUFD_PT, &detach_args);
tools/testing/selftests/watchdog/watchdog-test.c
205
ret = ioctl(fd, WDIOC_GETSUPPORT, &info);
tools/testing/selftests/watchdog/watchdog-test.c
219
ret = ioctl(fd, WDIOC_GETBOOTSTATUS, &flags);
tools/testing/selftests/watchdog/watchdog-test.c
227
ret = ioctl(fd, WDIOC_SETOPTIONS, &flags);
tools/testing/selftests/watchdog/watchdog-test.c
237
ret = ioctl(fd, WDIOC_SETOPTIONS, &flags);
tools/testing/selftests/watchdog/watchdog-test.c
254
ret = ioctl(fd, WDIOC_GETSTATUS, &flags);
tools/testing/selftests/watchdog/watchdog-test.c
259
ret = ioctl(fd, WDIOC_GETTEMP, &temperature);
tools/testing/selftests/watchdog/watchdog-test.c
268
ret = ioctl(fd, WDIOC_SETTIMEOUT, &flags);
tools/testing/selftests/watchdog/watchdog-test.c
278
ret = ioctl(fd, WDIOC_GETTIMEOUT, &flags);
tools/testing/selftests/watchdog/watchdog-test.c
286
ret = ioctl(fd, WDIOC_SETPRETIMEOUT, &flags);
tools/testing/selftests/watchdog/watchdog-test.c
296
ret = ioctl(fd, WDIOC_GETPRETIMEOUT, &flags);
tools/testing/selftests/watchdog/watchdog-test.c
304
ret = ioctl(fd, WDIOC_GETTIMELEFT, &flags);
tools/testing/selftests/watchdog/watchdog-test.c
58
ret = ioctl(fd, WDIOC_KEEPALIVE, &dummy);
tools/testing/selftests/wireguard/qemu/init.c
69
if (ioctl(fd, RNDADDTOENTCNT, &bits) < 0)
tools/testing/selftests/x86/lam.c
464
if (ioctl(fd, FIOASYNC, ptr) != 0)
tools/testing/selftests/x86/srso.c
50
ioctl(rrets_fd, PERF_EVENT_IOC_RESET, 0);
tools/testing/selftests/x86/srso.c
51
ioctl(mrrets_fd, PERF_EVENT_IOC_RESET, 0);
tools/testing/selftests/x86/srso.c
53
ioctl(rrets_fd, PERF_EVENT_IOC_ENABLE, 0);
tools/testing/selftests/x86/srso.c
54
ioctl(mrrets_fd, PERF_EVENT_IOC_ENABLE, 0);
tools/testing/selftests/x86/srso.c
59
ioctl(rrets_fd, PERF_EVENT_IOC_DISABLE, 0);
tools/testing/selftests/x86/srso.c
60
ioctl(mrrets_fd, PERF_EVENT_IOC_DISABLE, 0);
tools/testing/selftests/x86/test_shadow_stack.c
476
if (ioctl(uffd, UFFDIO_COPY, &req))
tools/testing/selftests/x86/test_shadow_stack.c
506
if (ioctl(uffd, UFFDIO_API, &uffdio_api))
tools/testing/selftests/x86/test_shadow_stack.c
512
if (ioctl(uffd, UFFDIO_REGISTER, &uffdio_register))
tools/testing/vsock/util.c
117
ret = ioctl(fd, op, &actual);
tools/usb/ffs-test.c
400
ret = ioctl(fd, FUNCTIONFS_FIFO_STATUS);
tools/usb/ffs-test.c
407
if (ioctl(fd, FUNCTIONFS_FIFO_FLUSH) < 0)
tools/usb/testusb.c
288
return ioctl (fd, USBDEVFS_IOCTL, &wrapper);
tools/usb/testusb.c
302
status = ioctl(fd, USBDEVFS_GET_SPEED, NULL);
tools/virtio/vhost_net_test.c
110
assert(ioctl(dev->sock, SIOCGIFINDEX, &ifr) >= 0);
tools/virtio/vhost_net_test.c
115
assert(ioctl(dev->sock, SIOCGIFFLAGS, &ifr) >= 0);
tools/virtio/vhost_net_test.c
117
assert(ioctl(dev->sock, SIOCSIFFLAGS, &ifr) >= 0);
tools/virtio/vhost_net_test.c
163
r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state);
tools/virtio/vhost_net_test.c
167
r = ioctl(dev->control, VHOST_SET_VRING_BASE, &state);
tools/virtio/vhost_net_test.c
170
r = ioctl(dev->control, VHOST_SET_VRING_ADDR, &addr);
tools/virtio/vhost_net_test.c
174
r = ioctl(dev->control, VHOST_SET_VRING_KICK, &file);
tools/virtio/vhost_net_test.c
204
r = ioctl(dev->control, VHOST_NET_SET_BACKEND, &backend);
tools/virtio/vhost_net_test.c
235
r = ioctl(dev->control, VHOST_SET_OWNER, NULL);
tools/virtio/vhost_net_test.c
248
r = ioctl(dev->control, VHOST_SET_MEM_TABLE, dev->mem);
tools/virtio/vhost_net_test.c
251
r = ioctl(dev->control, VHOST_SET_FEATURES, &features);
tools/virtio/vhost_net_test.c
77
e = ioctl(fd, TUNSETIFF, &ifr);
tools/virtio/vhost_net_test.c
84
e = ioctl(fd, TUNSETVNETHDRSZ, &len);
tools/virtio/vhost_net_test.c
91
e = ioctl(fd, SIOCGIFHWADDR, &ifr);
tools/virtio/virtio_test.c
139
r = ioctl(dev->control, VHOST_SET_OWNER, NULL);
tools/virtio/virtio_test.c
150
r = ioctl(dev->control, VHOST_SET_MEM_TABLE, dev->mem);
tools/virtio/virtio_test.c
180
r = ioctl(dev->control, VHOST_TEST_RUN, &test);
tools/virtio/virtio_test.c
222
r = ioctl(dev->control, VHOST_TEST_SET_BACKEND,
tools/virtio/virtio_test.c
238
r = ioctl(dev->control, VHOST_GET_VRING_BASE,
tools/virtio/virtio_test.c
243
r = ioctl(dev->control, VHOST_SET_VRING_BASE,
tools/virtio/virtio_test.c
247
r = ioctl(dev->control, VHOST_TEST_SET_BACKEND,
tools/virtio/virtio_test.c
271
r = ioctl(dev->control, VHOST_TEST_RUN, &test);
tools/virtio/virtio_test.c
80
r = ioctl(dev->control, VHOST_SET_FEATURES, &features);
tools/virtio/virtio_test.c
83
r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state);
tools/virtio/virtio_test.c
86
r = ioctl(dev->control, VHOST_SET_VRING_BASE, &state);
tools/virtio/virtio_test.c
88
r = ioctl(dev->control, VHOST_SET_VRING_ADDR, &addr);
tools/virtio/virtio_test.c
91
r = ioctl(dev->control, VHOST_SET_VRING_KICK, &file);
tools/virtio/virtio_test.c
94
r = ioctl(dev->control, VHOST_SET_VRING_CALL, &file);
tools/wmi/dell-smbios-example.c
48
ret = ioctl(fd, DELL_WMI_SMBIOS_CMD, buffer);
virt/kvm/kvm_main.c
123
static long kvm_vcpu_ioctl(struct file *file, unsigned int ioctl,
virt/kvm/kvm_main.c
126
static long kvm_vcpu_compat_ioctl(struct file *file, unsigned int ioctl,
virt/kvm/kvm_main.c
137
static long kvm_no_compat_ioctl(struct file *file, unsigned int ioctl,
virt/kvm/kvm_main.c
4413
unsigned int ioctl, unsigned long arg)
virt/kvm/kvm_main.c
4424
if (unlikely(_IOC_TYPE(ioctl) != KVMIO))
virt/kvm/kvm_main.c
4440
r = kvm_arch_vcpu_unlocked_ioctl(filp, ioctl, arg);
virt/kvm/kvm_main.c
4446
switch (ioctl) {
virt/kvm/kvm_main.c
4653
r = kvm_arch_vcpu_ioctl(filp, ioctl, arg);
virt/kvm/kvm_main.c
4664
unsigned int ioctl, unsigned long arg)
virt/kvm/kvm_main.c
4673
switch (ioctl) {
virt/kvm/kvm_main.c
4697
r = kvm_vcpu_ioctl(filp, ioctl, arg);
virt/kvm/kvm_main.c
4731
static long kvm_device_ioctl(struct file *filp, unsigned int ioctl,
virt/kvm/kvm_main.c
4739
switch (ioctl) {
virt/kvm/kvm_main.c
4747
if (dev->ops->ioctl)
virt/kvm/kvm_main.c
4748
return dev->ops->ioctl(dev, ioctl, arg);
virt/kvm/kvm_main.c
5155
unsigned int ioctl, unsigned long arg)
virt/kvm/kvm_main.c
5163
switch (ioctl) {
virt/kvm/kvm_main.c
5181
if (ioctl == KVM_SET_USER_MEMORY_REGION) {
virt/kvm/kvm_main.c
5204
if (ioctl == KVM_SET_USER_MEMORY_REGION &&
virt/kvm/kvm_main.c
5290
ioctl == KVM_IRQ_LINE_STATUS);
virt/kvm/kvm_main.c
5295
if (ioctl == KVM_IRQ_LINE_STATUS) {
virt/kvm/kvm_main.c
5387
r = kvm_arch_vm_ioctl(filp, ioctl, arg);
virt/kvm/kvm_main.c
5413
long __weak kvm_arch_vm_compat_ioctl(struct file *filp, unsigned int ioctl,
virt/kvm/kvm_main.c
5420
unsigned int ioctl, unsigned long arg)
virt/kvm/kvm_main.c
5428
r = kvm_arch_vm_compat_ioctl(filp, ioctl, arg);
virt/kvm/kvm_main.c
5432
switch (ioctl) {
virt/kvm/kvm_main.c
5467
r = kvm_vm_ioctl(filp, ioctl, arg);
virt/kvm/kvm_main.c
5530
unsigned int ioctl, unsigned long arg)
virt/kvm/kvm_main.c
5534
switch (ioctl) {
virt/kvm/kvm_main.c
5558
return kvm_arch_dev_ioctl(filp, ioctl, arg);