Lines Matching defs:clk
7 #include <linux/clk.h>
164 struct clk *tmclk;
775 dev_err(dev, "failed to set clk rate to %luHz: %d\n",
778 tegra_host->curr_clk_rate = clk_get_rate(pltfm_host->clk);
782 host->max_clk = clk_get_rate(pltfm_host->clk);
822 return clk_round_rate(pltfm_host->clk, UINT_MAX);
1656 struct clk *clk;
1739 clk = devm_clk_get(&pdev->dev, "tmclk");
1740 if (IS_ERR(clk)) {
1741 rc = PTR_ERR(clk);
1746 clk = NULL;
1749 clk_set_rate(clk, 12000000);
1750 rc = clk_prepare_enable(clk);
1757 tegra_host->tmclk = clk;
1760 clk = devm_clk_get(mmc_dev(host->mmc), NULL);
1761 if (IS_ERR(clk)) {
1762 rc = dev_err_probe(&pdev->dev, PTR_ERR(clk),
1766 pltfm_host->clk = clk;
1843 clk_disable_unprepare(pltfm_host->clk);
1853 return clk_prepare_enable(pltfm_host->clk);