Lines Matching refs:parent_rate
53 unsigned long parent_rate) in sun9i_a80_cpus_clk_recalc_rate() argument
64 parent_rate /= SUN9I_CPUS_PLL4_DIV_GET(reg) + 1; in sun9i_a80_cpus_clk_recalc_rate()
67 rate = parent_rate / (SUN9I_CPUS_DIV_GET(reg) + 1); in sun9i_a80_cpus_clk_recalc_rate()
73 u8 parent, unsigned long parent_rate) in sun9i_a80_cpus_clk_round() argument
81 if (parent_rate && rate > parent_rate) in sun9i_a80_cpus_clk_round()
82 rate = parent_rate; in sun9i_a80_cpus_clk_round()
84 div = DIV_ROUND_UP(parent_rate, rate); in sun9i_a80_cpus_clk_round()
110 return parent_rate / pre_div / div; in sun9i_a80_cpus_clk_round()
118 unsigned long parent_rate, best = 0, child_rate, best_child_rate = 0; in sun9i_a80_cpus_clk_determine_rate() local
128 parent_rate = clk_hw_round_rate(parent, rate); in sun9i_a80_cpus_clk_determine_rate()
130 parent_rate = clk_hw_get_rate(parent); in sun9i_a80_cpus_clk_determine_rate()
133 parent_rate); in sun9i_a80_cpus_clk_determine_rate()
137 best = parent_rate; in sun9i_a80_cpus_clk_determine_rate()
153 unsigned long parent_rate) in sun9i_a80_cpus_clk_set_rate() argument
166 sun9i_a80_cpus_clk_round(rate, &div, &pre_div, parent, parent_rate); in sun9i_a80_cpus_clk_set_rate()