Home
last modified time | relevance | path

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

/sound/isa/gus/
Dgus_timer.c21 unsigned int ticks; in snd_gf1_timer1_start() local
26 ticks = timer->sticks; in snd_gf1_timer1_start()
28 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1, 256 - ticks); /* timer 1 count */ in snd_gf1_timer1_start()
57 unsigned int ticks; in snd_gf1_timer2_start() local
62 ticks = timer->sticks; in snd_gf1_timer2_start()
64 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_2, 256 - ticks); /* timer 2 count */ in snd_gf1_timer2_start()
115 .ticks = 256,
124 .ticks = 256,
/sound/core/
Dhrtimer.c35 unsigned long ticks; in snd_hrtimer_callback() local
42 ticks = t->sticks; in snd_hrtimer_callback()
48 ticks += ktime_divns(delta, ticks * resolution); in snd_hrtimer_callback()
50 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback()
147 timer->hw.ticks = NANO_SEC / resolution; in snd_hrtimer_init()
Dtimer.c72 unsigned long ticks; member
531 bool start, unsigned long ticks) in snd_timer_start1() argument
557 timeri->ticks = timeri->cticks = ticks; in snd_timer_start1()
571 timer->sticks = ticks; in snd_timer_start1()
637 timeri->cticks = timeri->ticks; in snd_timer_stop1()
689 int snd_timer_start(struct snd_timer_instance *timeri, unsigned int ticks) in snd_timer_start() argument
691 if (timeri == NULL || ticks < 1) in snd_timer_start()
696 return snd_timer_start1(timeri, true, ticks); in snd_timer_start()
751 unsigned long ticks = ~0UL; in snd_timer_reschedule() local
760 if (ticks > ti->cticks) in snd_timer_reschedule()
[all …]
Dpcm_timer.c82 .ticks = 1,
/sound/core/seq/
Dseq_timer.c122 unsigned long ticks) in snd_seq_timer_interrupt() argument
139 resolution *= ticks; in snd_seq_timer_interrupt()
371 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()
497 resolution = snd_timer_resolution(ti) * tmr->ticks; in snd_seq_info_timer_read()
Dseq_timer.h34 unsigned int ticks; member
/sound/drivers/opl3/
Dopl3_lib.c147 unsigned int ticks; in snd_opl3_timer1_start() local
152 ticks = timer->sticks; in snd_opl3_timer1_start()
155 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER1, 256 - ticks); /* timer 1 count */ in snd_opl3_timer1_start()
184 unsigned int ticks; in snd_opl3_timer2_start() local
189 ticks = timer->sticks; in snd_opl3_timer2_start()
192 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER2, 256 - ticks); /* timer 1 count */ in snd_opl3_timer2_start()
221 .ticks = 256,
230 .ticks = 256,
/sound/usb/line6/
Dtoneport.c362 u32 *ticks; in toneport_setup() local
366 ticks = kmalloc(sizeof(*ticks), GFP_KERNEL); in toneport_setup()
367 if (!ticks) in toneport_setup()
372 *ticks = (u32)ktime_get_real_seconds(); in toneport_setup()
373 line6_write_data(line6, 0x80c6, ticks, 4); in toneport_setup()
374 kfree(ticks); in toneport_setup()
/sound/pci/pcxhr/
Dpcxhr_mix22.c407 unsigned int ticks; in hr222_get_external_clock() local
449 ticks = (unsigned int)PCXHR_INPB(mgr, PCXHR_XLX_CFG); in hr222_get_external_clock()
450 ticks = (ticks & 0x03) << 8; in hr222_get_external_clock()
451 ticks |= (unsigned int)PCXHR_INPB(mgr, PCXHR_DSP_RESET); in hr222_get_external_clock()
453 if (ticks != 0) in hr222_get_external_clock()
454 calc_rate = 28224000 / ticks; in hr222_get_external_clock()
/sound/pci/ctxfi/
Dcttimer.c144 static void ct_xfitimer_irq_rearm(struct ct_timer *atimer, int ticks) in ct_xfitimer_irq_rearm() argument
147 if (ticks > MAX_TICKS) in ct_xfitimer_irq_rearm()
148 ticks = MAX_TICKS; in ct_xfitimer_irq_rearm()
149 hw->set_timer_tick(hw, ticks); in ct_xfitimer_irq_rearm()
Dcthw20k1.c1171 static int set_timer_tick(struct hw *hw, unsigned int ticks) in set_timer_tick() argument
1173 if (ticks) in set_timer_tick()
1174 ticks |= TIMR_IE | TIMR_IP; in set_timer_tick()
1175 hw_write_20kx(hw, TIMR, ticks); in set_timer_tick()
Dcthw20k2.c1114 static int set_timer_tick(struct hw *hw, unsigned int ticks) in set_timer_tick() argument
1116 if (ticks) in set_timer_tick()
1117 ticks |= TIMR_IE | TIMR_IP; in set_timer_tick()
1118 hw_write_20kx(hw, TIMR, ticks); in set_timer_tick()
/sound/pci/emu10k1/
Dtimer.c58 .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.c755 unsigned int ticks; in snd_wss_timer_start() local
758 ticks = timer->sticks; in snd_wss_timer_start()
760 (unsigned char)(ticks >> 8) != chip->image[CS4231_TIMER_HIGH] || in snd_wss_timer_start()
761 (unsigned char)ticks != chip->image[CS4231_TIMER_LOW]) { in snd_wss_timer_start()
762 chip->image[CS4231_TIMER_HIGH] = (unsigned char) (ticks >> 8); in snd_wss_timer_start()
765 chip->image[CS4231_TIMER_LOW] = (unsigned char) ticks; in snd_wss_timer_start()
968 .ticks = 65535,
/sound/pci/
Dazt3328.c2205 ….ticks = 1024000, /* max tick count, defined by the value register; actually it's not 1024000, but…
2225 snd_azf3328_timer_hw.ticks /= seqtimer_scaling; in snd_azf3328_timer()
/sound/isa/ad1816a/
Dad1816a_lib.c416 .ticks = 65535,
/sound/drivers/
Daloop.c789 unsigned long ticks) in loopback_snd_timer_function() argument
/sound/pci/ymfpci/
Dymfpci_main.c1937 .ticks = 0x10000,