Home
last modified time | relevance | path

Searched refs:best_parent_rate (Results 1 – 25 of 54) sorted by relevance

123

/linux-6.1.9/drivers/clk/at91/
Dclk-audio-pll.c251 req->rate, req->best_parent_rate); in clk_audio_pll_frac_determine_rate()
258 ret = clk_audio_pll_frac_compute_frac(req->rate, req->best_parent_rate, in clk_audio_pll_frac_determine_rate()
263 req->rate = clk_audio_pll_fout(req->best_parent_rate, nd, fracr); in clk_audio_pll_frac_determine_rate()
278 unsigned long best_parent_rate; in clk_audio_pll_pad_round_rate() local
306 best_parent_rate = clk_hw_round_rate(pclk, in clk_audio_pll_pad_round_rate()
308 tmp_rate = best_parent_rate / (div * tmp_qd); in clk_audio_pll_pad_round_rate()
312 *parent_rate = best_parent_rate; in clk_audio_pll_pad_round_rate()
319 __func__, best_rate, best_parent_rate); in clk_audio_pll_pad_round_rate()
329 unsigned long best_parent_rate = 0; in clk_audio_pll_pmc_round_rate() local
341 best_parent_rate = clk_round_rate(pclk->clk, 1); in clk_audio_pll_pmc_round_rate()
[all …]
/linux-6.1.9/drivers/clk/sunxi-ng/
Dccu_mux.c89 unsigned long best_parent_rate = 0, best_rate = 0; in ccu_mux_helper_determine_rate() local
97 best_parent_rate = clk_hw_get_rate(best_parent); in ccu_mux_helper_determine_rate()
99 best_parent_rate); in ccu_mux_helper_determine_rate()
109 best_parent_rate = ccu_mux_helper_unapply_prediv(common, cm, -1, in ccu_mux_helper_determine_rate()
137 best_parent_rate = parent_rate; in ccu_mux_helper_determine_rate()
144 best_parent_rate = parent_rate; in ccu_mux_helper_determine_rate()
154 req->best_parent_rate = best_parent_rate; in ccu_mux_helper_determine_rate()
/linux-6.1.9/drivers/clk/
Dclk-divider.c291 unsigned long *best_parent_rate, in clk_divider_bestdiv() argument
297 unsigned long parent_rate_saved = *best_parent_rate; in clk_divider_bestdiv()
305 parent_rate = *best_parent_rate; in clk_divider_bestdiv()
326 *best_parent_rate = parent_rate_saved; in clk_divider_bestdiv()
334 *best_parent_rate = parent_rate; in clk_divider_bestdiv()
340 *best_parent_rate = clk_hw_round_rate(parent, 1); in clk_divider_bestdiv()
353 &req->best_parent_rate, table, width, flags); in divider_determine_rate()
355 req->rate = DIV_ROUND_UP_ULL((u64)req->best_parent_rate, div); in divider_determine_rate()
374 req->best_parent_rate = clk_hw_round_rate(req->best_parent_hw, in divider_ro_determine_rate()
378 req->rate = DIV_ROUND_UP_ULL((u64)req->best_parent_rate, div); in divider_ro_determine_rate()
[all …]
Dclk-multiplier.c66 unsigned long *best_parent_rate, in __bestmult() argument
70 unsigned long orig_parent_rate = *best_parent_rate; in __bestmult()
97 *best_parent_rate = orig_parent_rate; in __bestmult()
108 *best_parent_rate = parent_rate; in __bestmult()
Dclk-composite.c53 req->best_parent_rate = clk_hw_get_rate(parent_hw); in clk_composite_determine_rate_for_parent()
59 &req->best_parent_rate); in clk_composite_determine_rate_for_parent()
102 req->best_parent_rate = tmp_req.best_parent_rate; in clk_composite_determine_rate()
127 req->best_parent_rate = tmp_req.best_parent_rate; in clk_composite_determine_rate()
Dclk.c655 req->best_parent_rate = best; in clk_mux_determine_rate_flags()
1444 &req->best_parent_rate); in clk_core_determine_round_nolock()
1477 req->best_parent_rate = parent->rate; in clk_core_init_rate_req()
1480 req->best_parent_rate = 0; in clk_core_init_rate_req()
1557 req->best_parent_rate = parent_req.rate; in clk_core_round_rate_nolock()
2108 unsigned long best_parent_rate = 0; in clk_calc_new_rates() local
2122 best_parent_rate = parent->rate; in clk_calc_new_rates()
2136 best_parent_rate = req.best_parent_rate; in clk_calc_new_rates()
2172 best_parent_rate != parent->rate) in clk_calc_new_rates()
2173 top = clk_calc_new_rates(parent, best_parent_rate); in clk_calc_new_rates()
[all …]
/linux-6.1.9/drivers/clk/imx/
Dclk-pfdv2.c107 req->best_parent_rate in clk_pfdv2_determine_rate()
110 unsigned long best_parent_rate = req->best_parent_rate; in clk_pfdv2_determine_rate() local
132 best_parent_rate = parent_rates[i]; in clk_pfdv2_determine_rate()
136 req->best_parent_rate = best_parent_rate; in clk_pfdv2_determine_rate()
/linux-6.1.9/drivers/clk/actions/
Dowl-factor.c68 unsigned long *best_parent_rate) in owl_clk_val_best() argument
72 unsigned long parent_rate_saved = *best_parent_rate; in owl_clk_val_best()
79 parent_rate = *best_parent_rate; in owl_clk_val_best()
96 *best_parent_rate = parent_rate_saved; in owl_clk_val_best()
106 *best_parent_rate = parent_rate; in owl_clk_val_best()
112 *best_parent_rate = clk_hw_round_rate( in owl_clk_val_best()
/linux-6.1.9/drivers/clk/rockchip/
Dclk-half-divider.c36 unsigned long *best_parent_rate, u8 width, in clk_half_divider_bestdiv() argument
41 unsigned long parent_rate_saved = *best_parent_rate; in clk_half_divider_bestdiv()
49 parent_rate = *best_parent_rate; in clk_half_divider_bestdiv()
72 *best_parent_rate = parent_rate_saved; in clk_half_divider_bestdiv()
83 *best_parent_rate = parent_rate; in clk_half_divider_bestdiv()
89 *best_parent_rate = clk_hw_round_rate(clk_hw_get_parent(hw), 1); in clk_half_divider_bestdiv()
/linux-6.1.9/drivers/clk/ti/
Ddivider.c169 unsigned long *best_parent_rate) in ti_clk_divider_bestdiv() argument
174 unsigned long parent_rate_saved = *best_parent_rate; in ti_clk_divider_bestdiv()
182 parent_rate = *best_parent_rate; in ti_clk_divider_bestdiv()
204 *best_parent_rate = parent_rate_saved; in ti_clk_divider_bestdiv()
213 *best_parent_rate = parent_rate; in ti_clk_divider_bestdiv()
219 *best_parent_rate = in ti_clk_divider_bestdiv()
Ddpll44xx.c219 &req->best_parent_rate); in omap4_dpll_regm4xen_determine_rate()
223 req->best_parent_rate = req->rate; in omap4_dpll_regm4xen_determine_rate()
/linux-6.1.9/drivers/clk/qcom/
Dclk-rcg2.c263 req->best_parent_rate = rate; in _freq_tbl_determine_rate()
606 req->best_parent_rate = clk_hw_get_rate(req->best_parent_hw); in clk_edp_pixel_determine_rate()
608 if (req->best_parent_rate == 810000000) in clk_edp_pixel_determine_rate()
617 if ((req->best_parent_rate < (request - delta)) || in clk_edp_pixel_determine_rate()
618 (req->best_parent_rate > (request + delta))) in clk_edp_pixel_determine_rate()
626 req->rate = calc_rate(req->best_parent_rate, in clk_edp_pixel_determine_rate()
660 req->best_parent_rate = parent_rate = clk_hw_round_rate(p, req->rate); in clk_byte_determine_rate()
717 req->best_parent_rate = parent_rate = clk_hw_round_rate(p, rate); in clk_byte2_determine_rate()
798 req->best_parent_rate = src_rate; in clk_pixel_determine_rate()
901 req->rate = req->best_parent_rate = p0_rate; in clk_gfx3d_determine_rate()
[all …]
Dclk-rcg.c429 req->best_parent_rate = rate; in _freq_tbl_determine_rate()
468 req->best_parent_rate = clk_hw_round_rate(p, req->rate); in clk_rcg_bypass_determine_rate()
469 req->rate = req->best_parent_rate; in clk_rcg_bypass_determine_rate()
556 req->best_parent_rate = clk_hw_round_rate(p, req->rate); in clk_rcg_bypass2_determine_rate()
557 req->rate = req->best_parent_rate; in clk_rcg_bypass2_determine_rate()
622 req->best_parent_rate = src_rate; in clk_rcg_pixel_determine_rate()
696 req->best_parent_rate = src_rate; in clk_rcg_esc_determine_rate()
/linux-6.1.9/drivers/clk/meson/
Dclk-pll.c254 ret = meson_clk_get_pll_settings(req->rate, req->best_parent_rate, in meson_clk_pll_determine_rate()
259 round = __pll_params_to_rate(req->best_parent_rate, m, n, 0, pll); in meson_clk_pll_determine_rate()
270 frac = __pll_params_with_frac(req->rate, req->best_parent_rate, m, n, pll); in meson_clk_pll_determine_rate()
271 req->rate = __pll_params_to_rate(req->best_parent_rate, m, n, frac, pll); in meson_clk_pll_determine_rate()
/linux-6.1.9/drivers/clk/mmp/
Dclk-mix.c263 req->best_parent_rate = parent_rate_best; in mmp_clk_mix_determine_rate()
374 unsigned long best_parent_rate) in mmp_clk_set_rate() argument
383 best_divisor = best_parent_rate / rate; in mmp_clk_set_rate()
393 if (parent_rate == best_parent_rate in mmp_clk_set_rate()
408 if (parent_rate == best_parent_rate) in mmp_clk_set_rate()
/linux-6.1.9/drivers/clk/hisilicon/
Dclk-hi3620.c288 req->best_parent_rate = 26000000; in mmc_clk_determine_rate()
291 req->best_parent_rate = 180000000; in mmc_clk_determine_rate()
294 req->best_parent_rate = 360000000; in mmc_clk_determine_rate()
297 req->best_parent_rate = 720000000; in mmc_clk_determine_rate()
301 req->best_parent_rate = 1440000000; in mmc_clk_determine_rate()
/linux-6.1.9/drivers/clk/tegra/
Dclk-tegra-super-cclk.c93 req->best_parent_rate = pllp_rate; in cclk_super_determine_rate()
98 req->best_parent_rate = rate; in cclk_super_determine_rate()
Dclk-tegra20-emc.c187 parent_rate = req->best_parent_rate; in emc_determine_rate()
200 req->best_parent_rate = parent_rate; in emc_determine_rate()
/linux-6.1.9/drivers/clk/renesas/
Dr9a06g032-clocks.c636 u32 div = DIV_ROUND_UP(req->best_parent_rate, req->rate); in r9a06g032_div_determine_rate()
639 hw->clk, req->rate, req->best_parent_rate, div); in r9a06g032_div_determine_rate()
641 clk->min, DIV_ROUND_UP(req->best_parent_rate, clk->min), in r9a06g032_div_determine_rate()
642 clk->max, DIV_ROUND_UP(req->best_parent_rate, clk->max)); in r9a06g032_div_determine_rate()
644 div = r9a06g032_div_clamp_div(clk, req->rate, req->best_parent_rate); in r9a06g032_div_determine_rate()
660 req->rate = DIV_ROUND_UP(req->best_parent_rate, div); in r9a06g032_div_determine_rate()
662 req->best_parent_rate, div, req->rate); in r9a06g032_div_determine_rate()
Drcar-gen3-cpg.c72 prate = req->best_parent_rate * pll_clk->fixed_mult; in cpg_pll_clk_determine_rate()
204 req->best_parent_rate = clk_hw_round_rate(clk_hw_get_parent(hw), in cpg_z_clk_determine_rate()
207 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()
Drcar-gen4-cpg.c77 req->best_parent_rate = clk_hw_round_rate(clk_hw_get_parent(hw), in cpg_z_clk_determine_rate()
80 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()
/linux-6.1.9/drivers/clk/microchip/
Dclk-core.c392 unsigned long parent_rate, best_parent_rate = 0; in roclk_determine_rate() local
411 best_parent_rate = parent_rate; in roclk_determine_rate()
429 clk_hw_get_name(best_parent_clk), best_parent_rate, in roclk_determine_rate()
432 if (req->best_parent_rate) in roclk_determine_rate()
433 req->best_parent_rate = best_parent_rate; in roclk_determine_rate()
/linux-6.1.9/drivers/clk/bcm/
Dclk-iproc-pll.c507 if (req->rate == 0 || req->best_parent_rate == 0) in iproc_pll_determine_rate()
513 ret = pll_calc_param(req->rate, req->best_parent_rate, in iproc_pll_determine_rate()
643 if (req->rate == req->best_parent_rate) in iproc_clk_determine_rate()
646 bestdiv = DIV_ROUND_CLOSEST(req->best_parent_rate, req->rate); in iproc_clk_determine_rate()
648 req->rate = req->best_parent_rate; in iproc_clk_determine_rate()
653 req->rate = req->best_parent_rate / bestdiv; in iproc_clk_determine_rate()
/linux-6.1.9/arch/arm/mach-ep93xx/
Dclock.c215 unsigned long best_parent_rate; in ep93xx_mux_determine_rate() local
243 best_parent_rate = __parent_rate; in ep93xx_mux_determine_rate()
252 req->best_parent_rate = best_parent_rate; in ep93xx_mux_determine_rate()
/linux-6.1.9/drivers/media/platform/atmel/
Datmel-isc-clk.c152 req->best_parent_rate = parent_rate; in isc_clk_determine_rate()
168 req->best_parent_rate); in isc_clk_determine_rate()

123