/Linux-v5.10/arch/sparc/include/uapi/asm/ |
D | ioctl.h | 36 #define _IOC_READ 2U macro 46 #define _IOR(type,nr,size) _IOC(_IOC_READ,(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)? \ 63 #define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) 64 #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT)
|
/Linux-v5.10/include/uapi/asm-generic/ |
D | ioctl.h | 65 #ifndef _IOC_READ 66 # define _IOC_READ 2U macro 86 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) 88 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) 89 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) 91 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) 102 #define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) 103 #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT)
|
/Linux-v5.10/include/uapi/linux/ |
D | input.h | 139 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) /* get device name */ 140 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) /* get physical location */ 141 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */ 142 #define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len) /* get device properties */ 168 #define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len) 170 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global key state */ 171 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* get all LEDs */ 172 #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) /* get all sounds status */ 173 #define EVIOCGSW(len) _IOC(_IOC_READ, 'E', 0x1b, len) /* get all switch states */ 175 #define EVIOCGBIT(ev,len) _IOC(_IOC_READ, 'E', 0x20 + (ev), len) /* get event bits */
|
D | hidraw.h | 37 #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len) 38 #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len) 40 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) 41 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) 42 #define HIDIOCGRAWUNIQ(len) _IOC(_IOC_READ, 'H', 0x08, 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 | hiddev.h | 160 #define HIDIOCGNAME(len) _IOC(_IOC_READ, 'H', 0x06, len) 172 #define HIDIOCGPHYS(len) _IOC(_IOC_READ, 'H', 0x12, len)
|
D | joystick.h | 59 #define JSIOCGNAME(len) _IOC(_IOC_READ, 'j', 0x13, len) /* get identifier string */
|
D | uinput.h | 161 #define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 44, len)
|
D | usbdevice_fs.h | 226 #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len)
|
D | soundcard.h | 94 #define _SIOC_READ _IOC_READ
|
/Linux-v5.10/arch/alpha/include/uapi/asm/ |
D | ioctl.h | 37 #define _IOC_READ 2U macro 49 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) 51 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) 62 #define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) 63 #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT)
|
/Linux-v5.10/arch/s390/include/uapi/asm/ |
D | zcrypt.h | 308 #define ICARSAMODEXPO _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x05, 0) 309 #define ICARSACRT _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x06, 0) 310 #define ZSECSENDCPRB _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x81, 0) 311 #define ZSENDEP11CPRB _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x04, 0) 313 #define ZCRYPT_DEVICE_STATUS _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x5f, 0) 355 #define ZDEVICESTATUS _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x4f, 0)
|
/Linux-v5.10/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-v5.10/tools/perf/trace/beauty/ |
D | ioctl.c | 96 …struct strarray *s = (dir & _IOC_READ) ? &strarray__vhost_virtio_ioctl_read_cmds : &strarray__vhos… in ioctl__scnprintf_vhost_virtio_cmd() 160 if (dir & _IOC_READ) in ioctl__scnprintf_cmd() 163 printed += scnprintf(bf + printed, size - printed, "%s%s%s", dir & _IOC_READ ? "|" : "", in ioctl__scnprintf_cmd()
|
/Linux-v5.10/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-v5.10/arch/parisc/include/uapi/asm/ |
D | ioctl.h | 41 #define _IOC_READ 1U macro
|
/Linux-v5.10/arch/mips/include/uapi/asm/ |
D | ioctl.h | 23 #define _IOC_READ 2U macro
|
/Linux-v5.10/arch/powerpc/include/uapi/asm/ |
D | ioctl.h | 9 #define _IOC_READ 2U macro
|
/Linux-v5.10/drivers/usb/class/ |
D | usblp.c | 67 #define LPIOC_GET_DEVICE_ID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len) 76 #define LPIOC_GET_PROTOCOLS(len) _IOC(_IOC_READ, 'P', IOCNR_GET_PROTOCOLS, len) 86 #define LPIOC_GET_BUS_ADDRESS(len) _IOC(_IOC_READ, 'P', IOCNR_GET_BUS_ADDRESS, len) 88 #define LPIOC_GET_VID_PID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_VID_PID, len) 518 if (_IOC_DIR(cmd) != _IOC_READ) { in usblp_ioctl() 541 if (_IOC_DIR(cmd) != _IOC_READ || in usblp_ioctl() 610 if (_IOC_DIR(cmd) != _IOC_READ || in usblp_ioctl() 631 if (_IOC_DIR(cmd) != _IOC_READ || in usblp_ioctl()
|
/Linux-v5.10/drivers/media/dvb-core/ |
D | dvbdev.c | 924 case _IOC_READ: /* some v4l ioctls are marked wrong ... */ in dvb_usercopy() 926 case (_IOC_WRITE | _IOC_READ): in dvb_usercopy() 953 case _IOC_READ: in dvb_usercopy() 954 case (_IOC_WRITE | _IOC_READ): in dvb_usercopy()
|
/Linux-v5.10/tools/include/uapi/linux/ |
D | usbdevice_fs.h | 226 #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len)
|
/Linux-v5.10/drivers/scsi/ |
D | pmcraid.h | 1055 _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_DRIVER_IOCTL, (n), (size)) 1058 _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_PASSTHROUGH_IOCTL, (n), (size))
|
/Linux-v5.10/drivers/staging/android/ion/ |
D | ion.c | 509 if (_IOC_DIR(cmd) & _IOC_READ) { in ion_ioctl()
|
/Linux-v5.10/drivers/hid/ |
D | hidraw.c | 432 if (_IOC_DIR(cmd) != _IOC_READ) { in hidraw_ioctl()
|
/Linux-v5.10/drivers/media/rc/ |
D | lirc_dev.c | 580 if (!ret && _IOC_DIR(cmd) & _IOC_READ) in lirc_ioctl()
|