Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/staging/comedi/drivers/
D8253.h38 int div1, div2; in i8253_cascade_ns_to_timer_2div_old() local
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()
61 div1_glb = div1; in i8253_cascade_ns_to_timer_2div_old()
67 ns = i8253_osc_base * div1 * div2; in i8253_cascade_ns_to_timer_2div_old()
70 div1_lub = div1; in i8253_cascade_ns_to_timer_2div_old()
88 int div1, div2; in i8253_cascade_ns_to_timer_power() local
91 for (div1 = 2; div1 <= (1 << 16); div1 <<= 1) { in i8253_cascade_ns_to_timer_power()
92 base = i8253_osc_base * div1; in i8253_cascade_ns_to_timer_power()
[all …]
Dadl_pci9118.c465 unsigned int *div1, unsigned int *div2,
1967 unsigned int *div1, unsigned int *div2, in pci9118_calc_divisors() argument
1979 i8253_cascade_ns_to_timer(devpriv->i8254_osc_base, div1, div2, in pci9118_calc_divisors()
1982 devpriv->i8254_osc_base, *div1, *div2, *tim1); in pci9118_calc_divisors()
1987 DPRINTK("1 div1=%u div2=%u timer1=%u timer2=%u\n", *div1, *div2, in pci9118_calc_divisors()
1989 *div1 = *tim2 / devpriv->i8254_osc_base; in pci9118_calc_divisors()
1991 DPRINTK("2 div1=%u div2=%u timer1=%u timer2=%u\n", *div1, *div2, in pci9118_calc_divisors()
1993 if (*div1 < this_board->ai_pacer_min) in pci9118_calc_divisors()
1994 *div1 = this_board->ai_pacer_min; in pci9118_calc_divisors()
1995 DPRINTK("3 div1=%u div2=%u timer1=%u timer2=%u\n", *div1, *div2, in pci9118_calc_divisors()
[all …]
Damplc_pci224.c966 unsigned int div1, div2, round; in pci224_ao_cmdtest() local
999 div1 = devpriv->cached_div1; in pci224_ao_cmdtest()
1001 pci224_cascade_ns_to_timer(TIMEBASE_10MHZ, &div1, &div2, in pci224_ao_cmdtest()
1004 devpriv->cached_div1 = div1; in pci224_ao_cmdtest()
1124 unsigned int div1, div2, round; in pci224_ao_cmd() local
1150 div1 = 1; /* Flag that single timer to be used. */ in pci224_ao_cmd()
1153 div1 = devpriv->cached_div1; in pci224_ao_cmd()
1155 pci224_cascade_ns_to_timer(TIMEBASE_10MHZ, &div1, &div2, in pci224_ao_cmd()
1166 if (div1 == 1) { in pci224_ao_cmd()
1180 2, div1, 2); in pci224_ao_cmd()
Dcb_das16_cs.c455 unsigned int div1 = 0, div2 = 0; in das16cs_ai_cmdtest() local
458 i8253_cascade_ns_to_timer(100, &div1, &div2, in das16cs_ai_cmdtest()
465 unsigned int div1 = 0, div2 = 0; in das16cs_ai_cmdtest() local
468 i8253_cascade_ns_to_timer(100, &div1, &div2, in das16cs_ai_cmdtest()
/linux-2.6.39/arch/sh/lib/
Dudivsi3.S37 div1 r5,r4
39 div1 r5,r4; div1 r5,r4; div1 r5,r4
40 div1 r5,r4; div1 r5,r4; div1 r5,r4; rts; div1 r5,r4
43 div1 r5,r4; rotcl r0
44 div1 r5,r4; rotcl r0
45 div1 r5,r4; rotcl r0
46 rts; div1 r5,r4
59 div1 r5,r4
65 div1 r5,r4
Dudivsi3_i4i-Os.S59 div1 r5,r4
61 div1 r5,r4
62 div1 r5,r4
64 div1 r5,r4
69 div1 r5,r4
71 div1 r5,r4
79 div1 r5,r4
81 div1 r5,r4; div1 r5,r4; div1 r5,r4
82 div1 r5,r4; div1 r5,r4; rts; div1 r5,r4
86 div1 r5,r4
[all …]
Dudivsi3_i4i.S76 div1 r5,r0
78 div1 r5,r0
79 div1 r5,r0
81 div1 r5,r0
123 div1 r5,r0
130 div1 r5,r0
133 div1 r5,r0
136 div1 r5,r0
139 div1 r5,r0
141 div1 r5,r0
[all …]
Ddiv64.S25 div1 r6, r3
35 div1 r6, r1
Dudiv_qrnnd.S50 div1 r6,r0
/linux-2.6.39/arch/arm/mach-mx3/
Dclock-imx35.c219 unsigned long div1, div2, rate; in get_rate_mshc() local
226 div1 = (pdr1 >> 29) & 0x7; in get_rate_mshc()
229 return rate / ((div1 + 1) * (div2 + 1)); in get_rate_mshc()
235 unsigned long div1, div2, rate; in get_rate_ssi() local
245 div1 = pdr2 & 0x3f; in get_rate_ssi()
249 div1 = (pdr2 >> 8) & 0x3f; in get_rate_ssi()
254 return rate / ((div1 + 1) * (div2 + 1)); in get_rate_ssi()
423 unsigned long div1; in get_rate_nfc() local
425 div1 = (__raw_readl(CCM_BASE + CCM_PDR4) >> 28) + 1; in get_rate_nfc()
427 return get_rate_ahb(NULL) / div1; in get_rate_nfc()
/linux-2.6.39/drivers/spi/
Domap_uwire.c328 int div1; in uwire_setup_transfer() local
389 div1 = 2; in uwire_setup_transfer()
392 div1 = 4; in uwire_setup_transfer()
395 div1 = 7; in uwire_setup_transfer()
399 div1 = 10; in uwire_setup_transfer()
402 div2 = (rate / div1 + hz - 1) / hz; in uwire_setup_transfer()
419 rate /= div1; in uwire_setup_transfer()
/linux-2.6.39/drivers/mmc/host/
Dmxs-mmc.c568 u32 div1, div2; in mxs_mmc_set_clk_rate() local
573 for (div1 = 2; div1 < 254; div1 += 2) { in mxs_mmc_set_clk_rate()
574 div2 = ssp_rate / rate / div1; in mxs_mmc_set_clk_rate()
579 if (div1 >= 254) { in mxs_mmc_set_clk_rate()
586 bit_rate = ssp_rate / div1; in mxs_mmc_set_clk_rate()
588 bit_rate = ssp_rate / div1 / div2; in mxs_mmc_set_clk_rate()
592 val |= BF_SSP(div1, TIMING_CLOCK_DIVIDE); in mxs_mmc_set_clk_rate()
600 __func__, div1, div2, ssp_rate, bit_rate, rate); in mxs_mmc_set_clk_rate()
/linux-2.6.39/drivers/media/common/tuners/
Dmt2131.c103 u32 div1, num1, div2, num2; in mt2131_set_params() local
124 div1 = num1 / 8192; in mt2131_set_params()
155 b[3] = div1; in mt2131_set_params()
164 (int)div1, (int)num1, (int)div2, (int)num2); in mt2131_set_params()
Dmt2060.c164 u32 div1,num1,div2,num2; in mt2060_set_params() local
197 div1 = num1 / 64; in mt2060_set_params()
218 b[2] = div1; 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-2.6.39/arch/microblaze/lib/
Ddivsi3.S38 div1: label
40 bgtid r5, div1
Dmodsi3.S38 div1: label
40 bgeid r5, div1
Dudivsi3.S52 div1: label
54 bgtid r5, div1
Dumodsi3.S54 div1: label
56 bgeid r5, div1
/linux-2.6.39/drivers/i2c/busses/
Di2c-s3c2410.c596 unsigned int *div1, unsigned int *divs) in s3c24xx_i2c_calcdivisor() argument
615 *div1 = calc_div1; in s3c24xx_i2c_calcdivisor()
631 unsigned int divs, div1; in s3c24xx_i2c_clockrate() local
645 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate()
660 if (div1 == 512) in s3c24xx_i2c_clockrate()
/linux-2.6.39/drivers/media/dvb/frontends/
Dstb0899_algo.c1275 int div1, div2, rem1, rem2; in stb0899_dvbs2_get_srate() local
1277 div1 = config->btr_nco_bits / 2; in stb0899_dvbs2_get_srate()
1278 div2 = config->btr_nco_bits - div1 - 1; in stb0899_dvbs2_get_srate()
1286 intval1 = internal->master_clk / (1 << div1); in stb0899_dvbs2_get_srate()
1289 rem1 = internal->master_clk % (1 << div1); in stb0899_dvbs2_get_srate()
1292 srate = (intval1 * intval2) + ((intval1 * rem2) / (1 << div2)) + ((intval2 * rem1) / (1 << div1)); in stb0899_dvbs2_get_srate()
/linux-2.6.39/sound/oss/
Dsb_ess.c344 int div1, div2; in ess_calc_best_speed() local
348 div1 = ess_calc_div (clock1, rev1, &speed1, &diff1); in ess_calc_best_speed()
352 *divp = div1; in ess_calc_best_speed()