Lines Matching +full:flags +full:- +full:mask
1 // SPDX-License-Identifier: GPL-2.0
35 * - Disabled on the command line in apic_smt_update()
36 * - Only a single CPU is online in apic_smt_update()
37 * - Not all present CPUs have been at least booted once in apic_smt_update()
81 void native_send_call_func_ipi(const struct cpumask *mask) in native_send_call_func_ipi() argument
86 if (!cpumask_or_equal(mask, cpumask_of(cpu), cpu_online_mask)) in native_send_call_func_ipi()
89 if (cpumask_test_cpu(cpu, mask)) in native_send_call_func_ipi()
97 __apic_send_IPI_mask(mask, CALL_FUNCTION_VECTOR); in native_send_call_func_ipi()
102 if (WARN_ON_ONCE(!apic->nmi_to_offline_cpu)) in apic_send_nmi_to_offline_cpu()
106 apic->send_IPI(cpu, NMI_VECTOR); in apic_send_nmi_to_offline_cpu()
110 static inline int __prepare_ICR2(unsigned int mask) in __prepare_ICR2() argument
112 return SET_XAPIC_DEST_FIELD(mask); in __prepare_ICR2()
190 unsigned long flags; in default_send_IPI_single_phys() local
192 local_irq_save(flags); in default_send_IPI_single_phys()
195 local_irq_restore(flags); in default_send_IPI_single_phys()
198 void default_send_IPI_mask_sequence_phys(const struct cpumask *mask, int vector) in default_send_IPI_mask_sequence_phys() argument
200 unsigned long flags; in default_send_IPI_mask_sequence_phys() local
203 local_irq_save(flags); in default_send_IPI_mask_sequence_phys()
204 for_each_cpu(cpu, mask) { in default_send_IPI_mask_sequence_phys()
208 local_irq_restore(flags); in default_send_IPI_mask_sequence_phys()
211 void default_send_IPI_mask_allbutself_phys(const struct cpumask *mask, in default_send_IPI_mask_allbutself_phys() argument
215 unsigned long flags; in default_send_IPI_mask_allbutself_phys() local
217 local_irq_save(flags); in default_send_IPI_mask_allbutself_phys()
218 for_each_cpu(cpu, mask) { in default_send_IPI_mask_allbutself_phys()
224 local_irq_restore(flags); in default_send_IPI_mask_allbutself_phys()
251 void default_send_IPI_mask_sequence_logical(const struct cpumask *mask, int vector) in default_send_IPI_mask_sequence_logical() argument
253 unsigned long flags; in default_send_IPI_mask_sequence_logical() local
256 local_irq_save(flags); in default_send_IPI_mask_sequence_logical()
257 for_each_cpu(cpu, mask) in default_send_IPI_mask_sequence_logical()
259 local_irq_restore(flags); in default_send_IPI_mask_sequence_logical()
262 void default_send_IPI_mask_allbutself_logical(const struct cpumask *mask, in default_send_IPI_mask_allbutself_logical() argument
266 unsigned long flags; in default_send_IPI_mask_allbutself_logical() local
268 local_irq_save(flags); in default_send_IPI_mask_allbutself_logical()
269 for_each_cpu(cpu, mask) { in default_send_IPI_mask_allbutself_logical()
274 local_irq_restore(flags); in default_send_IPI_mask_allbutself_logical()
279 unsigned long mask = cpumask_bits(cpumask)[0]; in default_send_IPI_mask_logical() local
280 unsigned long flags; in default_send_IPI_mask_logical() local
282 if (!mask) in default_send_IPI_mask_logical()
285 local_irq_save(flags); in default_send_IPI_mask_logical()
286 WARN_ON(mask & ~cpumask_bits(cpu_online_mask)[0]); in default_send_IPI_mask_logical()
287 __default_send_IPI_dest_field(mask, vector, APIC_DEST_LOGICAL); in default_send_IPI_mask_logical()
288 local_irq_restore(flags); in default_send_IPI_mask_logical()
300 return -1; in convert_apicid_to_cpu()