Lines Matching refs:mul

303 		ldev->g_config.mul = 1;  in litex_clk_update_global_config()
313 ldev->g_config.mul = low_time + high_time; in litex_clk_update_global_config()
327 static uint64_t litex_clk_calc_global_frequency(uint32_t mul, uint32_t div) in litex_clk_calc_global_frequency() argument
331 f = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC * (uint64_t)mul; in litex_clk_calc_global_frequency()
343 f = litex_clk_calc_global_frequency(ldev->g_config.mul, in litex_clk_get_real_global_frequency()
347 ldev->ts_g_config.mul = ldev->g_config.mul; in litex_clk_get_real_global_frequency()
473 ldev->ts_g_config.freq, ldev->ts_g_config.mul, in litex_clk_print_all_params()
477 ldev->g_config.freq, ldev->g_config.mul, ldev->g_config.div); in litex_clk_print_all_params()
618 mul = ldev->ts_g_config.mul; in litex_clk_set_mulreg() local
621 if (mul == 1) { in litex_clk_set_mulreg()
624 ht = mul / 2; in litex_clk_set_mulreg()
626 edge = mul % 2; in litex_clk_set_mulreg()
651 ldev->g_config.mul = mul; in litex_clk_set_mulreg()
652 LOG_DBG("Global multiplier set to %u", mul); in litex_clk_set_mulreg()
660 uint32_t filt, mul; in litex_clk_set_filt() local
663 mul = ldev->g_config.mul; in litex_clk_set_filt()
664 filt = litex_clk_lookup_filter(mul); in litex_clk_set_filt()
690 uint32_t mul; in litex_clk_set_lock() local
694 mul = ldev->g_config.mul; in litex_clk_set_lock()
695 lock = litex_clk_lookup_lock(mul); in litex_clk_set_lock()
749 ldev->g_config.mul, in litex_clk_set_both_globs()
754 ldev->ts_g_config.mul, in litex_clk_set_both_globs()
804 set_mul = ldev->ts_g_config.mul != ldev->g_config.mul; in litex_clk_set_globs()
1221 uint64_t f = litex_clk_calc_global_frequency(ldev->ts_g_config.mul, in litex_clk_calc_rate()
1287 ldev->ts_g_config.div, ldev->ts_g_config.mul); in litex_clk_calc_clkout_params()
1313 uint32_t div, mul; in litex_clk_calc_all_params() local
1318 for (mul = ldev->clkfbout.max; mul >= ldev->clkfbout.min; in litex_clk_calc_all_params()
1319 mul--) { in litex_clk_calc_all_params()
1322 vco_freq = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC * (uint64_t)mul; in litex_clk_calc_all_params()
1333 ldev->ts_g_config.mul = mul; in litex_clk_calc_all_params()
1338 ldev->ts_g_config.mul); in litex_clk_calc_all_params()