Lines Matching refs:max_clk
1877 if ((host->max_clk * host->clk_mul / div) in sdhci_calc_clk()
1881 if ((host->max_clk * host->clk_mul / div) <= clock) { in sdhci_calc_clk()
1901 if (host->max_clk <= clock) in sdhci_calc_clk()
1906 if ((host->max_clk / div) <= clock) in sdhci_calc_clk()
1913 && !div && host->max_clk <= 25000000) in sdhci_calc_clk()
1919 if ((host->max_clk / div) <= clock) in sdhci_calc_clk()
1928 *actual_clock = (host->max_clk * clk_mul) / real_div; in sdhci_calc_clk()
4108 u32 max_clk; in sdhci_setup_host() local
4261 host->max_clk = FIELD_GET(SDHCI_CLOCK_V3_BASE_MASK, host->caps); in sdhci_setup_host()
4263 host->max_clk = FIELD_GET(SDHCI_CLOCK_BASE_MASK, host->caps); in sdhci_setup_host()
4265 host->max_clk *= 1000000; in sdhci_setup_host()
4266 if (host->max_clk == 0 || host->quirks & in sdhci_setup_host()
4274 host->max_clk = host->ops->get_max_clock(host); in sdhci_setup_host()
4295 max_clk = host->max_clk; in sdhci_setup_host()
4301 max_clk = host->max_clk * host->clk_mul; in sdhci_setup_host()
4306 mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_300; in sdhci_setup_host()
4308 mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_200; in sdhci_setup_host()
4310 if (!mmc->f_max || mmc->f_max > max_clk) in sdhci_setup_host()
4311 mmc->f_max = max_clk; in sdhci_setup_host()