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

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/wireless/ath/ath9k/
H A Dar9002_phy.c69 u32 freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0; local
138 ndiv = (freq * (refDivA >> aModeRefSel)) / 60;
139 channelSel = ndiv & 0x1ff;
140 channelFrac = (ndiv & 0xfffffe00) * 2;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/wireless/ath/ath9k/
H A Dar9002_phy.c69 u32 freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0; local
138 ndiv = (freq * (refDivA >> aModeRefSel)) / 60;
139 channelSel = ndiv & 0x1ff;
140 channelFrac = (ndiv & 0xfffffe00) * 2;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/util-linux/
H A Dfdisk_sun.c235 unsigned ndiv; local
333 ndiv = g_cylinders - (50 * 2048 / (g_heads * g_sectors)); /* 50M swap */
335 ndiv = g_cylinders * 2 / 3;
336 set_sun_partition(0, 0, ndiv * g_heads * g_sectors, LINUX_NATIVE);
337 set_sun_partition(1, ndiv * g_heads * g_sectors, g_cylinders * g_heads * g_sectors, LINUX_SWAP);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/busybox/util-linux/
H A Dfdisk_sun.c235 unsigned ndiv; local
333 ndiv = g_cylinders - (50 * 2048 / (g_heads * g_sectors)); /* 50M swap */
335 ndiv = g_cylinders * 2 / 3;
336 set_sun_partition(0, 0, ndiv * g_heads * g_sectors, LINUX_NATIVE);
337 set_sun_partition(1, ndiv * g_heads * g_sectors, g_cylinders * g_heads * g_sectors, LINUX_SWAP);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/busybox/util-linux/
H A Dfdisk_sun.c235 unsigned ndiv; local
333 ndiv = g_cylinders - (50 * 2048 / (g_heads * g_sectors)); /* 50M swap */
335 ndiv = g_cylinders * 2 / 3;
336 set_sun_partition(0, 0, ndiv * g_heads * g_sectors, LINUX_NATIVE);
337 set_sun_partition(1, ndiv * g_heads * g_sectors, g_cylinders * g_heads * g_sectors, LINUX_SWAP);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/i2c/busses/
H A Di2c-octeon.c453 int thp = 0x18, mdiv = 2, ndiv = 0, delta_hz = 1000000; local
463 * For given ndiv and mdiv values check the
482 ndiv = ndiv_idx;
488 octeon_i2c_write_sw(i2c, SW_TWSI_EOP_TWSI_CLKCTL, (mdiv << 3) | ndiv);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/i2c/busses/
H A Di2c-octeon.c453 int thp = 0x18, mdiv = 2, ndiv = 0, delta_hz = 1000000; local
463 * For given ndiv and mdiv values check the
482 ndiv = ndiv_idx;
488 octeon_i2c_write_sw(i2c, SW_TWSI_EOP_TWSI_CLKCTL, (mdiv << 3) | ndiv);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/media/dvb/frontends/
H A Dcx24123.c528 u32 ndiv = 0, adiv = 0, vco_div = 0; local
578 ndiv = (((p->frequency * vco_div * 10) /
583 if (adiv == 0 && ndiv > 0)
584 ndiv--;
587 * charge pump current, ndiv, adiv */
589 (pump << 14) | (ndiv << 5) | adiv;
H A Dds3000.c1027 u16 value, ndiv; local
1081 ndiv = ((state->dcur.frequency * (6 + 8) * 4) +
1086 ndiv = ((state->dcur.frequency * (6 + 8) * 2) +
1091 ds3000_tuner_writereg(state, 0x01, (ndiv & 0x0f00) >> 8);
1092 ds3000_tuner_writereg(state, 0x02, ndiv & 0x00ff);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/media/dvb/frontends/
H A Dcx24123.c528 u32 ndiv = 0, adiv = 0, vco_div = 0; local
578 ndiv = (((p->frequency * vco_div * 10) /
583 if (adiv == 0 && ndiv > 0)
584 ndiv--;
587 * charge pump current, ndiv, adiv */
589 (pump << 14) | (ndiv << 5) | adiv;
H A Dds3000.c1027 u16 value, ndiv; local
1081 ndiv = ((state->dcur.frequency * (6 + 8) * 4) +
1086 ndiv = ((state->dcur.frequency * (6 + 8) * 2) +
1091 ds3000_tuner_writereg(state, 0x01, (ndiv & 0x0f00) >> 8);
1092 ds3000_tuner_writereg(state, 0x02, ndiv & 0x00ff);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/arm/plat-brcm/
H A Dbcm5301x_pcie.c933 uint32 val, ndiv, pdiv, ch2_mdiv, ch2_freq; local
946 ndiv = (val >> 20) & 0x3ff;
947 if (ndiv == 0)
948 ndiv = 1 << 10;
959 ch2_freq = (25000000 / (pdiv * ch2_mdiv)) * ndiv;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/arch/arm/plat-brcm/
H A Dbcm5301x_pcie.c933 uint32 val, ndiv, pdiv, ch2_mdiv, ch2_freq; local
946 ndiv = (val >> 20) & 0x3ff;
947 if (ndiv == 0)
948 ndiv = 1 << 10;
959 ch2_freq = (25000000 / (pdiv * ch2_mdiv)) * ndiv;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/shared/
H A Dhndpmu.c4842 /* Calculate fvco based on xtal freq and ndiv and pdiv */
5318 uint32 tmp, div, ndiv, p1, p2, fc; local
5354 ndiv = (tmp & PMU5_PLL_NDIV_MASK) >> PMU5_PLL_NDIV_SHIFT;
5358 fc = (p1 * ndiv * fc) / p2;
5360 PMU_NONE(("%s: p1=%d, p2=%d, ndiv=%d(0x%x), m%d=%d; fc=%d, clock=%d\n",
5361 __FUNCTION__, p1, p2, ndiv, ndiv, m, div, fc, fc / div));
5370 uint32 w, ndiv, p1div, p2div; local
5382 ndiv = (w & PMU6_4706_PROC_NDIV_INT_MASK) >> PMU6_4706_PROC_NDIV_INT_SHIFT;
5388 clock = (25000000 / 4) * ndiv * p2di
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/video/savage/
H A Dsavagefb_driver.c421 unsigned int *ndiv, unsigned int *r)
460 *ndiv = best_n1 - 2;
468 unsigned char *ndiv)
499 *ndiv = (best_n1 - 2) | (best_n2 << 6);
501 *ndiv = (best_n1 - 2) | (best_n2 << 5);
418 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
465 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
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/video/savage/
H A Dsavagefb_driver.c421 unsigned int *ndiv, unsigned int *r)
460 *ndiv = best_n1 - 2;
468 unsigned char *ndiv)
499 *ndiv = (best_n1 - 2) | (best_n2 << 6);
501 *ndiv = (best_n1 - 2) | (best_n2 << 5);
418 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
465 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

Completed in 202 milliseconds