Lines Matching refs:irq
52 unsigned int irq = d->irq - MCFINT_VECBASE; in intc_irq_mask() local
57 imraddr = (irq & 0x40) ? MCFICM_INTC1 : MCFICM_INTC0; in intc_irq_mask()
61 imraddr += (irq & 0x20) ? MCFINTC_IMRH : MCFINTC_IMRL; in intc_irq_mask()
62 imrbit = 0x1 << (irq & 0x1f); in intc_irq_mask()
70 unsigned int irq = d->irq - MCFINT_VECBASE; in intc_irq_unmask() local
75 imraddr = (irq & 0x40) ? MCFICM_INTC1 : MCFICM_INTC0; in intc_irq_unmask()
79 imraddr += ((irq & 0x20) ? MCFINTC_IMRH : MCFINTC_IMRL); in intc_irq_unmask()
80 imrbit = 0x1 << (irq & 0x1f); in intc_irq_unmask()
83 if ((irq & 0x20) == 0) in intc_irq_unmask()
98 unsigned int irq = d->irq; in intc_irq_ack() local
100 __raw_writeb(0x1 << (irq - EINT0), MCFEPORT_EPFR); in intc_irq_ack()
114 unsigned int irq = d->irq - MCFINT_VECBASE; in intc_irq_startup() local
118 icraddr = (irq & 0x40) ? MCFICM_INTC1 : MCFICM_INTC0; in intc_irq_startup()
122 icraddr += MCFINTC_ICR0 + (irq & 0x3f); in intc_irq_startup()
126 irq = d->irq; in intc_irq_startup()
127 if ((irq >= EINT1) && (irq <= EINT7)) { in intc_irq_startup()
130 irq -= EINT0; in intc_irq_startup()
134 __raw_writeb(v & ~(0x1 << irq), MCFEPORT_EPDDR); in intc_irq_startup()
138 __raw_writeb(v | (0x1 << irq), MCFEPORT_EPIER); in intc_irq_startup()
147 unsigned int irq = d->irq; in intc_irq_set_type() local
167 irq_set_handler(irq, handle_edge_irq); in intc_irq_set_type()
169 irq -= EINT0; in intc_irq_set_type()
171 pa = (pa & ~(0x3 << (irq * 2))) | (tb << (irq * 2)); in intc_irq_set_type()
195 int irq; in init_IRQ() local
203 for (irq = MCFINT_VECBASE; (irq < MCFINT_VECBASE + NR_VECS); irq++) { in init_IRQ()
204 if ((irq >= EINT1) && (irq <=EINT7)) in init_IRQ()
205 irq_set_chip(irq, &intc_irq_chip_edge_port); in init_IRQ()
207 irq_set_chip(irq, &intc_irq_chip); in init_IRQ()
208 irq_set_irq_type(irq, IRQ_TYPE_LEVEL_HIGH); in init_IRQ()
209 irq_set_handler(irq, handle_level_irq); in init_IRQ()