Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/clk/analogbits/
Dwrpll-cln28hpc.c147 u8 divq = 0; in __wrpll_calc_divq() local
156 divq = 1; in __wrpll_calc_divq()
159 divq = ilog2(MAX_DIVQ_DIVISOR); in __wrpll_calc_divq()
162 divq = ilog2(s); in __wrpll_calc_divq()
163 *vco_rate = (u64)target_rate << divq; in __wrpll_calc_divq()
167 return divq; in __wrpll_calc_divq()
227 u8 fbdiv, divq, best_r, r; in wrpll_configure_for_rate() local
255 divq = __wrpll_calc_divq(target_rate, &target_vco_rate); in wrpll_configure_for_rate()
256 if (!divq) in wrpll_configure_for_rate()
258 c->divq = divq; in wrpll_configure_for_rate()
[all …]
/kernel/linux/linux-5.10/drivers/clk/
Dclk-highbank.c97 unsigned long divf, divq, vco_freq, reg; in clk_pll_recalc_rate() local
104 divq = (reg & HB_PLL_DIVQ_MASK) >> HB_PLL_DIVQ_SHIFT; in clk_pll_recalc_rate()
107 return vco_freq / (1 << divq); in clk_pll_recalc_rate()
113 u32 divq, divf; in clk_pll_calc() local
121 for (divq = 1; divq <= 6; divq++) { in clk_pll_calc()
122 if ((rate * (1 << divq)) >= HB_PLL_VCO_MIN_FREQ) in clk_pll_calc()
126 vco_freq = rate * (1 << divq); in clk_pll_calc()
130 *pdivq = divq; in clk_pll_calc()
137 u32 divq, divf; in clk_pll_round_rate() local
140 clk_pll_calc(rate, ref_freq, &divq, &divf); in clk_pll_round_rate()
[all …]
/kernel/linux/linux-5.10/drivers/clk/imx/
Dclk-sscg-pll.c74 int divq; member
133 for (temp_setup->divq = 0; temp_setup->divq <= PLL_DIVQ_MAX; in clk_sscg_divq_lookup()
134 temp_setup->divq++) { in clk_sscg_divq_lookup()
142 do_div(temp_setup->fout, 2 * (temp_setup->divq + 1)); in clk_sscg_divq_lookup()
331 u32 val, divr1, divf1, divr2, divf2, divq; in clk_sscg_pll_recalc_rate() local
339 divq = FIELD_GET(PLL_DIVQ_MASK, val); in clk_sscg_pll_recalc_rate()
348 do_div(temp64, (divr2 + 1) * (divq + 1)); in clk_sscg_pll_recalc_rate()
352 do_div(temp64, (divr1 + 1) * (divr2 + 1) * (divq + 1)); in clk_sscg_pll_recalc_rate()
378 val |= FIELD_PREP(PLL_DIVQ_MASK, setup->divq); in clk_sscg_pll_set_rate()
Dclk-frac-pll.c100 u32 val, divff, divfi, divq; in clk_pll_recalc_rate() local
105 divq = (FIELD_GET(PLL_OUTPUT_DIV_MASK, val) + 1) * 2; in clk_pll_recalc_rate()
113 do_div(temp64, divq); in clk_pll_recalc_rate()
116 do_div(rate, divq); in clk_pll_recalc_rate()
/kernel/linux/linux-5.10/drivers/clk/socfpga/
Dclk-pll-a10.c38 unsigned long divf, divq, reg; in clk_pll_recalc_rate() local
44 divq = (reg & SOCFPGA_PLL_DIVQ_MASK) >> SOCFPGA_PLL_DIVQ_SHIFT; in clk_pll_recalc_rate()
46 do_div(vco_freq, (1 + divq)); in clk_pll_recalc_rate()
Dclk-pll.c42 unsigned long divf, divq, reg; in clk_pll_recalc_rate() local
52 divq = (reg & SOCFPGA_PLL_DIVQ_MASK) >> SOCFPGA_PLL_DIVQ_SHIFT; in clk_pll_recalc_rate()
54 do_div(vco_freq, (1 + divq)); in clk_pll_recalc_rate()
/kernel/linux/linux-5.10/include/linux/clk/
Danalogbits-wrpll-cln28hpc.h60 u8 divq; member
/kernel/linux/linux-5.10/drivers/media/pci/solo6x10/
Dsolo6x10-core.c525 u32 divq, divf; in solo_pci_probe() local
530 divq = 3; in solo_pci_probe()
533 divq = 2; in solo_pci_probe()
540 (divq << 12) | in solo_pci_probe()
/kernel/linux/linux-5.10/drivers/clk/sifive/
Dfu540-prci.c248 c->divq = v; in __prci_wrpll_unpack()
282 r |= c->divq << PRCI_COREPLLCFG0_DIVQ_SHIFT; in __prci_wrpll_pack()