Lines Matching refs:timer
186 struct hpet_timer __iomem *timer = &hpet->hpet_timers[2]; in hpet_reserve_platform_timers() local
210 for (i = 2; i < nrtimers; timer++, i++) { in hpet_reserve_platform_timers()
211 hd.hd_irq[i] = (readl(&timer->hpet_config) & in hpet_reserve_platform_timers()
294 static int hpet_set_periodic(struct clock_event_device *evt, int timer) in hpet_set_periodic() argument
304 cfg = hpet_readl(HPET_Tn_CFG(timer)); in hpet_set_periodic()
307 hpet_writel(cfg, HPET_Tn_CFG(timer)); in hpet_set_periodic()
308 hpet_writel(cmp, HPET_Tn_CMP(timer)); in hpet_set_periodic()
317 hpet_writel((unsigned int)delta, HPET_Tn_CMP(timer)); in hpet_set_periodic()
324 static int hpet_set_oneshot(struct clock_event_device *evt, int timer) in hpet_set_oneshot() argument
328 cfg = hpet_readl(HPET_Tn_CFG(timer)); in hpet_set_oneshot()
331 hpet_writel(cfg, HPET_Tn_CFG(timer)); in hpet_set_oneshot()
336 static int hpet_shutdown(struct clock_event_device *evt, int timer) in hpet_shutdown() argument
340 cfg = hpet_readl(HPET_Tn_CFG(timer)); in hpet_shutdown()
342 hpet_writel(cfg, HPET_Tn_CFG(timer)); in hpet_shutdown()
347 static int hpet_resume(struct clock_event_device *evt, int timer) in hpet_resume() argument
349 if (!timer) { in hpet_resume()
365 struct clock_event_device *evt, int timer) in hpet_next_event() argument
372 hpet_writel(cnt, HPET_Tn_CMP(timer)); in hpet_next_event()