Lines Matching refs:alpha_width
565 alpha_pll_calc_rate(u64 prate, u32 l, u32 a, u32 alpha_width) in alpha_pll_calc_rate() argument
567 return (prate * l) + ((prate * a) >> ALPHA_SHIFT(alpha_width)); in alpha_pll_calc_rate()
572 u32 alpha_width) in alpha_pll_round_rate() argument
587 quotient = remainder << ALPHA_SHIFT(alpha_width); in alpha_pll_round_rate()
595 return alpha_pll_calc_rate(prate, *l, *a, alpha_width); in alpha_pll_round_rate()
617 u32 alpha_width = pll_alpha_width(pll); in clk_alpha_pll_recalc_rate() local
624 if (alpha_width > 32) { in clk_alpha_pll_recalc_rate()
629 a = low & GENMASK(alpha_width - 1, 0); in clk_alpha_pll_recalc_rate()
632 if (alpha_width > ALPHA_BITWIDTH) in clk_alpha_pll_recalc_rate()
633 a >>= alpha_width - ALPHA_BITWIDTH; in clk_alpha_pll_recalc_rate()
636 return alpha_pll_calc_rate(prate, l, a, alpha_width); in clk_alpha_pll_recalc_rate()
699 u32 l, alpha_width = pll_alpha_width(pll); in __clk_alpha_pll_set_rate() local
702 rate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in __clk_alpha_pll_set_rate()
712 if (alpha_width > ALPHA_BITWIDTH) in __clk_alpha_pll_set_rate()
713 a <<= alpha_width - ALPHA_BITWIDTH; in __clk_alpha_pll_set_rate()
715 if (alpha_width > 32) in __clk_alpha_pll_set_rate()
750 u32 l, alpha_width = pll_alpha_width(pll); in clk_alpha_pll_round_rate() local
754 rate = alpha_pll_round_rate(rate, *prate, &l, &a, alpha_width); in clk_alpha_pll_round_rate()
1011 u32 l, frac, alpha_width = pll_alpha_width(pll); in clk_trion_pll_recalc_rate() local
1016 return alpha_pll_calc_rate(parent_rate, l, frac, alpha_width); in clk_trion_pll_recalc_rate()
1286 u32 l, frac, alpha_width = pll_alpha_width(pll); in alpha_pll_fabia_recalc_rate() local
1291 return alpha_pll_calc_rate(parent_rate, l, frac, alpha_width); in alpha_pll_fabia_recalc_rate()
1316 u32 l, alpha_width = pll_alpha_width(pll); in alpha_pll_fabia_set_rate() local
1321 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in alpha_pll_fabia_set_rate()
1339 u32 cal_l, val, alpha_width = pll_alpha_width(pll); in alpha_pll_fabia_prepare() local
1367 &cal_l, &a, alpha_width); in alpha_pll_fabia_prepare()
1631 u32 val, l, alpha_width = pll_alpha_width(pll); in __alpha_pll_trion_set_rate() local
1635 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in __alpha_pll_trion_set_rate()
1730 u32 l, alpha_width = pll_alpha_width(pll); in clk_alpha_pll_agera_set_rate() local
1735 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in clk_alpha_pll_agera_set_rate()
2104 u32 l, alpha_width = pll_alpha_width(pll); in clk_zonda_pll_set_rate() local
2108 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in clk_zonda_pll_set_rate()
2541 u32 l, alpha_width = pll_alpha_width(pll); in clk_alpha_pll_stromer_plus_set_rate() local
2545 rate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in clk_alpha_pll_stromer_plus_set_rate()
2558 if (alpha_width > ALPHA_BITWIDTH) in clk_alpha_pll_stromer_plus_set_rate()
2559 a <<= alpha_width - ALPHA_BITWIDTH; in clk_alpha_pll_stromer_plus_set_rate()