Home
last modified time | relevance | path

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

12

/Linux-v5.4/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 …]
Dclk-generated.c115 req->best_parent_rate = parent_rate; in clk_generated_best_diff()
185 req->best_parent_rate); in clk_generated_determine_rate()
Dclk-programmable.c86 req->best_parent_rate = parent_rate; in clk_programmable_determine_rate()
/Linux-v5.4/drivers/clk/sunxi-ng/
Dccu_mux.c86 unsigned long best_parent_rate = 0, best_rate = 0; in ccu_mux_helper_determine_rate() local
94 best_parent_rate = clk_hw_get_rate(best_parent); in ccu_mux_helper_determine_rate()
96 best_parent_rate); in ccu_mux_helper_determine_rate()
106 best_parent_rate = ccu_mux_helper_unapply_prediv(common, cm, -1, in ccu_mux_helper_determine_rate()
134 best_parent_rate = parent_rate; in ccu_mux_helper_determine_rate()
141 best_parent_rate = parent_rate; in ccu_mux_helper_determine_rate()
151 req->best_parent_rate = best_parent_rate; in ccu_mux_helper_determine_rate()
/Linux-v5.4/drivers/clk/actions/
Dowl-factor.c69 unsigned long *best_parent_rate) in owl_clk_val_best() argument
73 unsigned long parent_rate_saved = *best_parent_rate; in owl_clk_val_best()
80 parent_rate = *best_parent_rate; in owl_clk_val_best()
97 *best_parent_rate = parent_rate_saved; in owl_clk_val_best()
107 *best_parent_rate = parent_rate; in owl_clk_val_best()
113 *best_parent_rate = clk_hw_round_rate( in owl_clk_val_best()
/Linux-v5.4/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-v5.4/drivers/clk/
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-divider.c290 unsigned long *best_parent_rate, in clk_divider_bestdiv() argument
296 unsigned long parent_rate_saved = *best_parent_rate; in clk_divider_bestdiv()
304 parent_rate = *best_parent_rate; in clk_divider_bestdiv()
325 *best_parent_rate = parent_rate_saved; in clk_divider_bestdiv()
333 *best_parent_rate = parent_rate; in clk_divider_bestdiv()
339 *best_parent_rate = clk_hw_round_rate(parent, 1); in clk_divider_bestdiv()
Dclk-composite.c70 req->best_parent_rate = clk_hw_get_rate(parent); in clk_composite_determine_rate()
73 &req->best_parent_rate); in clk_composite_determine_rate()
98 req->best_parent_rate = parent_rate; in clk_composite_determine_rate()
Dclk.c604 req->best_parent_rate = best; in clk_mux_determine_rate_flags()
1325 &req->best_parent_rate); in clk_core_determine_round_nolock()
1348 req->best_parent_rate = parent->rate; in clk_core_init_rate_req()
1351 req->best_parent_rate = 0; in clk_core_init_rate_req()
1886 unsigned long best_parent_rate = 0; in clk_calc_new_rates() local
1900 best_parent_rate = parent->rate; in clk_calc_new_rates()
1918 best_parent_rate = req.best_parent_rate; in clk_calc_new_rates()
1954 best_parent_rate != parent->rate) in clk_calc_new_rates()
1955 top = clk_calc_new_rates(parent, best_parent_rate); in clk_calc_new_rates()
2011 unsigned long best_parent_rate = 0; in clk_change_rate() local
[all …]
/Linux-v5.4/drivers/clk/ti/
Ddivider.c173 unsigned long *best_parent_rate) in ti_clk_divider_bestdiv() argument
178 unsigned long parent_rate_saved = *best_parent_rate; in ti_clk_divider_bestdiv()
186 parent_rate = *best_parent_rate; in ti_clk_divider_bestdiv()
208 *best_parent_rate = parent_rate_saved; in ti_clk_divider_bestdiv()
217 *best_parent_rate = parent_rate; in ti_clk_divider_bestdiv()
223 *best_parent_rate = in ti_clk_divider_bestdiv()
Ddpll44xx.c217 &req->best_parent_rate); in omap4_dpll_regm4xen_determine_rate()
221 req->best_parent_rate = req->rate; in omap4_dpll_regm4xen_determine_rate()
Ddpll3xxx.c517 &req->best_parent_rate); in omap3_noncore_dpll_determine_rate()
521 req->best_parent_rate = req->rate; in omap3_noncore_dpll_determine_rate()
/Linux-v5.4/drivers/clk/qcom/
Dclk-rcg2.c237 req->best_parent_rate = rate; in _freq_tbl_determine_rate()
463 req->best_parent_rate = clk_hw_get_rate(req->best_parent_hw); in clk_edp_pixel_determine_rate()
465 if (req->best_parent_rate == 810000000) in clk_edp_pixel_determine_rate()
474 if ((req->best_parent_rate < (request - delta)) || in clk_edp_pixel_determine_rate()
475 (req->best_parent_rate > (request + delta))) in clk_edp_pixel_determine_rate()
483 req->rate = calc_rate(req->best_parent_rate, in clk_edp_pixel_determine_rate()
517 req->best_parent_rate = parent_rate = clk_hw_round_rate(p, req->rate); in clk_byte_determine_rate()
574 req->best_parent_rate = parent_rate = clk_hw_round_rate(p, rate); in clk_byte2_determine_rate()
654 req->best_parent_rate = src_rate; in clk_pixel_determine_rate()
744 req->rate = req->best_parent_rate = p9_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()
543 req->best_parent_rate = clk_hw_round_rate(p, req->rate); in clk_rcg_bypass2_determine_rate()
544 req->rate = req->best_parent_rate; in clk_rcg_bypass2_determine_rate()
609 req->best_parent_rate = src_rate; in clk_rcg_pixel_determine_rate()
683 req->best_parent_rate = src_rate; in clk_rcg_esc_determine_rate()
Dclk-regmap-mux-div.c109 req->best_parent_rate = parent_rate; in mux_div_determine_rate()
/Linux-v5.4/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-v5.4/drivers/clk/mmp/
Dclk-mix.c266 req->best_parent_rate = parent_rate_best; in mmp_clk_mix_determine_rate()
377 unsigned long best_parent_rate) in mmp_clk_set_rate() argument
386 best_divisor = best_parent_rate / rate; in mmp_clk_set_rate()
396 if (parent_rate == best_parent_rate in mmp_clk_set_rate()
411 if (parent_rate == best_parent_rate) in mmp_clk_set_rate()
/Linux-v5.4/drivers/clk/bcm/
Dclk-raspberrypi.c156 do_div(div, req->best_parent_rate); in raspberrypi_pll_determine_rate()
161 final_rate = ((u64)req->best_parent_rate * in raspberrypi_pll_determine_rate()
Dclk-iproc-pll.c517 if (req->rate == 0 || req->best_parent_rate == 0) in iproc_pll_determine_rate()
523 ret = pll_calc_param(req->rate, req->best_parent_rate, in iproc_pll_determine_rate()
653 if (req->rate == req->best_parent_rate) in iproc_clk_determine_rate()
656 bestdiv = DIV_ROUND_CLOSEST(req->best_parent_rate, req->rate); in iproc_clk_determine_rate()
658 req->rate = req->best_parent_rate; in iproc_clk_determine_rate()
663 req->rate = req->best_parent_rate / bestdiv; in iproc_clk_determine_rate()
/Linux-v5.4/drivers/clk/microchip/
Dclk-core.c390 unsigned long parent_rate, best_parent_rate = 0; in roclk_determine_rate() local
409 best_parent_rate = parent_rate; in roclk_determine_rate()
427 clk_hw_get_name(best_parent_clk), best_parent_rate, in roclk_determine_rate()
430 if (req->best_parent_rate) in roclk_determine_rate()
431 req->best_parent_rate = best_parent_rate; in roclk_determine_rate()
/Linux-v5.4/drivers/gpu/drm/sun4i/
Dsun8i_hdmi_phy_clk.c62 req->best_parent_rate = best_rate; in sun8i_phy_clk_determine_rate()
Dsun4i_hdmi_tmds_clk.c119 req->best_parent_rate = best_parent; in sun4i_tmds_determine_rate()
/Linux-v5.4/drivers/clk/sunxi/
Dclk-sun9i-cpus.c146 req->best_parent_rate = best; in sun9i_a80_cpus_clk_determine_rate()
/Linux-v5.4/drivers/clk/tegra/
Dclk-sdmmc-mux.c112 unsigned long output_rate = req->best_parent_rate; in clk_sdmmc_mux_determine_rate()

12