/openbmc/linux/fs/fuse/ |
H A D | ioctl.c | 221 if (_IOC_DIR(cmd) & _IOC_WRITE) { in fuse_do_ioctl() 226 if (_IOC_DIR(cmd) & _IOC_READ) { in fuse_do_ioctl() 396 if (_IOC_DIR(cmd) & _IOC_READ) in fuse_priv_ioctl() 398 if (_IOC_DIR(cmd) & _IOC_WRITE) in fuse_priv_ioctl()
|
/openbmc/linux/drivers/usb/class/ |
H A 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()
|
/openbmc/linux/tools/perf/trace/beauty/ |
H A 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()
|
/openbmc/linux/arch/alpha/include/uapi/asm/ |
H A D | ioctl.h | 54 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
|
/openbmc/linux/arch/sparc/include/uapi/asm/ |
H A D | ioctl.h | 51 #define _IOC_DIR(nr) \ macro
|
/openbmc/linux/include/uapi/asm-generic/ |
H A D | ioctl.h | 94 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
|
/openbmc/linux/rust/kernel/ |
H A D | ioctl.rs | 55 pub const fn _IOC_DIR(nr: u32) -> u32 { in _IOC_DIR() function
|
/openbmc/u-boot/include/asm-generic/ |
H A D | ioctl.h | 92 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
|
/openbmc/linux/drivers/media/rc/ |
H A D | lirc_dev.c | 368 if (_IOC_DIR(cmd) & _IOC_WRITE) { in lirc_ioctl() 572 if (!ret && _IOC_DIR(cmd) & _IOC_READ) in lirc_ioctl()
|
/openbmc/linux/drivers/spi/ |
H A D | spidev.c | 340 || _IOC_DIR(cmd) != _IOC_WRITE) in spidev_get_ioc_message() 584 && _IOC_DIR(cmd) == _IOC_WRITE) in spidev_compat_ioctl()
|
/openbmc/linux/drivers/s390/char/ |
H A D | uvdevice.c | 384 if (_IOC_DIR(cmd) != (_IOC_READ | _IOC_WRITE)) in uvio_copy_and_check_ioctl()
|
/openbmc/linux/drivers/media/mc/ |
H A 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()
|
/openbmc/linux/drivers/pps/ |
H A D | pps.c | 255 cmd = _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(void *)); in pps_cdev_compat_ioctl()
|
/openbmc/linux/fs/nilfs2/ |
H A D | ioctl.c | 510 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), in nilfs_ioctl_get_bdescs() 1173 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); in nilfs_ioctl_get_info()
|
/openbmc/linux/drivers/media/dvb-core/ |
H A D | dvbdev.c | 971 switch (_IOC_DIR(cmd)) { in dvb_usercopy() 1007 switch (_IOC_DIR(cmd)) { in dvb_usercopy()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_ioctl32.c | 29 _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type))
|
/openbmc/linux/drivers/input/ |
H A 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()
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-ioctl.c | 2965 switch (_IOC_DIR(cmd)) { in v4l_printk_ioctl() 3047 write_only = _IOC_DIR(cmd) == _IOC_WRITE; in __video_do_ioctl() 3069 else if (_IOC_DIR(cmd) == _IOC_NONE) in __video_do_ioctl() 3194 if (!(_IOC_DIR(cmd) & _IOC_WRITE)) { in video_get_user() 3265 if (!(_IOC_DIR(cmd) & _IOC_READ)) in video_put_user() 3350 if (_IOC_DIR(cmd) != _IOC_NONE) { in video_usercopy()
|
/openbmc/linux/drivers/virt/ |
H A D | fsl_hypervisor.c | 445 _IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), in fsl_hv_ioctl()
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_ioctl.c | 629 if ((_IOC_DIR(cmd) != _IOC_NONE) && !arg) in dasd_ioctl()
|
/openbmc/linux/drivers/hid/ |
H A D | hidraw.c | 466 if (_IOC_DIR(cmd) != _IOC_READ) { in hidraw_ioctl()
|
/openbmc/linux/include/uapi/linux/ |
H A D | soundcard.h | 92 #define _SIOC_DIR _IOC_DIR
|
/openbmc/linux/drivers/video/fbdev/ |
H A 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()
|
/openbmc/linux/drivers/hid/usbhid/ |
H A D | hiddev.c | 820 if (_IOC_TYPE(cmd) != 'H' || _IOC_DIR(cmd) != _IOC_READ) in hiddev_ioctl()
|
/openbmc/linux/drivers/firewire/ |
H A D | core-cdev.c | 1767 if (_IOC_DIR(cmd) & _IOC_WRITE) in dispatch_ioctl() 1775 if (_IOC_DIR(cmd) & _IOC_READ) in dispatch_ioctl()
|