/arch/x86/kernel/apic/ |
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_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 | 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() 110 int x2apic_apic_id_valid(u32 apicid) in x2apic_apic_id_valid() argument 112 if (x2apic_max_apicid && apicid > x2apic_max_apicid) in x2apic_apic_id_valid() 123 void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest) in __x2apic_send_IPI_dest() argument 126 native_x2apic_icr_write(cfg, apicid); in __x2apic_send_IPI_dest()
|
D | local.h | 19 int x2apic_apic_id_valid(u32 apicid); 21 void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest);
|
D | ipi.c | 317 int apicid, cpuid; in safe_smp_processor_id() local 322 apicid = hard_smp_processor_id(); in safe_smp_processor_id() 323 if (apicid == BAD_APICID) in safe_smp_processor_id() 326 cpuid = convert_apicid_to_cpu(apicid); in safe_smp_processor_id()
|
D | apic.c | 1827 int apicid = native_apic_msr_read(APIC_ID); in setup_nox2apic() local 1829 if (apicid >= 255) { in setup_nox2apic() 1831 apicid); in setup_nox2apic() 2366 bool apic_id_is_primary_thread(unsigned int apicid) in apic_id_is_primary_thread() argument 2374 return !(apicid & mask); in apic_id_is_primary_thread() 2382 static int allocate_logical_cpuid(int apicid) in allocate_logical_cpuid() argument 2391 if (cpuid_to_apicid[i] == apicid) in allocate_logical_cpuid() 2399 nr_cpu_ids, nr_logical_cpuids, apicid); in allocate_logical_cpuid() 2403 cpuid_to_apicid[nr_logical_cpuids] = apicid; in allocate_logical_cpuid() 2407 int generic_processor_info(int apicid, int version) in generic_processor_info() argument [all …]
|
D | x2apic_cluster.c | 103 u32 cluster, apicid = apic_read(APIC_LDR); in init_x2apic_ldr() local 106 this_cpu_write(x86_cpu_to_logical_apicid, apicid); in init_x2apic_ldr() 111 cluster = apicid >> 16; in init_x2apic_ldr()
|
D | x2apic_uv_x.c | 544 unsigned long apicid; in uv_send_IPI_one() local 547 apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_send_IPI_one() 548 pnode = uv_apicid_to_pnode(apicid); in uv_send_IPI_one() 549 uv_hub_send_ipi(pnode, apicid, vector); in uv_send_IPI_one() 587 static int uv_apic_id_valid(u32 apicid) in uv_apic_id_valid() argument 1377 int apicid, sockid; in build_socket_tables() local 1382 apicid = per_cpu(x86_cpu_to_apicid, cpu); in build_socket_tables() 1383 sockid = apicid >> uv_cpuid.socketid_shift; in build_socket_tables() 1386 sockid, apicid, nid); in build_socket_tables() 1512 int apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_system_init_hub() local [all …]
|
D | apic_noop.c | 26 static int noop_wakeup_secondary_cpu(int apicid, unsigned long start_eip) in noop_wakeup_secondary_cpu() argument
|
D | bigsmp_32.c | 25 static bool bigsmp_check_apicid_used(physid_mask_t *map, int apicid) in bigsmp_check_apicid_used() argument
|
/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() 253 extern void __init x2apic_set_max_apicid(u32 apicid); 315 int (*apic_id_valid)(u32 apicid); 318 bool (*check_apicid_used)(physid_mask_t *map, int apicid); 331 int (*wakeup_secondary_cpu)(int apicid, unsigned long start_eip); 333 void (*inquire_remote_apic)(int apicid); 382 extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip); [all …]
|
D | numa.h | 30 static inline void set_apicid_to_node(int apicid, s16 node) in set_apicid_to_node() argument 32 __apicid_to_node[apicid] = node; in set_apicid_to_node() 38 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
|
/arch/x86/kernel/cpu/ |
D | hygon.c | 35 static int nearby_node(int apicid) in nearby_node() argument 39 for (i = apicid - 1; i >= 0; i--) { in nearby_node() 44 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node() 96 c->phys_proc_id = c->apicid >> APICID_SOCKET_ID_BIT; in hygon_get_topology() 136 unsigned int apicid = c->apicid; in srat_detect_node() local 175 node = nearby_node(apicid); in srat_detect_node() 322 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 | 361 static int nearby_node(int apicid) in nearby_node() argument 365 for (i = apicid - 1; i >= 0; i--) { in nearby_node() 370 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node() 492 unsigned apicid = c->apicid; in srat_detect_node() local 532 node = nearby_node(apicid); in srat_detect_node() 1051 c->apicid = hard_smp_processor_id(); in init_amd()
|
/arch/x86/kernel/ |
D | smpboot.c | 684 void __inquire_remote_apic(int apicid) in __inquire_remote_apic() argument 691 pr_info("Inquiring remote APIC 0x%x...\n", apicid); in __inquire_remote_apic() 694 pr_info("... APIC 0x%x %s: ", apicid, names[i]); in __inquire_remote_apic() 703 apic_icr_write(APIC_DM_REMRD | regs[i], apicid); in __inquire_remote_apic() 767 wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip) in wakeup_secondary_cpu_via_nmi() argument 775 apic_icr_write(APIC_DM_NMI | apic->dest_logical, apicid); in wakeup_secondary_cpu_via_nmi() 915 static void announce_cpu(int cpu, int apicid) in announce_cpu() argument 948 node, cpu, apicid); in announce_cpu() 975 wakeup_cpu_via_init_nmi(int cpu, unsigned long start_ip, int apicid, in wakeup_cpu_via_init_nmi() argument 987 boot_error = wakeup_secondary_cpu_via_init(apicid, start_ip); in wakeup_cpu_via_init_nmi() [all …]
|
D | mpparse.c | 50 return m->apicid; in default_mpc_apic_id() 55 int apicid; in MP_processor_info() local 63 apicid = x86_init.mpparse.mpc_apic_id(m); in MP_processor_info() 67 boot_cpu_physical_apicid = m->apicid; in MP_processor_info() 70 pr_info("Processor #%d%s\n", m->apicid, bootup_cpu); in MP_processor_info() 71 generic_processor_info(apicid, m->apicver); in MP_processor_info() 123 mp_register_ioapic(m->apicid, m->apicaddr, gsi_top, &cfg); in MP_ioapic_info() 377 ioapic.apicid = 2; in construct_ioapic_table() 417 processor.apicid = i; in construct_default_ISA_mptable()
|
/arch/x86/include/asm/uv/ |
D | uv_hub.h | 609 static inline int uv_apicid_to_pnode(int apicid) in uv_apicid_to_pnode() argument 611 int pnode = apicid >> uv_hub_info->apic_pnode_shift; in uv_apicid_to_pnode() 618 static inline int uv_apicid_to_socket(int apicid) in uv_apicid_to_socket() argument 621 return (apicid >> (uv_hub_info->apic_pnode_shift - 1)) & 1; in uv_apicid_to_socket() 865 static inline unsigned long uv_scir_offset(int apicid) in uv_scir_offset() argument 867 return SCIR_LOCAL_MMR_BASE | (apicid & 0x3f); in uv_scir_offset() 880 static unsigned long uv_hub_ipi_value(int apicid, int vector, int mode) in uv_hub_ipi_value() argument 882 apicid |= uv_apicid_hibits; in uv_hub_ipi_value() 884 ((apicid) << UVH_IPI_INT_APIC_ID_SHFT) | in uv_hub_ipi_value() 889 static inline void uv_hub_send_ipi(int pnode, int apicid, int vector) in uv_hub_send_ipi() argument [all …]
|
/arch/x86/platform/uv/ |
D | uv_time.c | 72 unsigned long apicid, val; in uv_rtc_send_IPI() local 75 apicid = cpu_physical_id(cpu); in uv_rtc_send_IPI() 76 pnode = uv_apicid_to_pnode(apicid); in uv_rtc_send_IPI() 77 apicid |= uv_apicid_hibits; in uv_rtc_send_IPI() 79 (apicid << UVH_IPI_INT_APIC_ID_SHFT) | in uv_rtc_send_IPI() 101 unsigned long apicid = cpu_physical_id(cpu) | uv_apicid_hibits; in uv_setup_intr() local 116 ((u64)apicid << UVH_RTC1_INT_CONFIG_APIC_ID_SHFT); in uv_setup_intr()
|
/arch/x86/xen/ |
D | apic.c | 115 static int xen_id_always_valid(u32 apicid) in xen_id_always_valid() argument 142 static void xen_silent_inquire(int apicid) in xen_silent_inquire() argument 149 return cpu_data(cpu).apicid; in xen_cpu_present_to_apicid()
|
/arch/x86/include/uapi/asm/ |
D | mce.h | 32 __u32 apicid; /* CPU initial APIC ID */ member
|
/arch/x86/kvm/ |
D | trace.h | 444 TP_PROTO(__u32 apicid, __u16 dm, __u16 tm, __u8 vec), 445 TP_ARGS(apicid, dm, tm, vec), 448 __field( __u32, apicid ) 455 __entry->apicid = apicid; 462 __entry->apicid, __entry->vec, 472 __field( __u32, apicid ) 477 __entry->apicid = apic->vcpu->vcpu_id; 481 TP_printk("apicid %x vector %d", __entry->apicid, __entry->vector) 489 __field( __u32, apicid ) 494 __entry->apicid = apic->vcpu->vcpu_id; [all …]
|