Lines Matching refs:src_clk
184 struct clk *src_clk; member
675 ret = clk_set_rate(sdd->src_clk, sdd->cur_speed * div); in s3c64xx_spi_config()
678 sdd->cur_speed = clk_get_rate(sdd->src_clk) / div; in s3c64xx_spi_config()
683 val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / div - 1) in s3c64xx_spi_config()
910 speed = clk_get_rate(sdd->src_clk) / div / (0 + 1); in s3c64xx_spi_setup()
915 psr = clk_get_rate(sdd->src_clk) / div / spi->max_speed_hz - 1; in s3c64xx_spi_setup()
920 speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); in s3c64xx_spi_setup()
930 speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); in s3c64xx_spi_setup()
1204 sdd->src_clk = devm_clk_get(&pdev->dev, clk_name); in s3c64xx_spi_probe()
1205 if (IS_ERR(sdd->src_clk)) { in s3c64xx_spi_probe()
1208 ret = PTR_ERR(sdd->src_clk); in s3c64xx_spi_probe()
1212 ret = clk_prepare_enable(sdd->src_clk); in s3c64xx_spi_probe()
1280 clk_disable_unprepare(sdd->src_clk); in s3c64xx_spi_probe()
1305 clk_disable_unprepare(sdd->src_clk); in s3c64xx_spi_remove()
1360 clk_disable_unprepare(sdd->src_clk); in s3c64xx_spi_runtime_suspend()
1378 ret = clk_prepare_enable(sdd->src_clk); in s3c64xx_spi_runtime_resume()
1395 clk_disable_unprepare(sdd->src_clk); in s3c64xx_spi_runtime_resume()