Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/x86/
H A Dclk-cgu.c434 lgm_clk_get_ddiv_val(u32 div, u32 *ddiv1, u32 *ddiv2) in lgm_clk_get_ddiv_val() argument
438 *ddiv1 = 1; in lgm_clk_get_ddiv_val()
454 *ddiv1 = temp; in lgm_clk_get_ddiv_val()
466 u32 div, ddiv1, ddiv2; in lgm_clk_ddiv_set_rate() local
478 if (lgm_clk_get_ddiv_val(div, &ddiv1, &ddiv2)) in lgm_clk_ddiv_set_rate()
482 ddiv1 - 1); in lgm_clk_ddiv_set_rate()
495 u32 div, ddiv1, ddiv2; in lgm_clk_ddiv_round_rate() local
509 if (lgm_clk_get_ddiv_val(div, &ddiv1, &ddiv2) != 0) in lgm_clk_ddiv_round_rate()
510 if (lgm_clk_get_ddiv_val(div + 1, &ddiv1, &ddiv2) != 0) in lgm_clk_ddiv_round_rate()
514 do_div(rate64, ddiv1); in lgm_clk_ddiv_round_rate()