Home
last modified time | relevance | path

Searched refs:affinity (Results 1 – 25 of 140) sorted by relevance

123456

/Linux-v4.19/kernel/irq/
Dcpuhotplug.c57 const struct cpumask *affinity; in migrate_one_irq() local
104 affinity = irq_desc_get_pending_mask(desc); in migrate_one_irq()
106 affinity = irq_data_get_affinity_mask(d); in migrate_one_irq()
112 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in migrate_one_irq()
122 affinity = cpu_online_mask; in migrate_one_irq()
131 err = irq_do_set_affinity(d, affinity, false); in migrate_one_irq()
177 const struct cpumask *affinity = irq_data_get_affinity_mask(data); in irq_restore_affinity_of_irq() local
180 !irq_data_get_irq_chip(data) || !cpumask_test_cpu(cpu, affinity)) in irq_restore_affinity_of_irq()
194 irq_set_affinity_locked(data, affinity, false); in irq_restore_affinity_of_irq()
Dirqdesc.c57 if (!zalloc_cpumask_var_node(&desc->irq_common_data.affinity, in alloc_masks()
64 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
74 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
82 const struct cpumask *affinity) in desc_smp_init() argument
84 if (!affinity) in desc_smp_init()
85 affinity = irq_default_affinity; in desc_smp_init()
86 cpumask_copy(desc->irq_common_data.affinity, affinity); in desc_smp_init()
100 desc_smp_init(struct irq_desc *desc, int node, const struct cpumask *affinity) { } in desc_smp_init() argument
104 const struct cpumask *affinity, struct module *owner) in desc_set_defaults() argument
126 desc_smp_init(desc, node, affinity); in desc_set_defaults()
[all …]
Dmsi.c30 alloc_msi_entry(struct device *dev, int nvec, const struct cpumask *affinity) in alloc_msi_entry() argument
41 if (affinity) { in alloc_msi_entry()
42 desc->affinity = kmemdup(affinity, in alloc_msi_entry()
43 nvec * sizeof(*desc->affinity), GFP_KERNEL); in alloc_msi_entry()
44 if (!desc->affinity) { in alloc_msi_entry()
55 kfree(entry->affinity); in free_msi_entry()
419 desc->affinity); in msi_domain_alloc_irqs()
Ddevres.c182 const struct cpumask *affinity) in __devm_irq_alloc_descs() argument
191 base = __irq_alloc_descs(irq, from, cnt, node, owner, affinity); in __devm_irq_alloc_descs()
DKconfig24 # Supports effective affinity mask
41 # Alpha specific irq affinity mechanism
/Linux-v4.19/tools/testing/selftests/rseq/
Dbasic_test.c18 cpu_set_t affinity, test_affinity; in test_cpu_pointer() local
21 sched_getaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer()
24 if (CPU_ISSET(i, &affinity)) { in test_cpu_pointer()
35 sched_setaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer()
/Linux-v4.19/arch/mips/loongson64/loongson-3/
Dirq.c19 int plat_set_irq_affinity(struct irq_data *d, const struct cpumask *affinity, in plat_set_irq_affinity() argument
26 cpumask_copy(&new_affinity, affinity); in plat_set_irq_affinity()
27 for_each_cpu(cpu, affinity) in plat_set_irq_affinity()
34 cpumask_copy(d->common->affinity, &new_affinity); in plat_set_irq_affinity()
43 struct cpumask affinity; in ht_irqdispatch() local
59 cpumask_and(&affinity, irqd->common->affinity, cpu_active_mask); in ht_irqdispatch()
60 if (cpumask_empty(&affinity)) { in ht_irqdispatch()
65 irq_cpu[ht_irq[i]] = cpumask_next(irq_cpu[ht_irq[i]], &affinity); in ht_irqdispatch()
67 irq_cpu[ht_irq[i]] = cpumask_first(&affinity); in ht_irqdispatch()
/Linux-v4.19/arch/arm/kernel/
Dirq.c117 const struct cpumask *affinity = irq_data_get_affinity_mask(d); in migrate_one_irq() local
125 if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) in migrate_one_irq()
128 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in migrate_one_irq()
129 affinity = cpu_online_mask; in migrate_one_irq()
136 else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret) in migrate_one_irq()
137 cpumask_copy(irq_data_get_affinity_mask(d), affinity); in migrate_one_irq()
/Linux-v4.19/tools/virtio/ringtest/
Drun-on-all.sh20 "$@" --host-affinity $HOST_AFFINITY --guest-affinity $cpu
24 "$@" --host-affinity $HOST_AFFINITY
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Daffinity.c1004 struct hfi1_affinity_node_list *affinity) in find_hw_thread_mask() argument
1008 affinity->num_core_siblings / in find_hw_thread_mask()
1011 cpumask_copy(hw_thread_mask, &affinity->proc.mask); in find_hw_thread_mask()
1012 if (affinity->num_core_siblings > 0) { in find_hw_thread_mask()
1041 struct hfi1_affinity_node_list *affinity = &node_affinity; in hfi1_get_proc_affinity() local
1042 struct cpu_mask_set *set = &affinity->proc; in hfi1_get_proc_affinity()
1100 mutex_lock(&affinity->lock); in hfi1_get_proc_affinity()
1130 if (affinity->num_core_siblings > 0) { in hfi1_get_proc_affinity()
1131 for (i = 0; i < affinity->num_core_siblings; i++) { in hfi1_get_proc_affinity()
1132 find_hw_thread_mask(i, hw_thread_mask, affinity); in hfi1_get_proc_affinity()
[all …]
/Linux-v4.19/arch/arm64/kernel/
Dsetup.c127 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()
/Linux-v4.19/drivers/irqchip/
Dirq-bcm7038-l1.c45 u8 affinity[MAX_WORDS * IRQS_PER_WORD]; member
179 __bcm7038_l1_unmask(d, intc->affinity[d->hwirq]); in bcm7038_l1_unmask()
189 __bcm7038_l1_mask(d, intc->affinity[d->hwirq]); in bcm7038_l1_mask()
207 was_disabled = !!(intc->cpus[intc->affinity[hw]]->mask_cache[word] & in bcm7038_l1_set_affinity()
209 __bcm7038_l1_mask(d, intc->affinity[hw]); in bcm7038_l1_set_affinity()
210 intc->affinity[hw] = first_cpu; in bcm7038_l1_set_affinity()
/Linux-v4.19/Documentation/
DIRQ-affinity.txt2 SMP IRQ affinity
14 IRQ affinity then the value will not change from the default of all cpus.
16 /proc/irq/default_smp_affinity specifies default affinity mask that applies
17 to all non-active IRQs. Once IRQ is allocated/activated its affinity bitmask
/Linux-v4.19/arch/alpha/kernel/
Dsys_dp264.c137 cpu_set_irq_affinity(unsigned int irq, cpumask_t affinity) in cpu_set_irq_affinity() argument
143 if (cpumask_test_cpu(cpu, &affinity)) in cpu_set_irq_affinity()
152 dp264_set_affinity(struct irq_data *d, const struct cpumask *affinity, in dp264_set_affinity() argument
156 cpu_set_irq_affinity(d->irq, *affinity); in dp264_set_affinity()
164 clipper_set_affinity(struct irq_data *d, const struct cpumask *affinity, in clipper_set_affinity() argument
168 cpu_set_irq_affinity(d->irq - 16, *affinity); in clipper_set_affinity()
Dsys_titan.c136 titan_cpu_set_irq_affinity(unsigned int irq, cpumask_t affinity) in titan_cpu_set_irq_affinity() argument
141 if (cpumask_test_cpu(cpu, &affinity)) in titan_cpu_set_irq_affinity()
150 titan_set_irq_affinity(struct irq_data *d, const struct cpumask *affinity, in titan_set_irq_affinity() argument
155 titan_cpu_set_irq_affinity(irq - 16, *affinity); in titan_set_irq_affinity()
/Linux-v4.19/Documentation/devicetree/bindings/arm/
Dpmu.txt37 - interrupt-affinity : When using SPIs, specifies a list of phandles to CPU
38 nodes corresponding directly to the affinity of
46 the interrupt-affinity property shouldn't be present).
/Linux-v4.19/Documentation/devicetree/bindings/interrupt-controller/
Darm,gic-v3.txt14 If the system requires describing PPI affinity, then the value must
76 PPI affinity can be expressed as a single "ppi-partitions" node,
78 - affinity: Should be a list of phandles to CPU nodes (as described in
160 affinity = <&cpu0 &cpu2>;
164 affinity = <&cpu1 &cpu3>;
/Linux-v4.19/include/linux/
Dirq.h149 cpumask_var_t affinity; member
644 const struct cpumask *affinity);
646 struct cpumask *affinity);
803 return d ? d->common->affinity : NULL; in irq_get_affinity_mask()
808 return d->common->affinity; in irq_data_get_affinity_mask()
830 return d->common->affinity; in irq_data_get_effective_affinity_mask()
837 struct module *owner, const struct cpumask *affinity);
841 const struct cpumask *affinity);
Dcpu_rmap.h43 const struct cpumask *affinity);
/Linux-v4.19/include/ras/
Dras_event.h182 __field(u8, affinity)
187 __entry->affinity = proc->affinity_level;
189 __entry->affinity = ~0;
206 __entry->affinity, __entry->mpidr, __entry->midr,
/Linux-v4.19/Documentation/ia64/
DIRQ-redir.txt1 IRQ affinity on IA64 platforms
8 that described in Documentation/IRQ-affinity.txt for i386 systems.
65 For systems like the NEC AzusA we get IRQ node-affinity for free. This
/Linux-v4.19/arch/arm/mach-vexpress/
Ddcscb_setup.S17 cmp r0, #0 @ check affinity level
/Linux-v4.19/arch/arm/boot/dts/
Dexynos5420-cpus.dtsi124 interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>;
129 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
Dexynos5422-cpus.dtsi123 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
128 interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>;
/Linux-v4.19/lib/
Dcpu_rmap.c159 const struct cpumask *affinity) in cpu_rmap_update() argument
182 for_each_cpu(cpu, affinity) { in cpu_rmap_update()

123456