Home
last modified time | relevance | path

Searched refs:ticks (Results 1 – 18 of 18) sorted by relevance

/sound/isa/gus/
Dgus_timer.c36 unsigned int ticks; in snd_gf1_timer1_start() local
41 ticks = timer->sticks; in snd_gf1_timer1_start()
43 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1, 256 - ticks); /* timer 1 count */ in snd_gf1_timer1_start()
72 unsigned int ticks; in snd_gf1_timer2_start() local
77 ticks = timer->sticks; in snd_gf1_timer2_start()
79 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_2, 256 - ticks); /* timer 2 count */ in snd_gf1_timer2_start()
130 .ticks = 256,
139 .ticks = 256,
/sound/core/
Dhrtimer.c49 unsigned long ticks; in snd_hrtimer_callback() local
56 ticks = t->sticks; in snd_hrtimer_callback()
62 ticks += ktime_divns(delta, ticks * resolution); in snd_hrtimer_callback()
64 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback()
161 timer->hw.ticks = NANO_SEC / resolution; in snd_hrtimer_init()
Dtimer.c63 unsigned long ticks; member
434 bool start, unsigned long ticks) in snd_timer_start1() argument
456 timeri->ticks = timeri->cticks = ticks; in snd_timer_start1()
470 timer->sticks = ticks; in snd_timer_start1()
529 timeri->cticks = timeri->ticks; in snd_timer_stop1()
582 int snd_timer_start(struct snd_timer_instance *timeri, unsigned int ticks) in snd_timer_start() argument
584 if (timeri == NULL || ticks < 1) in snd_timer_start()
589 return snd_timer_start1(timeri, true, ticks); in snd_timer_start()
640 unsigned long ticks = ~0UL; in snd_timer_reschedule() local
649 if (ticks > ti->cticks) in snd_timer_reschedule()
[all …]
Dpcm_timer.c95 .ticks = 1,
/sound/core/seq/
Dseq_timer.c137 unsigned long ticks) in snd_seq_timer_interrupt() argument
154 resolution *= ticks; in snd_seq_timer_interrupt()
369 tmr->ticks = 1; in initialize_timer()
375 tmr->ticks = (unsigned int)(1000000000uL / (r * freq)); in initialize_timer()
376 if (! tmr->ticks) in initialize_timer()
377 tmr->ticks = 1; in initialize_timer()
393 snd_timer_start(tmr->timeri, tmr->ticks); in seq_timer_start()
421 snd_timer_start(tmr->timeri, tmr->ticks); in seq_timer_continue()
488 resolution = snd_timer_resolution(ti) * tmr->ticks; in snd_seq_info_timer_read()
Dseq_timer.h49 unsigned int ticks; member
/sound/drivers/opl3/
Dopl3_lib.c162 unsigned int ticks; in snd_opl3_timer1_start() local
167 ticks = timer->sticks; in snd_opl3_timer1_start()
170 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER1, 256 - ticks); /* timer 1 count */ in snd_opl3_timer1_start()
199 unsigned int ticks; in snd_opl3_timer2_start() local
204 ticks = timer->sticks; in snd_opl3_timer2_start()
207 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER2, 256 - ticks); /* timer 1 count */ in snd_opl3_timer2_start()
236 .ticks = 256,
245 .ticks = 256,
/sound/pci/pcxhr/
Dpcxhr_mix22.c420 unsigned int ticks; in hr222_get_external_clock() local
462 ticks = (unsigned int)PCXHR_INPB(mgr, PCXHR_XLX_CFG); in hr222_get_external_clock()
463 ticks = (ticks & 0x03) << 8; in hr222_get_external_clock()
464 ticks |= (unsigned int)PCXHR_INPB(mgr, PCXHR_DSP_RESET); in hr222_get_external_clock()
466 if (ticks != 0) in hr222_get_external_clock()
467 calc_rate = 28224000 / ticks; in hr222_get_external_clock()
/sound/pci/ctxfi/
Dcttimer.c148 static void ct_xfitimer_irq_rearm(struct ct_timer *atimer, int ticks) in ct_xfitimer_irq_rearm() argument
151 if (ticks > MAX_TICKS) in ct_xfitimer_irq_rearm()
152 ticks = MAX_TICKS; in ct_xfitimer_irq_rearm()
153 hw->set_timer_tick(hw, ticks); in ct_xfitimer_irq_rearm()
Dcthw20k2.c1118 static int set_timer_tick(struct hw *hw, unsigned int ticks) in set_timer_tick() argument
1120 if (ticks) in set_timer_tick()
1121 ticks |= TIMR_IE | TIMR_IP; in set_timer_tick()
1122 hw_write_20kx(hw, TIMR, ticks); in set_timer_tick()
Dcthw20k1.c1175 static int set_timer_tick(struct hw *hw, unsigned int ticks) in set_timer_tick() argument
1177 if (ticks) in set_timer_tick()
1178 ticks |= TIMR_IE | TIMR_IP; in set_timer_tick()
1179 hw_write_20kx(hw, TIMR, ticks); in set_timer_tick()
/sound/usb/line6/
Dtoneport.c370 int ticks; in toneport_setup() local
375 ticks = (int)get_seconds(); in toneport_setup()
376 line6_write_data(line6, 0x80c6, &ticks, 4); in toneport_setup()
/sound/pci/emu10k1/
Dtimer.c72 .ticks = 1024,
/sound/sparc/
Dcs4231.c669 unsigned int ticks; in snd_cs4231_timer_start() local
673 ticks = timer->sticks; in snd_cs4231_timer_start()
675 (unsigned char)(ticks >> 8) != chip->image[CS4231_TIMER_HIGH] || in snd_cs4231_timer_start()
676 (unsigned char)ticks != chip->image[CS4231_TIMER_LOW]) { in snd_cs4231_timer_start()
679 (unsigned char) (ticks >> 8)); in snd_cs4231_timer_start()
682 (unsigned char) ticks); in snd_cs4231_timer_start()
874 .ticks = 65535,
/sound/isa/wss/
Dwss_lib.c769 unsigned int ticks; in snd_wss_timer_start() local
772 ticks = timer->sticks; in snd_wss_timer_start()
774 (unsigned char)(ticks >> 8) != chip->image[CS4231_TIMER_HIGH] || in snd_wss_timer_start()
775 (unsigned char)ticks != chip->image[CS4231_TIMER_LOW]) { in snd_wss_timer_start()
776 chip->image[CS4231_TIMER_HIGH] = (unsigned char) (ticks >> 8); in snd_wss_timer_start()
779 chip->image[CS4231_TIMER_LOW] = (unsigned char) ticks; in snd_wss_timer_start()
982 .ticks = 65535,
/sound/pci/
Dazt3328.c2244 ….ticks = 1024000, /* max tick count, defined by the value register; actually it's not 1024000, but…
2264 snd_azf3328_timer_hw.ticks /= seqtimer_scaling; in snd_azf3328_timer()
/sound/isa/ad1816a/
Dad1816a_lib.c437 .ticks = 65535,
/sound/pci/ymfpci/
Dymfpci_main.c1944 .ticks = 0x10000,