Lines Matching refs:clkt
34 const struct clk_div_table *clkt; in _get_table_maxdiv() local
36 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
37 if (clkt->div > maxdiv) in _get_table_maxdiv()
38 maxdiv = clkt->div; in _get_table_maxdiv()
56 const struct clk_div_table *clkt; in _get_table_div() local
58 for (clkt = table; clkt->div; clkt++) in _get_table_div()
59 if (clkt->val == val) in _get_table_div()
60 return clkt->div; in _get_table_div()
78 const struct clk_div_table *clkt; in _get_table_val() local
80 for (clkt = table; clkt->div; clkt++) in _get_table_val()
81 if (clkt->div == div) in _get_table_val()
82 return clkt->val; in _get_table_val()
126 const struct clk_div_table *clkt; in _is_valid_table_div() local
128 for (clkt = table; clkt->div; clkt++) in _is_valid_table_div()
129 if (clkt->div == div) in _is_valid_table_div()
146 const struct clk_div_table *clkt; in _div_round_up() local
150 for (clkt = table; clkt->div; clkt++) { in _div_round_up()
151 if (clkt->div == div) in _div_round_up()
152 return clkt->div; in _div_round_up()
153 else if (clkt->div < div) in _div_round_up()
156 if ((clkt->div - div) < (up - div)) in _div_round_up()
157 up = clkt->div; in _div_round_up()