Lines Matching refs:rate
90 unsigned long rate, max = 0; in sdhci_s3c_get_max_clk() local
94 rate = ourhost->clk_rates[src]; in sdhci_s3c_get_max_clk()
95 if (rate > max) in sdhci_s3c_get_max_clk()
96 max = rate; in sdhci_s3c_get_max_clk()
112 unsigned long rate; in sdhci_s3c_consider_clock() local
124 rate = clk_round_rate(clksrc, wanted); in sdhci_s3c_consider_clock()
125 return wanted - rate; in sdhci_s3c_consider_clock()
128 rate = ourhost->clk_rates[src]; in sdhci_s3c_consider_clock()
131 if ((rate >> shift) <= wanted) in sdhci_s3c_consider_clock()
138 src, rate, rate / 256, wanted); in sdhci_s3c_consider_clock()
143 src, rate, wanted, rate >> shift); in sdhci_s3c_consider_clock()
145 return wanted - (rate >> shift); in sdhci_s3c_consider_clock()
239 unsigned long rate, min = ULONG_MAX; in sdhci_s3c_get_min_clock() local
243 rate = ourhost->clk_rates[src] / 256; in sdhci_s3c_get_min_clock()
244 if (!rate) in sdhci_s3c_get_min_clock()
246 if (rate < min) in sdhci_s3c_get_min_clock()
247 min = rate; in sdhci_s3c_get_min_clock()
257 unsigned long rate, max = 0; in sdhci_cmu_get_max_clock() local
267 rate = clk_round_rate(clk, ULONG_MAX); in sdhci_cmu_get_max_clock()
268 if (rate > max) in sdhci_cmu_get_max_clock()
269 max = rate; in sdhci_cmu_get_max_clock()
279 unsigned long rate, min = ULONG_MAX; in sdhci_cmu_get_min_clock() local
289 rate = clk_round_rate(clk, 0); in sdhci_cmu_get_min_clock()
290 if (rate < min) in sdhci_cmu_get_min_clock()
291 min = rate; in sdhci_cmu_get_min_clock()