/arch/arm64/kernel/ |
D | irq.c | 62 const struct cpumask *affinity = d->affinity; in migrate_one_irq() local 70 if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) in migrate_one_irq() 73 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in migrate_one_irq() 74 affinity = cpu_online_mask; in migrate_one_irq() 81 else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret) in migrate_one_irq() 82 cpumask_copy(d->affinity, affinity); in migrate_one_irq()
|
D | setup.c | 127 u32 i, affinity, fs[4], bits[4], ls; in smp_build_mpidr_hash() local 141 affinity = MPIDR_AFFINITY_LEVEL(mask, i); in smp_build_mpidr_hash() 147 ls = fls(affinity); in smp_build_mpidr_hash() 148 fs[i] = affinity ? ffs(affinity) - 1 : 0; in smp_build_mpidr_hash()
|
/arch/arm/kernel/ |
D | irq.c | 142 const struct cpumask *affinity = d->affinity; in migrate_one_irq() local 150 if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) in migrate_one_irq() 153 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in migrate_one_irq() 154 affinity = cpu_online_mask; in migrate_one_irq() 161 else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret) in migrate_one_irq() 162 cpumask_copy(d->affinity, affinity); in migrate_one_irq()
|
D | setup.c | 543 u32 i, affinity; in smp_build_mpidr_hash() local 557 affinity = MPIDR_AFFINITY_LEVEL(mask, i); in smp_build_mpidr_hash() 563 ls = fls(affinity); in smp_build_mpidr_hash() 564 fs[i] = affinity ? ffs(affinity) - 1 : 0; in smp_build_mpidr_hash()
|
/arch/xtensa/kernel/ |
D | irq.c | 174 if (!cpumask_test_cpu(cpu, data->affinity)) in migrate_irqs() 177 newcpu = cpumask_any_and(data->affinity, cpu_online_mask); in migrate_irqs() 183 cpumask_setall(data->affinity); in migrate_irqs() 185 irq_set_affinity(i, data->affinity); in migrate_irqs()
|
/arch/x86/kernel/ |
D | irq.c | 306 cpumask_copy(&affinity_new, data->affinity); in check_irq_vectors_for_cpu_disable() 373 const struct cpumask *affinity; in fixup_irqs() local 384 affinity = data->affinity; in fixup_irqs() 386 cpumask_subset(affinity, cpu_online_mask)) { in fixup_irqs() 398 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in fixup_irqs() 400 affinity = cpu_online_mask; in fixup_irqs() 408 ret = chip->irq_set_affinity(data, affinity, true); in fixup_irqs()
|
/arch/metag/kernel/ |
D | irq.c | 280 if (!cpumask_test_cpu(cpu, data->affinity)) in migrate_irqs() 283 newcpu = cpumask_any_and(data->affinity, cpu_online_mask); in migrate_irqs() 289 cpumask_setall(data->affinity); in migrate_irqs() 291 irq_set_affinity(i, data->affinity); in migrate_irqs()
|
/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() 323 if (cpumask_test_cpu(self, &data->affinity) && in migrate_irqs() 327 cpumask_set_cpu(cpu_id, &data->affinity); in migrate_irqs() 338 new = cpumask_any_and(&data->affinity, in migrate_irqs()
|
D | cevt-mn10300.c | 126 cpumask_copy(data->affinity, cpumask_of(cpu)); in init_clockevents()
|
/arch/sh/kernel/ |
D | irq.c | 233 unsigned int newcpu = cpumask_any_and(data->affinity, in migrate_irqs() 239 cpumask_setall(data->affinity); in migrate_irqs() 241 irq_set_affinity(irq, data->affinity); in migrate_irqs()
|
/arch/alpha/kernel/ |
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 | 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 | irq.c | 63 cpumask_copy(data->affinity, cpumask_of(cpu)); in irq_select_affinity()
|
/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 | 39 cpumask_copy(idata->affinity, cpumask_of(cpu)); in ia64_set_msi_irq_affinity() 152 cpumask_copy(data->affinity, mask); in dmar_msi_set_affinity()
|
/arch/arm/mach-vexpress/ |
D | dcscb_setup.S | 17 cmp r0, #0 @ check affinity level
|
/arch/sparc/kernel/ |
D | leon_kernel.c | 108 static int irq_choose_cpu(const struct cpumask *affinity) in irq_choose_cpu() argument 112 cpumask_and(&mask, cpu_online_mask, affinity); in irq_choose_cpu() 119 #define irq_choose_cpu(affinity) boot_cpu_id argument 129 oldcpu = irq_choose_cpu(data->affinity); in leon_set_affinity() 152 cpu = irq_choose_cpu(data->affinity); in leon_unmask_irq() 165 cpu = irq_choose_cpu(data->affinity); in leon_mask_irq()
|
D | irq_64.c | 349 static int irq_choose_cpu(unsigned int irq, const struct cpumask *affinity) in irq_choose_cpu() argument 354 cpumask_copy(&mask, affinity); in irq_choose_cpu() 367 #define irq_choose_cpu(irq, affinity) \ argument 379 cpuid = irq_choose_cpu(data->irq, data->affinity); in sun4u_irq_enable() 449 unsigned long cpuid = irq_choose_cpu(data->irq, data->affinity); in sun4v_irq_enable() 511 cpuid = irq_choose_cpu(data->irq, data->affinity); in sun4v_virq_enable() 884 data->affinity, in fixup_irqs()
|
/arch/alpha/include/asm/ |
D | gct.h | 21 gct6_handle affinity; member
|
/arch/mips/pmcs-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/powerpc/platforms/cell/spufs/ |
D | inode.c | 427 int affinity; in spufs_create_context() local 445 affinity = flags & (SPU_CREATE_AFFINITY_MEM | SPU_CREATE_AFFINITY_SPU); in spufs_create_context() 446 if (affinity) { in spufs_create_context() 462 if (affinity) { in spufs_create_context() 474 if (affinity) in spufs_create_context()
|
/arch/parisc/kernel/ |
D | irq.c | 134 cpumask_copy(d->affinity, dest); in cpu_set_affinity_irq() 342 cpumask_copy(d->affinity, cpumask_of(cpu)); in txn_affinity_addr() 530 cpumask_copy(&dest, desc->irq_data.affinity); in do_cpu_irq_mask()
|
/arch/arm/common/ |
D | mcpm_head.S | 150 mov r0, #1 @ second (cluster) affinity level 184 mov r0, #0 @ first (CPU) affinity level
|
/arch/powerpc/sysdev/xics/ |
D | ics-rtas.c | 50 server = xics_get_irq_server(d->irq, d->affinity, 0); in ics_rtas_unmask_irq()
|