Lines Matching refs:irq
76 int irq; in iomd_get_irq_nr() local
81 irq = irq_prio_h[reg]; in iomd_get_irq_nr()
82 if (irq) in iomd_get_irq_nr()
83 return irq; in iomd_get_irq_nr()
87 irq = irq_prio_d[reg]; in iomd_get_irq_nr()
88 if (irq) in iomd_get_irq_nr()
89 return irq; in iomd_get_irq_nr()
93 irq = irq_prio_l[reg]; in iomd_get_irq_nr()
94 if (irq) in iomd_get_irq_nr()
95 return irq; in iomd_get_irq_nr()
101 int irq; in iomd_handle_irq() local
104 irq = iomd_get_irq_nr(); in iomd_handle_irq()
105 if (irq) in iomd_handle_irq()
106 generic_handle_irq(irq); in iomd_handle_irq()
107 } while (irq); in iomd_handle_irq()
117 static void iomd_set_base_mask(unsigned int irq, void __iomem *base, u32 mask) in iomd_set_base_mask() argument
119 struct irq_data *d = irq_get_irq_data(irq); in iomd_set_base_mask()
122 irq_set_chip_data(irq, (void *)(unsigned long)base); in iomd_set_base_mask()
168 unsigned int irq, clr, set; in rpc_init_irq() local
180 for (irq = 0; irq < NR_IRQS; irq++) { in rpc_init_irq()
184 if (irq <= 6 || (irq >= 9 && irq <= 15)) in rpc_init_irq()
187 if (irq == 21 || (irq >= 16 && irq <= 19) || in rpc_init_irq()
188 irq == IRQ_KEYBOARDTX) in rpc_init_irq()
191 switch (irq) { in rpc_init_irq()
193 irq_set_chip_and_handler(irq, &iomd_chip_clr, in rpc_init_irq()
195 irq_modify_status(irq, clr, set); in rpc_init_irq()
196 iomd_set_base_mask(irq, IOMD_BASE + IOMD_IRQSTATA, in rpc_init_irq()
197 BIT(irq)); in rpc_init_irq()
201 irq_set_chip_and_handler(irq, &iomd_chip_noclr, in rpc_init_irq()
203 irq_modify_status(irq, clr, set); in rpc_init_irq()
204 iomd_set_base_mask(irq, IOMD_BASE + IOMD_IRQSTATB, in rpc_init_irq()
205 BIT(irq - 8)); in rpc_init_irq()
209 irq_set_chip_and_handler(irq, &iomd_chip_noclr, in rpc_init_irq()
211 irq_modify_status(irq, clr, set); in rpc_init_irq()
212 iomd_set_base_mask(irq, IOMD_BASE + IOMD_DMASTAT, in rpc_init_irq()
213 BIT(irq - 16)); in rpc_init_irq()
217 irq_set_chip(irq, &iomd_chip_noclr); in rpc_init_irq()
218 irq_modify_status(irq, clr, set); in rpc_init_irq()
219 iomd_set_base_mask(irq, IOMD_BASE + IOMD_FIQSTAT, in rpc_init_irq()
220 BIT(irq - 64)); in rpc_init_irq()