• Home
  • Raw
  • Download

Lines Matching refs:sctlr

293 	struct spi_controller *sctlr = sdev->controller;  in sprd_spi_chipselect()  local
294 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_chipselect()
789 static int sprd_spi_transfer_one(struct spi_controller *sctlr, in sprd_spi_transfer_one() argument
799 if (sctlr->can_dma(sctlr, sdev, t)) in sprd_spi_transfer_one()
810 spi_finalize_current_transfer(sctlr); in sprd_spi_transfer_one()
890 static bool sprd_spi_can_dma(struct spi_controller *sctlr, in sprd_spi_can_dma() argument
893 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_can_dma()
921 struct spi_controller *sctlr; in sprd_spi_probe() local
927 sctlr = spi_alloc_master(&pdev->dev, sizeof(*ss)); in sprd_spi_probe()
928 if (!sctlr) in sprd_spi_probe()
931 ss = spi_controller_get_devdata(sctlr); in sprd_spi_probe()
941 sctlr->dev.of_node = pdev->dev.of_node; in sprd_spi_probe()
942 sctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_3WIRE | SPI_TX_DUAL; in sprd_spi_probe()
943 sctlr->bus_num = pdev->id; in sprd_spi_probe()
944 sctlr->set_cs = sprd_spi_chipselect; in sprd_spi_probe()
945 sctlr->transfer_one = sprd_spi_transfer_one; in sprd_spi_probe()
946 sctlr->can_dma = sprd_spi_can_dma; in sprd_spi_probe()
947 sctlr->auto_runtime_pm = true; in sprd_spi_probe()
948 sctlr->max_speed_hz = min_t(u32, ss->src_clk >> 1, in sprd_spi_probe()
952 platform_set_drvdata(pdev, sctlr); in sprd_spi_probe()
983 ret = devm_spi_register_controller(&pdev->dev, sctlr); in sprd_spi_probe()
1000 spi_controller_put(sctlr); in sprd_spi_probe()
1007 struct spi_controller *sctlr = platform_get_drvdata(pdev); in sprd_spi_remove() local
1008 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_remove()
1018 spi_controller_suspend(sctlr); in sprd_spi_remove()
1031 struct spi_controller *sctlr = dev_get_drvdata(dev); in sprd_spi_runtime_suspend() local
1032 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_runtime_suspend()
1044 struct spi_controller *sctlr = dev_get_drvdata(dev); in sprd_spi_runtime_resume() local
1045 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_runtime_resume()