Searched refs:ndiv (Results 1 – 7 of 7) sorted by relevance
/drivers/media/dvb/frontends/ |
D | m88rs2000.c | 547 u16 value, ndiv, lpf_coeff; in m88rs2000_set_tuner() local 558 ndiv = (frequency * 14 * 4) / FE_CRYSTAL_KHZ; in m88rs2000_set_tuner() 560 ndiv = (frequency * 14 * 2) / FE_CRYSTAL_KHZ; in m88rs2000_set_tuner() 561 ndiv = ndiv + ndiv % 2; in m88rs2000_set_tuner() 562 ndiv = ndiv - 1024; in m88rs2000_set_tuner() 567 ret |= m88rs2000_tuner_write(state, 0x01, (ndiv >> 8) & 0xf); in m88rs2000_set_tuner() 568 ret |= m88rs2000_tuner_write(state, 0x02, ndiv & 0xff); in m88rs2000_set_tuner() 634 offset_khz = (ndiv - ndiv % 2 + 1024) * FE_CRYSTAL_KHZ in m88rs2000_set_tuner()
|
D | ds3000.c | 965 u16 value, ndiv; in ds3000_set_frontend() local 985 ndiv = ((c->frequency * (6 + 8) * 4) + in ds3000_set_frontend() 990 ndiv = ((c->frequency * (6 + 8) * 2) + in ds3000_set_frontend() 995 ds3000_tuner_writereg(state, 0x01, (ndiv & 0x0f00) >> 8); in ds3000_set_frontend() 996 ds3000_tuner_writereg(state, 0x02, ndiv & 0x00ff); in ds3000_set_frontend() 1088 offset_khz = (ndiv - ndiv % 2 + 1024) * DS3000_XTAL_FREQ in ds3000_set_frontend()
|
D | cx24123.c | 533 u32 ndiv = 0, adiv = 0, vco_div = 0; in cx24123_pll_calculate() local 583 ndiv = (((p->frequency * vco_div * 10) / in cx24123_pll_calculate() 588 if (adiv == 0 && ndiv > 0) in cx24123_pll_calculate() 589 ndiv--; in cx24123_pll_calculate() 594 (pump << 14) | (ndiv << 5) | adiv; in cx24123_pll_calculate()
|
/drivers/bcma/ |
D | driver_chipcommon_pmu.c | 220 u32 tmp, div, ndiv, p1, p2, fc; in bcma_pmu_clock() local 243 ndiv = (tmp & BCMA_CC_PPL_NDIV_MASK) >> BCMA_CC_PPL_NDIV_SHIFT; in bcma_pmu_clock() 247 fc = (p1 * ndiv * fc) / p2; in bcma_pmu_clock()
|
/drivers/net/wireless/ath/ath9k/ |
D | ar9002_phy.c | 69 u32 freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0; in ar9002_hw_set_channel() local 141 ndiv = (freq * (refDivA >> aModeRefSel)) / 60; in ar9002_hw_set_channel() 142 channelSel = ndiv & 0x1ff; in ar9002_hw_set_channel() 143 channelFrac = (ndiv & 0xfffffe00) * 2; in ar9002_hw_set_channel()
|
/drivers/i2c/busses/ |
D | i2c-octeon.c | 453 int thp = 0x18, mdiv = 2, ndiv = 0, delta_hz = 1000000; in octeon_i2c_setclock() local 482 ndiv = ndiv_idx; in octeon_i2c_setclock() 488 octeon_i2c_write_sw(i2c, SW_TWSI_EOP_TWSI_CLKCTL, (mdiv << 3) | ndiv); in octeon_i2c_setclock()
|
/drivers/video/savage/ |
D | savagefb_driver.c | 422 unsigned int *ndiv, unsigned int *r) in SavageCalcClock() argument 461 *ndiv = best_n1 - 2; in SavageCalcClock() 469 unsigned char *ndiv) in common_calc_clock() argument 500 *ndiv = (best_n1 - 2) | (best_n2 << 6); in common_calc_clock() 502 *ndiv = (best_n1 - 2) | (best_n2 << 5); in common_calc_clock()
|