Lines Matching full:dout
131 unsigned long f, dout, best_f, fvco; in axi_clkgen_calc_params() local
160 dout = DIV_ROUND_CLOSEST(fvco, fout); in axi_clkgen_calc_params()
161 dout = clamp_t(unsigned long, dout, 1, 128 << fract_shift); in axi_clkgen_calc_params()
162 f = fvco / dout; in axi_clkgen_calc_params()
167 *best_dout = dout << (3 - fract_shift); in axi_clkgen_calc_params()
341 unsigned int d, m, dout; in axi_clkgen_set_rate() local
350 axi_clkgen_calc_params(limits, parent_rate, rate, &d, &m, &dout); in axi_clkgen_set_rate()
352 if (d == 0 || dout == 0 || m == 0) in axi_clkgen_set_rate()
355 if ((dout & 0x7) != 0 || (m & 0x7) != 0) in axi_clkgen_set_rate()
363 axi_clkgen_calc_clk_params(dout >> 3, dout & 0x7, ¶ms); in axi_clkgen_set_rate()
392 unsigned int d, m, dout; in axi_clkgen_determine_rate() local
396 &d, &m, &dout); in axi_clkgen_determine_rate()
398 if (d == 0 || dout == 0 || m == 0) in axi_clkgen_determine_rate()
402 tmp = DIV_ROUND_CLOSEST_ULL(tmp, dout * d); in axi_clkgen_determine_rate()
439 unsigned int d, m, dout; in axi_clkgen_recalc_rate() local
443 dout = axi_clkgen_get_div(axi_clkgen, MMCM_REG_CLKOUT0_1, in axi_clkgen_recalc_rate()
454 if (d == 0 || dout == 0) in axi_clkgen_recalc_rate()
458 tmp = DIV_ROUND_CLOSEST_ULL(tmp, dout * d); in axi_clkgen_recalc_rate()