Lines Matching defs:spi
12 #include <linux/spi/spi.h>
90 { .compatible = "mediatek,mt2712-spi-slave",
92 { .compatible = "mediatek,mt8195-spi-slave",
133 struct spi_device *spi = msg->spi;
137 cpha = spi->mode & SPI_CPHA ? 1 : 0;
138 cpol = spi->mode & SPI_CPOL ? 1 : 0;
150 if (spi->mode & SPI_LSB_FIRST)
163 struct spi_device *spi,
200 struct spi_device *spi,
283 struct spi_device *spi,
293 return mtk_spi_slave_dma_transfer(ctlr, spi, xfer);
295 return mtk_spi_slave_fifo_transfer(ctlr, spi, xfer);
298 static int mtk_spi_slave_setup(struct spi_device *spi)
300 struct mtk_spi_slave *mdata = spi_controller_get_devdata(spi->controller);
393 dev_err(&pdev->dev, "failed to alloc spi slave\n");
442 mdata->spi_clk = devm_clk_get(&pdev->dev, "spi");
445 dev_err(&pdev->dev, "failed to get spi-clk: %d\n", ret);
556 .name = "mtk-spi-slave",
569 MODULE_ALIAS("platform:mtk-spi-slave");