Searched refs:ddiv2 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/clk/x86/ |
H A D | clk-cgu.c | 434 lgm_clk_get_ddiv_val(u32 div, u32 *ddiv1, u32 *ddiv2) in lgm_clk_get_ddiv_val() argument 439 *ddiv2 = 1; in lgm_clk_get_ddiv_val() 455 *ddiv2 = idx; 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() 485 ddiv2 - 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() 515 do_div(rate64, ddiv2); in lgm_clk_ddiv_round_rate()
|