Lines Matching refs:xc
216 static int xive_native_setup_queue(unsigned int cpu, struct xive_cpu *xc, u8 prio) in xive_native_setup_queue() argument
218 struct xive_q *q = &xc->queue[prio]; in xive_native_setup_queue()
229 static void xive_native_cleanup_queue(unsigned int cpu, struct xive_cpu *xc, u8 prio) in xive_native_cleanup_queue() argument
231 struct xive_q *q = &xc->queue[prio]; in xive_native_cleanup_queue()
261 static int xive_native_get_ipi(unsigned int cpu, struct xive_cpu *xc) in xive_native_get_ipi() argument
267 irq = opal_xive_allocate_irq(xc->chip_id); in xive_native_get_ipi()
276 xc->hw_ipi = irq; in xive_native_get_ipi()
311 static void xive_native_put_ipi(unsigned int cpu, struct xive_cpu *xc) in xive_native_put_ipi() argument
316 if (xc->hw_ipi == XIVE_BAD_IRQ) in xive_native_put_ipi()
319 rc = opal_xive_free_irq(xc->hw_ipi); in xive_native_put_ipi()
324 xc->hw_ipi = XIVE_BAD_IRQ; in xive_native_put_ipi()
341 static void xive_native_update_pending(struct xive_cpu *xc) in xive_native_update_pending() argument
365 xc->pending_prio |= 1 << cppr; in xive_native_update_pending()
371 if (cppr >= xc->cppr) in xive_native_update_pending()
373 smp_processor_id(), cppr, xc->cppr); in xive_native_update_pending()
376 xc->cppr = cppr; in xive_native_update_pending()
386 static void xive_native_prepare_cpu(unsigned int cpu, struct xive_cpu *xc) in xive_native_prepare_cpu() argument
388 xc->chip_id = cpu_to_chip_id(cpu); in xive_native_prepare_cpu()
391 static void xive_native_setup_cpu(unsigned int cpu, struct xive_cpu *xc) in xive_native_setup_cpu() argument
431 static void xive_native_teardown_cpu(unsigned int cpu, struct xive_cpu *xc) in xive_native_teardown_cpu() argument