/Linux-v5.10/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 | apic.c | 1779 int apicid = native_apic_msr_read(APIC_ID); in setup_nox2apic() local 1781 if (apicid >= 255) { in setup_nox2apic() 1783 apicid); in setup_nox2apic() 2319 bool apic_id_is_primary_thread(unsigned int apicid) in apic_id_is_primary_thread() argument 2327 return !(apicid & mask); in apic_id_is_primary_thread() 2335 static int allocate_logical_cpuid(int apicid) in allocate_logical_cpuid() argument 2344 if (cpuid_to_apicid[i] == apicid) in allocate_logical_cpuid() 2352 nr_cpu_ids, nr_logical_cpuids, apicid); in allocate_logical_cpuid() 2356 cpuid_to_apicid[nr_logical_cpuids] = apicid; in allocate_logical_cpuid() 2360 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 | x2apic_phys.c | 99 int x2apic_apic_id_valid(u32 apicid) in x2apic_apic_id_valid() argument 109 void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest) in __x2apic_send_IPI_dest() argument 112 native_x2apic_icr_write(cfg, apicid); in __x2apic_send_IPI_dest()
|
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 | 101 u32 cluster, apicid = apic_read(APIC_LDR); in init_x2apic_ldr() local 104 this_cpu_write(x86_cpu_to_logical_apicid, apicid); in init_x2apic_ldr() 109 cluster = apicid >> 16; in init_x2apic_ldr()
|
D | x2apic_uv_x.c | 714 unsigned long apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_send_IPI_one() local 715 int pnode = uv_apicid_to_pnode(apicid); in uv_send_IPI_one() 724 (apicid << UVH_IPI_INT_APIC_ID_SHFT) | in uv_send_IPI_one() 766 static int uv_apic_id_valid(u32 apicid) in uv_apic_id_valid() argument 1538 int apicid, sockid; in build_socket_tables() local 1543 apicid = per_cpu(x86_cpu_to_apicid, cpu); in build_socket_tables() 1544 sockid = apicid >> uv_cpuid.socketid_shift; in build_socket_tables() 1547 sockid, apicid, nid); in build_socket_tables() 1741 int apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_system_init_hub() local 1747 pnode = uv_apicid_to_pnode(apicid); in uv_system_init_hub()
|
/Linux-v5.10/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() 323 int (*apic_id_valid)(u32 apicid); 326 bool (*check_apicid_used)(physid_mask_t *map, int apicid); 339 int (*wakeup_secondary_cpu)(int apicid, unsigned long start_eip); 341 void (*inquire_remote_apic)(int apicid); 390 extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip); 500 extern int default_apic_id_valid(u32 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 | 166 #define APIC_CLUSTER(apicid) ((apicid) & XAPIC_DEST_CLUSTER_MASK) argument 167 #define APIC_CLUSTERID(apicid) (APIC_CLUSTER(apicid) >> XAPIC_DEST_CPUS_SHIFT) argument 168 #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 | 135 int topology_update_package_map(unsigned int apicid, unsigned int cpu); 144 topology_update_package_map(unsigned int apicid, unsigned int cpu) { return 0; } in topology_update_package_map() argument
|
/Linux-v5.10/arch/x86/kernel/cpu/ |
D | hygon.c | 36 static int nearby_node(int apicid) in nearby_node() argument 40 for (i = apicid - 1; i >= 0; i--) { in nearby_node() 45 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node() 94 c->phys_proc_id = c->apicid >> APICID_SOCKET_ID_BIT; in hygon_get_topology() 134 unsigned int apicid = c->apicid; in srat_detect_node() local 173 node = nearby_node(apicid); in srat_detect_node() 320 c->apicid = hard_smp_processor_id(); in init_hygon()
|
D | cacheinfo.c | 666 per_cpu(cpu_llc_id, cpu) = c->apicid >> 3; in cacheinfo_amd_init_llc_id() 682 per_cpu(cpu_llc_id, cpu) = c->apicid >> bits; in cacheinfo_amd_init_llc_id() 700 per_cpu(cpu_llc_id, cpu) = c->apicid >> 3; in cacheinfo_hygon_init_llc_id() 764 l2_id = c->apicid & ~((1 << index_msb) - 1); in init_intel_cacheinfo() 770 l3_id = c->apicid & ~((1 << index_msb) - 1); in init_intel_cacheinfo() 902 unsigned int apicid, nshared, first, last; in __cache_amd_cpumap_setup() local 905 apicid = cpu_data(cpu).apicid; in __cache_amd_cpumap_setup() 906 first = apicid - (apicid % nshared); in __cache_amd_cpumap_setup() 914 apicid = cpu_data(i).apicid; in __cache_amd_cpumap_setup() 915 if ((apicid < first) || (apicid > last)) in __cache_amd_cpumap_setup() [all …]
|
D | amd.c | 291 static int nearby_node(int apicid) in nearby_node() argument 295 for (i = apicid - 1; i >= 0; i--) { in nearby_node() 300 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node() 445 unsigned apicid = c->apicid; in srat_detect_node() local 485 node = nearby_node(apicid); in srat_detect_node() 948 c->apicid = hard_smp_processor_id(); in init_amd()
|
/Linux-v5.10/arch/x86/kernel/ |
D | smpboot.c | 665 void __inquire_remote_apic(int apicid) in __inquire_remote_apic() argument 672 pr_info("Inquiring remote APIC 0x%x...\n", apicid); in __inquire_remote_apic() 675 pr_info("... APIC 0x%x %s: ", apicid, names[i]); in __inquire_remote_apic() 684 apic_icr_write(APIC_DM_REMRD | regs[i], apicid); in __inquire_remote_apic() 748 wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip) in wakeup_secondary_cpu_via_nmi() argument 756 apic_icr_write(APIC_DM_NMI | apic->dest_logical, apicid); in wakeup_secondary_cpu_via_nmi() 896 static void announce_cpu(int cpu, int apicid) in announce_cpu() argument 929 node, cpu, apicid); in announce_cpu() 956 wakeup_cpu_via_init_nmi(int cpu, unsigned long start_ip, int apicid, in wakeup_cpu_via_init_nmi() argument 968 boot_error = wakeup_secondary_cpu_via_init(apicid, start_ip); in wakeup_cpu_via_init_nmi() [all …]
|
D | mpparse.c | 50 int apicid; in MP_processor_info() local 58 apicid = m->apicid; in MP_processor_info() 62 boot_cpu_physical_apicid = m->apicid; in MP_processor_info() 65 pr_info("Processor #%d%s\n", m->apicid, bootup_cpu); in MP_processor_info() 66 generic_processor_info(apicid, m->apicver); in MP_processor_info() 115 mp_register_ioapic(m->apicid, m->apicaddr, gsi_top, &cfg); in MP_ioapic_info() 359 ioapic.apicid = 2; in construct_ioapic_table() 399 processor.apicid = i; in construct_default_ISA_mptable()
|
/Linux-v5.10/include/trace/events/ |
D | mce.h | 31 __field( u32, apicid ) 51 __entry->apicid = m->apicid; 69 __entry->apicid)
|
/Linux-v5.10/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-v5.10/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-v5.10/arch/x86/kvm/ |
D | trace.h | 467 TP_PROTO(__u32 apicid, __u16 dm, __u16 tm, __u8 vec), 468 TP_ARGS(apicid, dm, tm, vec), 471 __field( __u32, apicid ) 478 __entry->apicid = apicid; 485 __entry->apicid, __entry->vec, 495 __field( __u32, apicid ) 500 __entry->apicid = apic->vcpu->vcpu_id; 504 TP_printk("apicid %x vector %d", __entry->apicid, __entry->vector) 512 __field( __u32, apicid ) 517 __entry->apicid = apic->vcpu->vcpu_id; [all …]
|
/Linux-v5.10/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-v5.10/arch/x86/include/uapi/asm/ |
D | mce.h | 32 __u32 apicid; /* CPU initial APIC ID */ member
|
/Linux-v5.10/drivers/misc/sgi-gru/ |
D | grukservices.h | 62 void *p, unsigned int bytes, int nasid, int vector, int apicid);
|