Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/clk/
Dclk-highbank.c97 unsigned long divf, divq, vco_freq, reg; in clk_pll_recalc_rate() local
103 divf = (reg & HB_PLL_DIVF_MASK) >> HB_PLL_DIVF_SHIFT; in clk_pll_recalc_rate()
105 vco_freq = parent_rate * (divf + 1); in clk_pll_recalc_rate()
113 u32 divq, divf; in clk_pll_calc() local
127 divf = (vco_freq + (ref_freq / 2)) / ref_freq; in clk_pll_calc()
128 divf--; in clk_pll_calc()
131 *pdivf = divf; 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()
142 return (ref_freq * (divf + 1)) / (1 << divq); in clk_pll_round_rate()
[all …]
/kernel/linux/linux-5.10/drivers/clk/socfpga/
Dclk-pll-a10.c38 unsigned long divf, divq, reg; in clk_pll_recalc_rate() local
43 divf = (reg & SOCFPGA_PLL_DIVF_MASK) >> SOCFPGA_PLL_DIVF_SHIFT; in clk_pll_recalc_rate()
45 vco_freq = (unsigned long long)parent_rate * (divf + 1); in clk_pll_recalc_rate()
Dclk-pll.c42 unsigned long divf, divq, reg; in clk_pll_recalc_rate() local
51 divf = (reg & SOCFPGA_PLL_DIVF_MASK) >> SOCFPGA_PLL_DIVF_SHIFT; in clk_pll_recalc_rate()
53 vco_freq = (unsigned long long)parent_rate * (divf + 1); in clk_pll_recalc_rate()
/kernel/linux/linux-5.10/drivers/clk/analogbits/
Dwrpll-cln28hpc.c299 c->divf = best_f - 1; in wrpll_configure_for_rate()
342 n = parent_rate * fbdiv * (c->divf + 1); in wrpll_calc_output_rate()
/kernel/linux/linux-5.10/include/linux/clk/
Danalogbits-wrpll-cln28hpc.h63 u16 divf; member
/kernel/linux/linux-5.10/drivers/ide/
Dide-proc.c256 div_factor = setting->divf ? setting->divf(drive) : 1; in ide_settings_proc_show()
370 div_factor = setting->divf ? setting->divf(drive) : 1; in ide_settings_proc_write()
/kernel/linux/linux-5.10/drivers/media/pci/solo6x10/
Dsolo6x10-core.c525 u32 divq, divf; in solo_pci_probe() local
531 divf = (solo_dev->clock_mhz * 4) / 3 - 1; in solo_pci_probe()
534 divf = (solo_dev->clock_mhz * 2) / 3 - 1; in solo_pci_probe()
541 (divf << 4) | in solo_pci_probe()
/kernel/linux/linux-5.10/drivers/clk/sifive/
Dfu540-prci.c244 c->divf = v; in __prci_wrpll_unpack()
281 r |= c->divf << PRCI_COREPLLCFG0_DIVF_SHIFT; in __prci_wrpll_pack()
/kernel/linux/linux-5.10/include/linux/
Dide.h960 int (*divf)(ide_drive_t *); member
969 .divf = _divf, \