Home
last modified time | relevance | path

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

123

/linux/arch/x86/kvm/
H A Dlapic.c79 static int kvm_lapic_msr_read(struct kvm_lapic *apic, u32 reg, u64 *data);
80 static int kvm_lapic_msr_write(struct kvm_lapic *apic, u32 reg, u64 data);
87 static inline void kvm_lapic_set_reg(struct kvm_lapic *apic, int reg_off, u32 val) in kvm_lapic_set_reg() argument
89 __kvm_lapic_set_reg(apic->regs, reg_off, val); in kvm_lapic_set_reg()
98 static __always_inline u64 kvm_lapic_get_reg64(struct kvm_lapic *apic, int reg) in kvm_lapic_get_reg64() argument
100 return __kvm_lapic_get_reg64(apic->regs, reg); in kvm_lapic_get_reg64()
109 static __always_inline void kvm_lapic_set_reg64(struct kvm_lapic *apic, in kvm_lapic_set_reg64() argument
112 __kvm_lapic_set_reg64(apic->regs, reg, val); in kvm_lapic_set_reg64()
122 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_pending_eoi() local
124 return apic_test_vector(vector, apic->regs + APIC_ISR) || in kvm_apic_pending_eoi()
[all …]
H A Dlapic.h111 int kvm_apic_local_deliver(struct kvm_lapic *apic, int lvt_type);
118 void kvm_apic_send_ipi(struct kvm_lapic *apic, u32 icr_low, u32 icr_high);
137 int kvm_x2apic_icr_write(struct kvm_lapic *apic, u64 data);
147 u64 kvm_lapic_readable_reg_mask(struct kvm_lapic *apic);
162 static inline void kvm_lapic_set_irr(int vec, struct kvm_lapic *apic) in kvm_lapic_set_irr() argument
164 kvm_lapic_set_vector(vec, apic->regs + APIC_IRR); in kvm_lapic_set_irr()
169 apic->irr_pending = true; in kvm_lapic_set_irr()
177 static inline u32 kvm_lapic_get_reg(struct kvm_lapic *apic, int reg_off) in kvm_lapic_get_reg() argument
179 return __kvm_lapic_get_reg(apic->regs, reg_off); in kvm_lapic_get_reg()
187 return vcpu->arch.apic; in lapic_in_kernel()
[all …]
/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 Dprobe_64.c19 struct apic **drv; in x86_64_probe_apic()
33 struct apic **drv; in default_acpi_madt_oem_check()
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 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 = {
/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.c885 if (apic->wakeup_secondary_cpu_64) in do_boot_cpu()
931 if (apic->wakeup_secondary_cpu_64) in do_boot_cpu()
932 ret = apic->wakeup_secondary_cpu_64(apicid, start_ip); in do_boot_cpu()
933 else if (apic->wakeup_secondary_cpu) in do_boot_cpu()
934 ret = apic->wakeup_secondary_cpu(apicid, start_ip); in do_boot_cpu()
946 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/drivers/iommu/intel/
H A Dirq_remapping.c215 static struct intel_iommu *map_ioapic_to_iommu(int apic) in map_ioapic_to_iommu() argument
220 if (ir_ioapic[i].id == apic && ir_ioapic[i].iommu) in map_ioapic_to_iommu()
305 static int set_ioapic_sid(struct irte *irte, int apic) in set_ioapic_sid() argument
314 if (ir_ioapic[i].iommu && ir_ioapic[i].id == apic) { in set_ioapic_sid()
321 pr_warn("Failed to set source-id of IOAPIC (%d)\n", apic); in set_ioapic_sid()
1104 irte->dst_mode = apic->dest_mode_logical; in prepare_irte()

123