Lines Matching defs:divider
57 /* Convert a divider into the scaled divisor value it represents. */
64 * Build a scaled divider value as close as possible to the
81 /* The scaled minimum divisor representable by a divider */
91 /* The scaled maximum divisor representable by a divider */
105 * Convert a scaled divisor into its divider representation as
106 * stored in a divider register field.
109 divider(struct bcm_clk_div *div, u64 scaled_div)
563 /* Read a divider value and return the scaled divisor it represents. */
577 /* Extract the full divider field from the register value */
585 * Convert a divider's scaled divisor value into its recorded form
586 * and commit it into the hardware divider register.
602 * If we're just initializing the divider, and no initial
616 reg_div = divider(div, div->u.s.scaled_div);
625 /* Replace the divider value and record the result */
643 * Initialize a divider by committing our desired state to hardware
690 * into account a divider and an optional pre-divider. The
691 * pre-divider register pointer may be NULL.
708 * If there is a pre-divider, divide the scaled parent rate
709 * by the pre-divider value first. In this case--to improve
710 * accuracy--scale the parent rate by *both* the pre-divider
711 * value and the divider before actually computing the
712 * result of the pre-divider.
714 * If there's only one divider, just scale the parent rate.
741 * into two dividers. The pre-divider can be NULL, and even if it's
742 * non-null it may be nonexistent. It's also OK for the divider to
743 * be nonexistent, and in that case the pre-divider is also ignored.
746 * value used by the (downstream) divider to produce that rate.
764 * If there is a pre-divider, divide the scaled parent rate
765 * by the pre-divider value first. In this case--to improve
766 * accuracy--scale the parent rate by *both* the pre-divider
767 * value and the divider before actually computing the
768 * result of the pre-divider.
770 * If there's only one divider, just scale the parent rate.
772 * For simplicity we treat the pre-divider as fixed (for now).
788 * Compute the best possible divider and ensure it is in
789 * range. A fixed divider can't be changed, so just report
1149 * A fixed divider can't be changed. (Nor can a fixed
1150 * pre-divider be, but for now we never actually try to
1165 * We aren't updating any pre-divider at this point, so
1217 pr_err("%s: error initializing divider for %s\n", __func__,
1223 * For the pre-divider and selector, the pre-trigger is used
1230 pr_err("%s: error initializing pre-divider for %s\n", __func__,