/linux/drivers/gpu/drm/sun4i/ |
A 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()
|
A D | sun4i_dotclock.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()
|
A 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/drivers/clk/sunxi-ng/ |
A D | ccu_mux.c | 87 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()
|
A D | ccu_gate.c | 97 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()
|
/linux/drivers/clk/sunxi/ |
A 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()
|
A 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/drivers/clk/renesas/ |
A 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/drivers/clk/meson/ |
A 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/drivers/clk/ |
A 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()
|
A D | clk.c | 549 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()
|
A D | clk-stm32f4.c | 440 unsigned long best_parent = rate / mult; in clk_apb_mul_round_rate() local 442 *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); in clk_apb_mul_round_rate()
|
/linux/arch/arm/mach-ep93xx/ |
A D | clock.c | 210 struct clk *best_parent = 0; in ep93xx_mux_determine_rate() local 242 best_parent = parent; in ep93xx_mux_determine_rate() 247 if (!best_parent) in ep93xx_mux_determine_rate() 251 req->best_parent_hw = __clk_get_hw(best_parent); in ep93xx_mux_determine_rate()
|
/linux/drivers/gpu/drm/msm/dsi/phy/ |
A 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/drivers/rtc/ |
A 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/drivers/clk/bcm/ |
A D | clk-bcm2835.c | 1188 struct clk_hw *parent, *best_parent = NULL; in bcm2835_clock_determine_rate() local 1220 best_parent = parent; in bcm2835_clock_determine_rate() 1227 if (!best_parent) in bcm2835_clock_determine_rate() 1230 req->best_parent_hw = best_parent; in bcm2835_clock_determine_rate()
|