Lines Matching refs:fout
3460 static int madera_find_main_fratio(unsigned int fref, unsigned int fout, in madera_find_main_fratio() argument
3465 while ((fout / (ratio * fref)) > MADERA_FLL_MAX_N) in madera_find_main_fratio()
3488 fll->fout, in madera_find_fratio()
3500 return madera_find_main_fratio(fref, fll->fout, fratio); in madera_find_fratio()
3566 if (fll->fout % (ratio * fref)) { in madera_calc_fratio()
3582 if (fll->fout % (ratio * fref)) { in madera_calc_fratio()
3631 fref, fll->fout, fll->fout * MADERA_FLL_VCO_MULT); in madera_calc_fll()
3641 cfg->n = fll->fout / (ratio * fref); in madera_calc_fll()
3643 if (fll->fout % (ratio * fref)) { in madera_calc_fll()
3644 gcd_fll = gcd(fll->fout, ratio * fref); in madera_calc_fll()
3647 cfg->theta = (fll->fout - (cfg->n * ratio * fref)) in madera_calc_fll()
3970 if (fll->fout < MADERA_FLL_MIN_FOUT || in madera_enable_fll()
3971 fll->fout > MADERA_FLL_MAX_FOUT) { in madera_enable_fll()
3972 madera_fll_err(fll, "invalid fout %uHz\n", fll->fout); in madera_enable_fll()
4114 if (fll->fout) { in madera_apply_fll()
4123 unsigned int fref, unsigned int fout) in madera_set_fll_syncclk() argument
4142 unsigned int fref, unsigned int fout) in madera_set_fll_refclk() argument
4147 fll->ref_freq == fref && fll->fout == fout) in madera_set_fll_refclk()
4154 if (fout && fout != fll->fout) { in madera_set_fll_refclk()
4167 fll->fout = fout; in madera_set_fll_refclk()
4218 unsigned int fout; member
4226 .fout = 49152000,
4233 .fout = 45158400,
4332 unsigned int fin, unsigned int fout) in madera_set_fll_ao_refclk() argument
4340 fll->ref_freq == fin && fll->fout == fout) in madera_set_fll_ao_refclk()
4344 fin, fout, source); in madera_set_fll_ao_refclk()
4346 if (fout && (fll->ref_freq != fin || fll->fout != fout)) { in madera_set_fll_ao_refclk()
4349 madera_fllao_settings[i].fout == fout) in madera_set_fll_ao_refclk()
4365 fll->fout = fout; in madera_set_fll_ao_refclk()
4367 if (fout) in madera_set_fll_ao_refclk()
4423 int refdiv, fref, fout, lockdet_thr, fbdiv, hp, fast_clk, fllgcd; in madera_fllhj_apply() local
4428 madera_fll_dbg(fll, "fin=%d, fout=%d\n", fin, fll->fout); in madera_fllhj_apply()
4440 fout = fll->fout; in madera_fllhj_apply()
4441 frac = fout % fref; in madera_fllhj_apply()
4463 fout = fll->fout * 6; in madera_fllhj_apply()
4477 ratio = fout / fref; in madera_fllhj_apply()
4501 fllgcd = gcd(fout, fbdiv * fref); in madera_fllhj_apply()
4502 num = fout / fllgcd; in madera_fllhj_apply()
4633 unsigned int fout) in madera_fllhj_validate() argument
4635 if (fout && !ref_in) { in madera_fllhj_validate()
4640 if (fll->fout && fout != fll->fout) { in madera_fllhj_validate()
4654 unsigned int fin, unsigned int fout) in madera_fllhj_set_refclk() argument
4662 if (fout) in madera_fllhj_set_refclk()
4663 fout /= 2; in madera_fllhj_set_refclk()
4666 fll->fout == fout) in madera_fllhj_set_refclk()
4669 if (fin && fout && madera_fllhj_validate(fll, fin, fout)) in madera_fllhj_set_refclk()
4674 fll->fout = fout; in madera_fllhj_set_refclk()
4676 if (fout) in madera_fllhj_set_refclk()