Lines Matching refs:of_irq
22 static __init void timer_of_irq_exit(struct of_timer_irq *of_irq) in timer_of_irq_exit() argument
24 struct timer_of *to = container_of(of_irq, struct timer_of, of_irq); in timer_of_irq_exit()
28 free_irq(of_irq->irq, clkevt); in timer_of_irq_exit()
45 struct of_timer_irq *of_irq) in timer_of_irq_init() argument
48 struct timer_of *to = container_of(of_irq, struct timer_of, of_irq); in timer_of_irq_init()
51 if (of_irq->name) { in timer_of_irq_init()
52 of_irq->irq = ret = of_irq_get_byname(np, of_irq->name); in timer_of_irq_init()
55 of_irq->name, np); in timer_of_irq_init()
59 of_irq->irq = irq_of_parse_and_map(np, of_irq->index); in timer_of_irq_init()
61 if (!of_irq->irq) { in timer_of_irq_init()
66 ret = request_irq(of_irq->irq, of_irq->handler, in timer_of_irq_init()
67 of_irq->flags ? of_irq->flags : IRQF_TIMER, in timer_of_irq_init()
70 pr_err("Failed to request irq %d for %pOF\n", of_irq->irq, np); in timer_of_irq_init()
74 clkevt->irq = of_irq->irq; in timer_of_irq_init()
179 ret = timer_of_irq_init(np, &to->of_irq); in timer_of_init()
194 timer_of_irq_exit(&to->of_irq); in timer_of_init()
214 timer_of_irq_exit(&to->of_irq); in timer_of_cleanup()