Searched refs:div_sel (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/clk/sophgo/ |
D | clk-cv18xx-pll.c | 22 unsigned long div_sel, in ipll_calc_rate() argument 27 rate *= div_sel; in ipll_calc_rate() 53 unsigned long pre_div_sel = 0, div_sel = 0, post_div_sel = 0; in ipll_find_rate() local 69 div_sel = div; in ipll_find_rate() 79 detected = PLL_SET_DIV_SEL(detected, div_sel); in ipll_find_rate() 97 static void pll_get_mode_ctrl(unsigned long div_sel, in pll_get_mode_ctrl() argument 109 if (mode_ctrl_check(div_sel, ictrl, mode)) { in pll_get_mode_ctrl() 119 static bool ipll_check_mode_ctrl_restrict(unsigned long div_sel, in ipll_check_mode_ctrl_restrict() argument 123 unsigned long left_rest = 20 * div_sel; in ipll_check_mode_ctrl_restrict() 124 unsigned long right_rest = 35 * div_sel; in ipll_check_mode_ctrl_restrict() [all …]
|
/linux-6.12.1/drivers/accel/habanalabs/goya/ |
D | goya.c | 748 u32 nr = 0, nf = 0, od = 0, div_fctr = 0, pll_clk, div_sel; in goya_fetch_psoc_frequency() local 767 div_sel = RREG32(mmPSOC_PCI_PLL_DIV_SEL_1); in goya_fetch_psoc_frequency() 772 if (div_sel == DIV_SEL_REF_CLK || in goya_fetch_psoc_frequency() 773 div_sel == DIV_SEL_DIVIDED_REF) { in goya_fetch_psoc_frequency() 774 if (div_sel == DIV_SEL_REF_CLK) in goya_fetch_psoc_frequency() 778 } else if (div_sel == DIV_SEL_PLL_CLK || in goya_fetch_psoc_frequency() 779 div_sel == DIV_SEL_DIVIDED_PLL) { in goya_fetch_psoc_frequency() 782 if (div_sel == DIV_SEL_PLL_CLK) in goya_fetch_psoc_frequency() 789 div_sel); in goya_fetch_psoc_frequency()
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi/ |
D | gaudi.c | 910 u32 nr = 0, nf = 0, od = 0, div_fctr = 0, pll_clk, div_sel; in gaudi_fetch_psoc_frequency() local 931 div_sel = RREG32(mmPSOC_CPU_PLL_DIV_SEL_2); in gaudi_fetch_psoc_frequency() 936 if (div_sel == DIV_SEL_REF_CLK || in gaudi_fetch_psoc_frequency() 937 div_sel == DIV_SEL_DIVIDED_REF) { in gaudi_fetch_psoc_frequency() 938 if (div_sel == DIV_SEL_REF_CLK) in gaudi_fetch_psoc_frequency() 942 } else if (div_sel == DIV_SEL_PLL_CLK || in gaudi_fetch_psoc_frequency() 943 div_sel == DIV_SEL_DIVIDED_PLL) { in gaudi_fetch_psoc_frequency() 946 if (div_sel == DIV_SEL_PLL_CLK) in gaudi_fetch_psoc_frequency() 951 dev_warn(hdev->dev, "Received invalid div select value: %#x", div_sel); in gaudi_fetch_psoc_frequency()
|