Lines Matching defs:spi

11  *	linux-2.6.17-rc3-mm1/drivers/spi/pxa2xx_spi.c
22 #include <linux/spi/spi.h>
504 * for the same spi device.
516 * to the same spi device.
518 if (next_msg && next_msg->spi != pl022->cur_msg->spi)
770 * next_transfer - Move to the Next transfer in the current spi message
773 * This function moves though the linked list of spi transfers in the
774 * current spi message and returns with the state of current spi
1496 dev_warn(&pl022->adev->dev, "spi-pl022 CR0: %x\n", read_cr0);
1497 dev_warn(&pl022->adev->dev, "spi-pl022 CR1: %x\n", read_cr1);
1498 dev_warn(&pl022->adev->dev, "spi-pl022 DMACR: %x\n", read_dmacr);
1499 dev_warn(&pl022->adev->dev, "spi-pl022 SR: %x\n", read_sr);
1501 "spi-pl022 exp_fifo_level/fifodepth: %u/%d\n",
1598 pl022->cur_chip = spi_get_ctldata(msg->spi);
1599 pl022->cur_cs = pl022->chipselects[msg->spi->chip_select];
1616 /* nothing more to do - disable spi/ssp and power off */
1838 * @spi: spi device which is requesting setup
1848 static int pl022_setup(struct spi_device *spi)
1855 struct pl022 *pl022 = spi_master_get_devdata(spi->master);
1856 unsigned int bits = spi->bits_per_word;
1858 struct device_node *np = spi->dev.of_node;
1860 if (!spi->max_speed_hz)
1864 chip = spi_get_ctldata(spi);
1870 dev_dbg(&spi->dev,
1875 chip_info = spi->controller_data;
1901 dev_dbg(&spi->dev,
1905 dev_dbg(&spi->dev,
1915 spi->max_speed_hz,
1928 dev_err(&spi->dev,
1935 dev_err(&spi->dev, "controller data is incorrect");
1946 if (!gpio_is_valid(pl022->chipselects[spi->chip_select]))
1947 dev_warn(&spi->dev,
1955 dev_err(&spi->dev, "illegal data size for this controller!\n");
1956 dev_err(&spi->dev, "This controller can only handle 4 <= n <= %d bit words\n",
1960 dev_dbg(&spi->dev, "4 <= n <=8 bits per word\n");
1965 dev_dbg(&spi->dev, "9 <= n <= 16 bits per word\n");
1970 dev_dbg(&spi->dev, "17 <= n <= 32 bits per word\n");
1984 dev_dbg(&spi->dev, "DMA mode set in controller state\n");
1991 dev_dbg(&spi->dev, "DMA mode NOT set in controller state\n");
2022 if (spi->mode & SPI_LSB_FIRST) {
2043 if (spi->mode & SPI_CPOL)
2049 if (spi->mode & SPI_CPHA)
2058 if (spi->mode & SPI_LOOP)
2070 spi_set_ctldata(spi, chip);
2073 spi_set_ctldata(spi, NULL);
2080 * @spi: spi device which is requesting cleanup
2085 static void pl022_cleanup(struct spi_device *spi)
2087 struct chip_data *chip = spi_get_ctldata(spi);
2089 spi_set_ctldata(spi, NULL);
2284 "probe - problem registering spi master\n");