/Linux-v6.6/drivers/gpu/drm/sun4i/ |
D | sun4i_hdmi_tmds_clk.c | 71 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()
|
D | sun4i_tcon_dclk.c | 75 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()
|
D | sun8i_hdmi_phy_clk.c | 25 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/ |
D | ccu_mux.c | 90 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()
|
D | ccu_gate.c | 100 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/ |
D | clk-sun9i-cpus.c | 116 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()
|
D | clk-factors.c | 92 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/ |
D | clk-div6.c | 108 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/ |
D | sclk-div.c | 56 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/ |
D | clk-fixed-factor.c | 39 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()
|
D | clk-si521xx.c | 170 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()
|
D | clk-stm32f4.c | 436 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()
|
D | clk.c | 642 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/ |
D | clock.c | 212 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/ |
D | dsi_phy_28nm_8960.c | 306 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/ |
D | rtc-ac100.c | 172 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/ |
D | clk-bcm2835.c | 1212 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()
|