Lines Matching refs:delay
62 void emu10k1_timer_install(struct emu10k1_card *card, struct emu_timer *timer, u16 delay) in emu10k1_timer_install() argument
68 if (delay < 5) in emu10k1_timer_install()
69 delay = 5; in emu10k1_timer_install()
71 timer->delay = delay; in emu10k1_timer_install()
76 timer->count_max = timer->delay / (card->timer_delay < 1024 ? card->timer_delay : 1024); in emu10k1_timer_install()
81 if (card->timer_delay > delay) { in emu10k1_timer_install()
85 card->timer_delay = delay; in emu10k1_timer_install()
86 delay = (delay < 1024 ? delay : 1024); in emu10k1_timer_install()
88 emu10k1_timer_set(card, delay); in emu10k1_timer_install()
93 t->count_max = t->delay / delay; in emu10k1_timer_install()
99 DPD(2, "timer rate --> %u\n", delay); in emu10k1_timer_install()
111 u16 delay = TIMER_STOPPED; in emu10k1_timer_uninstall() local
124 if (t->delay < delay) in emu10k1_timer_uninstall()
125 delay = t->delay; in emu10k1_timer_uninstall()
128 if (card->timer_delay != delay) { in emu10k1_timer_uninstall()
129 card->timer_delay = delay; in emu10k1_timer_uninstall()
131 if (delay == TIMER_STOPPED) in emu10k1_timer_uninstall()
134 delay = (delay < 1024 ? delay : 1024); in emu10k1_timer_uninstall()
136 emu10k1_timer_set(card, delay); in emu10k1_timer_uninstall()
141 t->count_max = t->delay / delay; in emu10k1_timer_uninstall()
146 DPD(2, "timer rate --> %u\n", delay); in emu10k1_timer_uninstall()