Home
last modified time | relevance | path

Searched refs:_IOC_WRITE (Results 1 – 25 of 33) sorted by relevance

12

/openbmc/openbmc-tools/adcapp/src/
H A Dadc.h15 #define READ_ADC_CHANNEL _IOC(_IOC_WRITE,'K',0x100,0x3FFF)
16 #define READ_ADC_REF_VOLATGE _IOC(_IOC_WRITE,'K',0x101,0x3FFF)
17 #define READ_ADC_RESOLUTION _IOC(_IOC_WRITE,'K',0x102,0x3FFF)
18 #define ENABLE_EXT_REF_VOLTAGE _IOC(_IOC_WRITE,'K',0x103,0x3FFF)
19 #define DISABLE_EXT_REF_VOLTAGE _IOC(_IOC_WRITE,'K',0x104,0x3FFF)
20 #define ENABLE_ADC_CHANNEL _IOC(_IOC_WRITE,'K',0x105,0x3FFF)
21 #define DISABLE_ADC_CHANNEL _IOC(_IOC_WRITE,'K',0x106,0x3FFF)
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dioctl.h37 #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)
/openbmc/linux/include/uapi/asm-generic/
H A Dioctl.h61 #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)
/openbmc/u-boot/include/asm-generic/
H A Dioctl.h57 #ifndef _IOC_WRITE
58 # define _IOC_WRITE 1U macro
85 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
86 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
88 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size))
89 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
99 #define IOC_IN (_IOC_WRITE << _IOC_DIRSHIFT)
101 #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT)
/openbmc/linux/include/uapi/linux/
H A Dhidraw.h40 #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)
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 Dsoundcard.h95 #define _SIOC_WRITE _IOC_WRITE
/openbmc/linux/arch/alpha/include/uapi/asm/
H A Dioctl.h38 #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)
/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.rs40 _IOC(uapi::_IOC_WRITE, ty, nr, core::mem::size_of::<T>()) in _IOW()
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/arch/parisc/include/uapi/asm/
H A Dioctl.h40 #define _IOC_WRITE 2U macro
/openbmc/linux/arch/mips/include/uapi/asm/
H A Dioctl.h24 #define _IOC_WRITE 4U macro
/openbmc/linux/arch/powerpc/include/uapi/asm/
H A Dioctl.h10 #define _IOC_WRITE 4U macro
/openbmc/linux/include/uapi/sound/
H A Dsb16_csp.h95 _IOC(_IOC_WRITE, 'H', 0x11, sizeof(struct snd_sb_csp_microcode))
/openbmc/linux/fs/fuse/
H A Dioctl.c221 if (_IOC_DIR(cmd) & _IOC_WRITE) { in fuse_do_ioctl()
398 if (_IOC_DIR(cmd) & _IOC_WRITE) in fuse_priv_ioctl()
/openbmc/linux/drivers/usb/class/
H A Dusblp.c82 #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()
/openbmc/linux/tools/perf/trace/beauty/
H A Dioctl.c162 if (dir & _IOC_WRITE) { in ioctl__scnprintf_cmd()
/openbmc/linux/drivers/media/dvb-core/
H A Ddvbdev.c980 case _IOC_WRITE: in dvb_usercopy()
981 case (_IOC_WRITE | _IOC_READ): in dvb_usercopy()
1009 case (_IOC_WRITE | _IOC_READ): in dvb_usercopy()
/openbmc/linux/drivers/spi/
H A Dspidev.c340 || _IOC_DIR(cmd) != _IOC_WRITE) in spidev_get_ioc_message()
584 && _IOC_DIR(cmd) == _IOC_WRITE) in spidev_compat_ioctl()
/openbmc/linux/drivers/s390/char/
H A Duvdevice.c384 if (_IOC_DIR(cmd) != (_IOC_READ | _IOC_WRITE)) in uvio_copy_and_check_ioctl()
/openbmc/linux/drivers/scsi/
H A Dpmcraid.h1033 _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_DRIVER_IOCTL, (n), (size))
/openbmc/linux/drivers/media/rc/
H A Dlirc_dev.c368 if (_IOC_DIR(cmd) & _IOC_WRITE) { in lirc_ioctl()
/openbmc/linux/drivers/media/mc/
H A Dmc-device.c389 if ((_IOC_DIR(cmd) & _IOC_WRITE) && in copy_arg_from_user()

12