Home
last modified time | relevance | path

Searched refs:new_clock (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/mmc/host/
Drenesas_sdhi_core.c123 unsigned int new_clock) in renesas_sdhi_clk_update() argument
139 for (i = min(9, ilog2(UINT_MAX / new_clock)); i >= 0; i--) { in renesas_sdhi_clk_update()
140 freq = clk_round_rate(priv->clk, new_clock << i); in renesas_sdhi_clk_update()
141 if (freq > (new_clock << i)) { in renesas_sdhi_clk_update()
144 (new_clock << i) / 4 * 3); in renesas_sdhi_clk_update()
145 if (freq > (new_clock << i)) in renesas_sdhi_clk_update()
149 diff = new_clock - (freq >> i); in renesas_sdhi_clk_update()
162 unsigned int new_clock) in renesas_sdhi_set_clock() argument
169 if (new_clock == 0) { in renesas_sdhi_set_clock()
174 host->mmc->actual_clock = renesas_sdhi_clk_update(host, new_clock); in renesas_sdhi_set_clock()
[all …]
Dtmio_mmc.c51 unsigned int new_clock) in tmio_mmc_set_clock() argument
57 if (new_clock == 0) { in tmio_mmc_set_clock()
62 divisor = host->pdata->hclk / new_clock; in tmio_mmc_set_clock()