Lines Matching refs:parent_rate
69 unsigned long parent_rate) in iproc_asiu_clk_recalc_rate() argument
76 if (parent_rate == 0) { in iproc_asiu_clk_recalc_rate()
84 clk->rate = parent_rate; in iproc_asiu_clk_recalc_rate()
85 return parent_rate; in iproc_asiu_clk_recalc_rate()
94 clk->rate = parent_rate / (div_h + div_l); in iproc_asiu_clk_recalc_rate()
96 __func__, clk->rate, parent_rate, div_h, div_l); in iproc_asiu_clk_recalc_rate()
102 unsigned long *parent_rate) in iproc_asiu_clk_round_rate() argument
106 if (rate == 0 || *parent_rate == 0) in iproc_asiu_clk_round_rate()
109 if (rate == *parent_rate) in iproc_asiu_clk_round_rate()
110 return *parent_rate; in iproc_asiu_clk_round_rate()
112 div = DIV_ROUND_CLOSEST(*parent_rate, rate); in iproc_asiu_clk_round_rate()
114 return *parent_rate; in iproc_asiu_clk_round_rate()
116 return *parent_rate / div; in iproc_asiu_clk_round_rate()
120 unsigned long parent_rate) in iproc_asiu_clk_set_rate() argument
127 if (rate == 0 || parent_rate == 0) in iproc_asiu_clk_set_rate()
131 if (rate == parent_rate) { in iproc_asiu_clk_set_rate()
138 div = DIV_ROUND_CLOSEST(parent_rate, rate); in iproc_asiu_clk_set_rate()