Lines Matching refs:timer_cfg
243 const struct davinci_timer_cfg *timer_cfg) in davinci_timer_register() argument
256 if (!request_mem_region(timer_cfg->reg.start, in davinci_timer_register()
257 resource_size(&timer_cfg->reg), in davinci_timer_register()
264 base = ioremap(timer_cfg->reg.start, resource_size(&timer_cfg->reg)); in davinci_timer_register()
285 if (timer_cfg->cmp_off) { in davinci_timer_register()
286 clockevent->cmp_off = timer_cfg->cmp_off; in davinci_timer_register()
298 rv = request_irq(timer_cfg->irq[DAVINCI_TIMER_CLOCKEVENT_IRQ].start, in davinci_timer_register()
313 if (timer_cfg->cmp_off) { in davinci_timer_register()
339 free_irq(timer_cfg->irq[DAVINCI_TIMER_CLOCKEVENT_IRQ].start, in davinci_timer_register()
346 release_mem_region(timer_cfg->reg.start, in davinci_timer_register()
347 resource_size(&timer_cfg->reg)); in davinci_timer_register()
355 struct davinci_timer_cfg timer_cfg = { }; in of_davinci_timer_register() local
359 rv = of_address_to_resource(np, 0, &timer_cfg.reg); in of_davinci_timer_register()
365 rv = of_irq_to_resource_table(np, timer_cfg.irq, in of_davinci_timer_register()
378 rv = davinci_timer_register(clk, &timer_cfg); in of_davinci_timer_register()