/Linux-v6.1/fs/fuse/ |
D | ioctl.c | 212 if (_IOC_DIR(cmd) & _IOC_WRITE) { in fuse_do_ioctl() 217 if (_IOC_DIR(cmd) & _IOC_READ) { in fuse_do_ioctl() 389 if (_IOC_DIR(cmd) & _IOC_READ) in fuse_priv_ioctl() 391 if (_IOC_DIR(cmd) & _IOC_WRITE) in fuse_priv_ioctl()
|
/Linux-v6.1/drivers/usb/class/ |
D | usblp.c | 536 _IOC_TYPE(cmd), _IOC_NR(cmd), _IOC_SIZE(cmd), _IOC_DIR(cmd)); in usblp_ioctl() 543 if (_IOC_DIR(cmd) != _IOC_READ) { in usblp_ioctl() 566 if (_IOC_DIR(cmd) != _IOC_READ || in usblp_ioctl() 590 if (_IOC_DIR(cmd) != _IOC_WRITE) { in usblp_ioctl() 611 if (_IOC_DIR(cmd) != _IOC_WRITE || in usblp_ioctl() 635 if (_IOC_DIR(cmd) != _IOC_READ || in usblp_ioctl() 656 if (_IOC_DIR(cmd) != _IOC_READ || in usblp_ioctl() 677 if (_IOC_DIR(cmd) != _IOC_NONE) { in usblp_ioctl()
|
/Linux-v6.1/tools/perf/trace/beauty/ |
D | ioctl.c | 129 int dir = _IOC_DIR(cmd), in ioctl__scnprintf_cmd() 183 return ioctl__scnprintf_usbdevfs_cmd(_IOC_NR(cmd), _IOC_DIR(cmd), bf, size); in syscall_arg__scnprintf_ioctl_cmd()
|
/Linux-v6.1/arch/alpha/include/uapi/asm/ |
D | ioctl.h | 54 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
|
/Linux-v6.1/arch/sparc/include/uapi/asm/ |
D | ioctl.h | 51 #define _IOC_DIR(nr) \ macro
|
/Linux-v6.1/include/uapi/asm-generic/ |
D | ioctl.h | 94 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
|
/Linux-v6.1/drivers/spi/ |
D | spidev.c | 330 || _IOC_DIR(cmd) != _IOC_WRITE) in spidev_get_ioc_message() 561 && _IOC_DIR(cmd) == _IOC_WRITE) in spidev_compat_ioctl()
|
/Linux-v6.1/drivers/media/rc/ |
D | lirc_dev.c | 364 if (_IOC_DIR(cmd) & _IOC_WRITE) { in lirc_ioctl() 568 if (!ret && _IOC_DIR(cmd) & _IOC_READ) in lirc_ioctl()
|
/Linux-v6.1/drivers/media/mc/ |
D | mc-device.c | 389 if ((_IOC_DIR(cmd) & _IOC_WRITE) && in copy_arg_from_user() 398 if ((_IOC_DIR(cmd) & _IOC_READ) && in copy_arg_to_user()
|
/Linux-v6.1/drivers/media/dvb-core/ |
D | dvbdev.c | 913 switch (_IOC_DIR(cmd)) { in dvb_usercopy() 948 switch (_IOC_DIR(cmd)) in dvb_usercopy()
|
/Linux-v6.1/drivers/pps/ |
D | pps.c | 255 cmd = _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(void *)); in pps_cdev_compat_ioctl()
|
/Linux-v6.1/fs/nilfs2/ |
D | ioctl.c | 510 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), in nilfs_ioctl_get_bdescs() 1166 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); in nilfs_ioctl_get_info()
|
/Linux-v6.1/fs/xfs/ |
D | xfs_ioctl32.c | 29 _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type))
|
/Linux-v6.1/drivers/input/ |
D | evdev.c | 1197 if (_IOC_DIR(cmd) == _IOC_READ) { in evdev_do_ioctl() 1220 if (_IOC_DIR(cmd) == _IOC_WRITE) { in evdev_do_ioctl()
|
/Linux-v6.1/drivers/media/v4l2-core/ |
D | v4l2-ioctl.c | 2953 switch (_IOC_DIR(cmd)) { in v4l_printk_ioctl() 3035 write_only = _IOC_DIR(cmd) == _IOC_WRITE; in __video_do_ioctl() 3057 else if (_IOC_DIR(cmd) == _IOC_NONE) in __video_do_ioctl() 3188 if (!(_IOC_DIR(cmd) & _IOC_WRITE)) { in video_get_user() 3259 if (!(_IOC_DIR(cmd) & _IOC_READ)) in video_put_user() 3344 if (_IOC_DIR(cmd) != _IOC_NONE) { in video_usercopy()
|
D | v4l2-compat-ioctl32.c | 1260 _IOC_TYPE(cmd), _IOC_DIR(cmd), _IOC_NR(cmd), cmd); in v4l2_compat_ioctl32()
|
/Linux-v6.1/drivers/virt/ |
D | fsl_hypervisor.c | 445 _IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), in fsl_hv_ioctl()
|
/Linux-v6.1/drivers/s390/block/ |
D | dasd_ioctl.c | 628 if ((_IOC_DIR(cmd) != _IOC_NONE) && !arg) in dasd_ioctl()
|
/Linux-v6.1/drivers/hid/ |
D | hidraw.c | 456 if (_IOC_DIR(cmd) != _IOC_READ) { in hidraw_ioctl()
|
/Linux-v6.1/include/uapi/linux/ |
D | soundcard.h | 92 #define _SIOC_DIR _IOC_DIR
|
/Linux-v6.1/drivers/video/fbdev/ |
D | fsl-diu-fb.c | 1281 _IOC_DIR(cmd) & _IOC_READ ? "R" : "", in fsl_diu_ioctl() 1282 _IOC_DIR(cmd) & _IOC_WRITE ? "W" : "", in fsl_diu_ioctl()
|
/Linux-v6.1/drivers/firewire/ |
D | core-cdev.c | 1650 if (_IOC_DIR(cmd) & _IOC_WRITE) in dispatch_ioctl() 1658 if (_IOC_DIR(cmd) & _IOC_READ) in dispatch_ioctl()
|
/Linux-v6.1/drivers/hid/usbhid/ |
D | hiddev.c | 820 if (_IOC_TYPE(cmd) != 'H' || _IOC_DIR(cmd) != _IOC_READ) in hiddev_ioctl()
|
/Linux-v6.1/drivers/usb/core/ |
D | devio.c | 2327 if ((_IOC_DIR(ctl->ioctl_code) & _IOC_WRITE)) { in proc_ioctl() 2376 && (_IOC_DIR(ctl->ioctl_code) & _IOC_READ) != 0 in proc_ioctl()
|
/Linux-v6.1/security/smack/ |
D | smack_lsm.c | 1536 if (_IOC_DIR(cmd) & _IOC_WRITE) { in smack_file_ioctl() 1541 if (rc == 0 && (_IOC_DIR(cmd) & _IOC_READ)) { in smack_file_ioctl()
|