Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/clk/
Dclk-vt8500.c456 int 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 *divisor2 = div2; in wm8750_find_pll_bits()
504 int div1, div2; in wm8850_find_pll_bits() local
511 for (div2 = 3; div2 >= 0; div2--) in wm8850_find_pll_bits()
514 ((div1 + 1) * (1 << div2)); in wm8850_find_pll_bits()
522 *divisor2 = div2; in wm8850_find_pll_bits()
530 *divisor2 = div2; in wm8850_find_pll_bits()
[all …]
/kernel/linux/linux-5.10/drivers/clk/zynqmp/
Ddivider.c118 int div2; in zynqmp_get_divider2_val() local
136 for (div2 = 1; div2 <= divider->max_div;) { in zynqmp_get_divider2_val()
137 long new_error = ((div1_prate / div1) / div2) - rate; in zynqmp_get_divider2_val()
140 *bestdiv = div2; in zynqmp_get_divider2_val()
144 div2 = div2 << 1; in zynqmp_get_divider2_val()
146 div2++; in zynqmp_get_divider2_val()
/kernel/linux/linux-5.10/drivers/clk/imx/
Dclk-composite-8m.c54 int div1, div2; in imx8m_clk_composite_compute_dividers() local
62 for (div2 = 1; div2 <= PCG_DIV_MAX; div2++) { in imx8m_clk_composite_compute_dividers()
63 int new_error = ((parent_rate / div1) / div2) - rate; in imx8m_clk_composite_compute_dividers()
67 *postdiv = div2; in imx8m_clk_composite_compute_dividers()
/kernel/linux/linux-5.10/drivers/clk/uniphier/
Dclk-uniphier.h114 #define UNIPHIER_CLK_DIV3(parent, div0, div1, div2) \ argument
116 UNIPHIER_CLK_DIV(parent, div2)
118 #define UNIPHIER_CLK_DIV4(parent, div0, div1, div2, div3) \ argument
120 UNIPHIER_CLK_DIV2(parent, div2, div3)
/kernel/linux/linux-5.10/arch/microblaze/lib/
Ddivsi3.S38 blti r5, div2 /* this traps r5 == 0x80000000 */
43 div2: label
56 bri div2 /* div2 */
Dudivsi3.S52 blti r5, div2
57 div2: label
70 bri div2 /* div2 */
Dumodsi3.S54 blti r5, div2
59 div2: label
72 bri div2 /* div2 */
Dmodsi3.S43 div2: label
56 bri div2 /* div2 */
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2a/
Dclock-sh7264.c63 static int div2[] = { 1, 2, 3, 4, 6, 8, 12 }; variable
66 .divisors = div2,
67 .nr_divisors = ARRAY_SIZE(div2),
Dclock-sh7269.c91 static int div2[] = { 1, 2, 0, 4 }; variable
94 .divisors = div2,
95 .nr_divisors = ARRAY_SIZE(div2),
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4a/
Dclock-sh7757.c48 static unsigned int div2[] = { 1, 1, 2, 1, 1, 4, 1, 6, variable
52 .divisors = div2,
53 .nr_divisors = ARRAY_SIZE(div2),
Dclock-shx3.c47 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable
51 .divisors = div2,
52 .nr_divisors = ARRAY_SIZE(div2),
Dclock-sh7785.c51 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable
55 .divisors = div2,
56 .nr_divisors = ARRAY_SIZE(div2),
Dclock-sh7786.c53 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable
57 .divisors = div2,
58 .nr_divisors = ARRAY_SIZE(div2),
/kernel/linux/linux-5.10/drivers/media/tuners/
Dmt2131.c89 u32 div1, num1, div2, num2; in mt2131_set_params() local
111 div2 = num2 / 8192; in mt2131_set_params()
140 b[6] = div2; 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
233 div2 = num2 / 8192; in mt2060_set_params()
252 b[5] = ((num2 >>12) & 1) | (div2 << 1); 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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/
Dqoriq-clock.txt164 clock-output-names = "pll0", "pll0-div2";
172 clock-output-names = "pll1", "pll1-div2";
180 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
189 clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
198 clock-output-names = "platform-pll", "platform-pll-div2";
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dsorgf119.c125 u32 div2 = sor->asy.link == 3; in gf119_sor_clock() local
130 div2 = 1; in gf119_sor_clock()
132 nvkm_mask(device, 0x612300 + soff, 0x00000707, (div2 << 8) | div1); in gf119_sor_clock()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dwm8978.c403 u8 div2; member
417 pll_div->div2 = 1; in pll_factors()
420 pll_div->div2 = 0; in pll_factors()
539 __func__, pll_div.n, pll_div.k, pll_div.div2); in wm8978_configure_pll()
544 snd_soc_component_write(component, WM8978_PLL_N, (pll_div.div2 << 4) | pll_div.n); in wm8978_configure_pll()
Dwm8991.c868 u32 div2; member
887 pll_div->div2 = 1; in pll_factors()
890 pll_div->div2 = 0; in pll_factors()
935 (pll_div.div2 ? WM8991_PRESCALE : 0)); in wm8991_set_dai_pll()
Dwm8983.c744 u32 div2:1; member
756 pll_div->div2 = 0; in pll_factors()
760 pll_div->div2 = 1; in pll_factors()
809 (pll_div.div2 << WM8983_PLL_PRESCALE_SHIFT) in wm8983_set_pll()
Dwm8990.c797 u32 div2; member
816 pll_div->div2 = 1; in pll_factors()
819 pll_div->div2 = 0; in pll_factors()
862 (pll_div.div2?WM8990_PRESCALE:0)); in wm8990_set_dai_pll()
/kernel/linux/linux-5.10/arch/mips/alchemy/common/
Dclock.c379 long div1, div2; in alchemy_calc_div() local
390 div2 = (div1 / scale) - 1; /* value to write to register */ in alchemy_calc_div()
392 if (div2 > maxdiv) in alchemy_calc_div()
393 div2 = maxdiv; in alchemy_calc_div()
395 *rv = div2; in alchemy_calc_div()
397 div1 = ((div2 + 1) * scale); in alchemy_calc_div()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dadl_pci9118.c533 unsigned int *div1, unsigned int *div2, in pci9118_calc_divisors() argument
540 *div2 = *tim1 / pacer->osc_base; /* scan timer */ in pci9118_calc_divisors()
541 *div2 = *div2 / *div1; /* major timer is c1*c2 */ in pci9118_calc_divisors()
542 if (*div2 < chans) in pci9118_calc_divisors()
543 *div2 = chans; in pci9118_calc_divisors()
549 if (*div2 < (chans + 2)) in pci9118_calc_divisors()
550 *div2 = chans + 2; in pci9118_calc_divisors()
553 *tim1 = *div1 * *div2 * pacer->osc_base; in pci9118_calc_divisors()

12