Searched refs:new_clock (Results 1 – 2 of 2) sorted by relevance
123 unsigned int new_clock) in renesas_sdhi_clk_update() argument139 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() argument169 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 …]
51 unsigned int new_clock) in tmio_mmc_set_clock() argument57 if (new_clock == 0) { in tmio_mmc_set_clock()62 divisor = host->pdata->hclk / new_clock; in tmio_mmc_set_clock()