Lines Matching refs:src_clk
174 struct clk *src_clk; member
601 clk_set_rate(sdd->src_clk, sdd->cur_speed * 2); in s3c64xx_spi_config()
606 val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / 2 - 1) in s3c64xx_spi_config()
819 speed = clk_get_rate(sdd->src_clk) / 2 / (0 + 1); in s3c64xx_spi_setup()
824 psr = clk_get_rate(sdd->src_clk) / 2 / spi->max_speed_hz - 1; in s3c64xx_spi_setup()
829 speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); in s3c64xx_spi_setup()
839 speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); in s3c64xx_spi_setup()
1126 sdd->src_clk = devm_clk_get(&pdev->dev, clk_name); in s3c64xx_spi_probe()
1127 if (IS_ERR(sdd->src_clk)) { in s3c64xx_spi_probe()
1130 ret = PTR_ERR(sdd->src_clk); in s3c64xx_spi_probe()
1134 ret = clk_prepare_enable(sdd->src_clk); in s3c64xx_spi_probe()
1226 clk_disable_unprepare(sdd->src_clk); in s3c64xx_spi_probe()
1251 clk_disable_unprepare(sdd->src_clk); in s3c64xx_spi_remove()
1306 clk_disable_unprepare(sdd->src_clk); in s3c64xx_spi_runtime_suspend()
1324 ret = clk_prepare_enable(sdd->src_clk); in s3c64xx_spi_runtime_resume()
1337 clk_disable_unprepare(sdd->src_clk); in s3c64xx_spi_runtime_resume()