ndiv              227 arch/mips/bcm63xx/cpu.c 		unsigned int tmp, p1, p2, ndiv, m1;
ndiv              238 arch/mips/bcm63xx/cpu.c 		ndiv = (tmp & DMIPSPLLCFG_6368_NDIV_MASK) >>
ndiv              245 arch/mips/bcm63xx/cpu.c 		return (((64 * 1000000) / p1) * p2 * ndiv) / m1;
ndiv              351 drivers/bcma/driver_chipcommon_pmu.c 	u32 tmp, div, ndiv, p1, p2, fc;
ndiv              375 drivers/bcma/driver_chipcommon_pmu.c 	ndiv = (tmp & BCMA_CC_PPL_NDIV_MASK) >> BCMA_CC_PPL_NDIV_SHIFT;
ndiv              379 drivers/bcma/driver_chipcommon_pmu.c 	fc = (p1 * ndiv * fc) / p2;
ndiv              387 drivers/bcma/driver_chipcommon_pmu.c 	u32 tmp, ndiv, p1div, p2div;
ndiv              394 drivers/bcma/driver_chipcommon_pmu.c 	ndiv = (tmp & BCMA_CC_PMU6_4706_PROC_NDIV_INT_MASK)
ndiv              404 drivers/bcma/driver_chipcommon_pmu.c 		clock = (25000000 / 4) * ndiv * p2div / p1div;
ndiv              407 drivers/bcma/driver_chipcommon_pmu.c 		clock = (25000000 / 2) * ndiv * p2div / p1div;
ndiv              530 drivers/clk/bcm/clk-bcm2835.c 					     u32 *ndiv, u32 *fdiv)
ndiv              537 drivers/clk/bcm/clk-bcm2835.c 	*ndiv = div >> A2W_PLL_FRAC_BITS;
ndiv              542 drivers/clk/bcm/clk-bcm2835.c 					   u32 ndiv, u32 fdiv, u32 pdiv)
ndiv              549 drivers/clk/bcm/clk-bcm2835.c 	rate = (u64)parent_rate * ((ndiv << A2W_PLL_FRAC_BITS) + fdiv);
ndiv              559 drivers/clk/bcm/clk-bcm2835.c 	u32 ndiv, fdiv;
ndiv              563 drivers/clk/bcm/clk-bcm2835.c 	bcm2835_pll_choose_ndiv_and_fdiv(rate, *parent_rate, &ndiv, &fdiv);
ndiv              565 drivers/clk/bcm/clk-bcm2835.c 	return bcm2835_pll_rate_from_divisors(*parent_rate, ndiv, fdiv, 1);
ndiv              575 drivers/clk/bcm/clk-bcm2835.c 	u32 ndiv, pdiv, fdiv;
ndiv              582 drivers/clk/bcm/clk-bcm2835.c 	ndiv = (a2wctrl & A2W_PLL_CTRL_NDIV_MASK) >> A2W_PLL_CTRL_NDIV_SHIFT;
ndiv              588 drivers/clk/bcm/clk-bcm2835.c 		ndiv *= 2;
ndiv              592 drivers/clk/bcm/clk-bcm2835.c 	return bcm2835_pll_rate_from_divisors(parent_rate, ndiv, fdiv, pdiv);
ndiv              669 drivers/clk/bcm/clk-bcm2835.c 	u32 ndiv, fdiv, a2w_ctl;
ndiv              680 drivers/clk/bcm/clk-bcm2835.c 	bcm2835_pll_choose_ndiv_and_fdiv(rate, parent_rate, &ndiv, &fdiv);
ndiv              719 drivers/clk/bcm/clk-bcm2835.c 	a2w_ctl |= ndiv << A2W_PLL_CTRL_NDIV_SHIFT;
ndiv              154 drivers/clk/bcm/clk-iproc-armpll.c 	unsigned int ndiv_int, ndiv_frac, ndiv;
ndiv              180 drivers/clk/bcm/clk-iproc-armpll.c 	ndiv = (ndiv_int << 20) | ndiv_frac;
ndiv              182 drivers/clk/bcm/clk-iproc-armpll.c 	return ndiv;
ndiv              201 drivers/clk/bcm/clk-iproc-armpll.c 	u64 ndiv;
ndiv              223 drivers/clk/bcm/clk-iproc-armpll.c 	ndiv = __get_ndiv(pll);
ndiv              229 drivers/clk/bcm/clk-iproc-armpll.c 	pll->rate = (ndiv * parent_rate) >> 20;
ndiv              235 drivers/clk/bcm/clk-iproc-armpll.c 		 (unsigned int)(ndiv >> 20), pdiv, mdiv);
ndiv              464 drivers/clk/bcm/clk-iproc-pll.c 	u64 ndiv, ndiv_int, ndiv_frac;
ndiv              484 drivers/clk/bcm/clk-iproc-pll.c 	ndiv = ndiv_int << 20;
ndiv              490 drivers/clk/bcm/clk-iproc-pll.c 		ndiv += ndiv_frac;
ndiv              496 drivers/clk/bcm/clk-iproc-pll.c 	rate = (ndiv * parent_rate) >> 20;
ndiv              150 drivers/clk/bcm/clk-raspberrypi.c 	u32 ndiv, fdiv;
ndiv              158 drivers/clk/bcm/clk-raspberrypi.c 	ndiv = div >> A2W_PLL_FRAC_BITS;
ndiv              162 drivers/clk/bcm/clk-raspberrypi.c 					((ndiv << A2W_PLL_FRAC_BITS) + fdiv));
ndiv               34 drivers/clk/st/clkgen-fsyn.c 	unsigned long ndiv;
ndiv               49 drivers/clk/st/clkgen-fsyn.c 	struct clkgen_field ndiv;
ndiv              100 drivers/clk/st/clkgen-fsyn.c 	.ndiv	= CLKGEN_FIELD(0x2f4, 0x7, 16),
ndiv              124 drivers/clk/st/clkgen-fsyn.c 	.ndiv	= CLKGEN_FIELD(0x2a4, 0x7, 16),
ndiv              185 drivers/clk/st/clkgen-fsyn.c 	u32 ndiv;
ndiv              211 drivers/clk/st/clkgen-fsyn.c 	CLKGEN_WRITE(pll, ndiv, pll->ndiv);
ndiv              263 drivers/clk/st/clkgen-fsyn.c 	unsigned long nd = fs->ndiv + 16; /* ndiv value */
ndiv              277 drivers/clk/st/clkgen-fsyn.c 	params.ndiv = CLKGEN_READ(pll, ndiv);
ndiv              282 drivers/clk/st/clkgen-fsyn.c 	pll->ndiv = params.ndiv;
ndiv              311 drivers/clk/st/clkgen-fsyn.c 	fs->ndiv = n - 16; /* Converting formula value to reg value */
ndiv              329 drivers/clk/st/clkgen-fsyn.c 		 rate, (unsigned int)params.ndiv);
ndiv              354 drivers/clk/st/clkgen-fsyn.c 		 hwrate, (unsigned int)params.ndiv);
ndiv              359 drivers/clk/st/clkgen-fsyn.c 	pll->ndiv = params.ndiv;
ndiv              364 drivers/clk/st/clkgen-fsyn.c 	CLKGEN_WRITE(pll, ndiv, pll->ndiv);
ndiv               46 drivers/clk/st/clkgen-pll.c 	struct clkgen_field ndiv;
ndiv               69 drivers/clk/st/clkgen-pll.c 	.ndiv		= CLKGEN_FIELD(0x2a4,	C32_NDIV_MASK,		16),
ndiv               82 drivers/clk/st/clkgen-pll.c 	.ndiv		= CLKGEN_FIELD(0x2cc,	C32_NDIV_MASK,		16),
ndiv               95 drivers/clk/st/clkgen-pll.c 	.ndiv		= CLKGEN_FIELD(0x1b0,	C32_NDIV_MASK,		0),
ndiv              112 drivers/clk/st/clkgen-pll.c 	.ndiv		= CLKGEN_FIELD(0x1b0,	C28_NDIV_MASK,		0),
ndiv              148 drivers/clk/st/clkgen-pll.c 	u32 ndiv;
ndiv              158 drivers/clk/st/clkgen-pll.c 	unsigned long ndiv;
ndiv              288 drivers/clk/st/clkgen-pll.c 			pll->ndiv = n;
ndiv              297 drivers/clk/st/clkgen-pll.c 	for (pll->cp = 6; pll->ndiv > cp_table[pll->cp-6]; (pll->cp)++)
ndiv              309 drivers/clk/st/clkgen-pll.c 	*rate = ((2 * (input / 1000) * pll->ndiv) / pll->idf) * 1000;
ndiv              318 drivers/clk/st/clkgen-pll.c 	unsigned long ndiv, idf;
ndiv              324 drivers/clk/st/clkgen-pll.c 	ndiv = CLKGEN_READ(pll, ndiv);
ndiv              329 drivers/clk/st/clkgen-pll.c 		rate = ((2 * (parent_rate/1000) * ndiv) / idf) * 1000;
ndiv              351 drivers/clk/st/clkgen-pll.c 		 rate, (unsigned int)params.ndiv,
ndiv              373 drivers/clk/st/clkgen-pll.c 		 hwrate, (unsigned int)params.ndiv,
ndiv              379 drivers/clk/st/clkgen-pll.c 	pll->ndiv = params.ndiv;
ndiv              388 drivers/clk/st/clkgen-pll.c 	CLKGEN_WRITE(pll, ndiv, pll->ndiv);
ndiv              447 drivers/clk/st/clkgen-pll.c 				pll->ndiv = n;
ndiv              465 drivers/clk/st/clkgen-pll.c 	*rate = (input / pll->idf) * 2 * pll->ndiv;
ndiv              480 drivers/clk/st/clkgen-pll.c 	params.ndiv = CLKGEN_READ(pll, ndiv);
ndiv              505 drivers/clk/st/clkgen-pll.c 		 rate, (unsigned int)params.ndiv,
ndiv              532 drivers/clk/st/clkgen-pll.c 		 hwrate, (unsigned int)params.ndiv,
ndiv              538 drivers/clk/st/clkgen-pll.c 	pll->ndiv = params.ndiv;
ndiv              546 drivers/clk/st/clkgen-pll.c 	CLKGEN_WRITE(pll, ndiv, pll->ndiv);
ndiv              319 drivers/cpufreq/brcmstb-avs-cpufreq.c 			      unsigned int *ndiv)
ndiv              323 drivers/cpufreq/brcmstb-avs-cpufreq.c 	*ndiv = (p1 >> NDIV_INT_SHIFT) & NDIV_INT_MASK;
ndiv              638 drivers/cpufreq/brcmstb-avs-cpufreq.c 	unsigned int ndiv, pdiv;
ndiv              644 drivers/cpufreq/brcmstb-avs-cpufreq.c 	brcm_avs_parse_p1(pmap.p1, &mdiv_p0, &pdiv, &ndiv);
ndiv              648 drivers/cpufreq/brcmstb-avs-cpufreq.c 		pmap.p1, pmap.p2, ndiv, pdiv, mdiv_p0, mdiv_p1, mdiv_p2,
ndiv              138 drivers/cpufreq/tegra186-cpufreq.c 		u16 ndiv = data->ndiv[i];
ndiv              140 drivers/cpufreq/tegra186-cpufreq.c 		if (ndiv < data->ndiv_min || ndiv > data->ndiv_max)
ndiv              144 drivers/cpufreq/tegra186-cpufreq.c 		if (i > 0 && ndiv == data->ndiv[i - 1])
ndiv              159 drivers/cpufreq/tegra186-cpufreq.c 		u16 ndiv = data->ndiv[i];
ndiv              162 drivers/cpufreq/tegra186-cpufreq.c 		if (ndiv < data->ndiv_min || ndiv > data->ndiv_max)
ndiv              166 drivers/cpufreq/tegra186-cpufreq.c 		if (i > 0 && ndiv == data->ndiv[i - 1])
ndiv              170 drivers/cpufreq/tegra186-cpufreq.c 		edvd_val |= ndiv << EDVD_CORE_VOLT_FREQ_F_SHIFT;
ndiv              174 drivers/cpufreq/tegra186-cpufreq.c 		point->frequency = data->ref_clk_hz * ndiv / data->pdiv /
ndiv              130 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c static int dsi_pll_get_clkout_khz(int clkin_khz, int idf, int ndiv, int odf)
ndiv              138 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 	return DIV_ROUND_CLOSEST(clkin_khz * ndiv, divisor);
ndiv              143 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 			      int *idf, int *ndiv, int *odf)
ndiv              184 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 				*ndiv = n;
ndiv              246 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 	unsigned int idf, ndiv, odf, pll_in_khz, pll_out_khz;
ndiv              276 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 	ndiv = 0;
ndiv              279 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 				 &idf, &ndiv, &odf);
ndiv              284 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 	pll_out_khz = dsi_pll_get_clkout_khz(pll_in_khz, idf, ndiv, odf);
ndiv              288 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 			(ndiv << 2) | (idf << 11) | ((ffs(odf) - 1) << 16));
ndiv              661 drivers/i2c/busses/i2c-octeon-core.c 	int thp = 0x18, mdiv = 2, ndiv = 0, delta_hz = 1000000;
ndiv              690 drivers/i2c/busses/i2c-octeon-core.c 					ndiv = ndiv_idx;
ndiv              696 drivers/i2c/busses/i2c-octeon-core.c 	octeon_i2c_reg_write(i2c, SW_TWSI_EOP_TWSI_CLKCTL, (mdiv << 3) | ndiv);
ndiv              506 drivers/media/dvb-frontends/cx24123.c 	u32 ndiv = 0, adiv = 0, vco_div = 0;
ndiv              556 drivers/media/dvb-frontends/cx24123.c 	ndiv = (((p->frequency * vco_div * 10) /
ndiv              561 drivers/media/dvb-frontends/cx24123.c 	if (adiv == 0 && ndiv > 0)
ndiv              562 drivers/media/dvb-frontends/cx24123.c 		ndiv--;
ndiv              567 drivers/media/dvb-frontends/cx24123.c 		(pump << 14) | (ndiv << 5) | adiv;
ndiv              807 drivers/media/dvb-frontends/stv0910.c 	u32 ndiv = (fphi * odf * idf) / quartz;
ndiv              811 drivers/media/dvb-frontends/stv0910.c 	if (ndiv >= 7 && ndiv <= 71)
ndiv              813 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >=  72 && ndiv <=  79)
ndiv              815 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >=  80 && ndiv <=  87)
ndiv              817 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >=  88 && ndiv <=  95)
ndiv              819 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >=  96 && ndiv <= 103)
ndiv              821 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 104 && ndiv <= 111)
ndiv              823 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 112 && ndiv <= 119)
ndiv              825 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 120 && ndiv <= 127)
ndiv              827 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 128 && ndiv <= 135)
ndiv              829 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 136 && ndiv <= 143)
ndiv              831 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 144 && ndiv <= 151)
ndiv              833 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 152 && ndiv <= 159)
ndiv              835 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 160 && ndiv <= 167)
ndiv              837 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 168 && ndiv <= 175)
ndiv              839 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 176 && ndiv <= 183)
ndiv              841 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 184 && ndiv <= 191)
ndiv              843 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 192 && ndiv <= 199)
ndiv              845 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 200 && ndiv <= 207)
ndiv              847 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 208 && ndiv <= 215)
ndiv              849 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 216 && ndiv <= 223)
ndiv              851 drivers/media/dvb-frontends/stv0910.c 	else if (ndiv >= 224 && ndiv <= 225)
ndiv              856 drivers/media/dvb-frontends/stv0910.c 	write_reg(state, RSTV0910_NCOARSE1, ndiv);
ndiv              858 drivers/media/dvb-frontends/stv0910.c 	fvco = (quartz * 2 * ndiv) / idf;
ndiv              429 drivers/media/tuners/tda18250.c 		u8 *ndiv, u8 *icp)
ndiv              452 drivers/media/tuners/tda18250.c 		*ndiv = 0;
ndiv              458 drivers/media/tuners/tda18250.c 		*ndiv = 1;
ndiv              464 drivers/media/tuners/tda18250.c 			*ndiv = 0;
ndiv              468 drivers/media/tuners/tda18250.c 			*ndiv = 0;
ndiv              472 drivers/media/tuners/tda18250.c 			*ndiv = 1;
ndiv              478 drivers/media/tuners/tda18250.c 		*ndiv = 0;
ndiv              487 drivers/media/tuners/tda18250.c 			lopd, scale, fvco, *rdiv, *ndiv, *icp);
ndiv               69 drivers/net/wireless/ath/ath9k/ar9002_phy.c 	u32 freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0;
ndiv              142 drivers/net/wireless/ath/ath9k/ar9002_phy.c 			ndiv = (freq * (refDivA >> aModeRefSel)) / 60;
ndiv              143 drivers/net/wireless/ath/ath9k/ar9002_phy.c 			channelSel = ndiv & 0x1ff;
ndiv              144 drivers/net/wireless/ath/ath9k/ar9002_phy.c 			channelFrac = (ndiv & 0xfffffe00) * 2;
ndiv               54 drivers/phy/st/phy-stm32-usbphyc.c 	u8 ndiv;
ndiv               89 drivers/phy/st/phy-stm32-usbphyc.c 	unsigned long long fvco, ndiv, frac;
ndiv              103 drivers/phy/st/phy-stm32-usbphyc.c 	ndiv = fvco;
ndiv              104 drivers/phy/st/phy-stm32-usbphyc.c 	do_div(ndiv, (clk_rate * 2));
ndiv              105 drivers/phy/st/phy-stm32-usbphyc.c 	pll_params->ndiv = (u8)ndiv;
ndiv              109 drivers/phy/st/phy-stm32-usbphyc.c 	frac = frac - (ndiv * (1 << 16));
ndiv              117 drivers/phy/st/phy-stm32-usbphyc.c 	u32 ndiv, frac;
ndiv              128 drivers/phy/st/phy-stm32-usbphyc.c 	ndiv = FIELD_PREP(PLLNDIV, pll_params.ndiv);
ndiv              131 drivers/phy/st/phy-stm32-usbphyc.c 	usbphyc_pll = PLLDITHEN1 | PLLDITHEN0 | PLLSTRBYP | ndiv;
ndiv              418 drivers/video/fbdev/savage/savagefb_driver.c 			    unsigned int *ndiv, unsigned int *r)
ndiv              457 drivers/video/fbdev/savage/savagefb_driver.c 	*ndiv = best_n1 - 2;
ndiv              465 drivers/video/fbdev/savage/savagefb_driver.c 			     unsigned char *ndiv)
ndiv              496 drivers/video/fbdev/savage/savagefb_driver.c 		*ndiv = (best_n1 - 2) | (best_n2 << 6);
ndiv              498 drivers/video/fbdev/savage/savagefb_driver.c 		*ndiv = (best_n1 - 2) | (best_n2 << 5);
ndiv             1636 include/soc/tegra/bpmp-abi.h 	uint16_t ndiv[80];