Lines Matching refs:target

73 /* An invalid CPU target */
274 u32 target;
278 rc = xive_ops->get_irq_config(hw_irq, &target, &prio, &lirq);
284 xmon_printf("IRQ 0x%08x : target=0x%x prio=%02x lirq=0x%x ",
285 hw_irq, target, prio, lirq);
432 * a queue slot on the target queue
473 * Try to chose "cpu" as a new interrupt target. Increments
474 * the queue accounting for that target if it's not already
493 * Un-account an interrupt for a target CPU. We don't directly
513 * to decrement the target queue count whenever it's next
521 /* Find a tentative CPU target in a CPU mask */
545 * target.
564 * Pick a target CPU for an interrupt. This is done at
566 * invalidates the current target.
578 * CPUs matching the CPU and find a target in there
588 /* Try to find a target */
607 int target, rc;
624 /* Pick a target */
625 target = xive_pick_irq_target(d, irq_data_get_affinity_mask(d));
626 if (target == XIVE_INVALID_TARGET) {
628 target = xive_pick_irq_target(d, cpu_online_mask);
629 if (target == XIVE_INVALID_TARGET)
635 if (WARN_ON(target == XIVE_INVALID_TARGET ||
636 target >= nr_cpu_ids))
637 target = smp_processor_id();
639 xd->target = target;
643 * and set the target queue
646 get_hard_smp_processor_id(target),
666 if (WARN_ON(xd->target == XIVE_INVALID_TARGET))
677 get_hard_smp_processor_id(xd->target),
680 xive_dec_target_count(xd->target);
681 xd->target = XIVE_INVALID_TARGET;
699 get_hard_smp_processor_id(xd->target),
722 get_hard_smp_processor_id(xd->target),
736 u32 target, old_target;
750 * If existing target is already in the new mask, and is
753 if (xd->target != XIVE_INVALID_TARGET &&
754 cpu_online(xd->target) &&
755 cpumask_test_cpu(xd->target, cpumask))
758 /* Pick a new target */
759 target = xive_pick_irq_target(d, cpumask);
761 /* No target found */
762 if (target == XIVE_INVALID_TARGET)
766 if (WARN_ON(target >= nr_cpu_ids))
767 target = smp_processor_id();
769 old_target = xd->target;
777 get_hard_smp_processor_id(target),
784 pr_devel(" target: 0x%x\n", target);
785 xd->target = target;
787 /* Give up previous target */
890 /* No target ? nothing to do */
891 if (xd->target == XIVE_INVALID_TARGET) {
922 * target to the guest. That should guarantee us
934 /* No host target ? hard mask and return */
935 if (xd->target == XIVE_INVALID_TARGET) {
943 * target to the host.
954 * First reconfigure the target.
957 get_hard_smp_processor_id(xd->target),
1060 xd->target = XIVE_INVALID_TARGET;
1613 u32 target;
1622 rc = xive_ops->get_irq_config(hw_irq, &target, &prio, &lirq);
1628 seq_printf(m, "IRQ 0x%08x : target=0x%x prio=%02x lirq=0x%x ",
1629 hw_irq, target, prio, lirq);