Lines Matching refs:irq
89 void armv7m_nvic_set_pending(void *opaque, int irq) in armv7m_nvic_set_pending() argument
92 if (irq >= 16) in armv7m_nvic_set_pending()
93 irq += 16; in armv7m_nvic_set_pending()
94 gic_set_pending_private(&s->gic, 0, irq); in armv7m_nvic_set_pending()
101 uint32_t irq; in armv7m_nvic_acknowledge_irq() local
103 irq = gic_acknowledge_irq(&s->gic, 0); in armv7m_nvic_acknowledge_irq()
104 if (irq == 1023) in armv7m_nvic_acknowledge_irq()
106 if (irq >= 32) in armv7m_nvic_acknowledge_irq()
107 irq -= 16; in armv7m_nvic_acknowledge_irq()
108 return irq; in armv7m_nvic_acknowledge_irq()
111 void armv7m_nvic_complete_irq(void *opaque, int irq) in armv7m_nvic_complete_irq() argument
114 if (irq >= 16) in armv7m_nvic_complete_irq()
115 irq += 16; in armv7m_nvic_complete_irq()
116 gic_complete_irq(&s->gic, 0, irq); in armv7m_nvic_complete_irq()
123 int irq; in nvic_readl() local
171 for (irq = 32; irq < GIC_NIRQ; irq++) { in nvic_readl()
172 if (s->gic.irq_state[irq].pending) { in nvic_readl()
198 irq = offset - 0xd14; in nvic_readl()
200 val = s->gic.priority1[irq++][0]; in nvic_readl()
201 val = s->gic.priority1[irq++][0] << 8; in nvic_readl()
202 val = s->gic.priority1[irq++][0] << 16; in nvic_readl()
203 val = s->gic.priority1[irq][0] << 24; in nvic_readl()
339 int irq; in nvic_writel() local
340 irq = offset - 0xd14; in nvic_writel()
341 s->gic.priority1[irq++][0] = value & 0xff; in nvic_writel()
342 s->gic.priority1[irq++][0] = (value >> 8) & 0xff; in nvic_writel()
343 s->gic.priority1[irq++][0] = (value >> 16) & 0xff; in nvic_writel()
344 s->gic.priority1[irq][0] = (value >> 24) & 0xff; in nvic_writel()