Lines Matching refs:hw_irq
44 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in ics_opal_unmask_irq() local
48 pr_devel("ics-hal: unmask virq %d [hw 0x%x]\n", d->irq, hw_irq); in ics_opal_unmask_irq()
50 if (hw_irq == XICS_IPI || hw_irq == XICS_IRQ_SPURIOUS) in ics_opal_unmask_irq()
56 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq()
60 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq()
69 static void ics_opal_mask_real_irq(unsigned int hw_irq) in ics_opal_mask_real_irq() argument
74 if (hw_irq == XICS_IPI) in ics_opal_mask_real_irq()
78 rc = opal_set_xive(hw_irq, server, 0xff); in ics_opal_mask_real_irq()
81 __func__, hw_irq, rc); in ics_opal_mask_real_irq()
86 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in ics_opal_mask_irq() local
88 pr_devel("ics-hal: mask virq %d [hw 0x%x]\n", d->irq, hw_irq); in ics_opal_mask_irq()
90 if (hw_irq == XICS_IPI || hw_irq == XICS_IRQ_SPURIOUS) in ics_opal_mask_irq()
92 ics_opal_mask_real_irq(hw_irq); in ics_opal_mask_irq()
99 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in ics_opal_set_affinity() local
106 if (hw_irq == XICS_IPI || hw_irq == XICS_IRQ_SPURIOUS) in ics_opal_set_affinity()
109 rc = opal_get_xive(hw_irq, &oserver, &priority); in ics_opal_set_affinity()
112 __func__, d->irq, hw_irq, rc); in ics_opal_set_affinity()
126 d->irq, hw_irq, wanted_server, server); in ics_opal_set_affinity()
128 rc = opal_set_xive(hw_irq, server, priority); in ics_opal_set_affinity()
132 __func__, d->irq, hw_irq, server, rc); in ics_opal_set_affinity()
154 static int ics_opal_check(struct ics *ics, unsigned int hw_irq) in ics_opal_check() argument
160 if (WARN_ON(hw_irq == XICS_IPI || hw_irq == XICS_IRQ_SPURIOUS)) in ics_opal_check()
164 rc = opal_get_xive(hw_irq, &server, &priority); in ics_opal_check()