Lines Matching refs:irq
39 int irq = txn_alloc_irq(GSC_EIM_WIDTH);
40 if (irq < 0) {
41 printk("cannot get irq\n");
42 return irq;
45 i->txn_addr = txn_alloc_addr(irq);
46 i->txn_data = txn_alloc_data(irq);
47 i->irq = irq;
49 return irq;
52 int gsc_claim_irq(struct gsc_irq *i, int irq)
54 int c = irq;
56 irq += CPU_IRQ_BASE; /* virtualize the IRQ first */
58 irq = txn_claim_irq(irq);
59 if (irq < 0) {
60 printk("cannot claim irq %d\n", c);
61 return irq;
64 i->txn_addr = txn_alloc_addr(irq);
65 i->txn_data = txn_alloc_data(irq);
66 i->irq = irq;
68 return irq;
88 unsigned int irq = gsc_asic->global_irq[local_irq];
89 generic_handle_irq(irq);
96 int gsc_find_local_irq(unsigned int irq, int *global_irqs, int limit)
101 if (global_irqs[local_irq] == irq)
111 int local_irq = gsc_find_local_irq(d->irq, irq_dev->global_irq, 32);
114 DEBPRINTK(KERN_DEBUG "%s(%d) %s: IMR 0x%x\n", __func__, d->irq,
126 int local_irq = gsc_find_local_irq(d->irq, irq_dev->global_irq, 32);
129 DEBPRINTK(KERN_DEBUG "%s(%d) %s: IMR 0x%x\n", __func__, d->irq,
150 static int irq = GSC_IRQ_BASE;
152 if (irq > GSC_IRQ_MAX)
155 irq_set_chip_and_handler(irq, type, handle_simple_irq);
156 irq_set_chip_data(irq, data);
158 return irq++;
163 int irq = asic->global_irq[local_irq];
165 if (irq <= 0) {
166 irq = gsc_assign_irq(&gsc_asic_interrupt_type, asic);
167 if (irq == NO_IRQ)
170 asic->global_irq[local_irq] = irq;
172 *irqp = irq;
212 /* Initialise local irq -> global irq mapping */
225 parent->irq, gsc_asic->eim);