Home
last modified time | relevance | path

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

12

/Linux-v6.1/fs/fuse/
Dioctl.c212 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/
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-v6.1/tools/perf/trace/beauty/
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-v6.1/arch/alpha/include/uapi/asm/
Dioctl.h54 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
/Linux-v6.1/arch/sparc/include/uapi/asm/
Dioctl.h51 #define _IOC_DIR(nr) \ macro
/Linux-v6.1/include/uapi/asm-generic/
Dioctl.h94 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) macro
/Linux-v6.1/drivers/spi/
Dspidev.c330 || _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/
Dlirc_dev.c364 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/
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()
/Linux-v6.1/drivers/media/dvb-core/
Ddvbdev.c913 switch (_IOC_DIR(cmd)) { in dvb_usercopy()
948 switch (_IOC_DIR(cmd)) in dvb_usercopy()
/Linux-v6.1/drivers/pps/
Dpps.c255 cmd = _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(void *)); in pps_cdev_compat_ioctl()
/Linux-v6.1/fs/nilfs2/
Dioctl.c510 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/
Dxfs_ioctl32.c29 _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type))
/Linux-v6.1/drivers/input/
Devdev.c1197 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/
Dv4l2-ioctl.c2953 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()
Dv4l2-compat-ioctl32.c1260 _IOC_TYPE(cmd), _IOC_DIR(cmd), _IOC_NR(cmd), cmd); in v4l2_compat_ioctl32()
/Linux-v6.1/drivers/virt/
Dfsl_hypervisor.c445 _IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), in fsl_hv_ioctl()
/Linux-v6.1/drivers/s390/block/
Ddasd_ioctl.c628 if ((_IOC_DIR(cmd) != _IOC_NONE) && !arg) in dasd_ioctl()
/Linux-v6.1/drivers/hid/
Dhidraw.c456 if (_IOC_DIR(cmd) != _IOC_READ) { in hidraw_ioctl()
/Linux-v6.1/include/uapi/linux/
Dsoundcard.h92 #define _SIOC_DIR _IOC_DIR
/Linux-v6.1/drivers/video/fbdev/
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-v6.1/drivers/firewire/
Dcore-cdev.c1650 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/
Dhiddev.c820 if (_IOC_TYPE(cmd) != 'H' || _IOC_DIR(cmd) != _IOC_READ) in hiddev_ioctl()
/Linux-v6.1/drivers/usb/core/
Ddevio.c2327 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/
Dsmack_lsm.c1536 if (_IOC_DIR(cmd) & _IOC_WRITE) { in smack_file_ioctl()
1541 if (rc == 0 && (_IOC_DIR(cmd) & _IOC_READ)) { in smack_file_ioctl()

12