Searched refs:div_sel (Results 1 – 3 of 3) sorted by relevance
| /linux-6.15/drivers/clk/sophgo/ |
| H A D | clk-cv18xx-pll.c | 22 unsigned long div_sel, in ipll_calc_rate() argument 27 rate *= div_sel; in ipll_calc_rate() 69 div_sel = div; in ipll_find_rate() 109 if (mode_ctrl_check(div_sel, ictrl, mode)) { in pll_get_mode_ctrl() 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() 198 unsigned long div_sel, in fpll_calc_rate() argument 203 u64 dividend = parent_rate * div_sel; in fpll_calc_rate() 308 div_sel = div; in fpll_find_rate() 345 unsigned long left_rest = 10 * div_sel; in fpll_check_mode_ctrl_restrict() [all …]
|
| /linux-6.15/drivers/accel/habanalabs/goya/ |
| H A 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.15/drivers/accel/habanalabs/gaudi/ |
| H A 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()
|