Lines Matching refs:sctlr

292 	struct spi_controller *sctlr = sdev->controller;  in sprd_spi_chipselect()  local
293 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_chipselect()
788 static int sprd_spi_transfer_one(struct spi_controller *sctlr, in sprd_spi_transfer_one() argument
798 if (sctlr->can_dma(sctlr, sdev, t)) in sprd_spi_transfer_one()
809 spi_finalize_current_transfer(sctlr); in sprd_spi_transfer_one()
889 static bool sprd_spi_can_dma(struct spi_controller *sctlr, in sprd_spi_can_dma() argument
892 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_can_dma()
920 struct spi_controller *sctlr; in sprd_spi_probe() local
926 sctlr = spi_alloc_host(&pdev->dev, sizeof(*ss)); in sprd_spi_probe()
927 if (!sctlr) in sprd_spi_probe()
930 ss = spi_controller_get_devdata(sctlr); in sprd_spi_probe()
939 sctlr->dev.of_node = pdev->dev.of_node; in sprd_spi_probe()
940 sctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_3WIRE | SPI_TX_DUAL; in sprd_spi_probe()
941 sctlr->bus_num = pdev->id; in sprd_spi_probe()
942 sctlr->set_cs = sprd_spi_chipselect; in sprd_spi_probe()
943 sctlr->transfer_one = sprd_spi_transfer_one; in sprd_spi_probe()
944 sctlr->can_dma = sprd_spi_can_dma; in sprd_spi_probe()
945 sctlr->auto_runtime_pm = true; in sprd_spi_probe()
946 sctlr->max_speed_hz = min_t(u32, ss->src_clk >> 1, in sprd_spi_probe()
950 platform_set_drvdata(pdev, sctlr); in sprd_spi_probe()
981 ret = devm_spi_register_controller(&pdev->dev, sctlr); in sprd_spi_probe()
998 spi_controller_put(sctlr); in sprd_spi_probe()
1005 struct spi_controller *sctlr = platform_get_drvdata(pdev); in sprd_spi_remove() local
1006 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_remove()
1013 spi_controller_suspend(sctlr); in sprd_spi_remove()
1026 struct spi_controller *sctlr = dev_get_drvdata(dev); in sprd_spi_runtime_suspend() local
1027 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_runtime_suspend()
1039 struct spi_controller *sctlr = dev_get_drvdata(dev); in sprd_spi_runtime_resume() local
1040 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_runtime_resume()