• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/spi/

Lines Matching refs:spi

2  * drivers/spi/amba-pl022.c
12 * linux-2.6.17-rc3-mm1/drivers/spi/pxa2xx_spi.c
39 #include <linux/spi/spi.h>
494 if (next_msg && next_msg->spi != msg->spi)
740 * next_transfer - Move to the Next transfer in the current spi message
743 * This function moves though the linked list of spi transfers in the
744 * current spi message and returns with the state of current spi
1090 * pump_messages - Workqueue function which processes spi message queue
1093 * This function checks if there is any spi message in the queue that
1132 pl022->cur_chip = spi_get_ctldata(pl022->cur_msg->spi);
1367 * @spi: spi device which is requesting transfer
1368 * @msg: spi message which is to handled is queued to driver queue
1374 static int pl022_transfer(struct spi_device *spi, struct spi_message *msg)
1376 struct pl022 *pl022 = spi_master_get_devdata(spi->master);
1465 * @chip: Runtime state maintained by the SSP controller for each spi device
1480 * @spi: spi device which is requesting setup
1494 static int pl022_setup(struct spi_device *spi)
1499 struct pl022 *pl022 = spi_master_get_devdata(spi->master);
1501 if (spi->mode & ~MODEBITS) {
1502 dev_dbg(&spi->dev, "unsupported mode bits %x\n",
1503 spi->mode & ~MODEBITS);
1507 if (!spi->max_speed_hz)
1511 chip = spi_get_ctldata(spi);
1516 dev_err(&spi->dev,
1520 dev_dbg(&spi->dev,
1525 chip_info = spi->controller_data;
1529 dev_dbg(&spi->dev,
1536 dev_err(&spi->dev,
1542 dev_dbg(&spi->dev, "allocated memory for controller data\n");
1545 chip_info->dev = &spi->dev;
1567 dev_dbg(&spi->dev,
1578 spi->max_speed_hz,
1589 dev_err(&spi->dev, "controller data is incorrect");
1597 dev_dbg(&spi->dev, "1 <= n <=8 bits per word\n");
1602 dev_dbg(&spi->dev, "9 <= n <= 16 bits per word\n");
1608 dev_dbg(&spi->dev, "17 <= n <= 32 bits per word\n");
1613 dev_err(&spi->dev,
1615 dev_err(&spi->dev,
1630 dev_dbg(&spi->dev, "DMA mode set in controller state\n");
1640 dev_dbg(&spi->dev, "DMA mode NOT set in controller state\n");
1694 spi_set_ctldata(spi, chip);
1704 * @spi: spi device which is requesting cleanup
1709 static void pl022_cleanup(struct spi_device *spi)
1711 struct chip_data *chip = spi_get_ctldata(spi);
1713 spi_set_ctldata(spi, NULL);
1807 "probe - problem registering spi master\n");