Home
last modified time | relevance | path

Searched refs:apic_id (Results 1 – 25 of 28) sorted by relevance

12

/linux/arch/x86/mm/
H A Dsrat.c31 int apic_id; in acpi_numa_x2apic_affinity_init() local
42 apic_id = pa->apic_id; in acpi_numa_x2apic_affinity_init()
43 if (!apic_id_valid(apic_id)) { in acpi_numa_x2apic_affinity_init()
54 if (apic_id >= MAX_LOCAL_APIC) { in acpi_numa_x2apic_affinity_init()
58 set_apicid_to_node(apic_id, node); in acpi_numa_x2apic_affinity_init()
61 pxm, apic_id, node); in acpi_numa_x2apic_affinity_init()
69 int apic_id; in acpi_numa_processor_affinity_init() local
90 apic_id = (pa->apic_id << 8) | pa->local_sapic_eid; in acpi_numa_processor_affinity_init()
92 apic_id = pa->apic_id; in acpi_numa_processor_affinity_init()
94 if (apic_id >= MAX_LOCAL_APIC) { in acpi_numa_processor_affinity_init()
[all …]
/linux/arch/x86/kernel/cpu/
H A Dtopology.c104 if (cpuid_to_apicid[i] == apic_id) in topo_lookup_cpuid()
112 int cpu = topo_lookup_cpuid(apic_id); in topo_get_cpunr()
237 cpu = topo_get_cpunr(apic_id); in topo_register_apic()
239 cpuid_to_apicid[cpu] = apic_id; in topo_register_apic()
251 apic_id); in topo_register_apic()
276 if (apic_id >= MAX_LOCAL_APIC) { in topology_register_apic()
282 if (check_for_real_bsp(apic_id)) { in topology_register_apic()
384 if (apic_id >= MAX_LOCAL_APIC) in topology_hotplug_apic()
391 cpu = topo_lookup_cpuid(apic_id); in topology_hotplug_apic()
407 u32 apic_id = cpuid_to_apicid[cpu]; in topology_hotunplug_apic() local
[all …]
/linux/drivers/acpi/
H A Dprocessor_core.c33 u32 acpi_id, phys_cpuid_t *apic_id) in map_lapic_id() argument
44 *apic_id = lapic->id; in map_lapic_id()
58 *apic_id = apic->local_apic_id; in map_x2apic_id()
341 int apic_id = -1; in parse_madt_ioapic_entry() local
345 return apic_id; in parse_madt_ioapic_entry()
361 return apic_id; in parse_madt_ioapic_entry()
370 int apic_id = -1; in parse_mat_ioapic_entry() local
389 return apic_id; in parse_mat_ioapic_entry()
405 int apic_id; in acpi_get_ioapic_id() local
408 if (apic_id == -1) in acpi_get_ioapic_id()
[all …]
/linux/arch/x86/kernel/
H A Dkvm.c511 u32 apic_id, icr; in __send_ipi_mask() local
529 apic_id = per_cpu(x86_cpu_to_apicid, cpu); in __send_ipi_mask()
531 min = max = apic_id; in __send_ipi_mask()
532 } else if (apic_id < min && max - apic_id < KVM_IPI_CLUSTER_SIZE) { in __send_ipi_mask()
533 ipi_bitmap <<= min - apic_id; in __send_ipi_mask()
534 min = apic_id; in __send_ipi_mask()
535 } else if (apic_id > min && apic_id < min + KVM_IPI_CLUSTER_SIZE) { in __send_ipi_mask()
536 max = apic_id < max ? max : apic_id; in __send_ipi_mask()
542 min = max = apic_id; in __send_ipi_mask()
545 __set_bit(apic_id - min, (unsigned long *)&ipi_bitmap); in __send_ipi_mask()
H A Ddevicetree.c132 u32 apic_id; in dtb_cpu_setup() local
135 apic_id = of_get_cpu_hwid(dn, 0); in dtb_cpu_setup()
136 if (apic_id == ~0U) { in dtb_cpu_setup()
140 topology_register_apic(apic_id, CPU_ACPIID_INVALID, true); in dtb_cpu_setup()
141 set_apicid_to_node(apic_id, of_node_to_nid(dn)); in dtb_cpu_setup()
H A Dirq.c363 u32 apic_id; in intel_posted_msi_init() local
371 apic_id = this_cpu_read(x86_cpu_to_apicid); in intel_posted_msi_init()
372 destination = x2apic_enabled() ? apic_id : apic_id << 8; in intel_posted_msi_init()
H A Dsev.c976 static int wakeup_cpu_via_vmgexit(u32 apic_id, unsigned long start_ip) in wakeup_cpu_via_vmgexit() argument
1007 if (arch_match_cpu_phys_id(cpu, apic_id)) in wakeup_cpu_via_vmgexit()
1093 ghcb_set_sw_exit_info_1(ghcb, ((u64)apic_id << 32) | SVM_VMGEXIT_AP_CREATE); in wakeup_cpu_via_vmgexit()
/linux/arch/loongarch/kernel/
H A Dacpi.c269 if (pa->apic_id >= CONFIG_NR_CPUS) { in acpi_numa_processor_affinity_init()
271 pxm, pa->apic_id, node); in acpi_numa_processor_affinity_init()
275 early_numa_add_cpu(pa->apic_id, node); in acpi_numa_processor_affinity_init()
277 set_cpuid_to_node(pa->apic_id, node); in acpi_numa_processor_affinity_init()
279 pr_info("SRAT: PXM %u -> CPU 0x%02x -> Node %u\n", pxm, pa->apic_id, node); in acpi_numa_processor_affinity_init()
/linux/arch/x86/hyperv/
H A Dhv_proc.c116 int hv_call_add_logical_proc(int node, u32 lp_index, u32 apic_id) in hv_call_add_logical_proc() argument
137 input->apic_id = apic_id; in hv_call_add_logical_proc()
146 lp_index, apic_id, status); in hv_call_add_logical_proc()
H A Dhv_vtl.c177 static int hv_vtl_apicid_to_vp_id(u32 apic_id) in hv_vtl_apicid_to_vp_id() argument
190 input->apic_ids[0] = apic_id; in hv_vtl_apicid_to_vp_id()
202 apic_id, status); in hv_vtl_apicid_to_vp_id()
/linux/arch/x86/include/asm/uv/
H A Duv_mmrs.h2290 unsigned long apic_id:32; /* RW */ member
2304 unsigned long apic_id:32; /* RW */ member
2318 unsigned long apic_id:32; /* RW */ member
2332 unsigned long apic_id:32; /* RW */ member
2346 unsigned long apic_id:32; /* RW */ member
2393 unsigned long apic_id:32; /* RW */ member
2407 unsigned long apic_id:32; /* RW */ member
2421 unsigned long apic_id:32; /* RW */ member
2435 unsigned long apic_id:32; /* RW */ member
2449 unsigned long apic_id:32; /* RW */ member
[all …]
/linux/tools/testing/selftests/kvm/x86_64/
H A Dxapic_state_test.c136 uint32_t apic_id, expected; in __test_apic_id() local
144 apic_id = *((u32 *)&xapic.regs[APIC_ID]); in __test_apic_id()
146 TEST_ASSERT(apic_id == expected, in __test_apic_id()
149 expected, apic_id); in __test_apic_id()
H A Dfix_hypercall_test.c33 static uint64_t do_sched_yield(uint8_t apic_id) in do_sched_yield() argument
40 : "a"((uint64_t)KVM_HC_SCHED_YIELD), "b"((uint64_t)apic_id) in do_sched_yield()
/linux/arch/x86/include/asm/
H A Dapic.h176 extern void topology_register_apic(u32 apic_id, u32 acpi_id, bool present);
177 extern void topology_register_boot_apic(u32 apic_id);
178 extern int topology_hotplug_apic(u32 apic_id, u32 acpi_id);
473 static __always_inline bool apic_id_valid(u32 apic_id) in apic_id_valid() argument
475 return apic_id <= apic->max_apic_id; in apic_id_valid()
/linux/drivers/dma/ioat/
H A Ddca.c181 int i, apic_id, bit, value; in ioat_dca_get_tag() local
185 apic_id = cpu_physical_id(cpu); in ioat_dca_get_tag()
192 value = (apic_id & (1 << bit)) ? 1 : 0; in ioat_dca_get_tag()
195 value = (apic_id & (1 << bit)) ? 0 : 1; in ioat_dca_get_tag()
/linux/arch/x86/xen/
H A Dapic.c62 op.u.pcpu_info.apic_id = BAD_APICID; in xen_apic_read()
64 return op.u.pcpu_info.apic_id << 24; in xen_apic_read()
/linux/arch/x86/kernel/apic/
H A Dio_apic.c1425 u32 apic_id = read_apic_id(); in native_restore_boot_irq_mode() local
2075 u32 apic_id; in unlock_ExtINT_logic() local
2091 apic_id = read_apic_id(); in unlock_ExtINT_logic()
2508 if (apic_id >= broadcast_id) { in io_apic_get_unique_id()
2511 apic_id = reg_00.bits.ID; in io_apic_get_unique_id()
2525 apic_id = i; in io_apic_get_unique_id()
2528 set_bit(apic_id, apic_id_map); in io_apic_get_unique_id()
2530 if (reg_00.bits.ID != apic_id) { in io_apic_get_unique_id()
2531 reg_00.bits.ID = apic_id; in io_apic_get_unique_id()
2539 if (reg_00.bits.ID != apic_id) { in io_apic_get_unique_id()
[all …]
H A Dipi.c292 static int convert_apicid_to_cpu(u32 apic_id) in convert_apicid_to_cpu() argument
297 if (per_cpu(x86_cpu_to_apicid, i) == apic_id) in convert_apicid_to_cpu()
H A Dapic.c2363 u32 apic_id; member
2389 apic_pm_state.apic_id = apic_read(APIC_ID); in lapic_suspend()
2466 apic_write(APIC_ID, apic_pm_state.apic_id); in lapic_resume()
/linux/arch/x86/kernel/acpi/
H A Dboot.c184 u32 apic_id; in acpi_parse_x2apic() local
196 apic_id = processor->local_apic_id; in acpi_parse_x2apic()
200 if (apic_id == 0xffffffff) in acpi_parse_x2apic()
212 if (has_lapic_cpus && apic_id < 0xff) in acpi_parse_x2apic()
222 if (!apic_id_valid(apic_id)) { in acpi_parse_x2apic()
228 topology_register_apic(apic_id, processor->uid, enabled); in acpi_parse_x2apic()
369 acpi_mp_wake_mailbox->apic_id = apicid; in acpi_wakeup_cpu()
/linux/drivers/acpi/numa/
H A Dsrat.c92 p->apic_id, p->local_sapic_eid, in acpi_table_print_srat_entry()
121 p->apic_id, in acpi_table_print_srat_entry()
367 pr_warn("Found unsupported x2apic [0x%08x] SRAT entry\n", pa->apic_id); in acpi_numa_x2apic_affinity_init()
/linux/include/xen/interface/
H A Dplatform.h430 uint32_t apic_id; member
444 uint32_t apic_id; member
/linux/include/acpi/
H A Dactbl3.h208 u8 apic_id; member
244 u32 apic_id; member
/linux/include/asm-generic/
H A Dhyperv-tlfs.h533 u32 apic_id; member
/linux/tools/power/x86/turbostat/
H A Dturbostat.c1376 unsigned int apic_id; member
2346 outp += sprintf(outp, "%s%d", (printed++ ? delim : ""), t->apic_id); in format_counters()
2760 new->apic_id = old->apic_id; in delta_thread()
2960 average.threads.apic_id = t->apic_id; in sum_counters()
3269 t->apic_id = (ebx >> 24) & 0xff; in get_apic_id()
3305 if (debug && (t->apic_id != (t->x2apic_id & 0xff))) in get_apic_id()
3306 fprintf(outf, "cpu%d: BIOS BUG: apic 0x%x x2apic 0x%x\n", t->cpu_id, t->apic_id, t->x2apic_id); in get_apic_id()

12