Home
last modified time | relevance | path

Searched refs:_IOC_DIR (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/usb/class/
H A Dusblp.c536 _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 Dioctl.c129 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 Dioctl.h54 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
/linux/arch/sparc/include/uapi/asm/
H A Dioctl.h51 #define _IOC_DIR(nr) \ macro
/linux/rust/kernel/
H A Dioctl.rs55 pub const fn _IOC_DIR(nr: u32) -> u32 { in _IOC_DIR() function
/linux/drivers/media/rc/
H A Dlirc_dev.c370 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 Dspidev.c340 || _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 Dmc-device.c385 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 Ddvbdev.c971 switch (_IOC_DIR(cmd)) { in dvb_usercopy()
1007 switch (_IOC_DIR(cmd)) { in dvb_usercopy()
H A Ddvb_frontend.c2093 && (_IOC_DIR(cmd) != _IOC_READ in dvb_frontend_do_ioctl()
/linux/drivers/pps/
H A Dpps.c255 cmd = _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(void *)); in pps_cdev_compat_ioctl()
/linux/fs/nilfs2/
H A Dioctl.c524 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 Duvdevice.c479 if (_IOC_DIR(cmd) != (_IOC_READ | _IOC_WRITE)) in uvio_copy_and_check_ioctl()
/linux/drivers/input/
H A Devdev.c1195 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 Dv4l2-ioctl.c3038 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 Dv4l2-compat-ioctl32.c1207 _IOC_TYPE(cmd), _IOC_DIR(cmd), _IOC_NR(cmd), cmd); in v4l2_compat_ioctl32()
/linux/drivers/virt/
H A Dfsl_hypervisor.c445 _IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), in fsl_hv_ioctl()
/linux/drivers/hid/
H A Dhidraw.c497 if (_IOC_DIR(cmd) != _IOC_READ) { in hidraw_ioctl()
/linux/drivers/video/fbdev/
H A Dfsl-diu-fb.c1281 _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 Dsoundcard.h92 #define _SIOC_DIR _IOC_DIR
/linux/drivers/firewire/
H A Dcore-cdev.c1772 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 Dhiddev.c820 if (_IOC_TYPE(cmd) != 'H' || _IOC_DIR(cmd) != _IOC_READ) in hiddev_ioctl()
/linux/security/smack/
H A Dsmack_lsm.c1719 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 Dfloppy.c3445 if (_IOC_DIR(cmd) & _IOC_WRITE) { in fd_locked_ioctl()
3568 if (_IOC_DIR(cmd) & _IOC_READ) in fd_locked_ioctl()