_IOC_READ 49 arch/alpha/include/uapi/asm/ioctl.h #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) _IOC_READ 51 arch/alpha/include/uapi/asm/ioctl.h #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) _IOC_READ 62 arch/alpha/include/uapi/asm/ioctl.h #define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) _IOC_READ 63 arch/alpha/include/uapi/asm/ioctl.h #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT) _IOC_READ 306 arch/s390/include/uapi/asm/zcrypt.h #define ICARSAMODEXPO _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x05, 0) _IOC_READ 307 arch/s390/include/uapi/asm/zcrypt.h #define ICARSACRT _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x06, 0) _IOC_READ 308 arch/s390/include/uapi/asm/zcrypt.h #define ZSECSENDCPRB _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x81, 0) _IOC_READ 309 arch/s390/include/uapi/asm/zcrypt.h #define ZSENDEP11CPRB _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x04, 0) _IOC_READ 311 arch/s390/include/uapi/asm/zcrypt.h #define ZCRYPT_DEVICE_STATUS _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x5f, 0) _IOC_READ 353 arch/s390/include/uapi/asm/zcrypt.h #define ZDEVICESTATUS _IOC(_IOC_READ|_IOC_WRITE, ZCRYPT_IOCTL_MAGIC, 0x4f, 0) _IOC_READ 46 arch/sparc/include/uapi/asm/ioctl.h #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) _IOC_READ 48 arch/sparc/include/uapi/asm/ioctl.h #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) _IOC_READ 52 arch/sparc/include/uapi/asm/ioctl.h ( (((((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) & (_IOC_WRITE|_IOC_READ)) != 0)? \ _IOC_READ 53 arch/sparc/include/uapi/asm/ioctl.h (((nr) >> _IOC_DIRSHIFT) & (_IOC_WRITE|_IOC_READ)): \ _IOC_READ 58 arch/sparc/include/uapi/asm/ioctl.h ((((((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) & (_IOC_WRITE|_IOC_READ)) == 0)? \ _IOC_READ 63 arch/sparc/include/uapi/asm/ioctl.h #define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) _IOC_READ 64 arch/sparc/include/uapi/asm/ioctl.h #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT) _IOC_READ 3582 drivers/block/floppy.c if (_IOC_DIR(cmd) & _IOC_READ) _IOC_READ 1445 drivers/char/pcmcia/cm4000_cs.c _IOC_DIR(cmd), _IOC_READ, _IOC_WRITE, size, cmd); _IOC_READ 1447 drivers/char/pcmcia/cm4000_cs.c if (_IOC_DIR(cmd) & _IOC_READ) { _IOC_READ 1636 drivers/firewire/core-cdev.c if (_IOC_DIR(cmd) & _IOC_READ) _IOC_READ 432 drivers/hid/hidraw.c if (_IOC_DIR(cmd) != _IOC_READ) { _IOC_READ 817 drivers/hid/usbhid/hiddev.c if (_IOC_TYPE(cmd) != 'H' || _IOC_DIR(cmd) != _IOC_READ) _IOC_READ 1196 drivers/input/evdev.c if (_IOC_DIR(cmd) == _IOC_READ) { _IOC_READ 2018 drivers/media/dvb-core/dvb_frontend.c && (_IOC_DIR(cmd) != _IOC_READ _IOC_READ 923 drivers/media/dvb-core/dvbdev.c case _IOC_READ: /* some v4l ioctls are marked wrong ... */ _IOC_READ 925 drivers/media/dvb-core/dvbdev.c case (_IOC_WRITE | _IOC_READ): _IOC_READ 952 drivers/media/dvb-core/dvbdev.c case _IOC_READ: _IOC_READ 953 drivers/media/dvb-core/dvbdev.c case (_IOC_WRITE | _IOC_READ): _IOC_READ 397 drivers/media/mc/mc-device.c if ((_IOC_DIR(cmd) & _IOC_READ) && _IOC_READ 593 drivers/media/rc/lirc_dev.c if (!ret && _IOC_DIR(cmd) & _IOC_READ) _IOC_READ 2831 drivers/media/v4l2-core/v4l2-ioctl.c case _IOC_READ: dir = "r-"; break; _IOC_READ 2833 drivers/media/v4l2-core/v4l2-ioctl.c case _IOC_READ | _IOC_WRITE: dir = "rw"; break; _IOC_READ 3124 drivers/media/v4l2-core/v4l2-ioctl.c case _IOC_READ: _IOC_READ 3125 drivers/media/v4l2-core/v4l2-ioctl.c case (_IOC_WRITE | _IOC_READ): _IOC_READ 1055 drivers/scsi/pmcraid.h _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_DRIVER_IOCTL, (n), (size)) _IOC_READ 1058 drivers/scsi/pmcraid.h _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_PASSTHROUGH_IOCTL, (n), (size)) _IOC_READ 526 drivers/staging/android/ion/ion.c if (_IOC_DIR(cmd) & _IOC_READ) { _IOC_READ 67 drivers/usb/class/usblp.c #define LPIOC_GET_DEVICE_ID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len) _IOC_READ 76 drivers/usb/class/usblp.c #define LPIOC_GET_PROTOCOLS(len) _IOC(_IOC_READ, 'P', IOCNR_GET_PROTOCOLS, len) _IOC_READ 86 drivers/usb/class/usblp.c #define LPIOC_GET_BUS_ADDRESS(len) _IOC(_IOC_READ, 'P', IOCNR_GET_BUS_ADDRESS, len) _IOC_READ 88 drivers/usb/class/usblp.c #define LPIOC_GET_VID_PID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_VID_PID, len) _IOC_READ 517 drivers/usb/class/usblp.c if (_IOC_DIR(cmd) != _IOC_READ) { _IOC_READ 540 drivers/usb/class/usblp.c if (_IOC_DIR(cmd) != _IOC_READ || _IOC_READ 609 drivers/usb/class/usblp.c if (_IOC_DIR(cmd) != _IOC_READ || _IOC_READ 630 drivers/usb/class/usblp.c if (_IOC_DIR(cmd) != _IOC_READ || _IOC_READ 2274 drivers/usb/core/devio.c && (_IOC_DIR(ctl->ioctl_code) & _IOC_READ) != 0 _IOC_READ 1281 drivers/video/fbdev/fsl-diu-fb.c _IOC_DIR(cmd) & _IOC_READ ? "R" : "", _IOC_READ 2769 fs/fuse/file.c if (_IOC_DIR(cmd) & _IOC_READ) { _IOC_READ 97 fs/nilfs2/ioctl.c if ((dir & _IOC_READ) && _IOC_READ 65 include/uapi/asm-generic/ioctl.h #ifndef _IOC_READ _IOC_READ 86 include/uapi/asm-generic/ioctl.h #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) _IOC_READ 88 include/uapi/asm-generic/ioctl.h #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) _IOC_READ 89 include/uapi/asm-generic/ioctl.h #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) _IOC_READ 91 include/uapi/asm-generic/ioctl.h #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) _IOC_READ 102 include/uapi/asm-generic/ioctl.h #define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) _IOC_READ 103 include/uapi/asm-generic/ioctl.h #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT) _IOC_READ 160 include/uapi/linux/hiddev.h #define HIDIOCGNAME(len) _IOC(_IOC_READ, 'H', 0x06, len) _IOC_READ 172 include/uapi/linux/hiddev.h #define HIDIOCGPHYS(len) _IOC(_IOC_READ, 'H', 0x12, len) _IOC_READ 37 include/uapi/linux/hidraw.h #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len) _IOC_READ 38 include/uapi/linux/hidraw.h #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len) _IOC_READ 40 include/uapi/linux/hidraw.h #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) _IOC_READ 41 include/uapi/linux/hidraw.h #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) _IOC_READ 139 include/uapi/linux/input.h #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) /* get device name */ _IOC_READ 140 include/uapi/linux/input.h #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) /* get physical location */ _IOC_READ 141 include/uapi/linux/input.h #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */ _IOC_READ 142 include/uapi/linux/input.h #define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len) /* get device properties */ _IOC_READ 168 include/uapi/linux/input.h #define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len) _IOC_READ 170 include/uapi/linux/input.h #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global key state */ _IOC_READ 171 include/uapi/linux/input.h #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* get all LEDs */ _IOC_READ 172 include/uapi/linux/input.h #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) /* get all sounds status */ _IOC_READ 173 include/uapi/linux/input.h #define EVIOCGSW(len) _IOC(_IOC_READ, 'E', 0x1b, len) /* get all switch states */ _IOC_READ 175 include/uapi/linux/input.h #define EVIOCGBIT(ev,len) _IOC(_IOC_READ, 'E', 0x20 + (ev), len) /* get event bits */ _IOC_READ 59 include/uapi/linux/joystick.h #define JSIOCGNAME(len) _IOC(_IOC_READ, 'j', 0x13, len) /* get identifier string */ _IOC_READ 94 include/uapi/linux/soundcard.h #define _SIOC_READ _IOC_READ _IOC_READ 161 include/uapi/linux/uinput.h #define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 44, len) _IOC_READ 226 include/uapi/linux/usbdevice_fs.h #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len) _IOC_READ 102 include/uapi/linux/vboxguest.h #define VBG_IOCTL_VMMDEV_REQUEST(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 2, s) _IOC_READ 106 include/uapi/linux/vboxguest.h #define VBG_IOCTL_VMMDEV_REQUEST_BIG _IOC(_IOC_READ | _IOC_WRITE, 'V', 3, 0) _IOC_READ 176 include/uapi/linux/vboxguest.h #define VBG_IOCTL_HGCM_CALL_32(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 6, s) _IOC_READ 177 include/uapi/linux/vboxguest.h #define VBG_IOCTL_HGCM_CALL_64(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 7, s) _IOC_READ 201 include/uapi/linux/vboxguest.h #define VBG_IOCTL_LOG(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 9, s) _IOC_READ 24 samples/hidraw/hid-example.c #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) _IOC_READ 25 samples/hidraw/hid-example.c #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) _IOC_READ 1569 security/smack/smack_lsm.c if (rc == 0 && (_IOC_DIR(cmd) & _IOC_READ)) { _IOC_READ 226 tools/include/uapi/linux/usbdevice_fs.h #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len) _IOC_READ 96 tools/perf/trace/beauty/ioctl.c struct strarray *s = (dir & _IOC_READ) ? &strarray__vhost_virtio_ioctl_read_cmds : &strarray__vhost_virtio_ioctl_cmds; _IOC_READ 160 tools/perf/trace/beauty/ioctl.c if (dir & _IOC_READ) _IOC_READ 163 tools/perf/trace/beauty/ioctl.c printed += scnprintf(bf + printed, size - printed, "%s%s%s", dir & _IOC_READ ? "|" : "",