Lines Matching defs:spi
24 #include <linux/spi/spi.h>
158 struct spi_device *spi, struct tegra_sflash_data *tsd,
250 static int tegra_sflash_start_transfer_one(struct spi_device *spi,
254 struct tegra_sflash_data *tsd = spi_controller_get_devdata(spi->controller);
264 tsd->cur_spi = spi;
269 tegra_sflash_calculate_curr_xfer_param(spi, tsd, t);
276 if (spi->mode & SPI_CPHA)
279 if (spi->mode & SPI_CPOL)
283 command |= SPI_CS0_EN << spi_get_chipselect(spi, 0);
313 struct spi_device *spi = msg->spi;
321 ret = tegra_sflash_start_transfer_one(spi, xfer,
325 "spi can not start transfer, err %d\n", ret);
333 "spi transfer timeout, err %d\n", ret);
436 /* the spi->mode bits understood by this driver: */
448 if (of_property_read_u32(tsd->dev->of_node, "spi-max-frequency",
478 tsd->rst = devm_reset_control_get_exclusive(&pdev->dev, "spi");
598 .name = "spi-tegra-sflash",
607 MODULE_ALIAS("platform:spi-tegra-sflash");