Lines Matching refs:max_clk
1884 if ((host->max_clk * host->clk_mul / div) in sdhci_calc_clk()
1888 if ((host->max_clk * host->clk_mul / div) <= clock) { in sdhci_calc_clk()
1908 if (host->max_clk <= clock) in sdhci_calc_clk()
1913 if ((host->max_clk / div) <= clock) in sdhci_calc_clk()
1920 && !div && host->max_clk <= 25000000) in sdhci_calc_clk()
1926 if ((host->max_clk / div) <= clock) in sdhci_calc_clk()
1935 *actual_clock = (host->max_clk * clk_mul) / real_div; in sdhci_calc_clk()
4128 u32 max_clk; in sdhci_setup_host() local
4281 host->max_clk = FIELD_GET(SDHCI_CLOCK_V3_BASE_MASK, host->caps); in sdhci_setup_host()
4283 host->max_clk = FIELD_GET(SDHCI_CLOCK_BASE_MASK, host->caps); in sdhci_setup_host()
4285 host->max_clk *= 1000000; in sdhci_setup_host()
4286 if (host->max_clk == 0 || host->quirks & in sdhci_setup_host()
4294 host->max_clk = host->ops->get_max_clock(host); in sdhci_setup_host()
4315 max_clk = host->max_clk; in sdhci_setup_host()
4321 max_clk = host->max_clk * host->clk_mul; in sdhci_setup_host()
4326 mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_300; in sdhci_setup_host()
4328 mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_200; in sdhci_setup_host()
4330 if (!mmc->f_max || mmc->f_max > max_clk) in sdhci_setup_host()
4331 mmc->f_max = max_clk; in sdhci_setup_host()