Lines Matching full:rate
25 /* DPLL rate rounding: minimum DPLL multiplier, divider values */
33 * Scale factor to mitigate roundoff errors in DPLL rate rounding.
35 * but the closer the rounded rate to the target rate. DPLL_SCALE_FACTOR
124 * @new_rate: pointer to storage for the resulting rounded rate
125 * @target_rate: the desired DPLL rate
126 * @parent_rate: the DPLL's parent clock rate
129 * resulting rate will not be higher than the target_rate, and that
152 * The new rate must be <= the target rate to avoid programming in _dpll_test_mult()
153 * a rate that is impossible for the hardware to handle in _dpll_test_mult()
225 * omap2_get_dpll_rate - returns the current DPLL CLKOUT rate
230 * bypassed, on OMAP2xxx, the output rate is either the 32KiHz clock
234 * Returns the current DPLL CLKOUT rate (*not* CLKOUTX2) if the DPLL is
235 * locked, or the appropriate bypass rate if the DPLL is bypassed, or 0
248 /* Return bypass rate if DPLL is bypassed */ in omap2_get_dpll_rate()
268 /* DPLL rate rounding code */
271 * omap2_dpll_determine_rate - round a target rate for an OMAP DPLL
273 * @req: rate request
275 * Given a DPLL and a desired target rate, round the target rate to a
276 * possible, programmable rate for this DPLL. Attempts to select the
279 * (expensive) function again. Returns -EINVAL if the target rate
280 * cannot be rounded, or the rounded rate upon success.
300 if (dd->max_rate && req->rate > dd->max_rate) in omap2_dpll_determine_rate()
301 req->rate = dd->max_rate; in omap2_dpll_determine_rate()
305 pr_debug("clock: %s: starting DPLL round_rate, target rate %lu\n", in omap2_dpll_determine_rate()
306 clk_name, req->rate); in omap2_dpll_determine_rate()
308 scaled_rt_rp = req->rate / (ref_rate / DPLL_SCALE_FACTOR); in omap2_dpll_determine_rate()
333 r = _dpll_test_mult(&m, n, &new_rate, req->rate, in omap2_dpll_determine_rate()
340 /* skip rates above our target rate */ in omap2_dpll_determine_rate()
341 delta = req->rate - new_rate; in omap2_dpll_determine_rate()
359 pr_debug("clock: %s: cannot round to rate %lu\n", in omap2_dpll_determine_rate()
360 clk_name, req->rate); in omap2_dpll_determine_rate()
366 dd->last_rounded_rate = req->rate - prev_min_delta; in omap2_dpll_determine_rate()
368 req->rate = dd->last_rounded_rate; in omap2_dpll_determine_rate()