/linux-2.6.39/arch/mips/ar7/ |
D | clock.c | 84 u32 prediv; member 111 static void approximate(int base, int target, int *prediv, in approximate() argument 122 *prediv = j; in approximate() 128 static void calculate(int base, int target, int *prediv, int *postdiv, in calculate() argument 133 for (*prediv = 1; *prediv <= 32; (*prediv)++) { in calculate() 134 tmp_base = base / *prediv; in calculate() 144 if (base / *prediv * *mul / *postdiv != target) { in calculate() 145 approximate(base, target, prediv, postdiv, mul); in calculate() 146 tmp_freq = base / *prediv * *mul / *postdiv; in calculate() 153 *prediv, *postdiv, *mul); in calculate() [all …]
|
/linux-2.6.39/arch/arm/mach-davinci/ |
D | clock.c | 373 u32 ctrl, mult = 1, prediv = 1, postdiv = 1; in clk_pllclk_recalc() local 392 prediv = __raw_readl(pll->base + PREDIV); in clk_pllclk_recalc() 393 if (prediv & PLLDIV_EN) in clk_pllclk_recalc() 394 prediv = (prediv & pll->div_ratio_mask) + 1; in clk_pllclk_recalc() 396 prediv = 1; in clk_pllclk_recalc() 401 prediv = 8; in clk_pllclk_recalc() 412 rate /= prediv; in clk_pllclk_recalc() 421 if (prediv > 1) in clk_pllclk_recalc() 422 pr_debug("/ %d ", prediv); in clk_pllclk_recalc() 442 int davinci_set_pllrate(struct pll_data *pll, unsigned int prediv, in davinci_set_pllrate() argument [all …]
|
D | da850.c | 824 unsigned int prediv; member 833 .prediv = 1, 842 .prediv = 1, 851 .prediv = 2, 860 .prediv = 1, 869 .prediv = 1, 878 .prediv = 1, 1003 unsigned int prediv, mult, postdiv; in da850_set_pll0rate() local 1009 prediv = opp->prediv; in da850_set_pll0rate() 1013 ret = davinci_set_pllrate(pll, prediv, mult, postdiv); in da850_set_pll0rate()
|
D | clock.h | 123 int davinci_set_pllrate(struct pll_data *pll, unsigned int prediv,
|
D | tnetv107x.c | 649 unsigned long mult = 0, prediv = 1, postdiv = 1; in clk_sspll_recalc() local 675 prediv = __raw_readl(&sspll_regs[pll]->pre_div) + 1; in clk_sspll_recalc() 693 ret /= (prediv * postdiv); in clk_sspll_recalc()
|
/linux-2.6.39/arch/frv/kernel/ |
D | time.c | 74 unsigned short base, pre, prediv; in time_divisor_init() local 78 prediv = 4; in time_divisor_init() 79 base = __res_bus_clock_speed_HZ / pre / HZ / (1 << prediv); in time_divisor_init() 82 __set_TxCKSL_DATA(0, prediv); in time_divisor_init()
|
/linux-2.6.39/drivers/media/dvb/frontends/ |
D | tua6100.c | 75 u32 prediv; in tua6100_set_params() local 117 prediv = (params->frequency * _R) / (_ri / 1000); in tua6100_set_params() 118 div = prediv / _P; in tua6100_set_params() 125 reg1[3] |= (prediv - (div*_P)) & 0x7f; in tua6100_set_params()
|
D | dib7000p.c | 411 u8 loopdiv, prediv; in dib7000p_update_pll() local 415 prediv = reg_1856 & 0x3f; in dib7000p_update_pll() 418 if ((bw != NULL) && (bw->pll_prediv != prediv || bw->pll_ratio != loopdiv)) { in dib7000p_update_pll() 419 …dprintk("Updating pll (prediv: old = %d new = %d ; loopdiv : old = %d new = %d)", prediv, bw->pll… in dib7000p_update_pll() 428 xtal = (internal / loopdiv) * prediv; in dib7000p_update_pll()
|
/linux-2.6.39/drivers/mfd/ |
D | ti-ssp.c | 322 int error = 0, prediv = 0xff, id; in ti_ssp_probe() local 401 prediv = (sysclk / pdata->out_clock) - 1; in ti_ssp_probe() 402 prediv = clamp(prediv, 0, 0xff); in ti_ssp_probe() 403 ssp_rmw(ssp, REG_PREDIV, 0xff, prediv); in ti_ssp_probe()
|
/linux-2.6.39/drivers/tty/serial/ |
D | ioc3_serial.c | 104 #define SER_CLK_SPEED(prediv) ((22000000 << 1) / prediv) argument 312 int lcr, prediv; in set_baud() local 315 for (prediv = 6; prediv < 64; prediv++) { in set_baud() 316 divisor = SER_DIVISOR(baud, SER_CLK_SPEED(prediv)); in set_baud() 319 actual_baud = DIVISOR_TO_BAUD(divisor, SER_CLK_SPEED(prediv)); in set_baud() 333 if (prediv == 64) { in set_baud() 344 writeb((unsigned char)prediv, &uart->iu_scr); in set_baud()
|
/linux-2.6.39/drivers/media/dvb/dvb-usb/ |
D | dib0700_devices.c | 1990 u8 spur = 0, prediv = 0, loopdiv = 0, min_prediv = 1, max_prediv = 1; in dib7090p_get_best_sampling() local 2001 adc->pll_prediv = prediv; in dib7090p_get_best_sampling() 2021 for (prediv = min_prediv ; prediv < max_prediv; prediv++) { in dib7090p_get_best_sampling() 2022 fcp = xtal / prediv; in dib7090p_get_best_sampling() 2025 fdem = ((xtal/prediv) * loopdiv); in dib7090p_get_best_sampling() 2041 adc->pll_prediv = prediv; in dib7090p_get_best_sampling() 2044 deb_info("loopdiv=%i prediv=%i timf=%i", loopdiv, prediv, adc->timf); in dib7090p_get_best_sampling()
|