Home
last modified time | relevance | path

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

/linux/drivers/clk/zynqmp/
H A Dpll.c184 long rate_div, frac, m, f; in zynqmp_pll_set_rate() local
187 rate_div = (rate * FRAC_DIV) / parent_rate; in zynqmp_pll_set_rate()
188 f = rate_div % FRAC_DIV; in zynqmp_pll_set_rate()
192 m = rate_div / FRAC_DIV; in zynqmp_pll_set_rate()
/linux/drivers/clk/xilinx/
H A Dclk-xlnx-clock-wizard.c499 unsigned long vco_freq, rate_div, clockout0_div; in clk_wzrd_dynamic_all_nolock() local
509 rate_div = DIV_ROUND_CLOSEST_ULL((vco_freq * WZRD_FRAC_POINTS), rate); in clk_wzrd_dynamic_all_nolock()
511 clockout0_div = div_u64(rate_div, WZRD_FRAC_POINTS); in clk_wzrd_dynamic_all_nolock()
718 unsigned long rate_div, f, clockout0_div; in clk_wzrd_dynamic_reconfig_f() local
722 rate_div = DIV_ROUND_DOWN_ULL(parent_rate * 1000, rate); in clk_wzrd_dynamic_reconfig_f()
723 clockout0_div = rate_div / 1000; in clk_wzrd_dynamic_reconfig_f()