Lines Matching refs:width

46 				      u8 width)  in _get_table_maxdiv()  argument
48 unsigned int maxdiv = 0, mask = clk_div_mask(width); in _get_table_maxdiv()
68 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument
72 return clk_div_mask(width); in _get_maxdiv()
74 return 1 << clk_div_mask(width); in _get_maxdiv()
76 return _get_table_maxdiv(table, width); in _get_maxdiv()
77 return clk_div_mask(width) + 1; in _get_maxdiv()
92 unsigned int val, unsigned long flags, u8 width) in _get_div() argument
99 return val ? val : clk_div_mask(width) + 1; in _get_div()
117 unsigned int div, unsigned long flags, u8 width) in _get_val() argument
124 return (div == clk_div_mask(width) + 1) ? 0 : div; 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()
156 val &= clk_div_mask(divider->width); in clk_divider_recalc_rate()
159 divider->flags, divider->width); in clk_divider_recalc_rate()
292 const struct clk_div_table *table, u8 width, in clk_divider_bestdiv() argument
302 maxdiv = _get_maxdiv(table, width, flags); in clk_divider_bestdiv()
339 bestdiv = _get_maxdiv(table, width, flags); in clk_divider_bestdiv()
347 const struct clk_div_table *table, u8 width, in divider_determine_rate() argument
353 &req->best_parent_rate, table, width, flags); in divider_determine_rate()
362 const struct clk_div_table *table, u8 width, 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()
408 const struct clk_div_table *table, u8 width, 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()
438 val &= clk_div_mask(divider->width); 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()
459 val &= clk_div_mask(divider->width); in clk_divider_determine_rate()
462 divider->width, in clk_divider_determine_rate()
466 return divider_determine_rate(hw, req, divider->table, divider->width, in clk_divider_determine_rate()
471 const struct clk_div_table *table, u8 width, in divider_get_val() argument
481 value = _get_val(table, div, flags, width); in divider_get_val()
483 return min_t(unsigned int, value, clk_div_mask(width)); in divider_get_val()
496 divider->width, divider->flags); in clk_divider_set_rate()
506 val = clk_div_mask(divider->width) << (divider->shift + 16); in clk_divider_set_rate()
509 val &= ~(clk_div_mask(divider->width) << divider->shift); in clk_divider_set_rate()
541 void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags, in __clk_hw_register_divider() argument
550 if (width + shift > 16) { in __clk_hw_register_divider()
578 div->width = width; in __clk_hw_register_divider()
612 void __iomem *reg, u8 shift, u8 width, in clk_register_divider_table() argument
619 NULL, flags, reg, shift, width, clk_divider_flags, in clk_register_divider_table()
667 void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags, in __devm_clk_hw_register_divider() argument
677 parent_data, flags, reg, shift, width, in __devm_clk_hw_register_divider()