Searched refs:divq (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.4/drivers/clk/analogbits/ |
D | wrpll-cln28hpc.c | 147 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 …]
|
/Linux-v5.4/drivers/clk/ |
D | clk-highbank.c | 97 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 …]
|
/Linux-v5.4/drivers/clk/imx/ |
D | clk-sccg-pll.c | 73 int divq; member 136 for (temp_setup->divq = 0; temp_setup->divq <= PLL_DIVQ_MAX; in clk_sccg_divq_lookup() 137 temp_setup->divq++) { in clk_sccg_divq_lookup() 145 do_div(temp_setup->fout, 2 * (temp_setup->divq + 1)); in clk_sccg_divq_lookup() 340 u32 val, divr1, divf1, divr2, divf2, divq; in clk_sccg_pll_recalc_rate() local 348 divq = FIELD_GET(PLL_DIVQ_MASK, val); in clk_sccg_pll_recalc_rate() 357 do_div(temp64, (divr2 + 1) * (divq + 1)); in clk_sccg_pll_recalc_rate() 361 do_div(temp64, (divr1 + 1) * (divr2 + 1) * (divq + 1)); in clk_sccg_pll_recalc_rate() 387 val |= FIELD_PREP(PLL_DIVQ_MASK, setup->divq); in clk_sccg_pll_set_rate()
|
D | clk-frac-pll.c | 99 u32 val, divff, divfi, divq; in clk_pll_recalc_rate() local 104 divq = (FIELD_GET(PLL_OUTPUT_DIV_MASK, val) + 1) * 2; in clk_pll_recalc_rate() 112 do_div(temp64, divq); in clk_pll_recalc_rate() 115 do_div(rate, divq); in clk_pll_recalc_rate()
|
/Linux-v5.4/drivers/clk/socfpga/ |
D | clk-pll.c | 42 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()
|
D | clk-pll-a10.c | 38 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()
|
/Linux-v5.4/include/linux/clk/ |
D | analogbits-wrpll-cln28hpc.h | 60 u8 divq; member
|
/Linux-v5.4/drivers/media/pci/solo6x10/ |
D | solo6x10-core.c | 524 u32 divq, divf; in solo_pci_probe() local 529 divq = 3; in solo_pci_probe() 532 divq = 2; in solo_pci_probe() 539 (divq << 12) | in solo_pci_probe()
|
/Linux-v5.4/drivers/clk/sifive/ |
D | fu540-prci.c | 248 c->divq = v; in __prci_wrpll_unpack() 282 r |= c->divq << PRCI_COREPLLCFG0_DIVQ_SHIFT; in __prci_wrpll_pack()
|