Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/mmc/host/
H A Dtmio_mmc.c51 unsigned int new_clock) in tmio_mmc_set_clock()
57 if (new_clock == 0) { in tmio_mmc_set_clock()
62 divisor = host->pdata->hclk / new_clock; in tmio_mmc_set_clock()
50 tmio_mmc_set_clock(struct tmio_mmc_host *host, unsigned int new_clock) tmio_mmc_set_clock() argument
H A Drenesas_sdhi_core.c117 unsigned int new_clock) in renesas_sdhi_clk_update()
133 * greater than, new_clock. As we can divide by 1 << i for in renesas_sdhi_clk_update()
135 * possible, but no greater than, new_clock << i. in renesas_sdhi_clk_update()
137 for (i = min(9, ilog2(UINT_MAX / new_clock)); i >= 0; i--) { in renesas_sdhi_clk_update()
138 freq = clk_round_rate(priv->clk, new_clock << i); in renesas_sdhi_clk_update()
139 if (freq > (new_clock << i)) { in renesas_sdhi_clk_update()
142 (new_clock << i) / 4 * 3); in renesas_sdhi_clk_update()
143 if (freq > (new_clock << i)) in renesas_sdhi_clk_update()
147 diff = new_clock - (freq >> i); in renesas_sdhi_clk_update()
160 unsigned int new_clock) in renesas_sdhi_set_clock()
116 renesas_sdhi_clk_update(struct tmio_mmc_host *host, unsigned int new_clock) renesas_sdhi_clk_update() argument
159 renesas_sdhi_set_clock(struct tmio_mmc_host *host, unsigned int new_clock) renesas_sdhi_set_clock() argument
[all...]
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Drenesas_sdhi_core.c130 unsigned int new_clock, clkh_shift = 0; in renesas_sdhi_clk_update() local
150 new_clock = wanted_clock << clkh_shift; in renesas_sdhi_clk_update()
154 * greater than, new_clock. As we can divide by 1 << i for in renesas_sdhi_clk_update()
156 * possible, but no greater than, new_clock << i. in renesas_sdhi_clk_update()
164 for (i = min(9, ilog2(UINT_MAX / new_clock)); i >= 0; i--) { in renesas_sdhi_clk_update()
165 freq = clk_round_rate(ref_clk, new_clock << i); in renesas_sdhi_clk_update()
166 new_upper_limit = (new_clock << i) + ((new_clock << i) >> 10); in renesas_sdhi_clk_update()
169 freq = clk_round_rate(ref_clk, (new_clock << i) / 4 * 3); in renesas_sdhi_clk_update()
174 diff = new_clock in renesas_sdhi_clk_update()
189 renesas_sdhi_set_clock(struct tmio_mmc_host *host, unsigned int new_clock) renesas_sdhi_set_clock() argument
[all...]

Completed in 3 milliseconds