/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-vt8500.c | 456 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/ |
D | divider.c | 118 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/ |
D | clk-composite-8m.c | 54 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/ |
D | clk-uniphier.h | 114 #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/ |
D | divsi3.S | 38 blti r5, div2 /* this traps r5 == 0x80000000 */ 43 div2: label 56 bri div2 /* div2 */
|
D | udivsi3.S | 52 blti r5, div2 57 div2: label 70 bri div2 /* div2 */
|
D | umodsi3.S | 54 blti r5, div2 59 div2: label 72 bri div2 /* div2 */
|
D | modsi3.S | 43 div2: label 56 bri div2 /* div2 */
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2a/ |
D | clock-sh7264.c | 63 static int div2[] = { 1, 2, 3, 4, 6, 8, 12 }; variable 66 .divisors = div2, 67 .nr_divisors = ARRAY_SIZE(div2),
|
D | clock-sh7269.c | 91 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/ |
D | clock-sh7757.c | 48 static unsigned int div2[] = { 1, 1, 2, 1, 1, 4, 1, 6, variable 52 .divisors = div2, 53 .nr_divisors = ARRAY_SIZE(div2),
|
D | clock-shx3.c | 47 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable 51 .divisors = div2, 52 .nr_divisors = ARRAY_SIZE(div2),
|
D | clock-sh7785.c | 51 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable 55 .divisors = div2, 56 .nr_divisors = ARRAY_SIZE(div2),
|
D | clock-sh7786.c | 53 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/ |
D | mt2131.c | 89 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()
|
D | mt2060.c | 196 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/ |
D | qoriq-clock.txt | 164 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/ |
D | spi-omap-uwire.c | 318 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/ |
D | sorgf119.c | 125 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/ |
D | wm8978.c | 403 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()
|
D | wm8991.c | 868 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()
|
D | wm8983.c | 744 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()
|
D | wm8990.c | 797 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/ |
D | clock.c | 379 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/ |
D | adl_pci9118.c | 533 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()
|