Home
last modified time | relevance | path

Searched refs:apic (Results 1 – 25 of 55) sorted by relevance

123

/linux/arch/x86/kernel/apic/
H A Dinit.c15 DEFINE_STATIC_CALL_NULL(apic_call_##__cb, *apic->__cb)
41 apic->__cb = __x86_apic_override.__cb
62 static_call_update(apic_call_##__cb, *apic->__cb)
86 apic->native_eoi = apic->eoi; in apic_setup_apic_calls()
91 void __init apic_install_driver(struct apic *driver) in apic_install_driver()
93 if (apic == driver) in apic_install_driver()
96 apic = driver; in apic_install_driver()
98 if (IS_ENABLED(CONFIG_X86_X2APIC) && apic->x2apic_set_max_apicid) in apic_install_driver()
99 apic->max_apic_id = x2apic_max_apicid; in apic_install_driver()
102 if (!apic->native_eoi) in apic_install_driver()
[all …]
H A Dio_apic.c90 int apic, pin; member
264 static inline void io_apic_eoi(unsigned int apic, unsigned int vector) in io_apic_eoi() argument
266 struct io_apic __iomem *io_apic = io_apic_base(apic); in io_apic_eoi()
271 unsigned int native_io_apic_read(unsigned int apic, unsigned int reg) in native_io_apic_read() argument
273 struct io_apic __iomem *io_apic = io_apic_base(apic); in native_io_apic_read()
279 static void io_apic_write(unsigned int apic, unsigned int reg, in io_apic_write() argument
282 struct io_apic __iomem *io_apic = io_apic_base(apic); in io_apic_write()
288 static struct IO_APIC_route_entry __ioapic_read_entry(int apic, int pin) in __ioapic_read_entry() argument
292 entry.w1 = io_apic_read(apic, 0x10 + 2 * pin); in __ioapic_read_entry()
293 entry.w2 = io_apic_read(apic, 0x11 + 2 * pin); in __ioapic_read_entry()
[all …]
H A Dprobe_32.c37 static struct apic apic_default __ro_after_init = {
72 struct apic *apic __ro_after_init = &apic_default;
73 EXPORT_SYMBOL_GPL(apic);
78 struct apic **drv; in parse_apic()
128 struct apic **drv; in x86_32_probe_apic()
H A Dapic_flat_64.c32 static struct apic apic_physflat __ro_after_init = {
67 struct apic *apic __ro_after_init = &apic_physflat;
68 EXPORT_SYMBOL_GPL(apic);
H A Dx2apic_phys.c10 static struct apic apic_x2apic_phys;
16 if (apic->x2apic_set_max_apicid) in x2apic_set_max_apicid()
17 apic->max_apic_id = apicid; in x2apic_set_max_apicid()
124 return apic == &apic_x2apic_phys; in x2apic_phys_probe()
132 static struct apic apic_x2apic_phys __ro_after_init = {
H A Dapic_numachip.c24 static const struct apic apic_numachip1;
25 static const struct apic apic_numachip2;
136 return apic == &apic_numachip1; in numachip1_probe()
141 return apic == &apic_numachip2; in numachip2_probe()
205 static const struct apic apic_numachip1 __refconst = {
239 static const struct apic apic_numachip2 __refconst = {
H A Dbigsmp_32.c62 static struct apic apic_bigsmp __ro_after_init = {
96 return apic == &apic_bigsmp || !cmdline_override; in apic_bigsmp_possible()
101 if (apic != &apic_bigsmp) in apic_bigsmp_force()
H A Dx2apic_cluster.c111 u32 apicid = apic->cpu_present_to_apicid(cpu_i); in prefill_clustermask()
147 u32 apicid = apic->cpu_present_to_apicid(cpu_i); in alloc_clustermask()
178 u32 phys_apicid = apic->cpu_present_to_apicid(cpu); in x2apic_prepare_cpu()
227 static struct apic apic_x2apic_cluster __ro_after_init = {
H A Dprobe_64.c19 struct apic **drv; in x86_64_probe_apic()
33 struct apic **drv; in default_acpi_madt_oem_check()
H A Dipi.c102 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()
H A DMakefile10 obj-$(CONFIG_X86_LOCAL_APIC) += apic.o apic_common.o apic_noop.o ipi.o vector.o init.o
H A Dapic_noop.c46 struct apic apic_noop __ro_after_init = {
H A Dapic.c1391 if (apic->disable_esr) { in lapic_setup_esr()
1517 if (lapic_is_integrated() && apic->disable_esr) { in setup_local_APIC()
1531 if (apic->init_apic_ldr) in setup_local_APIC()
1532 apic->init_apic_ldr(); in setup_local_APIC()
2284 msg->arch_addr_lo.dest_mode_logical = apic->dest_mode_logical; in __irq_msi_compose_msg()
/linux/arch/x86/include/asm/
H A Dapic.h274 struct apic { struct
345 extern struct apic *apic;
353 static const struct apic *__apicdrivers_##sym __used \
354 __aligned(sizeof(struct apic *)) \
357 extern struct apic *__apicdrivers[], *__apicdrivers_end[];
370 void __init apic_install_driver(struct apic *driver);
374 apic->_callback = _fn; \
380 DECLARE_STATIC_CALL(apic_call_##__cb, *apic->__cb)
465 return apic->safe_wait_icr_idle ? apic->safe_wait_icr_idle() : 0; in safe_apic_wait_icr_idle()
470 return apic_id <= apic->max_apic_id; in apic_id_valid()
[all …]
H A Dio_apic.h162 extern unsigned int native_io_apic_read(unsigned int apic, unsigned int reg);
165 static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg) in io_apic_read() argument
167 return x86_apic_ops.io_apic_read(apic, reg); in io_apic_read()
H A Dx86_init.h331 unsigned int (*io_apic_read) (unsigned int apic, unsigned int reg);
/linux/arch/x86/xen/
H A Dapic.c14 static unsigned int xen_io_apic_read(unsigned apic, unsigned reg) in xen_io_apic_read() argument
19 apic_op.apic_physbase = mpc_ioapic_addr(apic); in xen_io_apic_read()
29 return apic << 24; in xen_io_apic_read()
113 static struct apic xen_pv_apic __ro_after_init = {
H A DMakefile26 obj-$(CONFIG_XEN_PV) += apic.o
/linux/arch/x86/kvm/svm/
H A Davic.c101 if (x2avic_enabled && apic_x2apic_mode(svm->vcpu.arch.apic)) { in avic_activate_vmcb()
287 if (!vcpu->arch.apic->regs) in avic_init_backing_page()
304 svm->avic_backing_page = virt_to_page(vcpu->arch.apic->regs); in avic_init_backing_page()
342 vcpu->arch.apic->irr_pending = true; in avic_kick_vcpu()
497 struct kvm_lapic *apic = vcpu->arch.apic; in avic_incomplete_ipi_interception() local
519 kvm_apic_send_ipi(apic, icrl, icrh); in avic_incomplete_ipi_interception()
527 avic_kick_target_vcpus(vcpu->kvm, apic, icrl, icrh, index); in avic_incomplete_ipi_interception()
583 flat = kvm_lapic_get_reg(vcpu->arch.apic, APIC_DFR) == APIC_DFR_FLAT; in avic_ldr_write()
602 if (apic_x2apic_mode(vcpu->arch.apic)) in avic_invalidate_logical_id_entry()
613 u32 ldr = kvm_lapic_get_reg(vcpu->arch.apic, APIC_LDR); in avic_handle_ldr_update()
[all …]
/linux/drivers/acpi/
H A Dprocessor_core.c51 struct acpi_madt_local_x2apic *apic = in map_x2apic_id() local
54 if (!(apic->lapic_flags & ACPI_MADT_ENABLED)) in map_x2apic_id()
57 if (device_declaration && (apic->uid == acpi_id)) { in map_x2apic_id()
58 *apic_id = apic->local_apic_id; in map_x2apic_id()
/linux/arch/x86/kernel/
H A Dsmpboot.c886 if (apic->wakeup_secondary_cpu_64) in do_boot_cpu()
932 if (apic->wakeup_secondary_cpu_64) in do_boot_cpu()
933 ret = apic->wakeup_secondary_cpu_64(apicid, start_ip); in do_boot_cpu()
934 else if (apic->wakeup_secondary_cpu) in do_boot_cpu()
935 ret = apic->wakeup_secondary_cpu(apicid, start_ip); in do_boot_cpu()
947 u32 apicid = apic->cpu_present_to_apicid(cpu); in native_kick_ap()
/linux/arch/x86/hyperv/
H A Dhv_apic.c35 static struct apic orig_apic;
296 orig_apic = *apic; in hv_apic_init()
H A Dhv_spinlock.c72 if (!hv_pvspin || !apic || in hv_init_spinlocks()
/linux/arch/x86/kvm/
H A Dioapic.c536 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_ioapic_update_eoi_one() local
552 kvm_lapic_get_reg(apic, APIC_SPIV) & APIC_SPIV_DIRECTED_EOI) in kvm_ioapic_update_eoi_one()
/linux/arch/x86/kernel/cpu/mce/
H A Damd.c384 static int lvt_off_valid(struct threshold_block *b, int apic, u32 lo, u32 hi) in lvt_off_valid() argument
388 if (apic < 0) { in lvt_off_valid()
395 if (apic != msr) { in lvt_off_valid()
406 b->cpu, apic, b->bank, b->block, b->address, hi, lo); in lvt_off_valid()

123