Lines Matching refs:dout
113 unsigned long f, dout, best_f, fvco; in axi_clkgen_calc_params() local
142 dout = DIV_ROUND_CLOSEST(fvco, fout); in axi_clkgen_calc_params()
143 dout = clamp_t(unsigned long, dout, 1, 128 << fract_shift); in axi_clkgen_calc_params()
144 f = fvco / dout; in axi_clkgen_calc_params()
149 *best_dout = dout << (3 - fract_shift); in axi_clkgen_calc_params()
322 unsigned int d, m, dout; in axi_clkgen_set_rate() local
331 axi_clkgen_calc_params(parent_rate, rate, &d, &m, &dout); in axi_clkgen_set_rate()
333 if (d == 0 || dout == 0 || m == 0) in axi_clkgen_set_rate()
336 if ((dout & 0x7) != 0 || (m & 0x7) != 0) in axi_clkgen_set_rate()
344 axi_clkgen_calc_clk_params(dout >> 3, dout & 0x7, ¶ms); in axi_clkgen_set_rate()
371 unsigned int d, m, dout; in axi_clkgen_round_rate() local
374 axi_clkgen_calc_params(*parent_rate, rate, &d, &m, &dout); in axi_clkgen_round_rate()
376 if (d == 0 || dout == 0 || m == 0) in axi_clkgen_round_rate()
380 tmp = DIV_ROUND_CLOSEST_ULL(tmp, dout * d); in axi_clkgen_round_rate()
416 unsigned int d, m, dout; in axi_clkgen_recalc_rate() local
420 dout = axi_clkgen_get_div(axi_clkgen, MMCM_REG_CLKOUT0_1, in axi_clkgen_recalc_rate()
431 if (d == 0 || dout == 0) in axi_clkgen_recalc_rate()
435 tmp = DIV_ROUND_CLOSEST_ULL(tmp, dout * d); in axi_clkgen_recalc_rate()