Home
last modified time | relevance | path

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

12

/openbmc/linux/fs/fuse/
H A Dioctl.c221 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 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()
/openbmc/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()
/openbmc/linux/arch/alpha/include/uapi/asm/
H A Dioctl.h54 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dioctl.h51 #define _IOC_DIR(nr) \ macro
/openbmc/linux/include/uapi/asm-generic/
H A Dioctl.h94 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
/openbmc/linux/rust/kernel/
H A Dioctl.rs55 pub const fn _IOC_DIR(nr: u32) -> u32 { in _IOC_DIR() function
/openbmc/u-boot/include/asm-generic/
H A Dioctl.h92 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
/openbmc/linux/drivers/media/rc/
H A Dlirc_dev.c368 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 Dspidev.c340 || _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 Duvdevice.c384 if (_IOC_DIR(cmd) != (_IOC_READ | _IOC_WRITE)) in uvio_copy_and_check_ioctl()
/openbmc/linux/drivers/media/mc/
H A Dmc-device.c389 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 Dpps.c255 cmd = _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(void *)); in pps_cdev_compat_ioctl()
/openbmc/linux/fs/nilfs2/
H A Dioctl.c510 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 Ddvbdev.c971 switch (_IOC_DIR(cmd)) { in dvb_usercopy()
1007 switch (_IOC_DIR(cmd)) { in dvb_usercopy()
/openbmc/linux/fs/xfs/
H A Dxfs_ioctl32.c29 _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type))
/openbmc/linux/drivers/input/
H A Devdev.c1197 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 Dv4l2-ioctl.c2965 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 Dfsl_hypervisor.c445 _IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), in fsl_hv_ioctl()
/openbmc/linux/drivers/s390/block/
H A Ddasd_ioctl.c629 if ((_IOC_DIR(cmd) != _IOC_NONE) && !arg) in dasd_ioctl()
/openbmc/linux/drivers/hid/
H A Dhidraw.c466 if (_IOC_DIR(cmd) != _IOC_READ) { in hidraw_ioctl()
/openbmc/linux/include/uapi/linux/
H A Dsoundcard.h92 #define _SIOC_DIR _IOC_DIR
/openbmc/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()
/openbmc/linux/drivers/hid/usbhid/
H A Dhiddev.c820 if (_IOC_TYPE(cmd) != 'H' || _IOC_DIR(cmd) != _IOC_READ) in hiddev_ioctl()
/openbmc/linux/drivers/firewire/
H A Dcore-cdev.c1767 if (_IOC_DIR(cmd) & _IOC_WRITE) in dispatch_ioctl()
1775 if (_IOC_DIR(cmd) & _IOC_READ) in dispatch_ioctl()

12