Home
last modified time | relevance | path

Searched refs:nint (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/arch/mips/ath79/
Dclock.c212 static u32 __init ar934x_get_pll_freq(u32 ref, u32 ref_div, u32 nint, u32 nfrac, in ar934x_get_pll_freq() argument
219 t *= nint; in ar934x_get_pll_freq()
238 u32 pll, out_div, ref_div, nint, nfrac, frac, clk_ctrl, postdiv; in ar934x_clocks_init() local
258 nint = (pll >> AR934X_SRIF_DPLL1_NINT_SHIFT) & in ar934x_clocks_init()
270 nint = (pll >> AR934X_PLL_CPU_CONFIG_NINT_SHIFT) & in ar934x_clocks_init()
277 cpu_pll = ar934x_get_pll_freq(ref_rate, ref_div, nint, in ar934x_clocks_init()
285 nint = (pll >> AR934X_SRIF_DPLL1_NINT_SHIFT) & in ar934x_clocks_init()
297 nint = (pll >> AR934X_PLL_DDR_CONFIG_NINT_SHIFT) & in ar934x_clocks_init()
304 ddr_pll = ar934x_get_pll_freq(ref_rate, ref_div, nint, in ar934x_clocks_init()
356 u32 pll, out_div, ref_div, nint, frac, clk_ctrl, postdiv; in qca953x_clocks_init() local
[all …]
/Linux-v5.10/drivers/clk/sprd/
Dpll.c103 unsigned long rate, nint, kint = 0; in _sprd_pll_recalc_rate() local
127 nint = pinternal_val(pll, cfg, PLL_NINT); in _sprd_pll_recalc_rate()
137 k2 + refin * nint * CLK_PLL_1M; in _sprd_pll_recalc_rate()
155 unsigned long kint, nint; in _sprd_pll_set_rate() local
191 nint = do_div(fvco, refin * CLK_PLL_1M); in _sprd_pll_set_rate()
195 cfg[index].val |= (nint << shift) & mask; in _sprd_pll_set_rate()
202 tmp = fvco - refin * nint * CLK_PLL_1M; in _sprd_pll_set_rate()
/Linux-v5.10/drivers/media/dvb-frontends/
Dstb6100.c301 u32 nint, nfrac, fvco; in stb6100_get_frequency() local
312 nint = regs[STB6100_NI]; in stb6100_get_frequency()
314 fvco = (nfrac * state->reference >> (9 - psd2)) + (nint * state->reference << psd2); in stb6100_get_frequency()
319 state->frequency, odiv, psd2, state->reference, fvco, nint, nfrac); in stb6100_get_frequency()
331 u32 srate = 0, fvco, nint, nfrac; in stb6100_set_frequency() local
386 nint = fvco / (state->reference << psd2); in stb6100_set_frequency()
388 nfrac = DIV_ROUND_CLOSEST((fvco - (nint * state->reference << psd2)) in stb6100_set_frequency()
392 regs[STB6100_NI] = nint; in stb6100_set_frequency()
437 ptr->reg, fvco, nint, nfrac); in stb6100_set_frequency()
/Linux-v5.10/drivers/net/wireless/microchip/wilc1000/
Dspi.c863 static int wilc_spi_sync_ext(struct wilc *wilc, int nint) in wilc_spi_sync_ext() argument
869 if (nint > MAX_NUM_INT) { in wilc_spi_sync_ext()
870 dev_err(&spi->dev, "Too many interrupts (%d)...\n", nint); in wilc_spi_sync_ext()
901 for (i = 0; (i < 5) && (nint > 0); i++, nint--) in wilc_spi_sync_ext()
910 if (nint) { in wilc_spi_sync_ext()
918 for (i = 0; (i < 3) && (nint > 0); i++, nint--) in wilc_spi_sync_ext()
Dsdio.c874 static int wilc_sdio_sync_ext(struct wilc *wilc, int nint) in wilc_sdio_sync_ext() argument
880 if (nint > MAX_NUM_INT) { in wilc_sdio_sync_ext()
881 dev_err(&func->dev, "Too many interrupts (%d)...\n", nint); in wilc_sdio_sync_ext()
930 for (i = 0; (i < 5) && (nint > 0); i++, nint--) in wilc_sdio_sync_ext()
938 if (nint) { in wilc_sdio_sync_ext()
947 for (i = 0; (i < 3) && (nint > 0); i++, nint--) in wilc_sdio_sync_ext()
Dwlan.h335 int (*hif_sync_ext)(struct wilc *wilc, int nint);
/Linux-v5.10/drivers/media/tuners/
Dr820t.c534 u8 ni, si, nint, vco_fine_tune, val; in r820t_set_pll() local
613 nint = vco_freq / (2 * pll_ref); in r820t_set_pll()
614 vco_fra = vco_freq - 2 * pll_ref * nint; in r820t_set_pll()
621 nint++; in r820t_set_pll()
628 ni = (nint - 13) / 4; in r820t_set_pll()
629 si = nint - 4 * ni - 13; in r820t_set_pll()