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 if (of_irq->percpu) in timer_of_irq_exit()
29 free_percpu_irq(of_irq->irq, clkevt); in timer_of_irq_exit()
31 free_irq(of_irq->irq, clkevt); in timer_of_irq_exit()
51 struct of_timer_irq *of_irq) in timer_of_irq_init() argument
54 struct timer_of *to = container_of(of_irq, struct timer_of, of_irq); in timer_of_irq_init()
57 if (of_irq->name) { in timer_of_irq_init()
58 of_irq->irq = ret = of_irq_get_byname(np, of_irq->name); in timer_of_irq_init()
61 of_irq->name, np); in timer_of_irq_init()
65 of_irq->irq = irq_of_parse_and_map(np, of_irq->index); in timer_of_irq_init()
67 if (!of_irq->irq) { in timer_of_irq_init()
72 ret = of_irq->percpu ? in timer_of_irq_init()
73 request_percpu_irq(of_irq->irq, of_irq->handler, in timer_of_irq_init()
75 request_irq(of_irq->irq, of_irq->handler, in timer_of_irq_init()
76 of_irq->flags ? of_irq->flags : IRQF_TIMER, in timer_of_irq_init()
79 pr_err("Failed to request irq %d for %pOF\n", of_irq->irq, np); in timer_of_irq_init()
83 clkevt->irq = of_irq->irq; in timer_of_irq_init()
188 ret = timer_of_irq_init(np, &to->of_irq); in timer_of_init()
203 timer_of_irq_exit(&to->of_irq); in timer_of_init()
223 timer_of_irq_exit(&to->of_irq); in timer_of_cleanup()