Home
last modified time | relevance | path

Searched refs:best_parent (Results 1 – 17 of 17) sorted by relevance

/Linux-v6.6/drivers/gpu/drm/sun4i/
Dsun4i_hdmi_tmds_clk.c71 unsigned long best_parent = 0; in sun4i_tmds_determine_rate() local
96 best_parent = rounded; in sun4i_tmds_determine_rate()
102 if (!best_parent || in sun4i_tmds_determine_rate()
104 abs(rate - best_parent / best_half / in sun4i_tmds_determine_rate()
106 best_parent = rounded; in sun4i_tmds_determine_rate()
118 req->rate = best_parent / best_half / best_div; in sun4i_tmds_determine_rate()
119 req->best_parent_rate = best_parent; in sun4i_tmds_determine_rate()
Dsun4i_tcon_dclk.c75 unsigned long best_parent = 0; in sun4i_dclk_round_rate() local
97 best_parent = rounded; in sun4i_dclk_round_rate()
103 abs(rate - best_parent / best_div)) { in sun4i_dclk_round_rate()
104 best_parent = rounded; in sun4i_dclk_round_rate()
110 *parent_rate = best_parent; in sun4i_dclk_round_rate()
112 return best_parent / best_div; in sun4i_dclk_round_rate()
Dsun8i_hdmi_phy_clk.c25 struct clk_hw *best_parent = NULL; in sun8i_phy_clk_determine_rate() local
44 best_parent = parent; in sun8i_phy_clk_determine_rate()
53 best_parent = parent; in sun8i_phy_clk_determine_rate()
63 req->best_parent_hw = best_parent; in sun8i_phy_clk_determine_rate()
/Linux-v6.6/drivers/clk/sunxi-ng/
Dccu_mux.c90 struct clk_hw *best_parent, *hw = &common->hw; in ccu_mux_helper_determine_rate() local
96 best_parent = clk_hw_get_parent(hw); in ccu_mux_helper_determine_rate()
97 best_parent_rate = clk_hw_get_rate(best_parent); in ccu_mux_helper_determine_rate()
101 best_rate = round(cm, best_parent, &adj_parent_rate, in ccu_mux_helper_determine_rate()
136 best_parent = parent; in ccu_mux_helper_determine_rate()
145 best_parent = parent; in ccu_mux_helper_determine_rate()
153 req->best_parent_hw = best_parent; in ccu_mux_helper_determine_rate()
Dccu_gate.c100 unsigned long best_parent = rate; in ccu_gate_round_rate() local
103 best_parent *= div; in ccu_gate_round_rate()
104 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); in ccu_gate_round_rate()
/Linux-v6.6/drivers/clk/sunxi/
Dclk-sun9i-cpus.c116 struct clk_hw *parent, *best_parent = NULL; in sun9i_a80_cpus_clk_determine_rate() local
136 best_parent = parent; in sun9i_a80_cpus_clk_determine_rate()
142 if (!best_parent) in sun9i_a80_cpus_clk_determine_rate()
145 req->best_parent_hw = best_parent; in sun9i_a80_cpus_clk_determine_rate()
Dclk-factors.c92 struct clk_hw *parent, *best_parent = NULL; in clk_factors_determine_rate() local
116 best_parent = parent; in clk_factors_determine_rate()
122 if (!best_parent) in clk_factors_determine_rate()
125 req->best_parent_hw = best_parent; in clk_factors_determine_rate()
/Linux-v6.6/drivers/clk/renesas/
Dclk-div6.c108 struct clk_hw *parent, *best_parent = NULL; in cpg_div6_clock_determine_rate() local
133 best_parent = parent; in cpg_div6_clock_determine_rate()
139 if (!best_parent) in cpg_div6_clock_determine_rate()
143 req->best_parent_hw = best_parent; in cpg_div6_clock_determine_rate()
/Linux-v6.6/drivers/clk/meson/
Dsclk-div.c56 unsigned long best = 0, best_parent = 0; in sclk_div_bestdiv() local
87 best_parent = parent_now; in sclk_div_bestdiv()
94 *prate = best_parent; in sclk_div_bestdiv()
/Linux-v6.6/drivers/clk/
Dclk-fixed-factor.c39 unsigned long best_parent; in clk_factor_round_rate() local
41 best_parent = (rate / fix->mult) * fix->div; in clk_factor_round_rate()
42 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); in clk_factor_round_rate()
Dclk-si521xx.c170 unsigned long best_parent; in si521xx_diff_round_rate() local
172 best_parent = (rate / SI521XX_DIFF_MULT) * SI521XX_DIFF_DIV; in si521xx_diff_round_rate()
173 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); in si521xx_diff_round_rate()
Dclk-stm32f4.c436 unsigned long best_parent = rate / mult; in clk_apb_mul_round_rate() local
438 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); in clk_apb_mul_round_rate()
Dclk.c642 struct clk_core *core = hw->core, *parent, *best_parent = NULL; in clk_mux_determine_rate_flags() local
679 best_parent = parent; in clk_mux_determine_rate_flags()
684 if (!best_parent) in clk_mux_determine_rate_flags()
687 req->best_parent_hw = best_parent->hw; in clk_mux_determine_rate_flags()
/Linux-v6.6/arch/arm/mach-ep93xx/
Dclock.c212 struct clk *best_parent = NULL; in ep93xx_mux_determine_rate() local
244 best_parent = parent; in ep93xx_mux_determine_rate()
249 if (!best_parent) in ep93xx_mux_determine_rate()
253 req->best_parent_hw = __clk_get_hw(best_parent); in ep93xx_mux_determine_rate()
/Linux-v6.6/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy_28nm_8960.c306 unsigned long best_parent; in clk_bytediv_round_rate() local
311 best_parent = rate * factor; in clk_bytediv_round_rate()
312 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); in clk_bytediv_round_rate()
/Linux-v6.6/drivers/rtc/
Drtc-ac100.c172 struct clk_hw *best_parent; in ac100_clkout_determine_rate() local
208 best_parent = parent; in ac100_clkout_determine_rate()
215 req->best_parent_hw = best_parent; in ac100_clkout_determine_rate()
/Linux-v6.6/drivers/clk/bcm/
Dclk-bcm2835.c1212 struct clk_hw *parent, *best_parent = NULL; in bcm2835_clock_determine_rate() local
1244 best_parent = parent; in bcm2835_clock_determine_rate()
1251 if (!best_parent) in bcm2835_clock_determine_rate()
1254 req->best_parent_hw = best_parent; in bcm2835_clock_determine_rate()