Home
last modified time | relevance | path

Searched refs:div2 (Results 1 – 49 of 49) sorted by relevance

/linux-4.4.14/drivers/clk/
Dclk-vt8500.c387 u32 mul, div1, div2; in wm8650_find_pll_bits() local
395 for (div2 = 3; div2 >= 0; div2--) in wm8650_find_pll_bits()
397 tclk = parent_rate * mul / (div1 * (1 << div2)); in wm8650_find_pll_bits()
405 *divisor2 = div2; in wm8650_find_pll_bits()
413 best_div2 = div2; in wm8650_find_pll_bits()
455 u32 mul, div1, div2; in wm8750_find_pll_bits() local
463 for (div2 = 7; div2 >= 0; div2--) in wm8750_find_pll_bits()
465 tclk = parent_rate * (mul + 1) / ((div1 + 1) * (1 << div2)); in wm8750_find_pll_bits()
474 *divisor2 = div2; in wm8750_find_pll_bits()
482 best_div2 = div2; in wm8750_find_pll_bits()
[all …]
/linux-4.4.14/arch/powerpc/boot/dts/fsl/
Dqoriq-clockgen1.dtsi54 clock-output-names = "pll0", "pll0-div2";
61 clock-output-names = "pll1", "pll1-div2";
68 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
76 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
84 clock-output-names = "platform-pll", "platform-pll-div2";
Dp4080si-post.dtsi383 clock-output-names = "pll2", "pll2-div2";
391 clock-output-names = "pll3", "pll3-div2";
399 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
408 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
417 clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
426 clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
435 clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
444 clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
Dqoriq-clockgen2.dtsi53 clock-output-names = "pll0", "pll0-div2", "pll0-div4";
60 clock-output-names = "pll1", "pll1-div2", "pll1-div4";
67 clock-output-names = "platform-pll", "platform-pll-div2";
Dt1040si-post.dtsi433 clock-names = "pll0", "pll0-div2", "pll1-div4",
434 "pll1", "pll1-div2", "pll1-div4";
444 clock-names = "pll0", "pll0-div2", "pll1-div4",
445 "pll1", "pll1-div2", "pll1-div4";
455 clock-names = "pll0", "pll0-div2", "pll1-div4",
456 "pll1", "pll1-div2", "pll1-div4";
Dt4240si-post.dtsi959 clock-output-names = "pll2", "pll2-div2", "pll2-div4";
967 clock-output-names = "pll3", "pll3-div2", "pll3-div4";
975 clock-output-names = "pll4", "pll4-div2", "pll4-div4";
985 clock-names = "pll0", "pll0-div2", "pll0-div4",
986 "pll1", "pll1-div2", "pll1-div4",
987 "pll2", "pll2-div2", "pll2-div4";
998 clock-names = "pll0", "pll0-div2", "pll0-div4",
999 "pll1", "pll1-div2", "pll1-div4",
1000 "pll2", "pll2-div2", "pll2-div4";
1010 clock-names = "pll3", "pll3-div2", "pll3-div4",
[all …]
Dp2041si-post.dtsi336 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
345 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
Dp3041si-post.dtsi363 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
372 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
Dp5040si-post.dtsi328 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
337 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
Dt2081si-post.dtsi545 clock-names = "pll0", "pll0-div2", "pll0-div4",
546 "pll1", "pll1-div2", "pll1-div4";
556 clock-names = "pll0", "pll0-div2", "pll0-div4",
557 "pll1", "pll1-div2", "pll1-div4";
Db4si-post.dtsi411 clock-names = "pll0", "pll0-div2", "pll0-div4",
412 "pll1", "pll1-div2", "pll1-div4";
/linux-4.4.14/arch/microblaze/lib/
Ddivsi3.S37 blti r5, div2 /* this traps r5 == 0x80000000 */
42 div2: label
55 bri div2 /* div2 */
Dudivsi3.S51 blti r5, div2
56 div2: label
69 bri div2 /* div2 */
Dumodsi3.S53 blti r5, div2
58 div2: label
71 bri div2 /* div2 */
Dmodsi3.S42 div2: label
55 bri div2 /* div2 */
/linux-4.4.14/arch/sh/kernel/cpu/sh2a/
Dclock-sh7264.c66 static int div2[] = { 1, 2, 3, 4, 6, 8, 12 }; variable
69 .divisors = div2,
70 .nr_divisors = ARRAY_SIZE(div2),
Dclock-sh7269.c94 static int div2[] = { 1, 2, 0, 4 }; variable
97 .divisors = div2,
98 .nr_divisors = ARRAY_SIZE(div2),
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dqoriq-clock.txt145 clock-output-names = "pll0", "pll0-div2";
153 clock-output-names = "pll1", "pll1-div2";
161 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
170 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
179 clock-output-names = "platform-pll", "platform-pll-div2";
/linux-4.4.14/arch/sh/kernel/cpu/sh4a/
Dclock-shx3.c50 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable
54 .divisors = div2,
55 .nr_divisors = ARRAY_SIZE(div2),
Dclock-sh7757.c51 static unsigned int div2[] = { 1, 1, 2, 1, 1, 4, 1, 6, variable
55 .divisors = div2,
56 .nr_divisors = ARRAY_SIZE(div2),
Dclock-sh7785.c54 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable
58 .divisors = div2,
59 .nr_divisors = ARRAY_SIZE(div2),
Dclock-sh7786.c56 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable
60 .divisors = div2,
61 .nr_divisors = ARRAY_SIZE(div2),
/linux-4.4.14/drivers/media/tuners/
Dmt2131.c103 u32 div1, num1, div2, num2; in mt2131_set_params() local
125 div2 = num2 / 8192; in mt2131_set_params()
154 b[6] = div2; in mt2131_set_params()
160 (int)div1, (int)num1, (int)div2, (int)num2); in mt2131_set_params()
Dmt2060.c164 u32 div1,num1,div2,num2; in mt2060_set_params() local
201 div2 = num2 / 8192; in mt2060_set_params()
220 b[5] = ((num2 >>12) & 1) | (div2 << 1); 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()
/linux-4.4.14/drivers/spi/
Dspi-omap-uwire.c318 int div2; in uwire_setup_transfer() local
375 div2 = (rate / div1 + hz - 1) / hz; in uwire_setup_transfer()
376 if (div2 <= 8) in uwire_setup_transfer()
394 switch (div2) { in uwire_setup_transfer()
/linux-4.4.14/drivers/cpufreq/
Dpxa2xx-cpufreq.c63 unsigned int div2; member
287 new_freq_cpu / 1000, (pxa_freq_settings[idx].div2) ? in pxa_set_target()
312 if (pxa_freq_settings[idx].div2) { in pxa_set_target()
/linux-4.4.14/sound/soc/codecs/
Dwm8978.c406 u8 div2; member
420 pll_div->div2 = 1; in pll_factors()
423 pll_div->div2 = 0; in pll_factors()
542 __func__, pll_div.n, pll_div.k, pll_div.div2); in wm8978_configure_pll()
547 snd_soc_write(codec, WM8978_PLL_N, (pll_div.div2 << 4) | pll_div.n); in wm8978_configure_pll()
Dwm8983.c747 u32 div2:1; member
759 pll_div->div2 = 0; in pll_factors()
763 pll_div->div2 = 1; in pll_factors()
812 (pll_div.div2 << WM8983_PLL_PRESCALE_SHIFT) in wm8983_set_pll()
Dwm8985.c778 u32 div2:1; member
790 pll_div->div2 = 0; in pll_factors()
794 pll_div->div2 = 1; in pll_factors()
839 (pll_div.div2 << WM8985_PLL_PRESCALE_SHIFT) in wm8985_set_pll()
Dwm8990.c888 u32 div2; member
907 pll_div->div2 = 1; in pll_factors()
910 pll_div->div2 = 0; in pll_factors()
953 (pll_div.div2?WM8990_PRESCALE:0)); in wm8990_set_dai_pll()
Dwm8991.c870 u32 div2; member
889 pll_div->div2 = 1; in pll_factors()
892 pll_div->div2 = 0; in pll_factors()
937 (pll_div.div2 ? WM8991_PRESCALE : 0)); in wm8991_set_dai_pll()
Dsgtl5000.c654 int div2; in sgtl5000_set_clock() local
659 div2 = 1; in sgtl5000_set_clock()
662 div2 = 0; in sgtl5000_set_clock()
678 if (div2) in sgtl5000_set_clock()
Dwm8753.c698 u32 div2:1; member
716 pll_div->div2 = 1; in pll_factors()
719 pll_div->div2 = 0; in pll_factors()
789 (pll_div.div2 << 3)); in wm8753_set_dai_pll()
Dda7210.c220 u8 div2; member
1008 pll_div2 = da7210_pll_div[cnt].div2; in da7210_set_dai_pll()
/linux-4.4.14/sound/oss/
Dsb_ess.c344 int div1, div2; in ess_calc_best_speed() local
349 div2 = ess_calc_div (clock2, rev2, &speed2, &diff2); in ess_calc_best_speed()
357 *divp = 0x80 | div2; in ess_calc_best_speed()
407 int div, div2; in ess_speed() local
418 div2 = 256 - 7160000 / (speed * 82); in ess_speed()
427 ess_write (devc, 0xa2, div2); in ess_speed()
433 ess_write (devc, 0xa2, div2); in ess_speed()
434 ess_setmixer (devc, 0x72, div2); in ess_speed()
/linux-4.4.14/arch/mips/alchemy/common/
Dclock.c371 long div1, div2; in alchemy_calc_div() local
382 div2 = (div1 / scale) - 1; /* value to write to register */ in alchemy_calc_div()
384 if (div2 > maxdiv) in alchemy_calc_div()
385 div2 = maxdiv; in alchemy_calc_div()
387 *rv = div2; in alchemy_calc_div()
389 div1 = ((div2 + 1) * scale); in alchemy_calc_div()
/linux-4.4.14/drivers/staging/comedi/drivers/
Dadl_pci9118.c532 unsigned int *div1, unsigned int *div2, in pci9118_calc_divisors() argument
539 *div2 = *tim1 / pacer->osc_base; /* scan timer */ in pci9118_calc_divisors()
540 *div2 = *div2 / *div1; /* major timer is c1*c2 */ in pci9118_calc_divisors()
541 if (*div2 < chans) in pci9118_calc_divisors()
542 *div2 = chans; in pci9118_calc_divisors()
548 if (*div2 < (chans + 2)) in pci9118_calc_divisors()
549 *div2 = chans + 2; in pci9118_calc_divisors()
552 *tim1 = *div1 * *div2 * pacer->osc_base; in pci9118_calc_divisors()
/linux-4.4.14/arch/arm/boot/dts/
Dstih415-clock.dtsi225 clk_m_a0_div2: clk-m-a0-div2 {
339 clk_m_a1_div2: clk-m-a1-div2 {
378 clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2 {
461 clk_m_a2_div2: clk-m-a2-div2 {
Dstih418-clock.dtsi78 clock-output-names = "clk-m-a9-ext2f-div2";
289 "clk-tmds-hdmi-div2",
Dstih416-clock.dtsi227 clk_m_a0_div2: clk-m-a0-div2 {
341 clk_m_a1_div2: clk-m-a1-div2 {
380 clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2 {
463 clk_m_a2_div2: clk-m-a2-div2 {
Dls1021a.dtsi207 clock-output-names = "cga-pll1", "cga-pll1-div2",
216 clock-output-names = "platform-clk", "platform-clk-div2";
223 clock-names = "pll1cga", "pll1cga-div2", "pll1cga-div4";
Dstih407-clock.dtsi76 clock-output-names = "clk-m-a9-ext2f-div2";
Dstih410-clock.dtsi78 clock-output-names = "clk-m-a9-ext2f-div2";
/linux-4.4.14/drivers/video/fbdev/
Dcyber2000fb.c670 u_int div2, t_div1, best_div1, best_mult; in cyber2000fb_decode_clock() local
679 for (div2 = 0; div2 < 4; div2++) { in cyber2000fb_decode_clock()
682 new_pll = pll_ps / cfb->divisors[div2]; in cyber2000fb_decode_clock()
689 if (div2 == 4) in cyber2000fb_decode_clock()
745 hw->clock_div = div2 << 6 | (best_div1 - 1); in cyber2000fb_decode_clock()
Damifb.c545 #define div2(v) ((v)>>1) macro
1022 #define vsstrt2hw(vsstrt) (div2(vsstrt))
1023 #define vsstop2hw(vsstop) (div2(vsstop))
1024 #define vtotal2hw(vtotal) (div2(vtotal) - 1)
1031 #define vbstrt2hw(vbstrt) (div2(vbstrt))
1032 #define vbstop2hw(vbstop) (div2(vbstop))
/linux-4.4.14/sound/soc/fsl/
Dfsl_ssi.c648 u32 pm = 999, div2, psr, stccr, mask, afreq, factor, i; in fsl_ssi_set_bclk() local
668 div2 = 0; in fsl_ssi_set_bclk()
670 factor = (div2 + 1) * (7 * psr + 1) * 2; in fsl_ssi_set_bclk()
703 if (sub < savesub && !(i == 0 && psr == 0 && div2 == 0)) { in fsl_ssi_set_bclk()
720 stccr = CCSR_SSI_SxCCR_PM(pm + 1) | (div2 ? CCSR_SSI_SxCCR_DIV2 : 0) | in fsl_ssi_set_bclk()
/linux-4.4.14/drivers/media/dvb-frontends/
Dstb0899_algo.c1287 int div1, div2, rem1, rem2; in stb0899_dvbs2_get_srate() local
1290 div2 = config->btr_nco_bits - div1 - 1; in stb0899_dvbs2_get_srate()
1299 intval2 = bTrNomFreq / (1 << div2); in stb0899_dvbs2_get_srate()
1302 rem2 = bTrNomFreq % (1 << div2); in stb0899_dvbs2_get_srate()
1304 srate = (intval1 * intval2) + ((intval1 * rem2) / (1 << div2)) + ((intval2 * rem1) / (1 << div1)); in stb0899_dvbs2_get_srate()
/linux-4.4.14/Documentation/devicetree/bindings/iio/frequency/
Dadf4350.txt21 - adi,reference-div2-enable: Enables reference divider.
/linux-4.4.14/Documentation/devicetree/bindings/soc/fsl/
Dqman.txt150 clock-output-names = "platform-pll", "platform-pll-div2";