Lines Matching refs:clkt
49 const struct clk_div_table *clkt; in _get_table_maxdiv() local
51 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
52 if (clkt->div > maxdiv && clkt->val <= mask) in _get_table_maxdiv()
53 maxdiv = clkt->div; in _get_table_maxdiv()
60 const struct clk_div_table *clkt; in _get_table_mindiv() local
62 for (clkt = table; clkt->div; clkt++) in _get_table_mindiv()
63 if (clkt->div < mindiv) in _get_table_mindiv()
64 mindiv = clkt->div; in _get_table_mindiv()
83 const struct clk_div_table *clkt; in _get_table_div() local
85 for (clkt = table; clkt->div; clkt++) in _get_table_div()
86 if (clkt->val == val) in _get_table_div()
87 return clkt->div; in _get_table_div()
108 const struct clk_div_table *clkt; in _get_table_val() local
110 for (clkt = table; clkt->div; clkt++) in _get_table_val()
111 if (clkt->div == div) in _get_table_val()
112 return clkt->val; in _get_table_val()
165 const struct clk_div_table *clkt; in _is_valid_table_div() local
167 for (clkt = table; clkt->div; clkt++) in _is_valid_table_div()
168 if (clkt->div == div) in _is_valid_table_div()
185 const struct clk_div_table *clkt; in _round_up_table() local
188 for (clkt = table; clkt->div; clkt++) { in _round_up_table()
189 if (clkt->div == div) in _round_up_table()
190 return clkt->div; in _round_up_table()
191 else if (clkt->div < div) in _round_up_table()
194 if ((clkt->div - div) < (up - div)) in _round_up_table()
195 up = clkt->div; in _round_up_table()
203 const struct clk_div_table *clkt; in _round_down_table() local
206 for (clkt = table; clkt->div; clkt++) { in _round_down_table()
207 if (clkt->div == div) in _round_down_table()
208 return clkt->div; in _round_down_table()
209 else if (clkt->div > div) in _round_down_table()
212 if ((div - clkt->div) < (div - down)) in _round_down_table()
213 down = clkt->div; in _round_down_table()