| /OK3568_Linux_fs/kernel/arch/x86/kvm/ |
| H A D | lapic.c | 78 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_pending_eoi() local 80 return apic_test_vector(vector, apic->regs + APIC_ISR) || in kvm_apic_pending_eoi() 81 apic_test_vector(vector, apic->regs + APIC_IRR); in kvm_apic_pending_eoi() 97 static inline int apic_enabled(struct kvm_lapic *apic) in apic_enabled() argument 99 return kvm_apic_sw_enabled(apic) && kvm_apic_hw_enabled(apic); in apic_enabled() 109 static inline u32 kvm_x2apic_id(struct kvm_lapic *apic) in kvm_x2apic_id() argument 111 return apic->vcpu->vcpu_id; in kvm_x2apic_id() 210 max_id = max(max_id, kvm_x2apic_id(vcpu->arch.apic)); in kvm_recalculate_apic_map() 222 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_recalculate_apic_map() local 232 xapic_id = kvm_xapic_id(apic); in kvm_recalculate_apic_map() [all …]
|
| H A D | lapic.h | 86 int kvm_lapic_reg_write(struct kvm_lapic *apic, u32 reg, u32 val); 87 int kvm_lapic_reg_read(struct kvm_lapic *apic, u32 offset, int len, 98 int kvm_apic_local_deliver(struct kvm_lapic *apic, int lvt_type); 103 void kvm_apic_send_ipi(struct kvm_lapic *apic, u32 icr_low, u32 icr_high); 150 static inline void kvm_lapic_set_irr(int vec, struct kvm_lapic *apic) in kvm_lapic_set_irr() argument 152 kvm_lapic_set_vector(vec, apic->regs + APIC_IRR); in kvm_lapic_set_irr() 157 apic->irr_pending = true; in kvm_lapic_set_irr() 160 static inline u32 kvm_lapic_get_reg(struct kvm_lapic *apic, int reg_off) in kvm_lapic_get_reg() argument 162 return *((u32 *) (apic->regs + reg_off)); in kvm_lapic_get_reg() 170 static inline void kvm_lapic_set_reg(struct kvm_lapic *apic, int reg_off, u32 val) in kvm_lapic_set_reg() argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/apic/ |
| H A D | probe_32.c | 64 static struct apic apic_default __ro_after_init = { 116 struct apic *apic __ro_after_init = &apic_default; 117 EXPORT_SYMBOL_GPL(apic); 122 struct apic **drv; in parse_apic() 129 apic = *drv; in parse_apic() 167 if (!cmdline_apic && apic == &apic_default) in default_setup_apic_routing() 171 if (apic->setup_apic_routing) in default_setup_apic_routing() 172 apic->setup_apic_routing(); in default_setup_apic_routing() 178 struct apic **drv; in generic_apic_probe() 182 apic = *drv; in generic_apic_probe() [all …]
|
| H A D | io_apic.c | 88 int apic, pin; member 267 static inline void io_apic_eoi(unsigned int apic, unsigned int vector) in io_apic_eoi() argument 269 struct io_apic __iomem *io_apic = io_apic_base(apic); in io_apic_eoi() 273 unsigned int native_io_apic_read(unsigned int apic, unsigned int reg) in native_io_apic_read() argument 275 struct io_apic __iomem *io_apic = io_apic_base(apic); in native_io_apic_read() 280 static void io_apic_write(unsigned int apic, unsigned int reg, in io_apic_write() argument 283 struct io_apic __iomem *io_apic = io_apic_base(apic); in io_apic_write() 294 static struct IO_APIC_route_entry __ioapic_read_entry(int apic, int pin) in __ioapic_read_entry() argument 298 eu.w1 = io_apic_read(apic, 0x10 + 2 * pin); in __ioapic_read_entry() 299 eu.w2 = io_apic_read(apic, 0x11 + 2 * pin); in __ioapic_read_entry() [all …]
|
| H A D | probe_64.c | 21 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()
|
| H A D | ipi.c | 55 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() 263 vector, apic->dest_logical); in default_send_IPI_mask_sequence_logical() 282 vector, apic->dest_logical); in default_send_IPI_mask_allbutself_logical() [all …]
|
| H A D | apic_flat_64.c | 20 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); 56 __default_send_IPI_dest_field(mask, vector, apic->dest_logical); in _flat_send_IPI_mask() 109 static struct apic apic_flat __ro_after_init = { 194 if (apic == &apic_physflat || num_possible_cpus() > 8 || in physflat_probe() 201 static struct apic apic_physflat __ro_after_init = {
|
| H A D | apic_numachip.c | 24 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 = { 291 static const struct apic apic_numachip2 __refconst = {
|
| H A D | x2apic_phys.c | 10 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 = {
|
| H A D | bigsmp_32.c | 122 static struct apic apic_bigsmp __ro_after_init = { 179 apic = &apic_bigsmp; in generic_bigsmp_probe()
|
| H A D | apic.c | 245 apic = &apic_noop; in apic_disable() 526 apic->send_IPI_mask(mask, LOCAL_TIMER_VECTOR); in lapic_timer_broadcast() 1451 if (apic->disable_esr) { in lapic_setup_esr() 1577 if (lapic_is_integrated() && apic->disable_esr) { in setup_local_APIC() 1588 BUG_ON(!apic->apic_id_registered()); in setup_local_APIC() 1595 apic->init_apic_ldr(); in setup_local_APIC() 1598 if (apic->dest_logical) { in setup_local_APIC() 2477 apic->x86_32_early_logical_apicid(cpu); in generic_processor_info() 2500 struct apic **drv; in apic_set_eoi_write() 2513 apic_write(APIC_ID, apic->set_apic_id(boot_cpu_physical_apicid)); in apic_bsp_up_setup()
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/ |
| H A D | apic.h | 282 struct apic { struct 356 extern struct apic *apic; argument 367 static const struct apic *__apicdrivers_##sym __used \ 368 __aligned(sizeof(struct apic *)) \ 372 static struct apic *__apicdrivers_##sym1##sym2[2] __used \ 373 __aligned(sizeof(struct apic *)) \ 376 extern struct apic *__apicdrivers[], *__apicdrivers_end[]; 390 return apic->read(reg); in apic_read() 395 apic->write(reg, val); in apic_write() 400 apic->eoi_write(APIC_EOI, APIC_EOI_ACK); in apic_eoi() [all …]
|
| H A D | io_apic.h | 184 extern unsigned int native_io_apic_read(unsigned int apic, unsigned int reg); 187 static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg) in io_apic_read() argument 189 return x86_apic_ops.io_apic_read(apic, reg); in io_apic_read()
|
| /OK3568_Linux_fs/kernel/arch/x86/hyperv/ |
| H A D | hv_apic.c | 35 static struct apic orig_apic; 262 orig_apic = *apic; in hv_apic_init() 264 apic->send_IPI = hv_send_ipi; in hv_apic_init() 265 apic->send_IPI_mask = hv_send_ipi_mask; in hv_apic_init() 266 apic->send_IPI_mask_allbutself = hv_send_ipi_mask_allbutself; in hv_apic_init() 267 apic->send_IPI_allbutself = hv_send_ipi_allbutself; in hv_apic_init() 268 apic->send_IPI_all = hv_send_ipi_all; in hv_apic_init() 269 apic->send_IPI_self = hv_send_ipi_self; in hv_apic_init() 288 apic->read = hv_apic_read; in hv_apic_init() 289 apic->write = hv_apic_write; in hv_apic_init() [all …]
|
| H A D | hv_spinlock.c | 23 apic->send_IPI(cpu, X86_PLATFORM_IPI_VECTOR); in hv_qlock_kick() 67 if (!hv_pvspin || !apic || in hv_init_spinlocks()
|
| /OK3568_Linux_fs/kernel/arch/x86/xen/ |
| H A D | apic.c | 16 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 = { 194 if (apic == &xen_pv_apic) in xen_apic_check() 197 pr_info("Switched APIC routing from %s to %s.\n", apic->name, in xen_apic_check() 199 apic = &xen_pv_apic; in xen_apic_check() 207 apic = &xen_pv_apic; in xen_init_apic()
|
| /OK3568_Linux_fs/kernel/arch/x86/kvm/svm/ |
| H A D | avic.c | 270 if (!svm->vcpu.arch.apic->regs) in avic_init_backing_page() 281 svm->avic_backing_page = virt_to_page(svm->vcpu.arch.apic->regs); in avic_init_backing_page() 304 struct kvm_lapic *apic = svm->vcpu.arch.apic; in avic_incomplete_ipi_interception() local 321 kvm_lapic_reg_write(apic, APIC_ICR2, icrh); in avic_incomplete_ipi_interception() 322 kvm_lapic_reg_write(apic, APIC_ICR, icrl); in avic_incomplete_ipi_interception() 328 struct kvm_lapic *apic = svm->vcpu.arch.apic; in avic_incomplete_ipi_interception() local 336 bool m = kvm_apic_match_dest(vcpu, apic, in avic_incomplete_ipi_interception() 374 int apic = ffs(dlid & 0x0f) - 1; in avic_get_logical_id_entry() local 376 if ((apic < 0) || (apic > 7) || in avic_get_logical_id_entry() 379 index = (cluster << 2) + apic; in avic_get_logical_id_entry() [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/ |
| H A D | 0007-apic-fixup-fallthrough-to-PIC.patch | 4 Subject: [PATCH] apic: fixup fallthrough to PIC 29 hw/intc/apic.c | 2 +- 32 Index: qemu-6.0.0/hw/intc/apic.c 34 --- qemu-6.0.0.orig/hw/intc/apic.c 35 +++ qemu-6.0.0/hw/intc/apic.c
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/ |
| H A D | topology.c | 148 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()
|
| /OK3568_Linux_fs/kernel/drivers/acpi/ |
| H A D | processor_core.c | 51 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()
|
| /OK3568_Linux_fs/u-boot/arch/x86/dts/ |
| H A D | edison.dts | 36 intel,apic-id = <0>; 43 intel,apic-id = <2>;
|
| H A D | baytrail_som-db5800-som-6867.dts | 87 intel,apic-id = <0>; 94 intel,apic-id = <2>; 101 intel,apic-id = <4>; 108 intel,apic-id = <6>;
|
| H A D | bayleybay.dts | 45 intel,apic-id = <0>; 52 intel,apic-id = <2>; 59 intel,apic-id = <4>; 66 intel,apic-id = <6>;
|
| H A D | chromebook_samus.dts | 34 intel,apic-id = <0>; 42 intel,apic-id = <1>; 49 intel,apic-id = <2>; 56 intel,apic-id = <3>; 132 pirq-apic = <PIRQ_APIC_ROUTE>;
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/ |
| H A D | smpboot.c | 758 apic_icr_write(APIC_DM_NMI | apic->dest_logical, apicid); in wakeup_secondary_cpu_via_nmi() 985 if (apic->dest_logical == APIC_DEST_LOGICAL) in wakeup_cpu_via_init_nmi() 1082 if (apic->wakeup_secondary_cpu) in do_boot_cpu() 1083 boot_error = apic->wakeup_secondary_cpu(apicid, start_ip); in do_boot_cpu() 1134 int apicid = apic->cpu_present_to_apicid(cpu); in native_cpu_up() 1145 !apic->apic_id_valid(apicid)) { in native_cpu_up() 1282 if (!apic->check_phys_apicid_present(boot_cpu_physical_apicid)) { in smp_sanity_check() 1469 if (apic->cpu_present_to_apicid(0) == BAD_APICID && in prefill_possible_map() 1470 apic->apic_id_valid(apicid)) in prefill_possible_map()
|