Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/at91/
H A Dclk-pll.c132 unsigned long maxdiv, mindiv, tmpdiv; in clk_pll_get_best_div_mul() local
148 mindiv = (parent_rate * PLL_MUL_MIN) / rate; in clk_pll_get_best_div_mul()
149 if (!mindiv) in clk_pll_get_best_div_mul()
150 mindiv = 1; in clk_pll_get_best_div_mul()
157 if (tmpdiv > mindiv) in clk_pll_get_best_div_mul()
158 mindiv = tmpdiv; in clk_pll_get_best_div_mul()
174 for (tmpdiv = mindiv; tmpdiv <= maxdiv; tmpdiv++) { in clk_pll_get_best_div_mul()
/openbmc/linux/drivers/clk/
H A Dclk-divider.c59 unsigned int mindiv = UINT_MAX; in _get_table_mindiv() local
63 if (clkt->div < mindiv) in _get_table_mindiv()
64 mindiv = clkt->div; in _get_table_mindiv()
65 return mindiv; in _get_table_mindiv()
/openbmc/linux/drivers/clk/bcm/
H A Dclk-bcm2835.c945 u32 div, mindiv, maxdiv; in bcm2835_clock_choose_div() local
954 mindiv = 2 << CM_DIV_FRAC_BITS; in bcm2835_clock_choose_div()
959 mindiv = 1 << CM_DIV_FRAC_BITS; in bcm2835_clock_choose_div()
966 div = max_t(u32, div, mindiv); in bcm2835_clock_choose_div()
1150 u32 curdiv, mindiv, maxdiv; in bcm2835_clock_choose_div_and_prate() local
1185 mindiv = data->is_mash_clock ? 2 : 1; in bcm2835_clock_choose_div_and_prate()
1189 for (curdiv = mindiv; curdiv <= maxdiv; curdiv++) { in bcm2835_clock_choose_div_and_prate()
1194 if (curdiv == mindiv || in bcm2835_clock_choose_div_and_prate()