Lines Matching refs:mclk
324 host->cclk = host->mclk; in mmci_set_clkreg()
325 } else if (desired >= host->mclk) { in mmci_set_clkreg()
329 host->cclk = host->mclk; in mmci_set_clkreg()
337 clk = DIV_ROUND_UP(host->mclk, desired) - 2; in mmci_set_clkreg()
340 host->cclk = host->mclk / (clk + 2); in mmci_set_clkreg()
346 clk = host->mclk / (2 * desired) - 1; in mmci_set_clkreg()
349 host->cclk = host->mclk / (2 * (clk + 1)); in mmci_set_clkreg()
832 (host->size <= 8 && host->mclk > 50000000))) in mmci_start_data()
1406 host->mclk = clk_get_rate(host->clk); in mmci_set_ios()
1564 host->mclk = clk_get_rate(host->clk); in mmci_probe()
1570 if (host->mclk > variant->f_max) { in mmci_probe()
1574 host->mclk = clk_get_rate(host->clk); in mmci_probe()
1576 host->mclk); in mmci_probe()
1593 mmc->f_min = DIV_ROUND_UP(host->mclk, 257); in mmci_probe()
1597 mmc->f_min = DIV_ROUND_UP(host->mclk, 512); in mmci_probe()
1607 min(host->mclk, mmc->f_max); in mmci_probe()
1610 fmax : min(host->mclk, fmax); in mmci_probe()