Lines Matching full:irq
88 IRQ is #16. The internal GIC routines use #32 as the first IRQ. */
89 void armv7m_nvic_set_pending(void *opaque, int irq)
92 if (irq >= 16)
93 irq += 16;
94 gic_set_pending_private(&s->gic, 0, irq);
97 /* Make pending IRQ active. */
101 uint32_t irq;
103 irq = gic_acknowledge_irq(&s->gic, 0);
104 if (irq == 1023)
106 if (irq >= 32)
107 irq -= 16;
108 return irq;
111 void armv7m_nvic_complete_irq(void *opaque, int irq)
114 if (irq >= 16)
115 irq += 16;
116 gic_complete_irq(&s->gic, 0, irq);
123 int irq;
171 for (irq = 32; irq < GIC_NIRQ; irq++) {
172 if (s->gic.irq_state[irq].pending) {
198 irq = offset - 0xd14;
200 val = s->gic.priority1[irq++][0];
201 val = s->gic.priority1[irq++][0] << 8;
202 val = s->gic.priority1[irq++][0] << 16;
203 val = s->gic.priority1[irq][0] << 24;
339 int irq;
340 irq = offset - 0xd14;
341 s->gic.priority1[irq++][0] = value & 0xff;
342 s->gic.priority1[irq++][0] = (value >> 8) & 0xff;
343 s->gic.priority1[irq++][0] = (value >> 16) & 0xff;
344 s->gic.priority1[irq][0] = (value >> 24) & 0xff;