Lines Matching refs:target

84 /* An invalid CPU target */
301 u32 target;
305 rc = xive_ops->get_irq_config(hw_irq, &target, &prio, &lirq);
311 xmon_printf("IRQ 0x%08x : target=0x%x prio=%02x lirq=0x%x ",
312 hw_irq, target, prio, lirq);
458 * a queue slot on the target queue
499 * Try to chose "cpu" as a new interrupt target. Increments
500 * the queue accounting for that target if it's not already
519 * Un-account an interrupt for a target CPU. We don't directly
539 * to decrement the target queue count whenever it's next
547 /* Find a tentative CPU target in a CPU mask */
571 * target.
590 * Pick a target CPU for an interrupt. This is done at
592 * invalidates the current target.
604 * CPUs matching the CPU and find a target in there
614 /* Try to find a target */
633 int target, rc;
640 /* Pick a target */
641 target = xive_pick_irq_target(d, irq_data_get_affinity_mask(d));
642 if (target == XIVE_INVALID_TARGET) {
644 target = xive_pick_irq_target(d, cpu_online_mask);
645 if (target == XIVE_INVALID_TARGET)
651 if (WARN_ON(target == XIVE_INVALID_TARGET ||
652 target >= nr_cpu_ids))
653 target = smp_processor_id();
655 xd->target = target;
659 * and set the target queue
662 get_hard_smp_processor_id(target),
681 if (WARN_ON(xd->target == XIVE_INVALID_TARGET))
692 get_hard_smp_processor_id(xd->target),
695 xive_dec_target_count(xd->target);
696 xd->target = XIVE_INVALID_TARGET;
723 u32 target, old_target;
733 * If existing target is already in the new mask, and is
736 if (xd->target != XIVE_INVALID_TARGET &&
737 cpu_online(xd->target) &&
738 cpumask_test_cpu(xd->target, cpumask))
741 /* Pick a new target */
742 target = xive_pick_irq_target(d, cpumask);
744 /* No target found */
745 if (target == XIVE_INVALID_TARGET)
749 if (WARN_ON(target >= nr_cpu_ids))
750 target = smp_processor_id();
752 old_target = xd->target;
760 get_hard_smp_processor_id(target),
767 pr_debug(" target: 0x%x\n", target);
768 xd->target = target;
770 /* Give up previous target */
859 /* No target ? nothing to do */
860 if (xd->target == XIVE_INVALID_TARGET) {
891 * target to the guest. That should guarantee us
903 /* No host target ? hard mask and return */
904 if (xd->target == XIVE_INVALID_TARGET) {
912 * target to the host.
923 * First reconfigure the target.
926 get_hard_smp_processor_id(xd->target),
1027 xd->target = XIVE_INVALID_TARGET;
1379 seq_printf(m, "%*sTarget: %d\n", ind, "", xd->target);
1753 u32 target;
1758 rc = xive_ops->get_irq_config(hw_irq, &target, &prio, &lirq);
1764 seq_printf(m, "IRQ 0x%08x : target=0x%x prio=%02x lirq=0x%x ",
1765 hw_irq, target, prio, lirq);