/arch/arm/kernel/ |
D | irq.c | 141 const struct cpumask *affinity = d->affinity; in migrate_one_irq() local 149 if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) in migrate_one_irq() 152 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in migrate_one_irq() 153 affinity = cpu_online_mask; in migrate_one_irq() 160 else if (c->irq_set_affinity(d, affinity, true) == IRQ_SET_MASK_OK && ret) in migrate_one_irq() 161 cpumask_copy(d->affinity, affinity); in migrate_one_irq()
|
/arch/mips/mti-malta/ |
D | malta-smtc.c | 116 int plat_set_irq_affinity(struct irq_data *d, const struct cpumask *affinity, in plat_set_irq_affinity() argument 142 cpumask_copy(&tmask, affinity); in plat_set_irq_affinity() 143 for_each_cpu(cpu, affinity) { in plat_set_irq_affinity() 147 cpumask_copy(d->affinity, &tmask); in plat_set_irq_affinity()
|
/arch/x86/kernel/ |
D | irq.c | 242 const struct cpumask *affinity; in fixup_irqs() local 253 affinity = data->affinity; in fixup_irqs() 255 cpumask_subset(affinity, cpu_online_mask)) { in fixup_irqs() 267 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in fixup_irqs() 269 affinity = cpu_all_mask; in fixup_irqs() 277 chip->irq_set_affinity(data, affinity, true); in fixup_irqs()
|
/arch/mips/include/asm/ |
D | irq.h | 55 const struct cpumask *affinity, bool force); 73 if (cpumask_test_cpu(smp_processor_id(), d->affinity)) in handle_on_other_cpu()
|
/arch/mn10300/kernel/ |
D | irq.c | 90 cpumask_any_and(d->affinity, cpu_online_mask); in mn10300_cpupic_mask_ack() 127 irq_affinity_online[irq] = cpumask_any_and(d->affinity, in mn10300_cpupic_unmask_clear() 369 if (cpumask_test_cpu(self, &data->affinity) && in migrate_irqs() 373 cpumask_set_cpu(cpu_id, &data->affinity); in migrate_irqs() 384 new = cpumask_any_and(&data->affinity, in migrate_irqs()
|
D | cevt-mn10300.c | 116 cpumask_copy(data->affinity, cpumask_of(cpu)); in init_clockevents()
|
/arch/ia64/kernel/ |
D | irq.c | 70 cpumask_copy(irq_get_irq_data(irq)->affinity, in set_irq_affinity_info() 122 if (cpumask_any_and(data->affinity, cpu_online_mask) in migrate_irqs()
|
D | msi_ia64.c | 42 cpumask_copy(idata->affinity, cpumask_of(cpu)); in ia64_set_msi_irq_affinity() 158 cpumask_copy(data->affinity, mask); in dmar_msi_set_affinity()
|
/arch/alpha/kernel/ |
D | sys_titan.c | 135 titan_cpu_set_irq_affinity(unsigned int irq, cpumask_t affinity) in titan_cpu_set_irq_affinity() argument 140 if (cpumask_test_cpu(cpu, &affinity)) in titan_cpu_set_irq_affinity() 149 titan_set_irq_affinity(struct irq_data *d, const struct cpumask *affinity, in titan_set_irq_affinity() argument 154 titan_cpu_set_irq_affinity(irq - 16, *affinity); in titan_set_irq_affinity()
|
D | sys_dp264.c | 136 cpu_set_irq_affinity(unsigned int irq, cpumask_t affinity) in cpu_set_irq_affinity() argument 142 if (cpumask_test_cpu(cpu, &affinity)) in cpu_set_irq_affinity() 151 dp264_set_affinity(struct irq_data *d, const struct cpumask *affinity, in dp264_set_affinity() argument 155 cpu_set_irq_affinity(d->irq, *affinity); in dp264_set_affinity() 163 clipper_set_affinity(struct irq_data *d, const struct cpumask *affinity, in clipper_set_affinity() argument 167 cpu_set_irq_affinity(d->irq - 16, *affinity); in clipper_set_affinity()
|
D | irq.c | 63 cpumask_copy(data->affinity, cpumask_of(cpu)); in irq_select_affinity()
|
/arch/sparc/kernel/ |
D | leon_kernel.c | 103 static int irq_choose_cpu(const struct cpumask *affinity) in irq_choose_cpu() argument 107 cpumask_and(&mask, cpu_online_mask, affinity); in irq_choose_cpu() 114 #define irq_choose_cpu(affinity) boot_cpu_id argument 124 oldcpu = irq_choose_cpu(data->affinity); in leon_set_affinity() 147 cpu = irq_choose_cpu(data->affinity); in leon_unmask_irq() 160 cpu = irq_choose_cpu(data->affinity); in leon_mask_irq()
|
D | irq_64.c | 219 static int irq_choose_cpu(unsigned int irq, const struct cpumask *affinity) in irq_choose_cpu() argument 224 cpumask_copy(&mask, affinity); in irq_choose_cpu() 237 #define irq_choose_cpu(irq, affinity) \ argument 249 cpuid = irq_choose_cpu(data->irq, data->affinity); in sun4u_irq_enable() 320 unsigned long cpuid = irq_choose_cpu(data->irq, data->affinity); in sun4v_irq_enable() 379 cpuid = irq_choose_cpu(data->irq, data->affinity); in sun4v_virq_enable() 741 data->affinity, in fixup_irqs()
|
/arch/sh/kernel/ |
D | irq.c | 269 unsigned int newcpu = cpumask_any_and(data->affinity, in migrate_irqs() 275 cpumask_setall(data->affinity); in migrate_irqs() 276 newcpu = cpumask_any_and(data->affinity, in migrate_irqs()
|
/arch/alpha/include/asm/ |
D | gct.h | 21 gct6_handle affinity; member
|
/arch/parisc/kernel/ |
D | irq.c | 134 cpumask_copy(d->affinity, dest); in cpu_set_affinity_irq() 296 cpumask_copy(d->affinity, cpumask_of(cpu)); in txn_affinity_addr() 355 cpumask_copy(&dest, desc->irq_data.affinity); in do_cpu_irq_mask()
|
/arch/powerpc/platforms/cell/spufs/ |
D | inode.c | 454 int affinity; in spufs_create_context() local 474 affinity = flags & (SPU_CREATE_AFFINITY_MEM | SPU_CREATE_AFFINITY_SPU); in spufs_create_context() 475 if (affinity) { in spufs_create_context() 492 if (affinity) { in spufs_create_context() 506 if (affinity) in spufs_create_context() 514 if (affinity) in spufs_create_context()
|
/arch/mips/pmc-sierra/msp71xx/ |
D | msp_irq_per.c | 89 const struct cpumask *affinity, bool force) in msp_per_irq_set_affinity() argument
|
D | msp_irq_cic.c | 91 if (!cpumask_test_cpu(smp_processor_id(), d->affinity)) in unmask_cic_irq()
|
/arch/mips/cavium-octeon/ |
D | octeon-irq.c | 204 int weight = cpumask_weight(data->affinity); in next_cpu_for_irq() 209 cpu = cpumask_next(cpu, data->affinity); in next_cpu_for_irq() 218 cpu = cpumask_first(data->affinity); in next_cpu_for_irq() 515 if (!cpumask_test_cpu(cpu, data->affinity)) in octeon_irq_cpu_offline_ciu() 518 if (cpumask_weight(data->affinity) > 1) { in octeon_irq_cpu_offline_ciu() 523 cpumask_copy(&new_affinity, data->affinity); in octeon_irq_cpu_offline_ciu()
|
/arch/hexagon/include/asm/ |
D | hexagon_vm.h | 57 affinity, enumerator
|
/arch/powerpc/platforms/wsp/ |
D | ics.c | 163 const cpumask_t *affinity) in cache_hwirq_map() argument 190 if (affinity) in cache_hwirq_map() 191 cpumask_and(avail, cpu_online_mask, affinity); in cache_hwirq_map() 261 const cpumask_t *affinity) in cache_hwirq_map() argument
|
/arch/powerpc/sysdev/xics/ |
D | ics-rtas.c | 50 server = xics_get_irq_server(d->irq, d->affinity, 0); in ics_rtas_unmask_irq()
|
D | ics-opal.c | 57 server = xics_get_irq_server(d->irq, d->affinity, 0); in ics_opal_unmask_irq()
|
/arch/blackfin/mach-common/ |
D | ints-priority.c | 164 const struct cpumask *affinity) in bfin_internal_unmask_irq_affinity() argument 175 if (cpumask_test_cpu(0, affinity)) in bfin_internal_unmask_irq_affinity() 181 if (cpumask_test_cpu(1, affinity)) in bfin_internal_unmask_irq_affinity() 197 bfin_internal_unmask_irq_affinity(d->irq, d->affinity); in bfin_internal_unmask_irq_chip()
|