Home
last modified time | relevance | path

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

12

/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.c67 #include <asm/apic.h>
90 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, in __ioapic_read_entry()
298 ioapic_read_entry(int apic,int pin) ioapic_read_entry() argument
310 __ioapic_write_entry(int apic,int pin,struct IO_APIC_route_entry e) __ioapic_write_entry() argument
316 ioapic_write_entry(int apic,int pin,struct IO_APIC_route_entry e) ioapic_write_entry() argument
327 ioapic_mask_entry(int apic,int pin) ioapic_mask_entry() argument
341 add_pin_to_irq_node(struct mp_chip_data * data,int node,int apic,int pin) add_pin_to_irq_node() argument
363 __remove_pin_from_irq(struct mp_chip_data * data,int apic,int pin) __remove_pin_from_irq() argument
439 __eoi_ioapic_pin(int apic,int pin,int vector) __eoi_ioapic_pin() argument
468 clear_IO_APIC_pin(unsigned int apic,unsigned int pin) clear_IO_APIC_pin() argument
514 int apic, pin; clear_IO_APIC() local
558 int apic, pin; save_ioapic_entries() local
579 int apic, pin; mask_ioapic_entries() local
602 int apic, pin; restore_ioapic_entries() local
1149 io_apic_print_entries(unsigned int apic,unsigned int nr_entries) io_apic_print_entries() argument
1270 static struct { int pin, apic; } ioapic_i8259 = { -1, -1 }; global() member
1274 int i8259_apic, i8259_pin, apic, pin; enable_IO_APIC() local
1949 int apic, pin, i; unlock_ExtINT_logic() local
[all...]
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_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 Dapic.c54 #include <asm/apic.h>
217 * right after this call apic become NOOP driven
218 * so apic->write/read doesn't do anything
494 * The local apic timer can be used for any function which is CPU local.
763 * and apic timer calibration. in apic_needs_pit()
888 /* Build delta t1-t2 as apic timer counts down */ in calibrate_APIC_clock()
921 pr_warn("APIC frequency too slow, disabling apic timer\n"); in calibrate_APIC_clock()
936 * Setup the apic timer manually in calibrate_APIC_clock()
980 * The local apic timer can be disabled via the kernel in setup_boot_APIC_clock()
1021 * The guts of the apic time
[all...]
H A DMakefile10 obj-$(CONFIG_X86_LOCAL_APIC) += apic.o apic_common.o apic_noop.o ipi.o vector.o init.o
H A Dx2apic_savic.c390 static struct apic apic_x2apic_savic __ro_after_init = {
/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.c157 if (x2avic_enabled && (!vcpu || apic_x2apic_mode(vcpu->arch.apic))) in avic_set_x2apic_msr_interception()
222 if (x2avic_enabled && apic_x2apic_mode(svm->vcpu.arch.apic)) { in avic_activate_vmcb()
373 return __sme_set(__pa(svm->vcpu.arch.apic->regs)); in avic_vm_init()
408 vcpu->arch.apic->apicv_active = false; in avic_init_vmcb()
415 if (WARN_ON_ONCE(!vcpu->arch.apic->regs)) in avic_init_backing_page()
472 vcpu->arch.apic->irr_pending = true; in avic_init_backing_page()
627 struct kvm_lapic *apic = vcpu->arch.apic; in avic_kick_target_vcpus()
649 kvm_apic_send_ipi(apic, icrl, icrh); in avic_incomplete_ipi_interception()
657 avic_kick_target_vcpus(vcpu->kvm, apic, icr in avic_incomplete_ipi_interception()
650 struct kvm_lapic *apic = vcpu->arch.apic; avic_incomplete_ipi_interception() local
[all...]
/linux/arch/x86/include/asm/
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.h304 * @apic_post_init: adjust apic if needed
339 unsigned int (*io_apic_read) (unsigned int apic, unsigned int reg);
/linux/arch/x86/kernel/
H A Dsmpboot.c77 #include <asm/apic.h>
1013 * NOTE - on most systems this is a PHYSICAL apic ID, but on multiquad in do_boot_cpu()
1014 * (ie clustered apic addressing mode), this is a LOGICAL apic ID. in do_boot_cpu()
1025 if (apic->wakeup_secondary_cpu_64) in do_boot_cpu()
1071 if (apic->wakeup_secondary_cpu_64) in native_kick_ap()
1072 ret = apic->wakeup_secondary_cpu_64(apicid, start_ip, cpu); in native_kick_ap()
1073 else if (apic->wakeup_secondary_cpu) in native_kick_ap()
1074 ret = apic->wakeup_secondary_cpu(apicid, start_ip, cpu); in native_kick_ap()
1086 u32 apicid = apic in native_kick_ap()
[all...]
H A DMakefile114 obj-y += apic/
/linux/arch/x86/hyperv/
H A Dhv_apic.c35 static struct apic orig_apic;
309 orig_apic = *apic; in hv_apic_init()
/linux/arch/x86/kvm/vmx/
H A Dx86_ops.h52 void vmx_deliver_interrupt(struct kvm_lapic *apic, int delivery_mode,
147 void tdx_deliver_interrupt(struct kvm_lapic *apic, int delivery_mode,
/linux/arch/x86/kernel/cpu/mce/
H A Damd.c22 #include <asm/apic.h>
402 static bool lvt_off_valid(struct threshold_block *b, int apic, u32 lo, u32 hi) in lvt_off_valid() argument
414 if (apic < 0) { in lvt_off_valid()
421 if (apic != msr) { in lvt_off_valid()
424 b->cpu, apic, b->bank, b->block, b->address, hi, lo); in lvt_off_valid()
/linux/arch/x86/kvm/
H A Dioapic.c544 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_ioapic_update_eoi_one()
560 kvm_lapic_suppress_eoi_broadcast(apic)) in kvm_ioapic_update_eoi_one()
543 struct kvm_lapic *apic = vcpu->arch.apic; kvm_ioapic_update_eoi_one() local
H A Ddebugfs.c18 *val = vcpu->arch.apic->lapic_timer.timer_advance_ns; in vcpu_get_timer_advance_ns()
H A Dtrace.h666 TP_PROTO(struct kvm_lapic *apic, int vector),
667 TP_ARGS(apic, vector),
675 __entry->apicid = apic->vcpu->vcpu_id;
683 TP_PROTO(struct kvm_lapic *apic, int vector),
684 TP_ARGS(apic, vector),
692 __entry->apicid = apic->vcpu->vcpu_id;
H A Dcpuid.c377 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_vcpu_after_set_cpuid() local
432 if (best && apic) { in kvm_vcpu_after_set_cpuid()
434 apic->lapic_timer.timer_mode_mask = 3 << 17; in kvm_vcpu_after_set_cpuid()
436 apic->lapic_timer.timer_mode_mask = 1 << 17; in kvm_vcpu_after_set_cpuid()
/linux/lib/zstd/common/
H A Dcpu.h139 D(apic, 9)
/linux/arch/x86/platform/uv/
H A Duv_irq.c39 entry->dest_mode = apic->dest_mode_logical; in uv_program_mmr()
/linux/arch/x86/kernel/cpu/microcode/
H A Dcore.c35 #include <asm/apic.h>
579 apic->send_IPI(smp_processor_id(), NMI_VECTOR); in load_cpus_stopped()
705 (microcode_ops->use_nmi && apic->nmi_to_offline_cpu); in setup_cpus()

12