/linux-6.6.21/arch/sparc/include/uapi/asm/ |
D | ioctl.h | 37 #define _IOC_WRITE 4U macro 47 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) 48 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) 52 ( (((((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) & (_IOC_WRITE|_IOC_READ)) != 0)? \ 53 (((nr) >> _IOC_DIRSHIFT) & (_IOC_WRITE|_IOC_READ)): \ 58 ((((((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) & (_IOC_WRITE|_IOC_READ)) == 0)? \ 62 #define IOC_IN (_IOC_WRITE << _IOC_DIRSHIFT) 64 #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT)
|
/linux-6.6.21/include/uapi/asm-generic/ |
D | ioctl.h | 61 #ifndef _IOC_WRITE 62 # define _IOC_WRITE 1U macro 87 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) 88 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) 90 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) 91 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) 101 #define IOC_IN (_IOC_WRITE << _IOC_DIRSHIFT) 103 #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT)
|
/linux-6.6.21/include/uapi/linux/ |
D | hidraw.h | 40 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) 41 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) 44 #define HIDIOCSINPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x09, len) 45 #define HIDIOCGINPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x0A, len) 47 #define HIDIOCSOUTPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x0B, len) 48 #define HIDIOCGOUTPUT(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x0C, len)
|
D | vboxguest.h | 102 #define VBG_IOCTL_VMMDEV_REQUEST(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 2, s) 176 #define VBG_IOCTL_HGCM_CALL_32(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 6, s) 177 #define VBG_IOCTL_HGCM_CALL_64(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 7, s)
|
D | soundcard.h | 95 #define _SIOC_WRITE _IOC_WRITE
|
/linux-6.6.21/arch/alpha/include/uapi/asm/ |
D | ioctl.h | 38 #define _IOC_WRITE 4U macro 50 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) 51 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) 61 #define IOC_IN (_IOC_WRITE << _IOC_DIRSHIFT) 63 #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT)
|
/linux-6.6.21/arch/s390/include/uapi/asm/ |
D | zcrypt.h | 307 #define ICARSAMODEXPO _IOC(_IOC_READ | _IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x05, 0) 308 #define ICARSACRT _IOC(_IOC_READ | _IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x06, 0) 309 #define ZSECSENDCPRB _IOC(_IOC_READ | _IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x81, 0) 310 #define ZSENDEP11CPRB _IOC(_IOC_READ | _IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x04, 0) 312 #define ZCRYPT_DEVICE_STATUS _IOC(_IOC_READ | _IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x5f, 0) 354 #define ZDEVICESTATUS _IOC(_IOC_READ | _IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x4f, 0)
|
/linux-6.6.21/rust/kernel/ |
D | ioctl.rs | 40 _IOC(uapi::_IOC_WRITE, ty, nr, core::mem::size_of::<T>()) in _IOW() 47 uapi::_IOC_READ | uapi::_IOC_WRITE, in _IOWR()
|
/linux-6.6.21/drivers/virt/vboxguest/ |
D | vboxguest_core.h | 30 #define VBG_IOCTL_VMMDEV_REQUEST_BIG_ALT _IOC(_IOC_READ | _IOC_WRITE, 'V', 3, 0) 31 #define VBG_IOCTL_LOG_ALT(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 9, s)
|
/linux-6.6.21/samples/hidraw/ |
D | hid-example.c | 24 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) 25 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
|
/linux-6.6.21/arch/parisc/include/uapi/asm/ |
D | ioctl.h | 40 #define _IOC_WRITE 2U macro
|
/linux-6.6.21/arch/mips/include/uapi/asm/ |
D | ioctl.h | 24 #define _IOC_WRITE 4U macro
|
/linux-6.6.21/arch/powerpc/include/uapi/asm/ |
D | ioctl.h | 10 #define _IOC_WRITE 4U macro
|
/linux-6.6.21/include/uapi/sound/ |
D | sb16_csp.h | 95 _IOC(_IOC_WRITE, 'H', 0x11, sizeof(struct snd_sb_csp_microcode))
|
/linux-6.6.21/fs/fuse/ |
D | ioctl.c | 221 if (_IOC_DIR(cmd) & _IOC_WRITE) { in fuse_do_ioctl() 398 if (_IOC_DIR(cmd) & _IOC_WRITE) in fuse_priv_ioctl()
|
/linux-6.6.21/drivers/usb/class/ |
D | usblp.c | 82 #define LPIOC_SET_PROTOCOL _IOC(_IOC_WRITE, 'P', IOCNR_SET_PROTOCOL, 0) 84 #define LPIOC_HP_SET_CHANNEL _IOC(_IOC_WRITE, 'P', IOCNR_HP_SET_CHANNEL, 0) 590 if (_IOC_DIR(cmd) != _IOC_WRITE) { in usblp_ioctl() 611 if (_IOC_DIR(cmd) != _IOC_WRITE || in usblp_ioctl()
|
/linux-6.6.21/drivers/media/dvb-core/ |
D | dvbdev.c | 969 case _IOC_WRITE: in dvb_usercopy() 970 case (_IOC_WRITE | _IOC_READ): in dvb_usercopy() 998 case (_IOC_WRITE | _IOC_READ): in dvb_usercopy()
|
/linux-6.6.21/tools/perf/trace/beauty/ |
D | ioctl.c | 162 if (dir & _IOC_WRITE) { in ioctl__scnprintf_cmd()
|
/linux-6.6.21/drivers/spi/ |
D | spidev.c | 340 || _IOC_DIR(cmd) != _IOC_WRITE) in spidev_get_ioc_message() 584 && _IOC_DIR(cmd) == _IOC_WRITE) in spidev_compat_ioctl()
|
/linux-6.6.21/drivers/s390/char/ |
D | uvdevice.c | 384 if (_IOC_DIR(cmd) != (_IOC_READ | _IOC_WRITE)) in uvio_copy_and_check_ioctl()
|
/linux-6.6.21/drivers/scsi/ |
D | pmcraid.h | 1033 _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_DRIVER_IOCTL, (n), (size))
|
/linux-6.6.21/drivers/media/rc/ |
D | lirc_dev.c | 368 if (_IOC_DIR(cmd) & _IOC_WRITE) { in lirc_ioctl()
|
/linux-6.6.21/drivers/media/mc/ |
D | mc-device.c | 389 if ((_IOC_DIR(cmd) & _IOC_WRITE) && in copy_arg_from_user()
|
/linux-6.6.21/drivers/media/v4l2-core/ |
D | v4l2-ioctl.c | 2967 case _IOC_WRITE: dir = "-w"; break; in v4l_printk_ioctl() 2968 case _IOC_READ | _IOC_WRITE: dir = "rw"; break; in v4l_printk_ioctl() 3046 write_only = _IOC_DIR(cmd) == _IOC_WRITE; in __video_do_ioctl() 3193 if (!(_IOC_DIR(cmd) & _IOC_WRITE)) { in video_get_user()
|
/linux-6.6.21/fs/nilfs2/ |
D | ioctl.c | 85 if ((dir & _IOC_WRITE) && in nilfs_ioctl_wrap_copy()
|