Lines Matching refs:rate

432 	 * Highest rate for the VCO before we have to use the
487 /* Bitmap encoding which parents accept rate change propagation. */
544 static void bcm2835_pll_choose_ndiv_and_fdiv(unsigned long rate,
550 div = (u64)rate << A2W_PLL_FRAC_BITS;
560 u64 rate;
565 rate = (u64)parent_rate * ((ndiv << A2W_PLL_FRAC_BITS) + fdiv);
566 do_div(rate, pdiv);
567 return rate >> A2W_PLL_FRAC_BITS;
570 static long bcm2835_pll_round_rate(struct clk_hw *hw, unsigned long rate,
577 rate = clamp(rate, data->min_rate, data->max_rate);
579 bcm2835_pll_choose_ndiv_and_fdiv(rate, *parent_rate, &ndiv, &fdiv);
679 unsigned long rate, unsigned long parent_rate)
690 if (rate > data->max_fb_rate) {
692 rate /= 2;
697 bcm2835_pll_choose_ndiv_and_fdiv(rate, parent_rate, &ndiv, &fdiv);
809 unsigned long rate,
812 return clk_divider_ops.round_rate(hw, rate, parent_rate);
856 unsigned long rate,
864 div = DIV_ROUND_UP_ULL(parent_rate, rate);
935 unsigned long rate,
946 rem = do_div(temp, rate);
1059 * if it's ticking at the rate we expect.
1063 "clk %s: rate %ld, measure %ld\n",
1073 unsigned long rate, unsigned long parent_rate)
1078 u32 div = bcm2835_clock_choose_div(hw, rate, parent_rate);
1113 unsigned long rate,
1129 *div = bcm2835_clock_choose_div(hw, rate, *prate);
1145 * below the ideal rate, for use as a metric.
1154 "frac bits are not used when propagating rate change");
1164 tmp_rate = clk_hw_round_rate(parent, rate * curdiv);
1167 (tmp_rate > best_rate && tmp_rate <= rate))
1170 if (best_rate == rate)
1186 unsigned long rate, best_rate = 0;
1195 * Select parent clock that results in the closest but lower rate
1212 rate = bcm2835_clock_choose_div_and_prate(hw, i, req->rate,
1215 if (abs(req->rate - rate) < abs(req->rate - best_rate)) {
1218 best_rate = rate;
1229 req->rate = best_avgrate;
1437 * rate changes on at least of the parents.
1992 * to be gated for rate changes. It is also known as "clk_audio"
2159 * Allow rate change propagation only on PLLH_AUX which is