Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/arch/x86/kvm/
A Dlapic.c116 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_pending_eoi() local
226 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_recalculate_phys_map() local
285 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_recalculate_logical_map() local
540 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_version() local
564 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_after_set_mcg_cap() local
651 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_update_irr() local
782 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_irq() local
1452 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_eoi_accelerated() local
1736 struct kvm_lapic *apic = vcpu->arch.apic; in lapic_timer_int_injected() local
1775 struct kvm_lapic *apic = vcpu->arch.apic; in adjust_lapic_timer_advance() local
[all …]
A Dlapic.h139 int kvm_x2apic_icr_write(struct kvm_lapic *apic, u64 data);
149 u64 kvm_lapic_readable_reg_mask(struct kvm_lapic *apic);
166 kvm_lapic_set_vector(vec, apic->regs + APIC_IRR); in kvm_lapic_set_irr()
171 apic->irr_pending = true; in kvm_lapic_set_irr()
181 return __kvm_lapic_get_reg(apic->regs, reg_off); in kvm_lapic_get_reg()
189 return vcpu->arch.apic; in lapic_in_kernel()
207 return apic->sw_enabled; in kvm_apic_sw_enabled()
221 static inline int apic_x2apic_mode(struct kvm_lapic *apic) in apic_x2apic_mode() argument
223 return apic->vcpu->arch.apic_base & X2APIC_ENABLE; in apic_x2apic_mode()
276 static inline u8 kvm_xapic_id(struct kvm_lapic *apic) in kvm_xapic_id() argument
[all …]
/linux-6.3-rc2/arch/x86/kernel/apic/
A Dprobe_32.c113 struct apic *apic __ro_after_init = &apic_default;
114 EXPORT_SYMBOL_GPL(apic);
119 struct apic **drv; in parse_apic()
126 apic = *drv; in parse_apic()
168 if (apic->setup_apic_routing) in default_setup_apic_routing()
169 apic->setup_apic_routing(); in default_setup_apic_routing()
175 struct apic **drv; in generic_apic_probe()
179 apic = *drv; in generic_apic_probe()
193 struct apic **drv; in default_acpi_madt_oem_check()
202 apic = *drv; in default_acpi_madt_oem_check()
[all …]
A Dprobe_64.c21 struct apic **drv; in default_setup_apic_routing()
27 if (apic != *drv) { in default_setup_apic_routing()
28 apic = *drv; in default_setup_apic_routing()
30 apic->name); in default_setup_apic_routing()
39 struct apic **drv; in default_acpi_madt_oem_check()
43 if (apic != *drv) { in default_acpi_madt_oem_check()
44 apic = *drv; in default_acpi_madt_oem_check()
46 apic->name); in default_acpi_madt_oem_check()
A Dio_apic.c89 int apic, pin; member
361 if (entry->apic == apic && entry->pin == pin) in __add_pin_to_irq_node()
370 entry->apic = apic; in __add_pin_to_irq_node()
382 if (entry->apic == apic && entry->pin == pin) { in __remove_pin_from_irq()
569 int apic, pin; in clear_IO_APIC() local
618 int apic, pin; in save_ioapic_entries() local
640 int apic, pin; in mask_ioapic_entries() local
663 int apic, pin; in restore_ioapic_entries() local
1366 int apic, pin; in enable_IO_APIC() local
1383 ioapic_i8259.apic = apic; in enable_IO_APIC()
[all …]
A Dapic_flat_64.c20 static struct apic apic_physflat;
21 static struct apic apic_flat;
23 struct apic *apic __ro_after_init = &apic_flat;
24 EXPORT_SYMBOL_GPL(apic);
109 static struct apic apic_flat __ro_after_init = {
192 if (apic == &apic_physflat || num_possible_cpus() > 8 || in physflat_probe()
199 static struct apic apic_physflat __ro_after_init = {
A Dipi.c55 apic->send_IPI_allbutself(vector); in apic_send_IPI_allbutself()
57 apic->send_IPI_mask_allbutself(cpu_online_mask, vector); in apic_send_IPI_allbutself()
71 apic->send_IPI(cpu, RESCHEDULE_VECTOR); in native_smp_send_reschedule()
76 apic->send_IPI(cpu, CALL_FUNCTION_SINGLE_VECTOR); in native_send_call_func_single_ipi()
88 apic->send_IPI_all(CALL_FUNCTION_VECTOR); in native_send_call_func_ipi()
90 apic->send_IPI_allbutself(CALL_FUNCTION_VECTOR); in native_send_call_func_ipi()
95 apic->send_IPI_mask(mask, CALL_FUNCTION_VECTOR); in native_send_call_func_ipi()
227 apic->send_IPI_mask(cpumask_of(cpu), vector); in default_send_IPI_single()
A Dapic_numachip.c24 static const struct apic apic_numachip1;
25 static const struct apic apic_numachip2;
162 return apic == &apic_numachip1; in numachip1_probe()
167 return apic == &apic_numachip2; in numachip2_probe()
242 static const struct apic apic_numachip1 __refconst = {
289 static const struct apic apic_numachip2 __refconst = {
A Dx2apic_phys.c10 static struct apic apic_x2apic_phys;
103 return apic == &apic_x2apic_phys; in x2apic_phys_probe()
155 static struct apic apic_x2apic_phys __ro_after_init = {
A Dbigsmp_32.c122 static struct apic apic_bigsmp __ro_after_init = {
176 apic = &apic_bigsmp; in generic_bigsmp_probe()
A Dapic.c248 apic = &apic_noop; in apic_disable()
538 apic->send_IPI_mask(mask, LOCAL_TIMER_VECTOR); in lapic_timer_broadcast()
1457 if (apic->disable_esr) { in lapic_setup_esr()
1583 if (lapic_is_integrated() && apic->disable_esr) { in setup_local_APIC()
1594 BUG_ON(!apic->apic_id_registered()); in setup_local_APIC()
1601 apic->init_apic_ldr(); in setup_local_APIC()
1604 if (apic->dest_mode_logical) { in setup_local_APIC()
2541 apic->x86_32_early_logical_apicid(cpu); in generic_processor_info()
2562 msg->arch_addr_lo.dest_mode_logical = apic->dest_mode_logical; in __irq_msi_compose_msg()
2599 struct apic **drv; in acpi_wake_cpu_handler_update()
[all …]
A Dhw_nmi.c34 apic->send_IPI_mask(mask, NMI_VECTOR); in nmi_raise_cpu_backtrace()
A DMakefile10 obj-$(CONFIG_X86_LOCAL_APIC) += apic.o apic_common.o apic_noop.o ipi.o vector.o
/linux-6.3-rc2/arch/x86/include/asm/
A Dapic.h279 struct apic { struct
354 extern struct apic *apic; argument
366 __aligned(sizeof(struct apic *)) \
388 return apic->read(reg); in apic_read()
393 apic->write(reg, val); in apic_write()
403 return apic->icr_read(); in apic_icr_read()
408 apic->icr_write(low, high); in apic_icr_write()
413 apic->wait_icr_idle(); in apic_wait_icr_idle()
418 return apic->safe_wait_icr_idle(); in safe_apic_wait_icr_idle()
481 extern struct apic apic_noop;
[all …]
A Dio_apic.h163 extern unsigned int native_io_apic_read(unsigned int apic, unsigned int reg);
166 static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg) in io_apic_read() argument
168 return x86_apic_ops.io_apic_read(apic, reg); in io_apic_read()
/linux-6.3-rc2/arch/x86/hyperv/
A Dhv_apic.c35 static struct apic orig_apic;
285 orig_apic = *apic; in hv_apic_init()
287 apic->send_IPI = hv_send_ipi; in hv_apic_init()
288 apic->send_IPI_mask = hv_send_ipi_mask; in hv_apic_init()
290 apic->send_IPI_allbutself = hv_send_ipi_allbutself; in hv_apic_init()
291 apic->send_IPI_all = hv_send_ipi_all; in hv_apic_init()
292 apic->send_IPI_self = hv_send_ipi_self; in hv_apic_init()
311 apic->read = hv_apic_read; in hv_apic_init()
312 apic->write = hv_apic_write; in hv_apic_init()
313 apic->icr_write = hv_apic_icr_write; in hv_apic_init()
[all …]
A Dhv_spinlock.c23 apic->send_IPI(cpu, X86_PLATFORM_IPI_VECTOR); in hv_qlock_kick()
71 if (!hv_pvspin || !apic || in hv_init_spinlocks()
/linux-6.3-rc2/arch/x86/xen/
A Dapic.c16 static unsigned int xen_io_apic_read(unsigned apic, unsigned reg) in xen_io_apic_read() argument
21 apic_op.apic_physbase = mpc_ioapic_addr(apic); in xen_io_apic_read()
31 return apic << 24; in xen_io_apic_read()
144 static struct apic xen_pv_apic = {
191 if (apic == &xen_pv_apic) in xen_apic_check()
194 pr_info("Switched APIC routing from %s to %s.\n", apic->name, in xen_apic_check()
196 apic = &xen_pv_apic; in xen_apic_check()
204 apic = &xen_pv_apic; in xen_init_apic()
/linux-6.3-rc2/arch/x86/kernel/cpu/
A Dtopology.c148 c->cpu_core_id = apic->phys_pkg_id(c->initial_apicid, in detect_extended_topology()
152 c->cpu_die_id = apic->phys_pkg_id(c->initial_apicid, in detect_extended_topology()
156 c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, in detect_extended_topology()
161 c->apicid = apic->phys_pkg_id(c->initial_apicid, 0); in detect_extended_topology()
/linux-6.3-rc2/arch/x86/kvm/svm/
A Davic.c82 if (x2avic_enabled && apic_x2apic_mode(svm->vcpu.arch.apic)) { in avic_activate_vmcb()
268 if (!vcpu->arch.apic->regs) in avic_init_backing_page()
285 svm->avic_backing_page = virt_to_page(vcpu->arch.apic->regs); in avic_init_backing_page()
323 vcpu->arch.apic->irr_pending = true; in avic_kick_vcpu()
478 struct kvm_lapic *apic = vcpu->arch.apic; in avic_incomplete_ipi_interception() local
500 kvm_apic_send_ipi(apic, icrl, icrh); in avic_incomplete_ipi_interception()
580 if (apic_x2apic_mode(vcpu->arch.apic)) in avic_invalidate_logical_id_entry()
591 u32 ldr = kvm_lapic_get_reg(vcpu->arch.apic, APIC_LDR); in avic_handle_ldr_update()
592 u32 id = kvm_xapic_id(vcpu->arch.apic); in avic_handle_ldr_update()
595 if (apic_x2apic_mode(vcpu->arch.apic)) in avic_handle_ldr_update()
[all …]
/linux-6.3-rc2/arch/x86/kernel/
A Dsmpboot.c1034 id = apic->dest_mode_logical ? cpu0_logical_apicid : apicid; in wakeup_cpu_via_init_nmi()
1085 if (apic->wakeup_secondary_cpu_64) in do_boot_cpu()
1134 if (apic->wakeup_secondary_cpu_64) in do_boot_cpu()
1135 boot_error = apic->wakeup_secondary_cpu_64(apicid, start_ip); in do_boot_cpu()
1136 else if (apic->wakeup_secondary_cpu) in do_boot_cpu()
1137 boot_error = apic->wakeup_secondary_cpu(apicid, start_ip); in do_boot_cpu()
1188 int apicid = apic->cpu_present_to_apicid(cpu); in native_cpu_up()
1199 !apic->apic_id_valid(apicid)) { in native_cpu_up()
1336 if (!apic->check_phys_apicid_present(boot_cpu_physical_apicid)) { in smp_sanity_check()
1536 if (apic->cpu_present_to_apicid(0) == BAD_APICID && in prefill_possible_map()
[all …]
A Dirq_work.c31 apic->send_IPI_self(IRQ_WORK_VECTOR); in arch_irq_work_raise()
/linux-6.3-rc2/drivers/acpi/
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-6.3-rc2/arch/x86/platform/uv/
A Duv_irq.c38 entry->delivery_mode = apic->delivery_mode; in uv_program_mmr()
39 entry->dest_mode = apic->dest_mode_logical; in uv_program_mmr()
/linux-6.3-rc2/drivers/iommu/intel/
A Dirq_remapping.c216 static struct intel_iommu *map_ioapic_to_iommu(int apic) in map_ioapic_to_iommu() argument
221 if (ir_ioapic[i].id == apic && ir_ioapic[i].iommu) in map_ioapic_to_iommu()
306 static int set_ioapic_sid(struct irte *irte, int apic) in set_ioapic_sid() argument
316 if (ir_ioapic[i].iommu && ir_ioapic[i].id == apic) { in set_ioapic_sid()
324 pr_warn("Failed to set source-id of IOAPIC (%d)\n", apic); in set_ioapic_sid()
1114 irte->dst_mode = apic->dest_mode_logical; in prepare_irte()
1123 irte->dlvry_mode = apic->delivery_mode; in prepare_irte()

Completed in 251 milliseconds

1234