Lines Matching refs:xd
57 static u8 GLUE(X_PFX,esb_load)(struct xive_irq_data *xd, u32 offset) in GLUE()
61 if (offset == XIVE_ESB_SET_PQ_10 && xd->flags & XIVE_IRQ_FLAG_STORE_EOI) in GLUE()
64 val =__x_readq(__x_eoi_page(xd) + offset); in GLUE()
72 static void GLUE(X_PFX,source_eoi)(u32 hw_irq, struct xive_irq_data *xd) in GLUE()
75 if (xd->flags & XIVE_IRQ_FLAG_STORE_EOI) in GLUE()
76 __x_writeq(0, __x_eoi_page(xd) + XIVE_ESB_STORE_EOI); in GLUE()
77 else if (xd->flags & XIVE_IRQ_FLAG_LSI) { in GLUE()
83 __x_readq(__x_eoi_page(xd) + XIVE_ESB_LOAD_EOI); in GLUE()
96 eoi_val = GLUE(X_PFX,esb_load)(xd, XIVE_ESB_SET_PQ_00); in GLUE()
99 if ((eoi_val & 1) && __x_trig_page(xd)) in GLUE()
100 __x_writeq(0, __x_trig_page(xd)); in GLUE()
382 struct xive_irq_data *xd; in GLUE() local
420 kvmppc_xive_select_irq(state, &hw_num, &xd); in GLUE()
423 if (!(xd->flags & XIVE_IRQ_FLAG_LSI)) in GLUE()
424 GLUE(X_PFX,esb_load)(xd, XIVE_ESB_SET_PQ_11); in GLUE()
427 GLUE(X_PFX,source_eoi)(hw_num, xd); in GLUE()
502 struct xive_irq_data *xd; in GLUE() local
540 kvmppc_xive_select_irq(state, &hw_num, &xd); in GLUE()
569 GLUE(X_PFX,source_eoi)(hw_num, xd); in GLUE()
573 __x_writeq(0, __x_trig_page(xd)); in GLUE()