Lines Matching refs:contr
156 void m68k_setup_irq_controller(struct irq_controller *contr, unsigned int irq, in m68k_setup_irq_controller() argument
162 irq_controller[irq + i] = contr; in m68k_setup_irq_controller()
183 struct irq_controller *contr; in setup_irq() local
187 if (irq >= NR_IRQS || !(contr = irq_controller[irq])) { in setup_irq()
193 spin_lock_irqsave(&contr->lock, flags); in setup_irq()
199 spin_unlock_irqrestore(&contr->lock, flags); in setup_irq()
207 if (contr->startup) in setup_irq()
208 contr->startup(irq); in setup_irq()
210 contr->enable(irq); in setup_irq()
215 spin_unlock_irqrestore(&contr->lock, flags); in setup_irq()
247 struct irq_controller *contr; in free_irq() local
251 if (irq >= NR_IRQS || !(contr = irq_controller[irq])) { in free_irq()
256 spin_lock_irqsave(&contr->lock, flags); in free_irq()
273 if (contr->shutdown) in free_irq()
274 contr->shutdown(irq); in free_irq()
276 contr->disable(irq); in free_irq()
279 spin_unlock_irqrestore(&contr->lock, flags); in free_irq()
286 struct irq_controller *contr; in enable_irq() local
289 if (irq >= NR_IRQS || !(contr = irq_controller[irq])) { in enable_irq()
295 spin_lock_irqsave(&contr->lock, flags); in enable_irq()
298 if (contr->enable) in enable_irq()
299 contr->enable(irq); in enable_irq()
303 spin_unlock_irqrestore(&contr->lock, flags); in enable_irq()
310 struct irq_controller *contr; in disable_irq() local
313 if (irq >= NR_IRQS || !(contr = irq_controller[irq])) { in disable_irq()
319 spin_lock_irqsave(&contr->lock, flags); in disable_irq()
321 if (contr->disable) in disable_irq()
322 contr->disable(irq); in disable_irq()
324 spin_unlock_irqrestore(&contr->lock, flags); in disable_irq()
416 struct irq_controller *contr; in show_interrupts() local
422 contr = irq_controller[i]; in show_interrupts()
424 seq_printf(p, "%-8s %3u: %10u %s", contr->name, i, kstat_cpu(0).irqs[i], node->devname); in show_interrupts()