Lines Matching full:cpuid
313 static unsigned int sun4u_compute_tid(unsigned long imap, unsigned long cpuid) in sun4u_compute_tid() argument
318 tid = starfire_translate(imap, cpuid); in sun4u_compute_tid()
328 tid = cpuid << IMAP_TID_SHIFT; in sun4u_compute_tid()
331 unsigned int a = cpuid & 0x1f; in sun4u_compute_tid()
332 unsigned int n = (cpuid >> 5) & 0x1f; in sun4u_compute_tid()
340 tid = cpuid << IMAP_TID_SHIFT; in sun4u_compute_tid()
352 int cpuid; in irq_choose_cpu() local
356 cpuid = map_to_cpu(irq); in irq_choose_cpu()
361 cpuid = cpumask_empty(&tmp) ? map_to_cpu(irq) : cpumask_first(&tmp); in irq_choose_cpu()
364 return cpuid; in irq_choose_cpu()
377 unsigned long cpuid, imap, val; in sun4u_irq_enable() local
380 cpuid = irq_choose_cpu(data->irq, in sun4u_irq_enable()
384 tid = sun4u_compute_tid(imap, cpuid); in sun4u_irq_enable()
402 unsigned long cpuid, imap, val; in sun4u_set_affinity() local
405 cpuid = irq_choose_cpu(data->irq, mask); in sun4u_set_affinity()
408 tid = sun4u_compute_tid(imap, cpuid); in sun4u_set_affinity()
453 unsigned long cpuid = irq_choose_cpu(data->irq, in sun4v_irq_enable() local
458 err = sun4v_intr_settarget(ino, cpuid); in sun4v_irq_enable()
461 "err(%d)\n", ino, cpuid, err); in sun4v_irq_enable()
475 unsigned long cpuid = irq_choose_cpu(data->irq, mask); in sun4v_set_affinity() local
479 err = sun4v_intr_settarget(ino, cpuid); in sun4v_set_affinity()
482 "err(%d)\n", ino, cpuid, err); in sun4v_set_affinity()
513 unsigned long cpuid; in sun4v_virq_enable() local
516 cpuid = irq_choose_cpu(data->irq, irq_data_get_affinity_mask(data)); in sun4v_virq_enable()
518 err = sun4v_vintr_set_target(dev_handle, dev_ino, cpuid); in sun4v_virq_enable()
522 dev_handle, dev_ino, cpuid, err); in sun4v_virq_enable()
542 unsigned long cpuid; in sun4v_virt_set_affinity() local
545 cpuid = irq_choose_cpu(data->irq, mask); in sun4v_virt_set_affinity()
547 err = sun4v_vintr_set_target(dev_handle, dev_ino, cpuid); in sun4v_virt_set_affinity()
551 dev_handle, dev_ino, cpuid, err); in sun4v_virt_set_affinity()