Lines Matching full:flags

31 	if (divider->flags & CLK_DIVIDER_BIG_ENDIAN)  in clk_div_readl()
39 if (divider->flags & CLK_DIVIDER_BIG_ENDIAN) in clk_div_writel()
69 unsigned long flags) in _get_maxdiv() argument
71 if (flags & CLK_DIVIDER_ONE_BASED) in _get_maxdiv()
73 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_maxdiv()
92 unsigned int val, unsigned long flags, u8 width) in _get_div() argument
94 if (flags & CLK_DIVIDER_ONE_BASED) in _get_div()
96 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_div()
98 if (flags & CLK_DIVIDER_MAX_AT_ZERO) in _get_div()
117 unsigned int div, unsigned long flags, u8 width) in _get_val() argument
119 if (flags & CLK_DIVIDER_ONE_BASED) in _get_val()
121 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_val()
123 if (flags & CLK_DIVIDER_MAX_AT_ZERO) in _get_val()
133 unsigned long flags, unsigned long width) in divider_recalc_rate() argument
137 div = _get_div(table, val, flags, width); in divider_recalc_rate()
139 WARN(!(flags & CLK_DIVIDER_ALLOW_ZERO), in divider_recalc_rate()
159 divider->flags, divider->width); in clk_divider_recalc_rate()
174 unsigned long flags) in _is_valid_div() argument
176 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _is_valid_div()
221 unsigned long flags) in _div_round_up() argument
225 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _div_round_up()
235 unsigned long flags) in _div_round_closest() argument
243 if (flags & CLK_DIVIDER_POWER_OF_TWO) { in _div_round_closest()
259 unsigned long flags) in _div_round() argument
261 if (flags & CLK_DIVIDER_ROUND_CLOSEST) in _div_round()
262 return _div_round_closest(table, parent_rate, rate, flags); in _div_round()
264 return _div_round_up(table, parent_rate, rate, flags); in _div_round()
268 unsigned long best, unsigned long flags) in _is_best_div() argument
270 if (flags & CLK_DIVIDER_ROUND_CLOSEST) in _is_best_div()
277 unsigned long flags) in _next_div() argument
281 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _next_div()
293 unsigned long flags) in clk_divider_bestdiv() argument
302 maxdiv = _get_maxdiv(table, width, flags); in clk_divider_bestdiv()
306 bestdiv = _div_round(table, parent_rate, rate, flags); in clk_divider_bestdiv()
318 for (i = _next_div(table, 0, flags); i <= maxdiv; in clk_divider_bestdiv()
319 i = _next_div(table, i, flags)) { in clk_divider_bestdiv()
331 if (_is_best_div(rate, now, best, flags)) { in clk_divider_bestdiv()
339 bestdiv = _get_maxdiv(table, width, flags); in clk_divider_bestdiv()
348 unsigned long flags) in divider_determine_rate() argument
353 &req->best_parent_rate, table, width, flags); in divider_determine_rate()
363 unsigned long flags, unsigned int val) in divider_ro_determine_rate() argument
367 div = _get_div(table, val, flags, width); in divider_ro_determine_rate()
387 u8 width, unsigned long flags) in divider_round_rate_parent() argument
396 ret = divider_determine_rate(hw, &req, table, width, flags); in divider_round_rate_parent()
409 unsigned long flags, unsigned int val) in divider_ro_round_rate_parent() argument
418 ret = divider_ro_determine_rate(hw, &req, table, width, flags, val); in divider_ro_round_rate_parent()
434 if (divider->flags & CLK_DIVIDER_READ_ONLY) { in clk_divider_round_rate()
441 divider->width, divider->flags, in clk_divider_round_rate()
446 divider->width, divider->flags); in clk_divider_round_rate()
455 if (divider->flags & CLK_DIVIDER_READ_ONLY) { in clk_divider_determine_rate()
463 divider->flags, val); in clk_divider_determine_rate()
467 divider->flags); in clk_divider_determine_rate()
472 unsigned long flags) in divider_get_val() argument
478 if (!_is_valid_div(table, div, flags)) in divider_get_val()
481 value = _get_val(table, div, flags, width); in divider_get_val()
492 unsigned long flags = 0; in clk_divider_set_rate() local
496 divider->width, divider->flags); in clk_divider_set_rate()
501 spin_lock_irqsave(divider->lock, flags); in clk_divider_set_rate()
505 if (divider->flags & CLK_DIVIDER_HIWORD_MASK) { in clk_divider_set_rate()
515 spin_unlock_irqrestore(divider->lock, flags); in clk_divider_set_rate()
540 const struct clk_parent_data *parent_data, unsigned long flags, in __clk_hw_register_divider() argument
566 init.flags = flags; in __clk_hw_register_divider()
579 div->flags = clk_divider_flags; in __clk_hw_register_divider()
602 * @flags: framework-specific flags
606 * @clk_divider_flags: divider-specific flags for this clock
611 const char *parent_name, unsigned long flags, in clk_register_divider_table() argument
619 NULL, flags, reg, shift, width, clk_divider_flags, in clk_register_divider_table()
666 const struct clk_parent_data *parent_data, unsigned long flags, in __devm_clk_hw_register_divider() argument
677 parent_data, flags, reg, shift, width, in __devm_clk_hw_register_divider()