Searched refs:ourhost (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/mmc/host/
H A Dsdhci-s3c.c89 struct sdhci_s3c *ourhost = to_s3c(host); sdhci_s3c_get_max_clk() local
94 rate = ourhost->clk_rates[src]; sdhci_s3c_get_max_clk()
104 * @ourhost: Our SDHCI instance.
108 static unsigned int sdhci_s3c_consider_clock(struct sdhci_s3c *ourhost, sdhci_s3c_consider_clock() argument
113 struct clk *clksrc = ourhost->clk_bus[src]; sdhci_s3c_consider_clock()
123 if (ourhost->no_divider) { sdhci_s3c_consider_clock()
128 rate = ourhost->clk_rates[src]; sdhci_s3c_consider_clock()
136 dev_dbg(&ourhost->pdev->dev, sdhci_s3c_consider_clock()
142 dev_dbg(&ourhost->pdev->dev, "clk %d: rate %ld, want %d, got %ld\n", sdhci_s3c_consider_clock()
158 struct sdhci_s3c *ourhost = to_s3c(host); sdhci_s3c_set_clock() local
174 delta = sdhci_s3c_consider_clock(ourhost, src, clock); sdhci_s3c_set_clock()
181 dev_dbg(&ourhost->pdev->dev, sdhci_s3c_set_clock()
186 if (ourhost->cur_clk != best_src) { sdhci_s3c_set_clock()
187 struct clk *clk = ourhost->clk_bus[best_src]; sdhci_s3c_set_clock()
190 if (ourhost->cur_clk >= 0) sdhci_s3c_set_clock()
192 ourhost->clk_bus[ourhost->cur_clk]); sdhci_s3c_set_clock()
194 ourhost->cur_clk = best_src; sdhci_s3c_set_clock()
195 host->max_clk = ourhost->clk_rates[best_src]; sdhci_s3c_set_clock()
238 struct sdhci_s3c *ourhost = to_s3c(host); sdhci_s3c_get_min_clock() local
243 rate = ourhost->clk_rates[src] / 256; sdhci_s3c_get_min_clock()
256 struct sdhci_s3c *ourhost = to_s3c(host); sdhci_cmu_get_max_clock() local
263 clk = ourhost->clk_bus[src]; sdhci_cmu_get_max_clock()
278 struct sdhci_s3c *ourhost = to_s3c(host); sdhci_cmu_get_min_clock() local
285 clk = ourhost->clk_bus[src]; sdhci_cmu_get_min_clock()
300 struct sdhci_s3c *ourhost = to_s3c(host); sdhci_cmu_set_clock() local
301 struct device *dev = &ourhost->pdev->dev; sdhci_cmu_set_clock()
322 ret = clk_set_rate(ourhost->clk_bus[ourhost->cur_clk], clock); sdhci_cmu_set_clock()
690 struct sdhci_s3c *ourhost = to_s3c(host); sdhci_s3c_runtime_suspend() local
691 struct clk *busclk = ourhost->clk_io; sdhci_s3c_runtime_suspend()
696 if (ourhost->cur_clk >= 0) sdhci_s3c_runtime_suspend()
697 clk_disable_unprepare(ourhost->clk_bus[ourhost->cur_clk]); sdhci_s3c_runtime_suspend()
705 struct sdhci_s3c *ourhost = to_s3c(host); sdhci_s3c_runtime_resume() local
706 struct clk *busclk = ourhost->clk_io; sdhci_s3c_runtime_resume()
710 if (ourhost->cur_clk >= 0) sdhci_s3c_runtime_resume()
711 clk_prepare_enable(ourhost->clk_bus[ourhost->cur_clk]); sdhci_s3c_runtime_resume()

Completed in 49 milliseconds