Searched refs:ndiv (Results 1 - 19 of 19) sorted by relevance

/linux-master/drivers/cpufreq/
H A Dtegra186-cpufreq.c103 u32 ndiv; local
110 ndiv = readl(data->regs + edvd_offset) & EDVD_CORE_VOLT_FREQ_F_MASK;
115 return (cluster->ref_clk_khz * ndiv) / cluster->div;
168 u16 ndiv = data->ndiv[i]; local
170 if (ndiv < data->ndiv_min || ndiv > data->ndiv_max)
174 if (i > 0 && ndiv == data->ndiv[i - 1])
192 u16 ndiv local
[all...]
H A Dtegra194-cpufreq.c61 void (*set_cpu_ndiv)(struct cpufreq_policy *policy, u64 ndiv);
63 int (*get_cpu_ndiv)(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv);
124 static int tegra234_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) argument
128 *ndiv = readl(data->cpu_data[cpu].freq_core_reg) & NDIV_MASK;
133 static void tegra234_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv) argument
139 writel(ndiv, data->cpu_data[cpu].freq_core_reg);
238 *nltbl, u16 ndiv)
240 return nltbl->ref_clk_hz / KHZ * ndiv / (nltbl->pdiv * nltbl->mdiv);
359 static void tegra194_get_cpu_ndiv_sysreg(void *ndiv) argument
365 *(u64 *)ndiv
237 map_ndiv_to_freq(struct mrq_cpu_ndiv_limits_response *nltbl, u16 ndiv) argument
368 tegra194_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) argument
380 tegra194_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv) argument
391 u64 ndiv; local
622 unsigned int num_freqs, ndiv, delta_ndiv; local
[all...]
H A Dbrcmstb-avs-cpufreq.c342 unsigned int *ndiv)
346 *ndiv = (p1 >> NDIV_INT_SHIFT) & NDIV_INT_MASK;
685 unsigned int ndiv, pdiv; local
691 brcm_avs_parse_p1(pmap.p1, &mdiv_p0, &pdiv, &ndiv);
695 pmap.p1, pmap.p2, ndiv, pdiv, mdiv_p0, mdiv_p1, mdiv_p2,
341 brcm_avs_parse_p1(u32 p1, unsigned int *mdiv_p0, unsigned int *pdiv, unsigned int *ndiv) argument
/linux-master/drivers/clk/st/
H A Dclkgen-pll.c46 struct clkgen_field ndiv; member in struct:clkgen_pll_data
80 .ndiv = CLKGEN_FIELD(0x2a4, C32_NDIV_MASK, 16),
115 .ndiv = CLKGEN_FIELD(0x2cc, C32_NDIV_MASK, 16),
141 .ndiv = CLKGEN_FIELD(0x1b0, C32_NDIV_MASK, 0),
167 .ndiv = CLKGEN_FIELD(0x1b0, C28_NDIV_MASK, 0),
211 u32 ndiv; member in struct:clkgen_pll
220 unsigned long ndiv; member in struct:stm_pll
322 /* Charge pump table: highest ndiv value for cp=6 to 25 */
350 pll->ndiv = n;
359 for (pll->cp = 6; pll->ndiv > cp_tabl
380 unsigned long ndiv, idf; local
[all...]
H A Dclkgen-fsyn.c34 unsigned long ndiv; member in struct:stm_fs
49 struct clkgen_field ndiv; member in struct:clkgen_quadfs_data
110 .ndiv = CLKGEN_FIELD(0x2f4, 0x7, 16),
146 .ndiv = CLKGEN_FIELD(0x2a4, 0x7, 16),
240 * @ndiv: regmap field for the ndiv control.
247 u32 ndiv; member in struct:st_clk_quadfs_pll
273 CLKGEN_WRITE(pll, ndiv, pll->ndiv);
325 unsigned long nd = fs->ndiv
[all...]
/linux-master/drivers/gpu/drm/stm/
H A Ddw_mipi_dsi-stm.c130 static int dsi_pll_get_clkout_khz(int clkin_khz, int idf, int ndiv, int odf) argument
138 return DIV_ROUND_CLOSEST(clkin_khz * ndiv, divisor);
143 int *idf, int *ndiv, int *odf)
158 /* Compute ndiv range according to Fvco */
162 /* No need to continue idf loop if we reach ndiv max */
166 /* Clamp ndiv to valid values */
174 /* Check ndiv according to vco range */
184 *ndiv = n;
246 unsigned int idf, ndiv, odf, pll_in_khz, pll_out_khz; local
271 ndiv
141 dsi_pll_get_params(struct dw_mipi_dsi_stm *dsi, int clkin_khz, int clkout_khz, int *idf, int *ndiv, int *odf) argument
333 unsigned int idf, ndiv, odf, pll_in_khz, pll_out_khz; local
[all...]
/linux-master/drivers/clk/bcm/
H A Dclk-iproc-armpll.c144 unsigned int ndiv_int, ndiv_frac, ndiv; local
149 * offset mode is active. Read the ndiv from the PLLARM OFFSET
170 ndiv = (ndiv_int << 20) | ndiv_frac;
172 return ndiv;
179 * ndiv = ARM PLL multiplier
183 * ((ndiv * parent clock rate) / pdiv) / mdiv
191 u64 ndiv; local
213 ndiv = __get_ndiv(pll);
219 pll->rate = (ndiv * parent_rate) >> 20;
225 (unsigned int)(ndiv >> 2
[all...]
H A Dclk-bcm2835.c549 u32 *ndiv, u32 *fdiv)
556 *ndiv = div >> A2W_PLL_FRAC_BITS;
561 u32 ndiv, u32 fdiv, u32 pdiv)
568 rate = (u64)parent_rate * ((ndiv << A2W_PLL_FRAC_BITS) + fdiv);
578 u32 ndiv, fdiv; local
582 bcm2835_pll_choose_ndiv_and_fdiv(rate, *parent_rate, &ndiv, &fdiv);
584 return bcm2835_pll_rate_from_divisors(*parent_rate, ndiv, fdiv, 1);
594 u32 ndiv, pdiv, fdiv; local
601 ndiv = (a2wctrl & A2W_PLL_CTRL_NDIV_MASK) >> A2W_PLL_CTRL_NDIV_SHIFT;
607 ndiv *
547 bcm2835_pll_choose_ndiv_and_fdiv(unsigned long rate, unsigned long parent_rate, u32 *ndiv, u32 *fdiv) argument
560 bcm2835_pll_rate_from_divisors(unsigned long parent_rate, u32 ndiv, u32 fdiv, u32 pdiv) argument
689 u32 ndiv, fdiv, a2w_ctl; local
[all...]
H A Dclk-iproc-pll.c454 u64 ndiv, ndiv_int, ndiv_frac; local
474 ndiv = ndiv_int << 20;
480 ndiv += ndiv_frac;
486 rate = (ndiv * parent_rate) >> 20;
/linux-master/drivers/media/dvb-frontends/
H A Dstv0910.c798 u32 ndiv = (fphi * odf * idf) / quartz; local
802 if (ndiv >= 7 && ndiv <= 71)
804 else if (ndiv >= 72 && ndiv <= 79)
806 else if (ndiv >= 80 && ndiv <= 87)
808 else if (ndiv >= 88 && ndiv <= 95)
810 else if (ndiv >
[all...]
H A Dcx24123.c506 u32 ndiv = 0, adiv = 0, vco_div = 0; local
556 ndiv = (((p->frequency * vco_div * 10) /
561 if (adiv == 0 && ndiv > 0)
562 ndiv--;
565 * charge pump current, ndiv, adiv */
567 (pump << 14) | (ndiv << 5) | adiv;
/linux-master/arch/mips/bcm63xx/
H A Dcpu.c227 unsigned int tmp, p1, p2, ndiv, m1; local
238 ndiv = (tmp & DMIPSPLLCFG_6368_NDIV_MASK) >>
245 return (((64 * 1000000) / p1) * p2 * ndiv) / m1;
/linux-master/drivers/phy/st/
H A Dphy-stm32-usbphyc.c132 u8 ndiv; member in struct:pll_params
207 unsigned long long fvco, ndiv, frac; local
221 ndiv = fvco;
222 do_div(ndiv, (clk_rate * 2));
223 pll_params->ndiv = (u8)ndiv;
227 frac = frac - (ndiv * (1 << 16));
235 u32 ndiv, frac; local
246 ndiv = FIELD_PREP(PLLNDIV, pll_params.ndiv);
[all...]
/linux-master/drivers/bcma/
H A Ddriver_chipcommon_pmu.c355 u32 tmp, div, ndiv, p1, p2, fc; local
379 ndiv = (tmp & BCMA_CC_PPL_NDIV_MASK) >> BCMA_CC_PPL_NDIV_SHIFT;
383 fc = (p1 * ndiv * fc) / p2;
391 u32 tmp, ndiv, p1div, p2div; local
398 ndiv = (tmp & BCMA_CC_PMU6_4706_PROC_NDIV_INT_MASK)
408 clock = (25000000 / 4) * ndiv * p2div / p1div;
411 clock = (25000000 / 2) * ndiv * p2div / p1div;
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dar9002_phy.c69 u32 freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0; local
142 ndiv = (freq * (refDivA >> aModeRefSel)) / 60;
143 channelSel = ndiv & 0x1ff;
144 channelFrac = (ndiv & 0xfffffe00) * 2;
/linux-master/drivers/media/tuners/
H A Dtda18250.c429 u8 *ndiv, u8 *icp)
452 *ndiv = 0;
458 *ndiv = 1;
464 *ndiv = 0;
468 *ndiv = 0;
472 *ndiv = 1;
478 *ndiv = 0;
486 "lopd=%d scale=%u fvco=%lu, rdiv=%d ndiv=%d icp=%d",
487 lopd, scale, fvco, *rdiv, *ndiv, *icp);
640 /* calc ndiv an
428 tda18250_pll_calc(struct dvb_frontend *fe, u8 *rdiv, u8 *ndiv, u8 *icp) argument
[all...]
/linux-master/drivers/i2c/busses/
H A Di2c-octeon-core.c661 int thp = 0x18, mdiv = 2, ndiv = 0, delta_hz = 1000000; local
670 * For given ndiv and mdiv values check the
690 ndiv = ndiv_idx;
696 octeon_i2c_reg_write(i2c, SW_TWSI_EOP_TWSI_CLKCTL, (mdiv << 3) | ndiv);
/linux-master/drivers/video/fbdev/savage/
H A Dsavagefb_driver.c418 unsigned int *ndiv, unsigned int *r)
457 *ndiv = best_n1 - 2;
465 unsigned char *ndiv)
496 *ndiv = (best_n1 - 2) | (best_n2 << 6);
498 *ndiv = (best_n1 - 2) | (best_n2 << 5);
415 SavageCalcClock(long freq, int min_m, int min_n1, int max_n1, int min_n2, int max_n2, long freq_min, long freq_max, unsigned int *mdiv, unsigned int *ndiv, unsigned int *r) argument
462 common_calc_clock(long freq, int min_m, int min_n1, int max_n1, int min_n2, int max_n2, long freq_min, long freq_max, unsigned char *mdiv, unsigned char *ndiv) argument
/linux-master/include/soc/tegra/
H A Dbpmp-abi.h1981 /** table of ndiv values as a function of vINDEX (voltage index) */
1982 uint16_t ndiv[80]; member in struct:cpu_vhint_data
2644 * @brief CPU freq. limits in ndiv
2657 * @brief Request for ndiv limits of a cluster
2720 * - bits[9..1] cc3 ndiv

Completed in 218 milliseconds