Lines Matching refs:opal_event_irqchip
31 struct opal_event_irqchip { struct
36 static struct opal_event_irqchip opal_event_irqchip; variable
46 e = READ_ONCE(last_outstanding_events) & opal_event_irqchip.mask; in opal_handle_events()
56 generic_handle_domain_irq(opal_event_irqchip.domain, hwirq); in opal_handle_events()
65 e = be64_to_cpu(events) & opal_event_irqchip.mask; in opal_handle_events()
72 if (READ_ONCE(last_outstanding_events) & opal_event_irqchip.mask) in opal_have_pending_events()
79 clear_bit(d->hwirq, &opal_event_irqchip.mask); in opal_event_mask()
84 set_bit(d->hwirq, &opal_event_irqchip.mask); in opal_event_unmask()
102 static struct opal_event_irqchip opal_event_irqchip = { variable
115 irq_set_chip_data(irq, &opal_event_irqchip); in opal_event_map()
116 irq_set_chip_and_handler(irq, &opal_event_irqchip.irqchip, in opal_event_map()
194 opal_event_irqchip.domain = irq_domain_add_linear(dn, MAX_NUM_EVENTS, in opal_event_init()
195 &opal_event_domain_ops, &opal_event_irqchip); in opal_event_init()
197 if (!opal_event_irqchip.domain) { in opal_event_init()
308 if (WARN_ON_ONCE(!opal_event_irqchip.domain)) in opal_event_request()
311 return irq_create_mapping(opal_event_irqchip.domain, opal_event_nr); in opal_event_request()