Lines Matching defs:spi
19 #include <linux/spi/spi.h>
20 #include <linux/spi/spi_bitbang.h>
37 * Also see Documentation/spi/spi-lm70llp.rst. The SPI<->parport code here is
38 * (heavily) based on spi-butterfly by David Brownell.
61 #define DRVNAME "spi-lm70llp"
84 static inline struct spi_lm70llp *spidev_to_pp(struct spi_device *spi)
86 return spi->controller_data;
167 #include "spi-bitbang-txrx.h"
169 static void lm70_chipselect(struct spi_device *spi, int value)
171 struct spi_lm70llp *pp = spidev_to_pp(spi);
182 static u32 lm70_txrx(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits,
185 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits);