/linux-6.1.9/arch/x86/include/asm/ |
D | apic.h | 68 extern void __inquire_remote_apic(int apicid); 70 static inline void __inquire_remote_apic(int apicid) in __inquire_remote_apic() argument 75 static inline void default_inquire_remote_apic(int apicid) in default_inquire_remote_apic() argument 78 __inquire_remote_apic(apicid); in default_inquire_remote_apic() 251 extern void __init x2apic_set_max_apicid(u32 apicid); 311 int (*apic_id_valid)(u32 apicid); 314 bool (*check_apicid_used)(physid_mask_t *map, int apicid); 327 int (*wakeup_secondary_cpu)(int apicid, unsigned long start_eip); 329 int (*wakeup_secondary_cpu_64)(int apicid, unsigned long start_eip); 331 void (*inquire_remote_apic)(int apicid); [all …]
|
D | numa.h | 38 static inline void set_apicid_to_node(int apicid, s16 node) in set_apicid_to_node() argument 40 __apicid_to_node[apicid] = node; in set_apicid_to_node() 46 static inline void set_apicid_to_node(int apicid, s16 node) in set_apicid_to_node() argument
|
D | apicdef.h | 160 #define APIC_CLUSTER(apicid) ((apicid) & XAPIC_DEST_CLUSTER_MASK) argument 161 #define APIC_CLUSTERID(apicid) (APIC_CLUSTER(apicid) >> XAPIC_DEST_CPUS_SHIFT) argument 162 #define APIC_CPUID(apicid) ((apicid) & XAPIC_DEST_CPUS_MASK) argument
|
D | mpspec_def.h | 70 unsigned char apicid; /* Local APIC number */ member 108 unsigned char apicid; member
|
D | topology.h | 139 int topology_update_package_map(unsigned int apicid, unsigned int cpu); 148 topology_update_package_map(unsigned int apicid, unsigned int cpu) { return 0; } in topology_update_package_map() argument
|
/linux-6.1.9/arch/x86/kernel/apic/ |
D | apic_numachip.c | 26 static void (*numachip_apic_icr_write)(int apicid, unsigned int val) __read_mostly; 59 static int numachip_apic_id_valid(u32 apicid) in numachip_apic_id_valid() argument 75 static void numachip1_apic_icr_write(int apicid, unsigned int val) in numachip1_apic_icr_write() argument 77 write_lcsr(CSR_G3_EXT_IRQ_GEN, (apicid << 16) | val); in numachip1_apic_icr_write() 80 static void numachip2_apic_icr_write(int apicid, unsigned int val) in numachip2_apic_icr_write() argument 82 numachip2_write32_lcsr(NUMACHIP2_APIC_ICR, (apicid << 12) | val); in numachip2_apic_icr_write() 96 int local_apicid, apicid = per_cpu(x86_cpu_to_apicid, cpu); in numachip_send_IPI_one() local 103 if (!((apicid ^ local_apicid) >> NUMACHIP_LAPIC_BITS)) { in numachip_send_IPI_one() 107 __default_send_IPI_dest_field(apicid, vector, in numachip_send_IPI_one() 116 numachip_apic_icr_write(apicid, dmode | vector); in numachip_send_IPI_one()
|
D | apic_common.c | 19 bool default_check_apicid_used(physid_mask_t *map, int apicid) in default_check_apicid_used() argument 21 return physid_isset(apicid, *map); in default_check_apicid_used() 43 int default_apic_id_valid(u32 apicid) in default_apic_id_valid() argument 45 return (apicid < 255); in default_apic_id_valid()
|
D | x2apic_phys.c | 13 void __init x2apic_set_max_apicid(u32 apicid) in x2apic_set_max_apicid() argument 15 x2apic_max_apicid = apicid; in x2apic_set_max_apicid() 107 int x2apic_apic_id_valid(u32 apicid) in x2apic_apic_id_valid() argument 109 if (x2apic_max_apicid && apicid > x2apic_max_apicid) in x2apic_apic_id_valid() 120 void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest) in __x2apic_send_IPI_dest() argument 123 native_x2apic_icr_write(cfg, apicid); in __x2apic_send_IPI_dest()
|
D | apic.c | 1805 int apicid = native_apic_msr_read(APIC_ID); in setup_nox2apic() local 1807 if (apicid >= 255) { in setup_nox2apic() 1809 apicid); in setup_nox2apic() 2394 bool apic_id_is_primary_thread(unsigned int apicid) in apic_id_is_primary_thread() argument 2402 return !(apicid & mask); in apic_id_is_primary_thread() 2410 static int allocate_logical_cpuid(int apicid) in allocate_logical_cpuid() argument 2419 if (cpuid_to_apicid[i] == apicid) in allocate_logical_cpuid() 2427 nr_cpu_ids, nr_logical_cpuids, apicid); in allocate_logical_cpuid() 2431 cpuid_to_apicid[nr_logical_cpuids] = apicid; in allocate_logical_cpuid() 2435 int generic_processor_info(int apicid, int version) in generic_processor_info() argument [all …]
|
D | ipi.c | 318 int apicid, cpuid; in safe_smp_processor_id() local 323 apicid = hard_smp_processor_id(); in safe_smp_processor_id() 324 if (apicid == BAD_APICID) in safe_smp_processor_id() 327 cpuid = convert_apicid_to_cpu(apicid); in safe_smp_processor_id()
|
D | local.h | 20 int x2apic_apic_id_valid(u32 apicid); 22 void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest);
|
D | x2apic_cluster.c | 109 u32 cluster, apicid = apic_read(APIC_LDR); in init_x2apic_ldr() local 112 x86_cpu_to_logical_apicid[smp_processor_id()] = apicid; in init_x2apic_ldr() 117 cluster = apicid >> 16; in init_x2apic_ldr()
|
D | x2apic_uv_x.c | 728 unsigned long apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_send_IPI_one() local 729 int pnode = uv_apicid_to_pnode(apicid); in uv_send_IPI_one() 738 (apicid << UVH_IPI_INT_APIC_ID_SHFT) | in uv_send_IPI_one() 780 static int uv_apic_id_valid(u32 apicid) in uv_apic_id_valid() argument 1554 int apicid, sockid; in build_socket_tables() local 1559 apicid = per_cpu(x86_cpu_to_apicid, cpu); in build_socket_tables() 1560 sockid = apicid >> uv_cpuid.socketid_shift; in build_socket_tables() 1563 sockid, apicid, nid); in build_socket_tables() 1769 int apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_system_init_hub() local 1775 pnode = uv_apicid_to_pnode(apicid); in uv_system_init_hub()
|
/linux-6.1.9/arch/x86/kernel/cpu/ |
D | cacheinfo.c | 672 per_cpu(cpu_llc_id, cpu) = c->apicid >> 3; in cacheinfo_amd_init_llc_id() 688 per_cpu(cpu_llc_id, cpu) = c->apicid >> bits; in cacheinfo_amd_init_llc_id() 706 per_cpu(cpu_llc_id, cpu) = c->apicid >> 3; in cacheinfo_hygon_init_llc_id() 770 l2_id = c->apicid & ~((1 << index_msb) - 1); in init_intel_cacheinfo() 776 l3_id = c->apicid & ~((1 << index_msb) - 1); in init_intel_cacheinfo() 909 unsigned int apicid, nshared, first, last; in __cache_amd_cpumap_setup() local 912 apicid = cpu_data(cpu).apicid; in __cache_amd_cpumap_setup() 913 first = apicid - (apicid % nshared); in __cache_amd_cpumap_setup() 921 apicid = cpu_data(i).apicid; in __cache_amd_cpumap_setup() 922 if ((apicid < first) || (apicid > last)) in __cache_amd_cpumap_setup() [all …]
|
D | hygon.c | 33 static int nearby_node(int apicid) in nearby_node() argument 37 for (i = apicid - 1; i >= 0; i--) { in nearby_node() 42 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node() 90 c->phys_proc_id = c->apicid >> APICID_SOCKET_ID_BIT; in hygon_get_topology() 130 unsigned int apicid = c->apicid; in srat_detect_node() local 169 node = nearby_node(apicid); in srat_detect_node() 303 c->apicid = hard_smp_processor_id(); in init_hygon()
|
D | amd.c | 290 static int nearby_node(int apicid) in nearby_node() argument 294 for (i = apicid - 1; i >= 0; i--) { in nearby_node() 299 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node() 408 unsigned apicid = c->apicid; in srat_detect_node() local 448 node = nearby_node(apicid); in srat_detect_node() 924 c->apicid = hard_smp_processor_id(); in init_amd()
|
/linux-6.1.9/arch/x86/kernel/ |
D | smpboot.c | 713 void __inquire_remote_apic(int apicid) in __inquire_remote_apic() argument 720 pr_info("Inquiring remote APIC 0x%x...\n", apicid); in __inquire_remote_apic() 723 pr_info("... APIC 0x%x %s: ", apicid, names[i]); in __inquire_remote_apic() 732 apic_icr_write(APIC_DM_REMRD | regs[i], apicid); in __inquire_remote_apic() 796 wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip) in wakeup_secondary_cpu_via_nmi() argument 805 apic_icr_write(APIC_DM_NMI | dm, apicid); in wakeup_secondary_cpu_via_nmi() 945 static void announce_cpu(int cpu, int apicid) in announce_cpu() argument 978 node, cpu, apicid); in announce_cpu() 1005 wakeup_cpu_via_init_nmi(int cpu, unsigned long start_ip, int apicid, in wakeup_cpu_via_init_nmi() argument 1017 boot_error = wakeup_secondary_cpu_via_init(apicid, start_ip); in wakeup_cpu_via_init_nmi() [all …]
|
D | mpparse.c | 51 int apicid; in MP_processor_info() local 59 apicid = m->apicid; in MP_processor_info() 63 boot_cpu_physical_apicid = m->apicid; in MP_processor_info() 66 pr_info("Processor #%d%s\n", m->apicid, bootup_cpu); in MP_processor_info() 67 generic_processor_info(apicid, m->apicver); in MP_processor_info() 116 mp_register_ioapic(m->apicid, m->apicaddr, gsi_top, &cfg); in MP_ioapic_info() 360 ioapic.apicid = 2; in construct_ioapic_table() 400 processor.apicid = i; in construct_default_ISA_mptable()
|
/linux-6.1.9/include/trace/events/ |
D | mce.h | 31 __field( u32, apicid ) 51 __entry->apicid = m->apicid; 69 __entry->apicid)
|
/linux-6.1.9/arch/x86/platform/uv/ |
D | uv_time.c | 73 unsigned long apicid, val; in uv_rtc_send_IPI() local 76 apicid = cpu_physical_id(cpu); in uv_rtc_send_IPI() 77 pnode = uv_apicid_to_pnode(apicid); in uv_rtc_send_IPI() 79 (apicid << UVH_IPI_INT_APIC_ID_SHFT) | in uv_rtc_send_IPI() 96 unsigned long apicid = cpu_physical_id(cpu); in uv_setup_intr() local 107 ((u64)apicid << UVH_RTC1_INT_CONFIG_APIC_ID_SHFT); in uv_setup_intr()
|
/linux-6.1.9/arch/x86/xen/ |
D | apic.c | 113 static int xen_id_always_valid(u32 apicid) in xen_id_always_valid() argument 132 static void xen_silent_inquire(int apicid) in xen_silent_inquire() argument 139 return cpu_data(cpu).apicid; in xen_cpu_present_to_apicid()
|
/linux-6.1.9/arch/x86/kvm/ |
D | trace.h | 537 TP_PROTO(__u32 apicid, __u16 dm, __u16 tm, __u8 vec), 538 TP_ARGS(apicid, dm, tm, vec), 541 __field( __u32, apicid ) 548 __entry->apicid = apicid; 555 __entry->apicid, __entry->vec, 565 __field( __u32, apicid ) 570 __entry->apicid = apic->vcpu->vcpu_id; 574 TP_printk("apicid %x vector %d", __entry->apicid, __entry->vector) 582 __field( __u32, apicid ) 587 __entry->apicid = apic->vcpu->vcpu_id; [all …]
|
/linux-6.1.9/drivers/xen/ |
D | mcelog.c | 238 m.apicid = mc_global->mc_apicid; in convert_log() 241 if (g_physinfo[i].mc_apicid == m.apicid) in convert_log() 244 pr_warn("Failed to match cpu with apicid %d\n", m.apicid); in convert_log()
|
/linux-6.1.9/drivers/misc/sgi-gru/ |
D | grukservices.h | 62 void *p, unsigned int bytes, int nasid, int vector, int apicid);
|
/linux-6.1.9/arch/x86/include/uapi/asm/ |
D | mce.h | 32 __u32 apicid; /* CPU initial APIC ID */ member
|