Searched refs:div1 (Results 1 – 9 of 9) sorted by relevance
/drivers/clk/ |
D | clk-vt8500.c | 387 u32 mul, div1, div2; in wm8650_find_pll_bits() local 394 for (div1 = 5; div1 >= 3; div1--) in wm8650_find_pll_bits() 397 tclk = parent_rate * mul / (div1 * (1 << div2)); in wm8650_find_pll_bits() 404 *divisor1 = div1; in wm8650_find_pll_bits() 412 best_div1 = div1; in wm8650_find_pll_bits() 455 u32 mul, div1, div2; in wm8750_find_pll_bits() local 462 for (div1 = 1; div1 >= 0; div1--) in wm8750_find_pll_bits() 465 tclk = parent_rate * (mul + 1) / ((div1 + 1) * (1 << div2)); in wm8750_find_pll_bits() 471 *filter = wm8750_get_filter(parent_rate, div1); in wm8750_find_pll_bits() 473 *divisor1 = div1; in wm8750_find_pll_bits() [all …]
|
/drivers/spi/ |
D | spi-omap-uwire.c | 317 int div1; in uwire_setup_transfer() local 362 div1 = 2; in uwire_setup_transfer() 365 div1 = 4; in uwire_setup_transfer() 368 div1 = 7; in uwire_setup_transfer() 372 div1 = 10; in uwire_setup_transfer() 375 div2 = (rate / div1 + hz - 1) / hz; in uwire_setup_transfer() 392 rate /= div1; in uwire_setup_transfer()
|
/drivers/clk/samsung/ |
D | clk-cpu.c | 150 unsigned long div0, div1 = 0, mux_reg; in exynos_cpuclk_pre_rate_change() local 169 div1 = cfg_data->div1; in exynos_cpuclk_pre_rate_change() 171 div1 = readl(base + E4210_DIV_CPU1) & in exynos_cpuclk_pre_rate_change() 211 writel(div1, base + E4210_DIV_CPU1); in exynos_cpuclk_pre_rate_change()
|
D | clk-cpu.h | 31 unsigned long div1; member
|
/drivers/media/tuners/ |
D | mt2131.c | 103 u32 div1, num1, div2, num2; in mt2131_set_params() local 120 div1 = num1 / 8192; in mt2131_set_params() 151 b[3] = div1; in mt2131_set_params() 160 (int)div1, (int)num1, (int)div2, (int)num2); in mt2131_set_params()
|
D | mt2060.c | 164 u32 div1,num1,div2,num2; in mt2060_set_params() local 196 div1 = num1 / 64; in mt2060_set_params() 217 b[2] = div1; in mt2060_set_params() 224 dprintk("PLL div1=%d num1=%d div2=%d num2=%d",(int)div1,(int)num1,(int)div2,(int)num2); in mt2060_set_params()
|
/drivers/i2c/busses/ |
D | i2c-s3c2410.c | 834 unsigned int *div1, unsigned int *divs) in s3c24xx_i2c_calcdivisor() argument 853 *div1 = calc_div1; in s3c24xx_i2c_calcdivisor() 869 unsigned int divs, div1; in s3c24xx_i2c_clockrate() local 883 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate() 898 if (div1 == 512) in s3c24xx_i2c_clockrate()
|
/drivers/media/dvb-frontends/ |
D | stb0899_algo.c | 1287 int div1, div2, rem1, rem2; in stb0899_dvbs2_get_srate() local 1289 div1 = config->btr_nco_bits / 2; in stb0899_dvbs2_get_srate() 1290 div2 = config->btr_nco_bits - div1 - 1; in stb0899_dvbs2_get_srate() 1298 intval1 = internal->master_clk / (1 << div1); in stb0899_dvbs2_get_srate() 1301 rem1 = internal->master_clk % (1 << div1); in stb0899_dvbs2_get_srate() 1304 srate = (intval1 * intval2) + ((intval1 * rem2) / (1 << div2)) + ((intval2 * rem1) / (1 << div1)); in stb0899_dvbs2_get_srate()
|
/drivers/staging/comedi/drivers/ |
D | adl_pci9118.c | 532 unsigned int *div1, unsigned int *div2, in pci9118_calc_divisors() argument 538 *div1 = *tim2 / pacer->osc_base; /* convert timer (burst) */ in pci9118_calc_divisors() 540 *div2 = *div2 / *div1; /* major timer is c1*c2 */ in pci9118_calc_divisors() 544 *tim2 = *div1 * pacer->osc_base; /* real convert timer */ in pci9118_calc_divisors() 552 *tim1 = *div1 * *div2 * pacer->osc_base; in pci9118_calc_divisors()
|