Home
last modified time | relevance | path

Searched refs:div1 (Results 1 – 15 of 15) sorted by relevance

/drivers/clk/
Dclk-vt8500.c456 int 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()
481 *divisor1 = div1; in wm8750_find_pll_bits()
504 int div1, div2; in wm8850_find_pll_bits() local
510 for (div1 = 1; div1 >= 0; div1--) in wm8850_find_pll_bits()
514 ((div1 + 1) * (1 << div2)); in wm8850_find_pll_bits()
521 *divisor1 = div1; in wm8850_find_pll_bits()
[all …]
/drivers/clk/uniphier/
Dclk-uniphier.h110 #define UNIPHIER_CLK_DIV2(parent, div0, div1) \ argument
112 UNIPHIER_CLK_DIV(parent, div1)
114 #define UNIPHIER_CLK_DIV3(parent, div0, div1, div2) \ argument
115 UNIPHIER_CLK_DIV2(parent, div0, div1), \
118 #define UNIPHIER_CLK_DIV4(parent, div0, div1, div2, div3) \ argument
119 UNIPHIER_CLK_DIV2(parent, div0, div1), \
/drivers/clk/imx/
Dclk-composite-8m.c52 int div1, div2; in imx8m_clk_composite_compute_dividers() local
59 for (div1 = 1; div1 <= PCG_PREDIV_MAX; div1++) { in imx8m_clk_composite_compute_dividers()
61 int new_error = ((parent_rate / div1) / div2) - rate; in imx8m_clk_composite_compute_dividers()
64 *prediv = div1; in imx8m_clk_composite_compute_dividers()
/drivers/clk/samsung/
Dclk-cpu.c155 unsigned long div0, div1 = 0, mux_reg; in exynos_cpuclk_pre_rate_change() local
174 div1 = cfg_data->div1; in exynos_cpuclk_pre_rate_change()
176 div1 = readl(base + E4210_DIV_CPU1) & in exynos_cpuclk_pre_rate_change()
216 writel(div1, base + E4210_DIV_CPU1); in exynos_cpuclk_pre_rate_change()
283 unsigned long div0, div1 = 0, mux_reg; in exynos5433_cpuclk_pre_rate_change() local
300 div1 = cfg_data->div1; in exynos5433_cpuclk_pre_rate_change()
329 writel(div1, base + E5433_DIV_CPU1); in exynos5433_cpuclk_pre_rate_change()
Dclk-cpu.h28 unsigned long div1; member
/drivers/spi/
Dspi-omap-uwire.c317 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/media/tuners/
Dmt2131.c89 u32 div1, num1, div2, num2; in mt2131_set_params() local
106 div1 = num1 / 8192; in mt2131_set_params()
137 b[3] = div1; in mt2131_set_params()
146 (int)div1, (int)num1, (int)div2, (int)num2); in mt2131_set_params()
Dmt2060.c196 u32 div1,num1,div2,num2; in mt2060_set_params() local
228 div1 = num1 / 64; in mt2060_set_params()
249 b[2] = div1; in mt2060_set_params()
256 dprintk("PLL div1=%d num1=%d div2=%d num2=%d",(int)div1,(int)num1,(int)div2,(int)num2); in mt2060_set_params()
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dsorgf119.c124 u32 div1 = sor->asy.link == 3; in gf119_sor_clock() local
132 nvkm_mask(device, 0x612300 + soff, 0x00000707, (div2 << 8) | div1); in gf119_sor_clock()
/drivers/i2c/busses/
Di2c-s3c2410.c799 unsigned int *div1, unsigned int *divs) in s3c24xx_i2c_calcdivisor() argument
818 *div1 = calc_div1; in s3c24xx_i2c_calcdivisor()
832 unsigned int divs, div1; in s3c24xx_i2c_clockrate() local
846 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate()
861 if (div1 == 512) in s3c24xx_i2c_clockrate()
Di2c-sprd.c334 u32 div1 = I2C_ADDR_DVD1_CALC(high, low); in sprd_i2c_set_clk() local
337 writel(div1, i2c_dev->base + ADDR_DVD1); in sprd_i2c_set_clk()
/drivers/media/dvb-frontends/
Dstb0899_algo.c1274 int div1, div2, rem1, rem2; in stb0899_dvbs2_get_srate() local
1276 div1 = config->btr_nco_bits / 2; in stb0899_dvbs2_get_srate()
1277 div2 = config->btr_nco_bits - div1 - 1; in stb0899_dvbs2_get_srate()
1285 intval1 = internal->master_clk / (1 << div1); in stb0899_dvbs2_get_srate()
1288 rem1 = internal->master_clk % (1 << div1); in stb0899_dvbs2_get_srate()
1291 srate = (intval1 * intval2) + ((intval1 * rem2) / (1 << div2)) + ((intval2 * rem1) / (1 << div1)); in stb0899_dvbs2_get_srate()
/drivers/staging/comedi/drivers/
Dadl_pci9118.c533 unsigned int *div1, unsigned int *div2, in pci9118_calc_divisors() argument
539 *div1 = *tim2 / pacer->osc_base; /* convert timer (burst) */ in pci9118_calc_divisors()
541 *div2 = *div2 / *div1; /* major timer is c1*c2 */ in pci9118_calc_divisors()
545 *tim2 = *div1 * pacer->osc_base; /* real convert timer */ in pci9118_calc_divisors()
553 *tim1 = *div1 * *div2 * pacer->osc_base; in pci9118_calc_divisors()
/drivers/gpu/drm/i915/display/
Dintel_ddi.c1411 u32 m1, m2_int, m2_frac, div1, div2, ref_clock; in icl_calc_mg_pll_link() local
1425 div1 = 2; in icl_calc_mg_pll_link()
1428 div1 = 3; in icl_calc_mg_pll_link()
1431 div1 = 5; in icl_calc_mg_pll_link()
1434 div1 = 7; in icl_calc_mg_pll_link()
1455 tmp = div_u64(tmp, 5 * div1 * div2); in icl_calc_mg_pll_link()
Dintel_dpll_mgr.c2636 int div1 = div1_vals[i]; in icl_mg_pll_find_divisors() local
2639 int dco = div1 * div2 * clock_khz * 5; in icl_mg_pll_find_divisors()
2655 switch (div1) { in icl_mg_pll_find_divisors()
2657 MISSING_CASE(div1); in icl_mg_pll_find_divisors()