Home
last modified time | relevance | path

Searched refs:apicid (Results 1 – 25 of 37) sorted by relevance

12

/arch/x86/kernel/apic/
Dapic_common.c19 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()
Dapic_numachip.c26 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()
Dx2apic_phys.c13 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()
Dipi.c318 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()
Dapic.c1785 int apicid = native_apic_msr_read(APIC_ID); in setup_nox2apic() local
1787 if (apicid >= 255) { in setup_nox2apic()
1789 apicid); in setup_nox2apic()
2351 bool apic_id_is_primary_thread(unsigned int apicid) in apic_id_is_primary_thread() argument
2359 return !(apicid & mask); in apic_id_is_primary_thread()
2367 static int allocate_logical_cpuid(int apicid) in allocate_logical_cpuid() argument
2376 if (cpuid_to_apicid[i] == apicid) in allocate_logical_cpuid()
2384 nr_cpu_ids, nr_logical_cpuids, apicid); in allocate_logical_cpuid()
2388 cpuid_to_apicid[nr_logical_cpuids] = apicid; in allocate_logical_cpuid()
2392 int generic_processor_info(int apicid, int version) in generic_processor_info() argument
[all …]
Dlocal.h20 int x2apic_apic_id_valid(u32 apicid);
22 void __x2apic_send_IPI_dest(unsigned int apicid, int vector, unsigned int dest);
Dx2apic_cluster.c103 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()
Dapic_noop.c27 static int noop_wakeup_secondary_cpu(int apicid, unsigned long start_eip) in noop_wakeup_secondary_cpu() argument
Dx2apic_uv_x.c728 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
1550 int apicid, sockid; in build_socket_tables() local
1555 apicid = per_cpu(x86_cpu_to_apicid, cpu); in build_socket_tables()
1556 sockid = apicid >> uv_cpuid.socketid_shift; in build_socket_tables()
1559 sockid, apicid, nid); in build_socket_tables()
1765 int apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_system_init_hub() local
1771 pnode = uv_apicid_to_pnode(apicid); in uv_system_init_hub()
Dbigsmp_32.c26 static bool bigsmp_check_apicid_used(physid_mask_t *map, int apicid) in bigsmp_check_apicid_used() argument
/arch/x86/include/asm/
Dapic.h68 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);
314 int (*apic_id_valid)(u32 apicid);
317 bool (*check_apicid_used)(physid_mask_t *map, int apicid);
330 int (*wakeup_secondary_cpu)(int apicid, unsigned long start_eip);
332 void (*inquire_remote_apic)(int apicid);
381 extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip);
[all …]
Dnuma.h31 static inline void set_apicid_to_node(int apicid, s16 node) in set_apicid_to_node() argument
33 __apicid_to_node[apicid] = node; in set_apicid_to_node()
39 static inline void set_apicid_to_node(int apicid, s16 node) in set_apicid_to_node() argument
Dapicdef.h166 #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
Dmpspec_def.h70 unsigned char apicid; /* Local APIC number */ member
108 unsigned char apicid; member
Dtopology.h135 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/
Dhygon.c33 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()
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()
307 c->apicid = hard_smp_processor_id(); in init_hygon()
Dcacheinfo.c666 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 …]
Damd.c366 static int nearby_node(int apicid) in nearby_node() argument
370 for (i = apicid - 1; i >= 0; i--) { in nearby_node()
375 for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) { in nearby_node()
513 unsigned apicid = c->apicid; in srat_detect_node() local
553 node = nearby_node(apicid); in srat_detect_node()
1074 c->apicid = hard_smp_processor_id(); in init_amd()
/arch/x86/kernel/
Dsmpboot.c685 void __inquire_remote_apic(int apicid) in __inquire_remote_apic() argument
692 pr_info("Inquiring remote APIC 0x%x...\n", apicid); in __inquire_remote_apic()
695 pr_info("... APIC 0x%x %s: ", apicid, names[i]); in __inquire_remote_apic()
704 apic_icr_write(APIC_DM_REMRD | regs[i], apicid); in __inquire_remote_apic()
768 wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip) in wakeup_secondary_cpu_via_nmi() argument
777 apic_icr_write(APIC_DM_NMI | dm, apicid); in wakeup_secondary_cpu_via_nmi()
917 static void announce_cpu(int cpu, int apicid) in announce_cpu() argument
950 node, cpu, apicid); in announce_cpu()
977 wakeup_cpu_via_init_nmi(int cpu, unsigned long start_ip, int apicid, in wakeup_cpu_via_init_nmi() argument
989 boot_error = wakeup_secondary_cpu_via_init(apicid, start_ip); in wakeup_cpu_via_init_nmi()
[all …]
Dmpparse.c51 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()
/arch/x86/platform/uv/
Duv_time.c73 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()
/arch/x86/xen/
Dapic.c113 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()
/arch/x86/include/uapi/asm/
Dmce.h32 __u32 apicid; /* CPU initial APIC ID */ member
/arch/x86/kvm/
Dtrace.h522 TP_PROTO(__u32 apicid, __u16 dm, __u16 tm, __u8 vec),
523 TP_ARGS(apicid, dm, tm, vec),
526 __field( __u32, apicid )
533 __entry->apicid = apicid;
540 __entry->apicid, __entry->vec,
550 __field( __u32, apicid )
555 __entry->apicid = apic->vcpu->vcpu_id;
559 TP_printk("apicid %x vector %d", __entry->apicid, __entry->vector)
567 __field( __u32, apicid )
572 __entry->apicid = apic->vcpu->vcpu_id;
[all …]
/arch/ia64/include/asm/uv/
Duv_hub.h308 static inline void uv_hub_send_ipi(int pnode, int apicid, int vector) in uv_hub_send_ipi() argument

12