Lines Matching refs:timers
34 struct hpet_timer_registers timers[];
94 /* We only support HPETs that are 64-bit and have at least two timers */
100 /* Make sure all timers have interrupts disabled */
102 hpet_regs->timers[i].conf_caps &= ~TIMER_CONF_INT_EN;
124 hpet_regs->timers[n].conf_caps &= ~TIMER_CONF_INT_EN;
159 uint32_t irq_bitmap = TIMER_CAP_IRQS(hpet_regs->timers[n].conf_caps);
164 uint64_t conf = hpet_regs->timers[n].conf_caps;
167 hpet_regs->timers[n].conf_caps = conf;
188 hpet_regs->timers[n].conf_caps &= ~(TIMER_CONF_PERIODIC |
190 hpet_regs->timers[n].comparator_value = deadline;
191 hpet_regs->timers[n].conf_caps |= TIMER_CONF_INT_EN;
203 if (!TIMER_CAP_PERIODIC(hpet_regs->timers[n].conf_caps)) {
214 hpet_regs->timers[n].conf_caps |= TIMER_CONF_PERIODIC |
216 hpet_regs->timers[n].comparator_value = period;
217 hpet_regs->timers[n].conf_caps |= TIMER_CONF_INT_EN;