Lines Matching refs:prate

409 alpha_pll_calc_rate(u64 prate, u32 l, u32 a, u32 alpha_width)  in alpha_pll_calc_rate()  argument
411 return (prate * l) + ((prate * a) >> ALPHA_SHIFT(alpha_width)); in alpha_pll_calc_rate()
415 alpha_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u64 *a, in alpha_pll_round_rate() argument
422 remainder = do_div(quotient, prate); in alpha_pll_round_rate()
433 remainder = do_div(quotient, prate); in alpha_pll_round_rate()
439 return alpha_pll_calc_rate(prate, *l, *a, alpha_width); in alpha_pll_round_rate()
459 u64 a = 0, prate = parent_rate; in clk_alpha_pll_recalc_rate() local
480 return alpha_pll_calc_rate(prate, l, a, alpha_width); in clk_alpha_pll_recalc_rate()
538 unsigned long prate, in __clk_alpha_pll_set_rate() argument
546 rate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in __clk_alpha_pll_set_rate()
577 unsigned long prate) in clk_alpha_pll_set_rate() argument
579 return __clk_alpha_pll_set_rate(hw, rate, prate, in clk_alpha_pll_set_rate()
584 unsigned long prate) in clk_alpha_pll_hwfsm_set_rate() argument
586 return __clk_alpha_pll_set_rate(hw, rate, prate, in clk_alpha_pll_hwfsm_set_rate()
591 unsigned long *prate) in clk_alpha_pll_round_rate() argument
598 rate = alpha_pll_round_rate(rate, *prate, &l, &a, alpha_width); in clk_alpha_pll_round_rate()
609 alpha_huayra_pll_calc_rate(u64 prate, u32 l, u32 a) in alpha_huayra_pll_calc_rate() argument
618 return (prate * l) + (prate * a >> PLL_HUAYRA_ALPHA_WIDTH); in alpha_huayra_pll_calc_rate()
622 alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate, in alpha_huayra_pll_round_rate() argument
629 remainder = do_div(quotient, prate); in alpha_huayra_pll_round_rate()
638 remainder = do_div(quotient, prate); in alpha_huayra_pll_round_rate()
652 return alpha_huayra_pll_calc_rate(prate, *l, *a); in alpha_huayra_pll_round_rate()
710 unsigned long prate) in alpha_pll_huayra_set_rate() argument
715 rate = alpha_huayra_pll_round_rate(rate, prate, &l, &a); in alpha_pll_huayra_set_rate()
753 unsigned long *prate) in alpha_pll_huayra_round_rate() argument
757 return alpha_huayra_pll_round_rate(rate, *prate, &l, &a); in alpha_pll_huayra_round_rate()
942 unsigned long *prate) in clk_alpha_pll_postdiv_round_rate() argument
952 return divider_round_rate(hw, rate, prate, table, in clk_alpha_pll_postdiv_round_rate()
958 unsigned long *prate) in clk_alpha_pll_postdiv_round_ro_rate() argument
970 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), div * rate); in clk_alpha_pll_postdiv_round_ro_rate()
972 return DIV_ROUND_UP_ULL((u64)*prate, div); in clk_alpha_pll_postdiv_round_ro_rate()
1149 unsigned long prate) in alpha_pll_fabia_set_rate() argument
1156 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in alpha_pll_fabia_set_rate()
1299 unsigned long *prate) in clk_trion_pll_postdiv_round_rate() argument
1303 return divider_round_rate(hw, rate, prate, pll->post_div_table, in clk_trion_pll_postdiv_round_rate()
1336 unsigned long rate, unsigned long *prate) in clk_alpha_pll_postdiv_fabia_round_rate() argument
1340 return divider_round_rate(hw, rate, prate, pll->post_div_table, in clk_alpha_pll_postdiv_fabia_round_rate()
1483 unsigned long prate) in alpha_pll_trion_set_rate() argument
1491 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); in alpha_pll_trion_set_rate()