Home
last modified time | relevance | path

Searched refs:WZRD_FRAC_POINTS (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/clk/xilinx/
H A Dclk-xlnx-clock-wizard.c69 #define WZRD_FRAC_POINTS 1000 macro
267 rate_div = DIV_ROUND_CLOSEST_ULL((vco_freq * WZRD_FRAC_POINTS), rate); in clk_wzrd_dynamic_all_nolock()
269 clockout0_div = div_u64(rate_div, WZRD_FRAC_POINTS); in clk_wzrd_dynamic_all_nolock()
271 pre = DIV_ROUND_CLOSEST_ULL(vco_freq * WZRD_FRAC_POINTS, rate); in clk_wzrd_dynamic_all_nolock()
272 f = (pre - (clockout0_div * WZRD_FRAC_POINTS)); in clk_wzrd_dynamic_all_nolock()
331 div = DIV_ROUND_CLOSEST(d * (WZRD_FRAC_POINTS * o + f), WZRD_FRAC_POINTS); in clk_wzrd_recalc_rate_all()
357 f = DIV_ROUND_CLOSEST_ULL(rate * WZRD_FRAC_POINTS, int_freq); in clk_wzrd_round_rate_all()
358 rate = DIV_ROUND_CLOSEST(int_freq * f, WZRD_FRAC_POINTS); in clk_wzrd_round_rate_all()