Home
last modified time | relevance | path

Searched refs:SPI_IOC_MAGIC (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/include/uapi/linux/spi/ !
Dspidev.h32 #define SPI_IOC_MAGIC 'k' macro
98 #define SPI_IOC_MESSAGE(N) _IOW(SPI_IOC_MAGIC, 0, char[SPI_MSGSIZE(N)])
102 #define SPI_IOC_RD_MODE _IOR(SPI_IOC_MAGIC, 1, __u8)
103 #define SPI_IOC_WR_MODE _IOW(SPI_IOC_MAGIC, 1, __u8)
106 #define SPI_IOC_RD_LSB_FIRST _IOR(SPI_IOC_MAGIC, 2, __u8)
107 #define SPI_IOC_WR_LSB_FIRST _IOW(SPI_IOC_MAGIC, 2, __u8)
110 #define SPI_IOC_RD_BITS_PER_WORD _IOR(SPI_IOC_MAGIC, 3, __u8)
111 #define SPI_IOC_WR_BITS_PER_WORD _IOW(SPI_IOC_MAGIC, 3, __u8)
114 #define SPI_IOC_RD_MAX_SPEED_HZ _IOR(SPI_IOC_MAGIC, 4, __u32)
115 #define SPI_IOC_WR_MAX_SPEED_HZ _IOW(SPI_IOC_MAGIC, 4, __u32)
[all …]
/linux-6.1.9/drivers/spi/ !
Dspidev.c328 if (_IOC_TYPE(cmd) != SPI_IOC_MAGIC in spidev_get_ioc_message()
355 if (_IOC_TYPE(cmd) != SPI_IOC_MAGIC) in spidev_ioctl()
570 if (_IOC_TYPE(cmd) == SPI_IOC_MAGIC in spidev_compat_ioctl()