Lines Matching defs:spi
8 * Based on: spi-bcm2835.c
25 #include <linux/spi/spi.h>
35 * spi register defines
112 snprintf(name, sizeof(name), "spi-bcm2835aux-%s", dname);
208 /* disable spi clearing fifo and interrupts */
261 struct spi_device *spi,
276 struct spi_device *spi,
297 return __bcm2835aux_spi_transfer_one_irq(host, spi, tfr);
301 struct spi_device *spi,
310 /* configure spi */
325 dev_dbg_ratelimited(&spi->dev,
332 spi, tfr);
341 struct spi_device *spi,
395 return bcm2835aux_spi_transfer_one_poll(host, spi, tfr);
398 return bcm2835aux_spi_transfer_one_irq(host, spi, tfr);
404 struct spi_device *spi = msg->spi;
413 if (spi->mode & SPI_CPOL) {
443 static int bcm2835aux_spi_setup(struct spi_device *spi)
446 if (spi->mode & SPI_NO_CS)
449 if (spi_get_csgpiod(spi, 0))
463 dev_warn(&spi->dev,
466 if (spi_get_chipselect(spi, 0) == 0)
469 dev_warn(&spi->dev, "Native CS is not working for cs > 0\n");
584 { .compatible = "brcm,bcm2835-aux-spi", },
591 .name = "spi-bcm2835aux",