Lines Matching defs:spi
4 * Driver for the IFX 6x60 spi modem.
31 #include <linux/spi/spi.h>
48 #include <linux/spi/ifx_modem.h>
466 /* spi header needs payload size, not entire buffer size */
746 /* set up our spi transfer */
809 * @ifx_dev: our spi device
978 * @spi: our possible matching SPI device
988 static int ifx_spi_spi_probe(struct spi_device *spi)
994 struct device *dev = &spi->dev;
1010 dev_err(dev, "spi device allocation failed");
1014 ifx_dev->spi_dev = spi;
1023 /* initialize spi mode, etc */
1024 spi->max_speed_hz = ifx_dev->max_hz;
1025 spi->mode = IFX_SPI_MODE | (SPI_LOOP & spi->mode);
1026 spi->bits_per_word = spi_bpw;
1027 ret = spi_setup(spi);
1035 if (spi->bits_per_word == 32)
1037 else if (spi->bits_per_word == 16)
1069 spi_set_drvdata(spi, ifx_dev);
1172 * @spi: SPI device
1178 static int ifx_spi_spi_remove(struct spi_device *spi)
1180 struct ifx_spi_device *ifx_dev = spi_get_drvdata(spi);
1184 pm_runtime_disable(&spi->dev);
1199 * @spi: SPI device
1204 static void ifx_spi_spi_shutdown(struct spi_device *spi)
1206 struct ifx_spi_device *ifx_dev = spi_get_drvdata(spi);
1272 struct spi_device *spi = to_spi_device(dev);
1273 struct ifx_spi_device *ifx_dev = spi_get_drvdata(spi);
1294 MODULE_DEVICE_TABLE(spi, ifx_id_table);
1296 /* spi operations */
1327 * We need to initialize upper-edge spi driver after the tty
1328 * driver because otherwise the spi probe will race
1387 MODULE_DESCRIPTION("IFX6x60 spi driver");