Lines Matching refs:table
35 static unsigned int _get_table_maxdiv(const struct clk_div_table *table) in _get_table_maxdiv() argument
40 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
46 static unsigned int _get_table_mindiv(const struct clk_div_table *table) in _get_table_mindiv() argument
51 for (clkt = table; clkt->div; clkt++) in _get_table_mindiv()
63 if (divider->table) in _get_maxdiv()
64 return _get_table_maxdiv(divider->table); in _get_maxdiv()
68 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument
73 for (clkt = table; clkt->div; clkt++) in _get_table_div()
85 if (divider->table) in _get_div()
86 return _get_table_div(divider->table, val); in _get_div()
90 static unsigned int _get_table_val(const struct clk_div_table *table, in _get_table_val() argument
95 for (clkt = table; clkt->div; clkt++) in _get_table_val()
107 if (divider->table) in _get_val()
108 return _get_table_val(divider->table, div); in _get_val()
132 static bool _is_valid_table_div(const struct clk_div_table *table, in _is_valid_table_div() argument
137 for (clkt = table; clkt->div; clkt++) in _is_valid_table_div()
147 if (divider->table) in _is_valid_div()
148 return _is_valid_table_div(divider->table, div); in _is_valid_div()
152 static int _round_up_table(const struct clk_div_table *table, int div) in _round_up_table() argument
157 for (clkt = table; clkt->div; clkt++) { in _round_up_table()
170 static int _round_down_table(const struct clk_div_table *table, int div) in _round_down_table() argument
173 int down = _get_table_mindiv(table); in _round_down_table()
175 for (clkt = table; clkt->div; clkt++) { in _round_down_table()
195 if (divider->table) in _div_round_up()
196 div = _round_up_table(divider->table, div); in _div_round_up()
212 } else if (divider->table) { in _div_round_closest()
213 up = _round_up_table(divider->table, div); in _div_round_closest()
214 down = _round_down_table(divider->table, div); in _div_round_closest()
247 if (divider->table) in _next_div()
248 return _round_up_table(divider->table, div); in _next_div()
373 u8 clk_divider_flags, const struct clk_div_table *table, in _register_divider() argument
407 div->table = table; in _register_divider()
457 u8 clk_divider_flags, const struct clk_div_table *table, in clk_register_divider_table() argument
461 width, clk_divider_flags, table, lock); in clk_register_divider_table()