Lines Matching refs:prate

566 alpha_pll_calc_rate(u64 prate, u32 l, u32 a, u32 alpha_width)
568 return (prate * l) + ((prate * a) >> ALPHA_SHIFT(alpha_width));
572 alpha_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u64 *a,
579 remainder = do_div(quotient, prate);
590 remainder = do_div(quotient, prate);
596 return alpha_pll_calc_rate(prate, *l, *a, alpha_width);
616 u64 a = 0, prate = parent_rate;
637 return alpha_pll_calc_rate(prate, l, a, alpha_width);
695 unsigned long prate,
703 rate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width);
734 unsigned long prate)
736 return __clk_alpha_pll_set_rate(hw, rate, prate,
741 unsigned long prate)
743 return __clk_alpha_pll_set_rate(hw, rate, prate,
748 unsigned long *prate)
755 rate = alpha_pll_round_rate(rate, *prate, &l, &a, alpha_width);
766 alpha_huayra_pll_calc_rate(u64 prate, u32 l, u32 a)
775 return (prate * l) + (prate * a >> PLL_HUAYRA_ALPHA_WIDTH);
779 alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate,
786 remainder = do_div(quotient, prate);
795 remainder = do_div(quotient, prate);
809 return alpha_huayra_pll_calc_rate(prate, *l, *a);
867 unsigned long prate)
872 rate = alpha_huayra_pll_round_rate(rate, prate, &l, &a);
910 unsigned long *prate)
914 return alpha_huayra_pll_round_rate(rate, *prate, &l, &a);
1099 unsigned long *prate)
1109 return divider_round_rate(hw, rate, prate, table,
1115 unsigned long *prate)
1127 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), div * rate);
1129 return DIV_ROUND_UP_ULL((u64)*prate, div);
1314 unsigned long prate)
1322 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width);
1457 unsigned long *prate)
1461 return divider_round_rate(hw, rate, prate, pll->post_div_table,
1494 unsigned long rate, unsigned long *prate)
1498 return divider_round_rate(hw, rate, prate, pll->post_div_table,
1628 unsigned long prate, u32 latch_bit, u32 latch_ack)
1636 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width);
1675 unsigned long prate)
1677 return __alpha_pll_trion_set_rate(hw, rate, prate, PLL_UPDATE, ALPHA_PLL_ACK_LATCH);
1728 unsigned long prate)
1736 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width);
1863 unsigned long prate)
1865 return __alpha_pll_trion_set_rate(hw, rate, prate,
2048 unsigned long prate)
2057 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width);
2345 unsigned long *prate)
2352 rate = alpha_pll_round_rate(rate, *prate, &l, &a, 0);
2438 unsigned long prate)
2445 rate = alpha_pll_round_rate(rate, prate, &l, &a, ALPHA_REG_BITWIDTH);
2485 unsigned long prate)
2492 rate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width);