Lines Matching refs:scale
377 int scale, int maxdiv, unsigned long *rv)
385 if (scale == 2) { /* only div-by-multiple-of-2 possible */
390 div2 = (div1 / scale) - 1; /* value to write to register */
397 div1 = ((div2 + 1) * scale);
403 int scale, int maxdiv)
437 tdv = alchemy_calc_div(req->rate, pr, scale, maxdiv, NULL);
458 for (j = (maxdiv == 4) ? 1 : scale; j <= maxdiv; j += scale) {
464 tdv = alchemy_calc_div(req->rate, pr, scale, maxdiv,
665 /* fg0-2 and fg4-6 share a "scale"-bit. With this bit cleared, the
680 v = alchemy_rdsys(c->reg) & (1 << 30); /* test "scale" bit */
703 if ((v & (1 << 30)) == 0) /* test scale bit */
713 int scale, maxdiv;
716 scale = 1;
719 scale = 2;
723 return alchemy_clk_fgcs_detr(hw, req, scale, maxdiv);
930 int scale = c->dt[2] == 3 ? 1 : 2; /* au1300 check */
932 return alchemy_clk_fgcs_detr(hw, req, scale, 4);