/linux-3.4.99/drivers/staging/comedi/drivers/ |
D | 8253.h | 38 int div1, div2; in i8253_cascade_ns_to_timer_2div_old() local 54 div2 = 0x10000; in i8253_cascade_ns_to_timer_2div_old() 55 for (div1 = divider / 65536 + 1; div1 < div2; div1++) { in i8253_cascade_ns_to_timer_2div_old() 56 div2 = divider / div1; in i8253_cascade_ns_to_timer_2div_old() 58 ns = i8253_osc_base * div1 * div2; in i8253_cascade_ns_to_timer_2div_old() 62 div2_glb = div2; in i8253_cascade_ns_to_timer_2div_old() 65 div2++; in i8253_cascade_ns_to_timer_2div_old() 66 if (div2 <= 65536) { in i8253_cascade_ns_to_timer_2div_old() 67 ns = i8253_osc_base * div1 * div2; in i8253_cascade_ns_to_timer_2div_old() 71 div2_lub = div2; in i8253_cascade_ns_to_timer_2div_old() [all …]
|
D | amplc_pci224.c | 963 unsigned int div1, div2, round; in pci224_ao_cmdtest() local 981 div2 = cmd->scan_begin_arg / TIMEBASE_10MHZ; in pci224_ao_cmdtest() 982 div2 += (round + cmd->scan_begin_arg % TIMEBASE_10MHZ) / in pci224_ao_cmdtest() 984 if (div2 <= 0x10000) { in pci224_ao_cmdtest() 986 if (div2 < 2) in pci224_ao_cmdtest() 987 div2 = 2; in pci224_ao_cmdtest() 988 cmd->scan_begin_arg = div2 * TIMEBASE_10MHZ; in pci224_ao_cmdtest() 989 if (cmd->scan_begin_arg < div2 || in pci224_ao_cmdtest() 997 div2 = devpriv->cached_div2; in pci224_ao_cmdtest() 998 pci224_cascade_ns_to_timer(TIMEBASE_10MHZ, &div1, &div2, in pci224_ao_cmdtest() [all …]
|
D | adl_pci9118.c | 466 unsigned int *div1, unsigned int *div2, 1968 unsigned int *div1, unsigned int *div2, in pci9118_calc_divisors() argument 1980 i8253_cascade_ns_to_timer(devpriv->i8254_osc_base, div1, div2, in pci9118_calc_divisors() 1983 devpriv->i8254_osc_base, *div1, *div2, *tim1); in pci9118_calc_divisors() 1988 DPRINTK("1 div1=%u div2=%u timer1=%u timer2=%u\n", *div1, *div2, in pci9118_calc_divisors() 1992 DPRINTK("2 div1=%u div2=%u timer1=%u timer2=%u\n", *div1, *div2, in pci9118_calc_divisors() 1996 DPRINTK("3 div1=%u div2=%u timer1=%u timer2=%u\n", *div1, *div2, in pci9118_calc_divisors() 1998 *div2 = *tim1 / devpriv->i8254_osc_base; /* scan timer */ in pci9118_calc_divisors() 1999 DPRINTK("4 div1=%u div2=%u timer1=%u timer2=%u\n", *div1, *div2, in pci9118_calc_divisors() 2001 *div2 = *div2 / *div1; /* major timer is c1*c2 */ in pci9118_calc_divisors() [all …]
|
D | cb_das16_cs.c | 454 unsigned int div1 = 0, div2 = 0; in das16cs_ai_cmdtest() local 457 i8253_cascade_ns_to_timer(100, &div1, &div2, in das16cs_ai_cmdtest() 464 unsigned int div1 = 0, div2 = 0; in das16cs_ai_cmdtest() local 467 i8253_cascade_ns_to_timer(100, &div1, &div2, in das16cs_ai_cmdtest()
|
/linux-3.4.99/arch/microblaze/lib/ |
D | divsi3.S | 37 blti r5, div2 /* this traps r5 == 0x80000000 */ 42 div2: label 55 bri div2 /* div2 */
|
D | udivsi3.S | 51 blti r5, div2 56 div2: label 69 bri div2 /* div2 */
|
D | umodsi3.S | 53 blti r5, div2 58 div2: label 71 bri div2 /* div2 */
|
D | modsi3.S | 42 div2: label 55 bri div2 /* div2 */
|
/linux-3.4.99/arch/sh/kernel/cpu/sh4a/ |
D | clock-sh7757.c | 51 static unsigned int div2[] = { 1, 1, 2, 1, 1, 4, 1, 6, variable 55 .divisors = div2, 56 .nr_divisors = ARRAY_SIZE(div2),
|
D | clock-shx3.c | 50 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable 54 .divisors = div2, 55 .nr_divisors = ARRAY_SIZE(div2),
|
D | clock-sh7785.c | 54 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable 58 .divisors = div2, 59 .nr_divisors = ARRAY_SIZE(div2),
|
D | clock-sh7786.c | 56 static unsigned int div2[] = { 1, 2, 4, 6, 8, 12, 16, 18, variable 60 .divisors = div2, 61 .nr_divisors = ARRAY_SIZE(div2),
|
/linux-3.4.99/arch/arm/mach-imx/ |
D | clock-imx35.c | 203 unsigned long div1, div2, rate; in get_rate_mshc() local 211 div2 = (pdr1 >> 22) & 0x3f; in get_rate_mshc() 213 return rate / ((div1 + 1) * (div2 + 1)); in get_rate_mshc() 219 unsigned long div1, div2, rate; in get_rate_ssi() local 230 div2 = (pdr2 >> 24) & 0x7; in get_rate_ssi() 234 div2 = (pdr2 >> 27) & 0x7; in get_rate_ssi() 238 return rate / ((div1 + 1) * (div2 + 1)); in get_rate_ssi()
|
/linux-3.4.99/drivers/media/common/tuners/ |
D | mt2131.c | 103 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()
|
D | mt2060.c | 165 u32 div1,num1,div2,num2; in mt2060_set_params() local 202 div2 = num2 / 8192; in mt2060_set_params() 221 b[5] = ((num2 >>12) & 1) | (div2 << 1); in mt2060_set_params() 225 dprintk("PLL div1=%d num1=%d div2=%d num2=%d",(int)div1,(int)num1,(int)div2,(int)num2); in mt2060_set_params()
|
/linux-3.4.99/drivers/spi/ |
D | spi-omap-uwire.c | 329 int div2; in uwire_setup_transfer() local 402 div2 = (rate / div1 + hz - 1) / hz; in uwire_setup_transfer() 403 if (div2 <= 8) in uwire_setup_transfer() 421 switch (div2) { in uwire_setup_transfer()
|
/linux-3.4.99/arch/arm/mach-pxa/ |
D | cpufreq-pxa2xx.c | 65 unsigned int div2; member 318 freqs.new / 1000, (pxa_freq_settings[idx].div2) ? in pxa_set_target() 348 if (pxa_freq_settings[idx].div2) { in pxa_set_target()
|
/linux-3.4.99/sound/oss/ |
D | sb_ess.c | 344 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-3.4.99/sound/soc/codecs/ |
D | wm8978.c | 406 u8 div2; member 420 pll_div->div2 = 1; in pll_factors() 423 pll_div->div2 = 0; in pll_factors() 545 __func__, pll_div.n, pll_div.k, pll_div.div2); in wm8978_configure_pll() 550 snd_soc_write(codec, WM8978_PLL_N, (pll_div.div2 << 4) | pll_div.n); in wm8978_configure_pll()
|
D | wm8983.c | 805 u32 div2:1; member 817 pll_div->div2 = 0; in pll_factors() 821 pll_div->div2 = 1; in pll_factors() 869 (pll_div.div2 << WM8983_PLL_PRESCALE_SHIFT) in wm8983_set_pll()
|
D | wm8985.c | 783 u32 div2:1; member 795 pll_div->div2 = 0; in pll_factors() 799 pll_div->div2 = 1; in pll_factors() 848 (pll_div.div2 << WM8985_PLL_PRESCALE_SHIFT) in wm8985_set_pll()
|
D | wm8991.c | 917 u32 div2; member 936 pll_div->div2 = 1; in pll_factors() 939 pll_div->div2 = 0; in pll_factors() 984 (pll_div.div2 ? WM8991_PRESCALE : 0)); in wm8991_set_dai_pll()
|
D | wm8990.c | 934 u32 div2; member 953 pll_div->div2 = 1; in pll_factors() 956 pll_div->div2 = 0; in pll_factors() 999 (pll_div.div2?WM8990_PRESCALE:0)); in wm8990_set_dai_pll()
|
D | sgtl5000.c | 608 int div2; in sgtl5000_set_clock() local 613 div2 = 1; in sgtl5000_set_clock() 616 div2 = 0; in sgtl5000_set_clock() 632 if (div2) in sgtl5000_set_clock()
|
/linux-3.4.99/drivers/video/ |
D | cyber2000fb.c | 670 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()
|