/kernel/linux/linux-5.10/drivers/clk/meson/ |
D | sclk-div.c | 42 unsigned long prate, int maxdiv) in sclk_div_getdiv() argument 46 return clamp(div, 2, maxdiv); in sclk_div_getdiv() 55 unsigned long maxdiv, now, parent_now; in sclk_div_bestdiv() local 61 maxdiv = sclk_div_maxdiv(sclk); in sclk_div_bestdiv() 64 return sclk_div_getdiv(hw, rate, *prate, maxdiv); in sclk_div_bestdiv() 70 maxdiv = min(ULONG_MAX / rate, maxdiv); in sclk_div_bestdiv() 72 for (i = 2; i <= maxdiv; i++) { in sclk_div_bestdiv() 171 unsigned long maxdiv = sclk_div_maxdiv(sclk); in sclk_div_set_rate() local 173 sclk->cached_div = sclk_div_getdiv(hw, rate, prate, maxdiv); in sclk_div_set_rate()
|
/kernel/linux/linux-5.10/drivers/clk/rockchip/ |
D | clk-half-divider.c | 40 unsigned long parent_rate, best = 0, now, maxdiv; in clk_half_divider_bestdiv() local 46 maxdiv = div_mask(width); in clk_half_divider_bestdiv() 55 bestdiv = bestdiv > maxdiv ? maxdiv : bestdiv; in clk_half_divider_bestdiv() 63 maxdiv = min(ULONG_MAX / rate, maxdiv); in clk_half_divider_bestdiv() 65 for (i = 0; i <= maxdiv; i++) { in clk_half_divider_bestdiv()
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-divider.c | 47 unsigned int maxdiv = 0, mask = clk_div_mask(width); in _get_table_maxdiv() local 51 if (clkt->div > maxdiv && clkt->val <= mask) in _get_table_maxdiv() 52 maxdiv = clkt->div; in _get_table_maxdiv() 53 return maxdiv; in _get_table_maxdiv() 295 unsigned long parent_rate, best = 0, now, maxdiv; in clk_divider_bestdiv() local 301 maxdiv = _get_maxdiv(table, width, flags); in clk_divider_bestdiv() 307 bestdiv = bestdiv > maxdiv ? maxdiv : bestdiv; in clk_divider_bestdiv() 315 maxdiv = min(ULONG_MAX / rate, maxdiv); in clk_divider_bestdiv() 317 for (i = _next_div(table, 0, flags); i <= maxdiv; in clk_divider_bestdiv()
|
/kernel/linux/linux-5.10/drivers/clk/ti/ |
D | divider.c | 181 unsigned long parent_rate, best = 0, now, maxdiv; in ti_clk_divider_bestdiv() local 187 maxdiv = divider->max; in ti_clk_divider_bestdiv() 193 bestdiv = bestdiv > maxdiv ? maxdiv : bestdiv; in ti_clk_divider_bestdiv() 201 maxdiv = min(ULONG_MAX / rate, maxdiv); in ti_clk_divider_bestdiv() 203 for (i = 1; i <= maxdiv; i++) { in ti_clk_divider_bestdiv()
|
/kernel/linux/linux-5.10/arch/mips/alchemy/common/ |
D | clock.c | 377 int scale, int maxdiv, unsigned long *rv) in alchemy_calc_div() argument 392 if (div2 > maxdiv) in alchemy_calc_div() 393 div2 = maxdiv; in alchemy_calc_div() 403 int scale, int maxdiv) in alchemy_clk_fgcs_detr() argument 437 tdv = alchemy_calc_div(req->rate, pr, scale, maxdiv, NULL); in alchemy_clk_fgcs_detr() 458 for (j = (maxdiv == 4) ? 1 : scale; j <= maxdiv; j += scale) { in alchemy_clk_fgcs_detr() 464 tdv = alchemy_calc_div(req->rate, pr, scale, maxdiv, in alchemy_clk_fgcs_detr() 713 int scale, maxdiv; in alchemy_clk_fgv2_detr() local 717 maxdiv = 256; in alchemy_clk_fgv2_detr() 720 maxdiv = 512; in alchemy_clk_fgv2_detr() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/at91/ |
D | clk-pll.c | 131 unsigned long maxdiv, mindiv, tmpdiv; in clk_pll_get_best_div_mul() local 164 maxdiv = DIV_ROUND_UP(parent_rate * PLL_MUL_MAX(layout), rate); in clk_pll_get_best_div_mul() 165 if (maxdiv > PLL_DIV_MAX) in clk_pll_get_best_div_mul() 166 maxdiv = PLL_DIV_MAX; in clk_pll_get_best_div_mul() 173 for (tmpdiv = mindiv; tmpdiv <= maxdiv; tmpdiv++) { in clk_pll_get_best_div_mul()
|
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/ |
D | ccu_mp.c | 50 unsigned long maxdiv; in ccu_mp_find_best_with_parent_adj() local 58 maxdiv = max_m * max_p; in ccu_mp_find_best_with_parent_adj() 59 maxdiv = min(ULONG_MAX / rate, maxdiv); in ccu_mp_find_best_with_parent_adj() 65 if (div > maxdiv) in ccu_mp_find_best_with_parent_adj()
|
/kernel/linux/linux-5.10/drivers/clk/mmp/ |
D | clk-mix.c | 30 unsigned int maxdiv = 0; in _get_maxdiv() local 39 if (clkt->div > maxdiv) in _get_maxdiv() 40 maxdiv = clkt->div; in _get_maxdiv() 41 return maxdiv; in _get_maxdiv()
|
/kernel/linux/linux-5.10/drivers/clk/bcm/ |
D | clk-bcm2835.c | 944 u32 div, mindiv, maxdiv; in bcm2835_clock_choose_div() local 955 maxdiv = (BIT(data->int_bits) - 1) << CM_DIV_FRAC_BITS; in bcm2835_clock_choose_div() 960 maxdiv = GENMASK(data->int_bits + CM_DIV_FRAC_BITS - 1, in bcm2835_clock_choose_div() 966 div = min_t(u32, div, maxdiv); in bcm2835_clock_choose_div() 1122 u32 curdiv, mindiv, maxdiv; in bcm2835_clock_choose_div_and_prate() local 1158 maxdiv = BIT(data->int_bits) - 1; in bcm2835_clock_choose_div_and_prate() 1161 for (curdiv = mindiv; curdiv <= maxdiv; curdiv++) { in bcm2835_clock_choose_div_and_prate()
|
/kernel/linux/patches/linux-5.10/yangfan_patch/ |
D | drivers.patch | 897 unsigned long parent_rate, best = 0, now, maxdiv; 909 bestdiv = bestdiv > maxdiv ? maxdiv : bestdiv; 913 maxdiv = min(ULONG_MAX / rate, maxdiv); 915 for (i = 0; i <= maxdiv; i++) {
|