Lines Matching defs:spi
8 * Based on spi-sh.c:
26 #include <linux/spi/spi.h>
27 #include <linux/spi/rspi.h>
245 struct spi_device *spi, struct spi_transfer *xfer);
687 static bool rspi_can_dma(struct spi_controller *ctlr, struct spi_device *spi,
728 struct spi_device *spi, struct spi_transfer *xfer)
746 struct spi_device *spi,
864 struct spi_device *spi, struct spi_transfer *xfer)
869 if (spi->mode & SPI_LOOP) {
928 dev_err(&msg->spi->dev,
948 static int rspi_setup(struct spi_device *spi)
950 struct rspi_data *rspi = spi_controller_get_devdata(spi->controller);
953 if (spi_get_csgpiod(spi, 0))
960 if (spi->mode & SPI_CS_HIGH)
961 sslp |= SSLP_SSLP(spi_get_chipselect(spi, 0));
963 sslp &= ~SSLP_SSLP(spi_get_chipselect(spi, 0));
975 struct spi_device *spi = msg->spi;
989 rspi->speed_hz = spi->max_speed_hz;
996 if (spi->mode & SPI_CPOL)
998 if (spi->mode & SPI_CPHA)
1000 if (spi->mode & SPI_LSB_FIRST)
1004 rspi->spcmd |= SPCMD_SSLA(spi_get_csgpiod(spi, 0) ? rspi->ctlr->unused_native_cs
1005 : spi_get_chipselect(spi, 0));
1009 if (spi->mode & SPI_LOOP)
1014 if (msg->spi->mode &