Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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_dotclock.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()
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/
Dccu_mux.c87 struct clk_hw *best_parent, *hw = &common->hw; in ccu_mux_helper_determine_rate() local
93 best_parent = clk_hw_get_parent(hw); in ccu_mux_helper_determine_rate()
94 best_parent_rate = clk_hw_get_rate(best_parent); in ccu_mux_helper_determine_rate()
98 best_rate = round(cm, best_parent, &adj_parent_rate, in ccu_mux_helper_determine_rate()
133 best_parent = parent; in ccu_mux_helper_determine_rate()
142 best_parent = parent; in ccu_mux_helper_determine_rate()
150 req->best_parent_hw = best_parent; in ccu_mux_helper_determine_rate()
Dccu_gate.c97 unsigned long best_parent = rate; in ccu_gate_round_rate() local
100 best_parent *= div; in ccu_gate_round_rate()
101 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); in ccu_gate_round_rate()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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.c549 struct clk_core *core = hw->core, *parent, *best_parent = NULL; in clk_mux_determine_rate_flags() local
591 best_parent = parent; in clk_mux_determine_rate_flags()
596 if (!best_parent) in clk_mux_determine_rate_flags()
600 if (best_parent) in clk_mux_determine_rate_flags()
601 req->best_parent_hw = best_parent->hw; in clk_mux_determine_rate_flags()
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/pll/
Ddsi_pll_28nm_8960.c250 unsigned long best_parent; in clk_bytediv_round_rate() local
255 best_parent = rate * factor; in clk_bytediv_round_rate()
256 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); in clk_bytediv_round_rate()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/clk/bcm/
Dclk-bcm2835.c1184 struct clk_hw *parent, *best_parent = NULL; in bcm2835_clock_determine_rate() local
1216 best_parent = parent; in bcm2835_clock_determine_rate()
1223 if (!best_parent) in bcm2835_clock_determine_rate()
1226 req->best_parent_hw = best_parent; in bcm2835_clock_determine_rate()
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dlinux-5.10.patch2424 + struct clk_hw *parent, *best_parent = NULL;
2436 + best_parent = clk_hw_get_parent_by_index(hw, i);
2437 + best = clk_hw_get_rate(best_parent);
2439 + ret = clk_set_rate(best_parent->clk, parent_req.rate);
2444 + best = clk_hw_get_rate(best_parent);
2446 + clk_hw_get_name(best_parent), best);
2449 + clk_prepare(best_parent->clk);
2450 + clk_enable(best_parent->clk);
2471 + if (!best_parent)
2474 + if (best_parent)
[all …]