Lines Matching refs:parent_rate
51 unsigned long parent_rate) in sun9i_a80_cpus_clk_recalc_rate() argument
62 parent_rate /= SUN9I_CPUS_PLL4_DIV_GET(reg) + 1; in sun9i_a80_cpus_clk_recalc_rate()
65 rate = parent_rate / (SUN9I_CPUS_DIV_GET(reg) + 1); in sun9i_a80_cpus_clk_recalc_rate()
71 u8 parent, unsigned long parent_rate) in sun9i_a80_cpus_clk_round() argument
79 if (parent_rate && rate > parent_rate) in sun9i_a80_cpus_clk_round()
80 rate = parent_rate; in sun9i_a80_cpus_clk_round()
82 div = DIV_ROUND_UP(parent_rate, rate); in sun9i_a80_cpus_clk_round()
108 return parent_rate / pre_div / div; in sun9i_a80_cpus_clk_round()
116 unsigned long parent_rate, best = 0, child_rate, best_child_rate = 0; in sun9i_a80_cpus_clk_determine_rate() local
126 parent_rate = clk_hw_round_rate(parent, rate); in sun9i_a80_cpus_clk_determine_rate()
128 parent_rate = clk_hw_get_rate(parent); in sun9i_a80_cpus_clk_determine_rate()
131 parent_rate); in sun9i_a80_cpus_clk_determine_rate()
135 best = parent_rate; in sun9i_a80_cpus_clk_determine_rate()
151 unsigned long parent_rate) in sun9i_a80_cpus_clk_set_rate() argument
164 sun9i_a80_cpus_clk_round(rate, &div, &pre_div, parent, parent_rate); in sun9i_a80_cpus_clk_set_rate()