Home
last modified time | relevance | path

Searched refs:_IOC_READ (Results 1 – 25 of 41) sorted by relevance

12

/openbmc/linux/include/uapi/linux/
H A Dhidraw.h37 #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)
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)
H A Dinput.h142 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) /* get device name */
143 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) /* get physical location */
144 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */
145 #define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len) /* get device properties */
171 #define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len)
173 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global key state */
174 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* get all LEDs */
175 #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) /* get all sounds status */
176 #define EVIOCGSW(len) _IOC(_IOC_READ, 'E', 0x1b, len) /* get all switch states */
178 #define EVIOCGBIT(ev,len) _IOC(_IOC_READ, 'E', 0x20 + (ev), len) /* get event bits */
H A Dvboxguest.h102 #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)
H A Dhiddev.h160 #define HIDIOCGNAME(len) _IOC(_IOC_READ, 'H', 0x06, len)
172 #define HIDIOCGPHYS(len) _IOC(_IOC_READ, 'H', 0x12, len)
H A Djoystick.h59 #define JSIOCGNAME(len) _IOC(_IOC_READ, 'j', 0x13, len) /* get identifier string */
H A Duinput.h161 #define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 44, len)
H A Dusbdevice_fs.h226 #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len)
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dioctl.h36 #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)
/openbmc/linux/include/uapi/asm-generic/
H A Dioctl.h65 #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)
/openbmc/u-boot/include/asm-generic/
H A Dioctl.h61 #ifndef _IOC_READ
62 # define _IOC_READ 2U macro
84 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
86 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
87 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
89 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
100 #define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT)
101 #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT)
/openbmc/qemu/include/standard-headers/linux/
H A Dinput.h139 #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 */
/openbmc/linux/arch/alpha/include/uapi/asm/
H A Dioctl.h37 #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)
/openbmc/linux/arch/s390/include/uapi/asm/
H A Dzcrypt.h307 #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)
/openbmc/linux/rust/kernel/
H A Dioctl.rs34 _IOC(uapi::_IOC_READ, ty, nr, core::mem::size_of::<T>()) in _IOR()
47 uapi::_IOC_READ | uapi::_IOC_WRITE, in _IOWR()
/openbmc/linux/drivers/virt/vboxguest/
H A Dvboxguest_core.h30 #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)
/openbmc/linux/samples/hidraw/
H A Dhid-example.c24 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
25 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
/openbmc/linux/tools/perf/trace/beauty/
H A Dioctl.c96 …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()
/openbmc/linux/arch/parisc/include/uapi/asm/
H A Dioctl.h41 #define _IOC_READ 1U macro
/openbmc/linux/arch/mips/include/uapi/asm/
H A Dioctl.h23 #define _IOC_READ 2U macro
/openbmc/linux/arch/powerpc/include/uapi/asm/
H A Dioctl.h9 #define _IOC_READ 2U macro
/openbmc/linux/drivers/usb/class/
H A Dusblp.c67 #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)
543 if (_IOC_DIR(cmd) != _IOC_READ) { in usblp_ioctl()
566 if (_IOC_DIR(cmd) != _IOC_READ || in usblp_ioctl()
635 if (_IOC_DIR(cmd) != _IOC_READ || in usblp_ioctl()
656 if (_IOC_DIR(cmd) != _IOC_READ || in usblp_ioctl()
/openbmc/linux/tools/include/uapi/linux/
H A Dusbdevice_fs.h226 #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len)
/openbmc/linux/drivers/media/dvb-core/
H A Ddvbdev.c979 case _IOC_READ: /* some v4l ioctls are marked wrong ... */ in dvb_usercopy()
981 case (_IOC_WRITE | _IOC_READ): in dvb_usercopy()
1008 case _IOC_READ: in dvb_usercopy()
1009 case (_IOC_WRITE | _IOC_READ): in dvb_usercopy()
/openbmc/linux/fs/fuse/
H A Dioctl.c226 if (_IOC_DIR(cmd) & _IOC_READ) { in fuse_do_ioctl()
396 if (_IOC_DIR(cmd) & _IOC_READ) in fuse_priv_ioctl()
/openbmc/linux/drivers/s390/char/
H A Duvdevice.c384 if (_IOC_DIR(cmd) != (_IOC_READ | _IOC_WRITE)) in uvio_copy_and_check_ioctl()

12