Lines Matching defs:spi
11 * linux-2.6.17-rc3-mm1/drivers/spi/pxa2xx_spi.c
22 #include <linux/spi/spi.h>
495 * for the same spi device.
507 * to the same spi device.
509 if (next_msg && next_msg->spi != pl022->cur_msg->spi)
761 * next_transfer - Move to the Next transfer in the current spi message
764 * This function moves though the linked list of spi transfers in the
765 * current spi message and returns with the state of current spi
1487 dev_warn(&pl022->adev->dev, "spi-pl022 CR0: %x\n", read_cr0);
1488 dev_warn(&pl022->adev->dev, "spi-pl022 CR1: %x\n", read_cr1);
1489 dev_warn(&pl022->adev->dev, "spi-pl022 DMACR: %x\n", read_dmacr);
1490 dev_warn(&pl022->adev->dev, "spi-pl022 SR: %x\n", read_sr);
1492 "spi-pl022 exp_fifo_level/fifodepth: %u/%d\n",
1589 pl022->cur_chip = spi_get_ctldata(msg->spi);
1590 pl022->cur_cs = spi_get_chipselect(msg->spi, 0);
1592 pl022->cur_gpiod = spi_get_csgpiod(msg->spi, 0);
1609 /* nothing more to do - disable spi/ssp and power off */
1830 * @spi: spi device which is requesting setup
1840 static int pl022_setup(struct spi_device *spi)
1847 struct pl022 *pl022 = spi_controller_get_devdata(spi->controller);
1848 unsigned int bits = spi->bits_per_word;
1850 struct device_node *np = spi->dev.of_node;
1852 if (!spi->max_speed_hz)
1856 chip = spi_get_ctldata(spi);
1862 dev_dbg(&spi->dev,
1867 chip_info = spi->controller_data;
1893 dev_dbg(&spi->dev,
1897 dev_dbg(&spi->dev,
1907 spi->max_speed_hz,
1920 dev_err(&spi->dev,
1927 dev_err(&spi->dev, "controller data is incorrect");
1940 dev_err(&spi->dev, "illegal data size for this controller!\n");
1941 dev_err(&spi->dev, "This controller can only handle 4 <= n <= %d bit words\n",
1945 dev_dbg(&spi->dev, "4 <= n <=8 bits per word\n");
1950 dev_dbg(&spi->dev, "9 <= n <= 16 bits per word\n");
1955 dev_dbg(&spi->dev, "17 <= n <= 32 bits per word\n");
1969 dev_dbg(&spi->dev, "DMA mode set in controller state\n");
1976 dev_dbg(&spi->dev, "DMA mode NOT set in controller state\n");
2007 if (spi->mode & SPI_LSB_FIRST) {
2028 if (spi->mode & SPI_CPOL)
2034 if (spi->mode & SPI_CPHA)
2043 if (spi->mode & SPI_LOOP)
2055 spi_set_ctldata(spi, chip);
2058 spi_set_ctldata(spi, NULL);
2065 * @spi: spi device which is requesting cleanup
2070 static void pl022_cleanup(struct spi_device *spi)
2072 struct chip_data *chip = spi_get_ctldata(spi);
2074 spi_set_ctldata(spi, NULL);
2221 "problem registering spi host\n");