Lines Matching refs:table
184 static unsigned int _get_table_div(const struct div_table_cfg *table, in _get_table_div() argument
189 for (clkt = table; clkt->div; clkt++) in _get_table_div()
196 static unsigned int _get_table_val(const struct div_table_cfg *table, in _get_table_val() argument
201 for (clkt = table; clkt->div; clkt++) in _get_table_val()
208 static unsigned int _get_div(const struct div_table_cfg *table, in _get_div() argument
221 if (table) in _get_div()
222 return _get_table_div(table, val); in _get_div()
227 static unsigned int _get_val(const struct div_table_cfg *table, in _get_val() argument
240 if (table) in _get_val()
241 return _get_table_val(table, div); in _get_val()
246 static bool _is_valid_table_div(const struct div_table_cfg *table, in _is_valid_table_div() argument
251 for (clkt = table; clkt->div; clkt++) in _is_valid_table_div()
258 static bool _is_valid_div(const struct div_table_cfg *table, in _is_valid_div() argument
264 if (table) in _is_valid_div()
265 return _is_valid_table_div(table, div); in _is_valid_div()
271 const struct div_table_cfg *table, uint8_t width, in divider_get_val() argument
279 if (!_is_valid_div(table, div, flags)) in divider_get_val()
282 value = _get_val(table, div, flags, width); in divider_get_val()
328 div = _get_div(divider->table, val, divider->flags, divider->width); in stm32_div_get_rate()
342 value = divider_get_val(rate, prate, divider->table, in stm32_div_set_rate()