Home
last modified time | relevance | path

Searched refs:div (Results 1 – 25 of 39) sorted by relevance

12

/linux-2.4.37.9/include/asm-arm/arch-riscstation/
Dacornfb.h63 u_int div, bandwidth; in acornfb_vidc20_find_rates() local
66 div = var->pixclock / 9090; /*9921*/ in acornfb_vidc20_find_rates()
69 if (div == 0) in acornfb_vidc20_find_rates()
70 div = 1; in acornfb_vidc20_find_rates()
71 if (div > 8) in acornfb_vidc20_find_rates()
72 div = 8; in acornfb_vidc20_find_rates()
75 switch (div) { in acornfb_vidc20_find_rates()
100 vidc->pll_ctl = acornfb_vidc20_find_pll(var->pixclock / div); in acornfb_vidc20_find_rates()
/linux-2.4.37.9/include/asm-arm/arch-rpc/
Dacornfb.h62 u_int div, bandwidth; in acornfb_vidc20_find_rates() local
65 div = var->pixclock / 9090; /*9921*/ in acornfb_vidc20_find_rates()
68 if (div == 0) in acornfb_vidc20_find_rates()
69 div = 1; in acornfb_vidc20_find_rates()
70 if (div > 8) in acornfb_vidc20_find_rates()
71 div = 8; in acornfb_vidc20_find_rates()
74 switch (div) { in acornfb_vidc20_find_rates()
99 vidc->pll_ctl = acornfb_vidc20_find_pll(var->pixclock / div); in acornfb_vidc20_find_rates()
/linux-2.4.37.9/arch/m68k/atari/
Ddebug.c229 int clksrc, clkmode, div, reg3, reg5; in atari_init_scc_port() local
239 div = div_table[baud]; in atari_init_scc_port()
246 div = 0; in atari_init_scc_port()
264 SCC_WRITE( 12, div ); /* BRG value */ in atari_init_scc_port()
267 SCC_WRITE( 14, brgsrc_table[baud] | (div ? 1 : 0) ); in atari_init_scc_port()
285 int div; in atari_init_midi_port() local
292 div = ACIA_DIV64; /* really 7812.5 bps */ in atari_init_midi_port()
294 div = ACIA_DIV1; /* really 500 kbps (does that work??) */ in atari_init_midi_port()
296 div = ACIA_DIV16; /* 31250 bps, standard for MIDI */ in atari_init_midi_port()
299 acia.mid_ctrl = div | csize | parity | in atari_init_midi_port()
/linux-2.4.37.9/drivers/tc/
Dlk201.h36 #define LK_CMD_MODE(m,div) (LK_PARAM|(((div)&0xf)<<3)|(((m)&0x3)<<1)) argument
39 #define LK_CMD_MODE_AR(m,div) ((((div)&0xf)<<3)|(((m)&0x3)<<1)) argument
/linux-2.4.37.9/include/asm-ppc/
Ddiv64.h6 extern u32 __div64_32(u64 *dividend, u32 div);
8 #define do_div(n, div) ({ \ argument
10 u32 __d = (div); \
/linux-2.4.37.9/drivers/media/video/
Dtuner-3036.c77 u16 div = ((freq * 20) / 16); in set_tv_freq() local
82 printk(KERN_DEBUG "tuner: setting frequency %dMHz, divisor %x\n", freq / 16, div); in set_tv_freq()
91 buffer[0] = 0x80 | ((div>>8) & 0x7f); in set_tv_freq()
92 buffer[1] = div & 0xff; in set_tv_freq()
Dtuner.c616 u16 div; in set_tv_freq() local
724 div=freq + tun->IFPCoff; in set_tv_freq()
728 buffer[2] = (div>>8) & 0x7f; in set_tv_freq()
729 buffer[3] = div & 0xff; in set_tv_freq()
731 buffer[0] = (div>>8) & 0x7f; in set_tv_freq()
732 buffer[1] = div & 0xff; in set_tv_freq()
759 unsigned div; in set_radio_freq() local
779 div = freq + (int)(16*10.7); in set_radio_freq()
780 buffer[0] = (div>>8) & 0x7f; in set_radio_freq()
781 buffer[1] = div & 0xff; in set_radio_freq()
/linux-2.4.37.9/fs/jffs2/
Dcompr_rubin.h24 void init_rubin (struct rubin_state *rs, int div, int *bits);
27 void init_decode (struct rubin_state *, int div, int *bits);
Dcompr_rubin.c46 void init_rubin(struct rubin_state *rs, int div, int *bits) in init_rubin() argument
53 rs->bit_divider = div; in init_rubin()
107 void init_decode(struct rubin_state *rs, int div, int *bits) in init_decode() argument
109 init_rubin(rs, div, bits); in init_decode()
/linux-2.4.37.9/arch/m68k/math-emu/
Dmulti_arith.h371 #define fp_div64(quot, rem, srch, srcl, div) \ argument
373 : "dm" (div), "1" (srch), "0" (srcl))
422 struct fp_ext *div) in fp_dividemant() argument
432 if (src->mant.m64 >= div->mant.m64) { in fp_dividemant()
433 fp_sub64(src->mant, div->mant); in fp_dividemant()
449 dummy = div->mant.m32[1] / div->mant.m32[0] + 1; in fp_dividemant()
455 if (src->mant.m32[0] == div->mant.m32[0]) { in fp_dividemant()
456 fp_div64(first, rem, 0, src->mant.m32[1], div->mant.m32[0]); in fp_dividemant()
461 fp_div64(first, rem, src->mant.m32[0], src->mant.m32[1], div->mant.m32[0]); in fp_dividemant()
466 fp_mul64(tmp.m32[0], tmp.m32[1], div->mant.m32[0], first - *mantp); in fp_dividemant()
[all …]
/linux-2.4.37.9/arch/m68k/mac/
Ddebug.c296 int clksrc, clkmode, div, reg3, reg5; in mac_init_scc_port() local
306 div = div_table[baud]; in mac_init_scc_port()
324 SCCB_WRITE( 12, div ); /* BRG value */ in mac_init_scc_port()
342 SCCA_WRITE( 12, div ); /* BRG value */ in mac_init_scc_port()
/linux-2.4.37.9/arch/cris/kernel/
Dfasttimer.c233 unsigned long div; in start_timer1() local
251 div = delay_us * timer_freq_100[freq_index]/10000; in start_timer1()
252 if (div < 2) in start_timer1()
255 div = 2; in start_timer1()
257 if (div > 255) in start_timer1()
259 div = 0; /* This means 256, the max the timer takes */ in start_timer1()
265 timer_div_settings[fast_timers_started % NUM_TIMER_STATS] = div; in start_timer1()
270 delay_us, freq_index, div)); in start_timer1()
280 IO_FIELD(R_TIMER_CTRL, timerdiv1, div) | in start_timer1()
/linux-2.4.37.9/drivers/atm/
Dhorizon.c611 u32 div = CR_MIND; in make_rate() local
617 if (div > CR_MAXD || (!pre) || pre > 1<<CR_MAXPEXP) { in make_rate()
619 div, pre); in make_rate()
623 *bits = (div<<CLOCK_SELECT_SHIFT) | (pre-1); in make_rate()
625 *actual = (br + (pre<<div) - 1) / (pre<<div); in make_rate()
660 pre = (br+(c<<div)-1)/(c<<div); in make_rate()
666 pre = (br+(c<<div)/2)/(c<<div); in make_rate()
672 pre = br/(c<<div); in make_rate()
678 PRINTD (DBG_QOS, "A: p=%u, d=%u", pre, div); in make_rate()
684 while (div < CR_MAXD) { in make_rate()
[all …]
Deni.c1259 int div; in comp_tx() local
1263 div = pre_div[*pre]**pcr; in comp_tx()
1264 DPRINTK("min div %d\n",div); in comp_tx()
1265 *res = TS_CLOCK/div-1; in comp_tx()
1268 int div; in comp_tx() local
1274 div = pre_div[*pre]*-*pcr; in comp_tx()
1275 DPRINTK("max div %d\n",div); in comp_tx()
1276 *res = (TS_CLOCK+div-1)/div-1; in comp_tx()
/linux-2.4.37.9/drivers/sound/
Dsb_ess.c374 int diff = 0, div; in ess_common_speed() local
381 div = 0x80 | ess_calc_div (795500, 256, speedp, &diff); in ess_common_speed()
383 div = 0x80 | ess_calc_div (795500, 128, speedp, &diff); in ess_common_speed()
388 &div, speedp); in ess_common_speed()
391 &div, speedp); in ess_common_speed()
395 div = 0x80 | ess_calc_div (ES1688_CLOCK1, 256, speedp, &diff); in ess_common_speed()
397 div = 0x00 | ess_calc_div (ES1688_CLOCK2, 128, speedp, &diff); in ess_common_speed()
400 *divp = div; in ess_common_speed()
406 int div, div2; in ess_speed() local
408 ess_common_speed (devc, &(devc->speed), &div); in ess_speed()
[all …]
Dpas2_mixer.c81 mixer_output(int right_vol, int left_vol, int div, int bits, in mixer_output() argument
84 int left = left_vol * div / 100; in mixer_output()
85 int right = right_vol * div / 100; in mixer_output()
Dsonicvibes.c609 unsigned div; in set_dac_rate() local
616 div = (rate * 65536 + FULLRATE/2) / FULLRATE; in set_dac_rate()
617 if (div > 65535) in set_dac_rate()
618 div = 65535; in set_dac_rate()
620 wrindir(s, SV_CIPCMSR1, div >> 8); in set_dac_rate()
621 wrindir(s, SV_CIPCMSR0, div); in set_dac_rate()
623 s->ratedac = (div * FULLRATE + 32768) / 65536; in set_dac_rate()
629 unsigned rate1, rate2, div; in set_adc_rate() local
636 div = (48000 + rate/2) / rate; in set_adc_rate()
637 if (div > 8) in set_adc_rate()
[all …]
/linux-2.4.37.9/drivers/usb/serial/
Dkeyspan.c1437 div, /* divisor */ in keyspan_usa19_calc_baud() local
1454 if( (div = (baudclk / b16)) == 0) { in keyspan_usa19_calc_baud()
1458 cnt = 0 - div; in keyspan_usa19_calc_baud()
1461 if(div > 0xffff) { in keyspan_usa19_calc_baud()
1484 div; /* divisor */ in keyspan_usa19hs_calc_baud() local
1495 if( (div = (baudclk / b16)) == 0) in keyspan_usa19hs_calc_baud()
1498 if(div > 0xffff) in keyspan_usa19hs_calc_baud()
1503 *rate_low = (u8) (div & 0xff); in keyspan_usa19hs_calc_baud()
1506 *rate_hi = (u8) ((div >> 8) & 0xff); in keyspan_usa19hs_calc_baud()
1519 div, /* divisor using 13/8 prescaler */ in keyspan_usa19w_calc_baud() local
[all …]
/linux-2.4.37.9/include/asm-ia64/sn/
Duart16550.h150 #define DIVISOR_TO_BAUD(div, clk) ((clk) / 16 / (div)) argument
/linux-2.4.37.9/drivers/video/
Dclgenfb.c337 long div; member
637 long *div, long maxfreq);
732 static long clgen_get_mclk (long freq, int bpp, long *div) in clgen_get_mclk() argument
736 assert (div != NULL); in clgen_get_mclk()
757 *div = 2; in clgen_get_mclk()
761 *div = 1; in clgen_get_mclk()
765 *div = 0; in clgen_get_mclk()
1012 bestclock (freq, &_par->freq, &_par->nom, &_par->den, &_par->div, in clgen_decode_var()
1099 static void clgen_set_mclk (const struct clgenfb_info *fb_info, int val, int div) in clgen_set_mclk() argument
1103 if (div == 2) { in clgen_set_mclk()
[all …]
/linux-2.4.37.9/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c553 int div = np->clock_divn; /* Number of divisors supported */ local
586 while (div > 0) {
587 --div;
588 if (kpc > (div_10M[div] << 2)) {
589 ++div;
594 if (div == np->clock_divn) { /* Are we too fast ? */
597 *divp = div;
607 while (div-- > 0)
608 if (kpc >= (div_10M[div] << 2)) break;
617 fak = (kpc - 1) / (div_10M[div] << 1) + 1 - 2;
[all …]
/linux-2.4.37.9/arch/ia64/lib/
Didiv32.S22 # define OP div
Didiv64.S22 # define OP div
/linux-2.4.37.9/arch/m68k/fpsp040/
Ddecbin.S62 | Clean up and return. Check if the final mul or div resulted
485 div: label
494 | If the final mul/div in decbin incurred an inex exception,
/linux-2.4.37.9/arch/s390/math-emu/
Dqrnnd.S22 brc 3,0f # (n/4) div (n/2) can overflow by 1

12