Lines Matching refs:rate
418 unsigned long rate; in recalc_stm_pll800c65() local
432 rate = (unsigned long)div64_u64(res, mdiv * (1 << pdiv)); in recalc_stm_pll800c65()
434 pr_debug("%s:%s rate %lu\n", clk_hw_get_name(hw), __func__, rate); in recalc_stm_pll800c65()
436 return rate; in recalc_stm_pll800c65()
445 unsigned long rate; in recalc_stm_pll1600c65() local
457 rate = ((2 * (parent_rate / 1000) * ndiv) / mdiv) * 1000; in recalc_stm_pll1600c65()
459 pr_debug("%s:%s rate %lu\n", clk_hw_get_name(hw), __func__, rate); in recalc_stm_pll1600c65()
461 return rate; in recalc_stm_pll1600c65()
515 unsigned long *rate) in clk_pll3200c32_get_rate() argument
520 *rate = ((2 * (input / 1000) * pll->ndiv) / pll->idf) * 1000; in clk_pll3200c32_get_rate()
530 unsigned long rate = 0; in recalc_stm_pll3200c32() local
540 rate = ((2 * (parent_rate/1000) * ndiv) / idf) * 1000; in recalc_stm_pll3200c32()
542 pr_debug("%s:%s rate %lu\n", clk_hw_get_name(hw), __func__, rate); in recalc_stm_pll3200c32()
544 return rate; in recalc_stm_pll3200c32()
547 static long round_rate_stm_pll3200c32(struct clk_hw *hw, unsigned long rate, in round_rate_stm_pll3200c32() argument
552 if (!clk_pll3200c32_get_params(*prate, rate, ¶ms)) in round_rate_stm_pll3200c32()
553 clk_pll3200c32_get_rate(*prate, ¶ms, &rate); in round_rate_stm_pll3200c32()
556 __clk_get_name(hw->clk), rate); in round_rate_stm_pll3200c32()
562 rate, (unsigned int)params.ndiv, in round_rate_stm_pll3200c32()
565 return rate; in round_rate_stm_pll3200c32()
568 static int set_rate_stm_pll3200c32(struct clk_hw *hw, unsigned long rate, in set_rate_stm_pll3200c32() argument
576 if (!rate || !parent_rate) in set_rate_stm_pll3200c32()
579 if (!clk_pll3200c32_get_params(parent_rate, rate, ¶ms)) in set_rate_stm_pll3200c32()
616 unsigned long rate; in recalc_stm_pll1200c32() local
631 rate = (((parent_rate / 1000) * ldf) / (odf * idf)) * 1000; in recalc_stm_pll1200c32()
633 pr_debug("%s:%s rate %lu\n", clk_hw_get_name(hw), __func__, rate); in recalc_stm_pll1200c32()
635 return rate; in recalc_stm_pll1200c32()
698 unsigned long *rate) in clk_pll4600c28_get_rate() argument
703 *rate = (input / pll->idf) * 2 * pll->ndiv; in clk_pll4600c28_get_rate()
713 unsigned long rate; in recalc_stm_pll4600c28() local
721 clk_pll4600c28_get_rate(parent_rate, ¶ms, &rate); in recalc_stm_pll4600c28()
723 pr_debug("%s:%s rate %lu\n", __clk_get_name(hw->clk), __func__, rate); in recalc_stm_pll4600c28()
725 return rate; in recalc_stm_pll4600c28()
728 static long round_rate_stm_pll4600c28(struct clk_hw *hw, unsigned long rate, in round_rate_stm_pll4600c28() argument
733 if (!clk_pll4600c28_get_params(*prate, rate, ¶ms)) { in round_rate_stm_pll4600c28()
734 clk_pll4600c28_get_rate(*prate, ¶ms, &rate); in round_rate_stm_pll4600c28()
737 __clk_get_name(hw->clk), rate); in round_rate_stm_pll4600c28()
743 rate, (unsigned int)params.ndiv, in round_rate_stm_pll4600c28()
746 return rate; in round_rate_stm_pll4600c28()
749 static int set_rate_stm_pll4600c28(struct clk_hw *hw, unsigned long rate, in set_rate_stm_pll4600c28() argument
757 if (!rate || !parent_rate) in set_rate_stm_pll4600c28()
760 if (!clk_pll4600c28_get_params(parent_rate, rate, ¶ms)) { in set_rate_stm_pll4600c28()
764 __clk_get_name(hw->clk), rate); in set_rate_stm_pll4600c28()