Home
last modified time | relevance | path

Searched refs:mindiv (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/clk/at91/
Dclk-pll.c131 unsigned long maxdiv, mindiv, tmpdiv; in clk_pll_get_best_div_mul() local
147 mindiv = (parent_rate * PLL_MUL_MIN) / rate; in clk_pll_get_best_div_mul()
148 if (!mindiv) in clk_pll_get_best_div_mul()
149 mindiv = 1; in clk_pll_get_best_div_mul()
156 if (tmpdiv > mindiv) in clk_pll_get_best_div_mul()
157 mindiv = tmpdiv; in clk_pll_get_best_div_mul()
173 for (tmpdiv = mindiv; tmpdiv <= maxdiv; tmpdiv++) { in clk_pll_get_best_div_mul()
Dclk-sam9x60-pll.c179 unsigned long maxdiv, mindiv, tmpdiv; in sam9x60_pll_get_best_div_mul() local
190 mindiv = parent_rate / rate; in sam9x60_pll_get_best_div_mul()
191 if (mindiv < 2) in sam9x60_pll_get_best_div_mul()
192 mindiv = 2; in sam9x60_pll_get_best_div_mul()
198 mindiv = maxdiv = UPLL_DIV; in sam9x60_pll_get_best_div_mul()
201 for (tmpdiv = mindiv; tmpdiv <= maxdiv; tmpdiv++) { in sam9x60_pll_get_best_div_mul()
/Linux-v5.4/drivers/clk/
Dclk-divider.c58 unsigned int mindiv = UINT_MAX; in _get_table_mindiv() local
62 if (clkt->div < mindiv) in _get_table_mindiv()
63 mindiv = clkt->div; in _get_table_mindiv()
64 return mindiv; in _get_table_mindiv()
/Linux-v5.4/drivers/clk/bcm/
Dclk-bcm2835.c928 u32 div, mindiv, maxdiv; in bcm2835_clock_choose_div() local
941 mindiv = 2 << CM_DIV_FRAC_BITS; in bcm2835_clock_choose_div()
946 mindiv = 1 << CM_DIV_FRAC_BITS; in bcm2835_clock_choose_div()
953 div = max_t(u32, div, mindiv); in bcm2835_clock_choose_div()
1110 u32 curdiv, mindiv, maxdiv; in bcm2835_clock_choose_div_and_prate() local
1145 mindiv = data->is_mash_clock ? 2 : 1; in bcm2835_clock_choose_div_and_prate()
1149 for (curdiv = mindiv; curdiv <= maxdiv; curdiv++) { in bcm2835_clock_choose_div_and_prate()
1154 if (curdiv == mindiv || in bcm2835_clock_choose_div_and_prate()