Lines Matching refs:timerdrv
31 struct goldfish_timer *timerdrv = cs_to_gf(cs); in goldfish_timer_read() local
32 void __iomem *base = timerdrv->base; in goldfish_timer_read()
50 struct goldfish_timer *timerdrv = ced_to_gf(evt); in goldfish_timer_set_oneshot() local
51 void __iomem *base = timerdrv->base; in goldfish_timer_set_oneshot()
62 struct goldfish_timer *timerdrv = ced_to_gf(evt); in goldfish_timer_shutdown() local
63 void __iomem *base = timerdrv->base; in goldfish_timer_shutdown()
73 struct goldfish_timer *timerdrv = ced_to_gf(evt); in goldfish_timer_next_event() local
74 void __iomem *base = timerdrv->base; in goldfish_timer_next_event()
77 now = goldfish_timer_read(&timerdrv->cs); in goldfish_timer_next_event()
89 struct goldfish_timer *timerdrv = dev_id; in goldfish_timer_irq() local
90 struct clock_event_device *evt = &timerdrv->ced; in goldfish_timer_irq()
91 void __iomem *base = timerdrv->base; in goldfish_timer_irq()
102 struct goldfish_timer *timerdrv; in goldfish_timer_init() local
105 timerdrv = kzalloc(sizeof(*timerdrv), GFP_KERNEL); in goldfish_timer_init()
106 if (!timerdrv) in goldfish_timer_init()
109 timerdrv->base = base; in goldfish_timer_init()
111 timerdrv->ced = (struct clock_event_device){ in goldfish_timer_init()
119 timerdrv->res = (struct resource){ in goldfish_timer_init()
125 ret = request_resource(&iomem_resource, &timerdrv->res); in goldfish_timer_init()
127 pr_err("Cannot allocate '%s' resource\n", timerdrv->res.name); in goldfish_timer_init()
131 timerdrv->cs = (struct clocksource){ in goldfish_timer_init()
140 clocksource_register_hz(&timerdrv->cs, NSEC_PER_SEC); in goldfish_timer_init()
143 "goldfish_timer", timerdrv); in goldfish_timer_init()
149 clockevents_config_and_register(&timerdrv->ced, NSEC_PER_SEC, in goldfish_timer_init()