Home
last modified time | relevance | path

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

12

/linux-6.6.21/arch/x86/mm/
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()
44 pr_info("SRAT: PXM %u -> X2APIC 0x%04x ignored\n", pxm, apic_id); in acpi_numa_x2apic_affinity_init()
54 if (apic_id >= MAX_LOCAL_APIC) { in acpi_numa_x2apic_affinity_init()
55 …NFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u skipped apicid that is too big\n", pxm, apic_id, node); 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()
[all …]
/linux-6.6.21/drivers/acpi/
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()
49 int device_declaration, u32 acpi_id, phys_cpuid_t *apic_id) in map_x2apic_id() argument
58 *apic_id = apic->local_apic_id; in map_x2apic_id()
66 int device_declaration, u32 acpi_id, phys_cpuid_t *apic_id) in map_lsapic_id() argument
80 *apic_id = (lsapic->id << 8) | lsapic->eid; in map_lsapic_id()
341 int apic_id = -1; in parse_madt_ioapic_entry() local
345 return apic_id; in parse_madt_ioapic_entry()
355 get_ioapic_id(hdr, gsi_base, phys_addr, &apic_id)) in parse_madt_ioapic_entry()
361 return apic_id; in parse_madt_ioapic_entry()
[all …]
/linux-6.6.21/arch/ia64/include/asm/uv/
Duv_mmrs.h51 unsigned long apic_id : 32; /* RW */ member
279 unsigned long apic_id : 32; /* RW */ member
317 unsigned long apic_id : 32; /* RW */ member
355 unsigned long apic_id : 32; /* RW */ member
393 unsigned long apic_id : 32; /* RW */ member
633 unsigned long apic_id : 32; /* RW */ member
671 unsigned long apic_id : 32; /* RW */ member
709 unsigned long apic_id : 32; /* RW */ member
/linux-6.6.21/arch/x86/kernel/
Dkvm.c503 int cpu, apic_id, icr; in __send_ipi_mask() local
527 apic_id = per_cpu(x86_cpu_to_apicid, cpu); in __send_ipi_mask()
529 min = max = apic_id; in __send_ipi_mask()
530 } else if (apic_id < min && max - apic_id < KVM_IPI_CLUSTER_SIZE) { in __send_ipi_mask()
531 ipi_bitmap <<= min - apic_id; in __send_ipi_mask()
532 min = apic_id; in __send_ipi_mask()
533 } else if (apic_id > min && apic_id < min + KVM_IPI_CLUSTER_SIZE) { in __send_ipi_mask()
534 max = apic_id < max ? max : apic_id; in __send_ipi_mask()
540 min = max = apic_id; in __send_ipi_mask()
543 __set_bit(apic_id - min, (unsigned long *)&ipi_bitmap); in __send_ipi_mask()
Ddevicetree.c131 u32 apic_id; in dtb_cpu_setup() local
134 apic_id = of_get_cpu_hwid(dn, 0); in dtb_cpu_setup()
135 if (apic_id == ~0U) { in dtb_cpu_setup()
139 generic_processor_info(apic_id); in dtb_cpu_setup()
Dsev.c969 static int wakeup_cpu_via_vmgexit(int apic_id, unsigned long start_ip) in wakeup_cpu_via_vmgexit() argument
1000 if (arch_match_cpu_phys_id(cpu, apic_id)) in wakeup_cpu_via_vmgexit()
1086 ghcb_set_sw_exit_info_1(ghcb, ((u64)apic_id << 32) | SVM_VMGEXIT_AP_CREATE); in wakeup_cpu_via_vmgexit()
/linux-6.6.21/arch/loongarch/kernel/
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-6.6.21/arch/x86/include/asm/uv/
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-6.6.21/tools/testing/selftests/kvm/x86_64/
Dxapic_state_test.c137 uint32_t apic_id, expected; in __test_apic_id() local
145 apic_id = *((u32 *)&xapic.regs[APIC_ID]); in __test_apic_id()
147 TEST_ASSERT(apic_id == expected, in __test_apic_id()
150 expected, apic_id); in __test_apic_id()
Dfix_hypercall_test.c32 static uint64_t do_sched_yield(uint8_t apic_id) in do_sched_yield() argument
39 : "a"((uint64_t)KVM_HC_SCHED_YIELD), "b"((uint64_t)apic_id) in do_sched_yield()
/linux-6.6.21/arch/x86/hyperv/
Dhv_proc.c117 int hv_call_add_logical_proc(int node, u32 lp_index, u32 apic_id) in hv_call_add_logical_proc() argument
139 input->apic_id = apic_id; in hv_call_add_logical_proc()
152 lp_index, apic_id, status); in hv_call_add_logical_proc()
Dhv_vtl.c167 static int hv_vtl_apicid_to_vp_id(u32 apic_id) in hv_vtl_apicid_to_vp_id() argument
180 input->apic_ids[0] = apic_id; in hv_vtl_apicid_to_vp_id()
192 apic_id, status); in hv_vtl_apicid_to_vp_id()
/linux-6.6.21/drivers/dma/ioat/
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-6.6.21/arch/x86/xen/
Dapic.c68 op.u.pcpu_info.apic_id = BAD_APICID; in xen_apic_read()
70 return op.u.pcpu_info.apic_id << 24; in xen_apic_read()
/linux-6.6.21/arch/x86/kernel/apic/
Dio_apic.c1425 u32 apic_id = read_apic_id(); in native_restore_boot_irq_mode() local
1433 entry.destid_0_7 = apic_id & 0xFF; in native_restore_boot_irq_mode()
1434 entry.virt_destid_8_14 = apic_id >> 8; in native_restore_boot_irq_mode()
2078 u32 apic_id; in unlock_ExtINT_logic() local
2094 apic_id = read_apic_id(); in unlock_ExtINT_logic()
2099 entry1.destid_0_7 = apic_id & 0xFF; in unlock_ExtINT_logic()
2100 entry1.virt_destid_8_14 = apic_id >> 8; in unlock_ExtINT_logic()
2495 static int io_apic_get_unique_id(int ioapic, int apic_id) in io_apic_get_unique_id() argument
2519 if (apic_id >= get_physical_broadcast()) { in io_apic_get_unique_id()
2521 "%d\n", ioapic, apic_id, reg_00.bits.ID); in io_apic_get_unique_id()
[all …]
Dipi.c284 static int convert_apicid_to_cpu(int apic_id) in convert_apicid_to_cpu() argument
289 if (per_cpu(x86_cpu_to_apicid, i) == apic_id) in convert_apicid_to_cpu()
Dapic.c2549 unsigned int apic_id; member
2575 apic_pm_state.apic_id = apic_read(APIC_ID); in lapic_suspend()
2652 apic_write(APIC_ID, apic_pm_state.apic_id); in lapic_resume()
/linux-6.6.21/drivers/acpi/numa/
Dsrat.c90 p->apic_id, p->local_sapic_eid, in acpi_table_print_srat_entry()
119 p->apic_id, in acpi_table_print_srat_entry()
365 pr_warn("Found unsupported x2apic [0x%08x] SRAT entry\n", pa->apic_id); in acpi_numa_x2apic_affinity_init()
/linux-6.6.21/arch/x86/kernel/acpi/
Dboot.c212 u32 apic_id; in acpi_parse_x2apic() local
224 apic_id = processor->local_apic_id; in acpi_parse_x2apic()
228 if (apic_id == 0xffffffff) in acpi_parse_x2apic()
242 if (!apic_id_valid(apic_id)) { in acpi_parse_x2apic()
248 acpi_register_lapic(apic_id, processor->uid, enabled); in acpi_parse_x2apic()
388 acpi_mp_wake_mailbox->apic_id = apicid; in acpi_wakeup_cpu()
/linux-6.6.21/include/xen/interface/
Dplatform.h430 uint32_t apic_id; member
444 uint32_t apic_id; member
/linux-6.6.21/include/acpi/
Dactbl3.h207 u8 apic_id; member
243 u32 apic_id; member
/linux-6.6.21/arch/x86/include/asm/
Dapic.h465 static __always_inline bool apic_id_valid(u32 apic_id) in apic_id_valid() argument
467 return apic_id <= apic->max_apic_id; in apic_id_valid()
/linux-6.6.21/include/asm-generic/
Dhyperv-tlfs.h537 u32 apic_id; member
/linux-6.6.21/tools/power/x86/turbostat/
Dturbostat.c354 unsigned int apic_id; member
1181 outp += sprintf(outp, "%s%d", (printed++ ? delim : ""), t->apic_id); in format_counters()
1546 new->apic_id = old->apic_id; in delta_thread()
1724 average.threads.apic_id = t->apic_id; in sum_counters()
2010 t->apic_id = (ebx >> 24) & 0xff; in get_apic_id()
2046 if (debug && (t->apic_id != (t->x2apic_id & 0xff))) in get_apic_id()
2047 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()
/linux-6.6.21/arch/ia64/kernel/
Dacpi.c392 (pa->apic_id << 8) | (pa->local_sapic_eid); in acpi_numa_processor_affinity_init()

12