/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()
|
/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()
|
/linux/arch/alpha/include/uapi/asm/ |
H A D | ioctl.h | 54 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
|
/linux/arch/sparc/include/uapi/asm/ |
H A D | ioctl.h | 51 #define _IOC_DIR(nr) \ macro
|
/linux/rust/kernel/ |
H A D | ioctl.rs | 55 pub const fn _IOC_DIR(nr: u32) -> u32 { in _IOC_DIR() function
|
/linux/drivers/media/rc/ |
H A D | lirc_dev.c | 370 if (_IOC_DIR(cmd) & _IOC_WRITE) { in lirc_ioctl() 574 if (!ret && _IOC_DIR(cmd) & _IOC_READ) in lirc_ioctl()
|
/linux/drivers/spi/ |
H A D | spidev.c | 340 || _IOC_DIR(cmd) != _IOC_WRITE) in spidev_get_ioc_message() 578 && _IOC_DIR(cmd) == _IOC_WRITE) in spidev_compat_ioctl()
|
/linux/drivers/media/mc/ |
H A D | mc-device.c | 385 if ((_IOC_DIR(cmd) & _IOC_WRITE) && in copy_arg_from_user() 394 if ((_IOC_DIR(cmd) & _IOC_READ) && in copy_arg_to_user()
|
/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()
|
H A D | dvb_frontend.c | 2093 && (_IOC_DIR(cmd) != _IOC_READ in dvb_frontend_do_ioctl()
|
/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()
|
/linux/fs/nilfs2/ |
H A D | ioctl.c | 524 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), in nilfs_ioctl_get_bdescs() 1185 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); in nilfs_ioctl_get_info()
|
/linux/drivers/s390/char/ |
H A D | uvdevice.c | 479 if (_IOC_DIR(cmd) != (_IOC_READ | _IOC_WRITE)) in uvio_copy_and_check_ioctl()
|
/linux/drivers/input/ |
H A D | evdev.c | 1195 if (_IOC_DIR(cmd) == _IOC_READ) { in evdev_do_ioctl() 1218 if (_IOC_DIR(cmd) == _IOC_WRITE) { in evdev_do_ioctl()
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-ioctl.c | 3038 switch (_IOC_DIR(cmd)) { in v4l_printk_ioctl() 3120 write_only = _IOC_DIR(cmd) == _IOC_WRITE; in __video_do_ioctl() 3142 else if (_IOC_DIR(cmd) == _IOC_NONE) in __video_do_ioctl() 3267 if (!(_IOC_DIR(cmd) & _IOC_WRITE)) { in video_get_user() 3338 if (!(_IOC_DIR(cmd) & _IOC_READ)) in video_put_user() 3423 if (_IOC_DIR(cmd) != _IOC_NONE) { in video_usercopy()
|
H A D | v4l2-compat-ioctl32.c | 1207 _IOC_TYPE(cmd), _IOC_DIR(cmd), _IOC_NR(cmd), cmd); in v4l2_compat_ioctl32()
|
/linux/drivers/virt/ |
H A D | fsl_hypervisor.c | 445 _IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), in fsl_hv_ioctl()
|
/linux/drivers/hid/ |
H A D | hidraw.c | 497 if (_IOC_DIR(cmd) != _IOC_READ) { in hidraw_ioctl()
|
/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()
|
/linux/include/uapi/linux/ |
H A D | soundcard.h | 92 #define _SIOC_DIR _IOC_DIR
|
/linux/drivers/firewire/ |
H A D | core-cdev.c | 1772 if (_IOC_DIR(cmd) & _IOC_WRITE) in dispatch_ioctl() 1780 if (_IOC_DIR(cmd) & _IOC_READ) in dispatch_ioctl()
|
/linux/drivers/hid/usbhid/ |
H A D | hiddev.c | 820 if (_IOC_TYPE(cmd) != 'H' || _IOC_DIR(cmd) != _IOC_READ) in hiddev_ioctl()
|
/linux/security/smack/ |
H A D | smack_lsm.c | 1719 if (_IOC_DIR(cmd) & _IOC_WRITE) { in smack_file_ioctl() 1724 if (rc == 0 && (_IOC_DIR(cmd) & _IOC_READ)) { in smack_file_ioctl()
|
/linux/drivers/block/ |
H A D | floppy.c | 3445 if (_IOC_DIR(cmd) & _IOC_WRITE) { in fd_locked_ioctl() 3568 if (_IOC_DIR(cmd) & _IOC_READ) in fd_locked_ioctl()
|