Lines Matching defs:spi
22 #include <linux/spi/spi.h>
23 #include <linux/spi/spi_bitbang.h>
119 struct spi_device *spi, struct spi_transfer *t)
128 if (spi->bits_per_word > 8) {
136 } else if (spi->bits_per_word == 8 && !(t->len & 0x1)) {
168 spi_finalize_current_transfer(spi->master);
173 /* the spi->mode bits understood by this driver: */
175 static int spi_st_setup(struct spi_device *spi)
177 struct spi_st *spi_st = spi_master_get_devdata(spi->master);
179 u32 hz = spi->max_speed_hz;
182 dev_err(&spi->dev, "max_speed_hz unspecified\n");
186 if (!spi_get_csgpiod(spi, 0)) {
187 dev_err(&spi->dev, "no valid gpio assigned\n");
196 dev_err(&spi->dev,
207 dev_dbg(&spi->dev,
215 if (spi->mode & SPI_CPOL)
220 if (spi->mode & SPI_CPHA)
225 if ((spi->mode & SPI_LSB_FIRST) == 0)
230 if (spi->mode & SPI_LOOP)
236 var |= (spi->bits_per_word - 1);
440 { .compatible = "st,comms-ssc4-spi", },
447 .name = "spi-st",