Home
last modified time | relevance | path

Searched refs:boot_cpu_data (Results 1 – 25 of 200) sorted by relevance

12345678

/Linux-v6.1/arch/sh/kernel/cpu/sh4/
Dprobe.c35 boot_cpu_data.icache.way_incr = (1 << 13); in cpu_probe()
36 boot_cpu_data.icache.entry_shift = 5; in cpu_probe()
37 boot_cpu_data.icache.sets = 256; in cpu_probe()
38 boot_cpu_data.icache.ways = 1; in cpu_probe()
39 boot_cpu_data.icache.linesz = L1_CACHE_BYTES; in cpu_probe()
44 boot_cpu_data.dcache.way_incr = (1 << 14); in cpu_probe()
45 boot_cpu_data.dcache.entry_shift = 5; in cpu_probe()
46 boot_cpu_data.dcache.sets = 512; in cpu_probe()
47 boot_cpu_data.dcache.ways = 1; in cpu_probe()
48 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe()
[all …]
/Linux-v6.1/arch/sh/kernel/cpu/sh2a/
Dprobe.c15 boot_cpu_data.family = CPU_FAMILY_SH2A; in cpu_probe()
18 boot_cpu_data.flags |= CPU_HAS_OP32; in cpu_probe()
21 boot_cpu_data.type = CPU_SH7201; in cpu_probe()
22 boot_cpu_data.flags |= CPU_HAS_FPU; in cpu_probe()
24 boot_cpu_data.type = CPU_SH7203; in cpu_probe()
25 boot_cpu_data.flags |= CPU_HAS_FPU; in cpu_probe()
27 boot_cpu_data.type = CPU_SH7263; in cpu_probe()
28 boot_cpu_data.flags |= CPU_HAS_FPU; in cpu_probe()
30 boot_cpu_data.type = CPU_SH7264; in cpu_probe()
31 boot_cpu_data.flags |= CPU_HAS_FPU; in cpu_probe()
[all …]
/Linux-v6.1/arch/parisc/kernel/
Dprocessor.c33 struct system_cpuinfo_parisc boot_cpu_data __ro_after_init;
34 EXPORT_SYMBOL(boot_cpu_data);
93 if (boot_cpu_data.cpu_count > 0) { in processor_probe()
102 cpuid = boot_cpu_data.cpu_count; in processor_probe()
151 boot_cpu_data.cpu_count--; in processor_probe()
161 boot_cpu_data.cpu_count++; in processor_probe()
234 memset(&boot_cpu_data, 0, sizeof(boot_cpu_data)); in collect_boot_cpu_data()
239 boot_cpu_data.cpu_hz = 100 * PAGE0->mem_10msec; /* Hz of this PARISC */ in collect_boot_cpu_data()
242 #define p ((unsigned long *)&boot_cpu_data.pdc.model) in collect_boot_cpu_data()
243 if (pdc_model_info(&boot_cpu_data.pdc.model) == PDC_OK) { in collect_boot_cpu_data()
[all …]
Dperf.c494 if (boot_cpu_data.cpu_type == pcxu || in perf_init()
495 boot_cpu_data.cpu_type == pcxu_) { in perf_init()
497 } else if (boot_cpu_data.cpu_type == pcxw || in perf_init()
498 boot_cpu_data.cpu_type == pcxw_ || in perf_init()
499 boot_cpu_data.cpu_type == pcxw2 || in perf_init()
500 boot_cpu_data.cpu_type == mako || in perf_init()
501 boot_cpu_data.cpu_type == mako2) { in perf_init()
503 if (boot_cpu_data.cpu_type == pcxw2 || in perf_init()
504 boot_cpu_data.cpu_type == mako || in perf_init()
505 boot_cpu_data.cpu_type == mako2) in perf_init()
/Linux-v6.1/arch/sh/kernel/cpu/sh3/
Dprobe.c50 boot_cpu_data.dcache.ways = 4; in cpu_probe()
51 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe()
52 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe()
53 boot_cpu_data.dcache.flags = 0; in cpu_probe()
60 boot_cpu_data.dcache.way_incr = (1 << 11); in cpu_probe()
61 boot_cpu_data.dcache.entry_mask = 0x7f0; in cpu_probe()
62 boot_cpu_data.dcache.sets = 128; in cpu_probe()
63 boot_cpu_data.type = CPU_SH7708; in cpu_probe()
65 boot_cpu_data.flags |= CPU_HAS_MMU_PAGE_ASSOC; in cpu_probe()
67 boot_cpu_data.dcache.way_incr = (1 << 12); in cpu_probe()
[all …]
/Linux-v6.1/arch/sh/kernel/cpu/sh2/
Dprobe.c33 boot_cpu_data.type = CPU_SH7619; in cpu_probe()
34 boot_cpu_data.dcache.ways = 4; in cpu_probe()
35 boot_cpu_data.dcache.way_incr = (1<<12); in cpu_probe()
36 boot_cpu_data.dcache.sets = 256; in cpu_probe()
37 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe()
38 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe()
39 boot_cpu_data.dcache.flags = 0; in cpu_probe()
51 boot_cpu_data.type = CPU_J2; in cpu_probe()
56 boot_cpu_data.dcache.ways = 1; in cpu_probe()
57 boot_cpu_data.dcache.sets = 256; in cpu_probe()
[all …]
/Linux-v6.1/arch/sh/mm/
Dcache.c64 if (boot_cpu_data.dcache.n_aliases && page_mapcount(page) && in copy_to_user_page()
71 if (boot_cpu_data.dcache.n_aliases) in copy_to_user_page()
83 if (boot_cpu_data.dcache.n_aliases && page_mapcount(page) && in copy_from_user_page()
90 if (boot_cpu_data.dcache.n_aliases) in copy_from_user_page()
102 if (boot_cpu_data.dcache.n_aliases && page_mapcount(from) && in copy_user_highpage()
142 if (!boot_cpu_data.dcache.n_aliases) in __update_cache()
158 if (boot_cpu_data.dcache.n_aliases && page_mapcount(page) && in __flush_anon_page()
179 if (boot_cpu_data.dcache.n_aliases == 0) in flush_cache_mm()
187 if (boot_cpu_data.dcache.n_aliases == 0) in flush_cache_dup_mm()
260 boot_cpu_data.icache.ways, in emit_cache_params()
[all …]
Dcache-shx3.c27 if (boot_cpu_data.dcache.n_aliases || boot_cpu_data.icache.n_aliases) { in shx3_cache_init()
30 boot_cpu_data.icache.n_aliases = 0; in shx3_cache_init()
31 boot_cpu_data.dcache.n_aliases = 0; in shx3_cache_init()
/Linux-v6.1/arch/x86/kernel/acpi/
Dcppc.c16 switch (boot_cpu_data.x86_vendor) { in cpc_supported_by_cpu()
19 if (boot_cpu_data.x86 == 0x19 && ((boot_cpu_data.x86_model <= 0x0f) || in cpc_supported_by_cpu()
20 (boot_cpu_data.x86_model >= 0x20 && boot_cpu_data.x86_model <= 0x2f))) in cpc_supported_by_cpu()
22 else if (boot_cpu_data.x86 == 0x17 && in cpc_supported_by_cpu()
23 boot_cpu_data.x86_model >= 0x70 && boot_cpu_data.x86_model <= 0x7f) in cpc_supported_by_cpu()
110 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) in init_freq_invariance_cppc()
/Linux-v6.1/arch/x86/include/asm/
Dgeode.h16 return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) && in is_geode_gx()
17 (boot_cpu_data.x86 == 5) && in is_geode_gx()
18 (boot_cpu_data.x86_model == 5)); in is_geode_gx()
23 return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) && in is_geode_lx()
24 (boot_cpu_data.x86 == 5) && in is_geode_lx()
25 (boot_cpu_data.x86_model == 10)); in is_geode_lx()
Dcpufeature.h144 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
152 set_cpu_cap(&boot_cpu_data, bit); \
183 [cap_byte] "i" (&((const char *)boot_cpu_data.x86_capability)[bit >> 3]) in _static_cpu_has()
203 #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit))
204 #define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit))
210 #define CPU_FEATURE_TYPEVAL boot_cpu_data.x86_vendor, boot_cpu_data.x86, \
211 boot_cpu_data.x86_model
Damd_nb.h104 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) in amd_gart_present()
108 if (boot_cpu_data.x86 == 0xf || boot_cpu_data.x86 == 0x10 || in amd_gart_present()
109 (boot_cpu_data.x86 == 0x15 && boot_cpu_data.x86_model < 0x10)) in amd_gart_present()
Dacpi.h77 if (boot_cpu_data.x86 == 0x0F && in acpi_processor_cstate_check()
78 boot_cpu_data.x86_vendor == X86_VENDOR_AMD && in acpi_processor_cstate_check()
79 boot_cpu_data.x86_model <= 0x05 && in acpi_processor_cstate_check()
80 boot_cpu_data.x86_stepping < 0x0A) in acpi_processor_cstate_check()
Dvirtext.h97 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD && in cpu_has_svm()
98 boot_cpu_data.x86_vendor != X86_VENDOR_HYGON) { in cpu_has_svm()
104 if (boot_cpu_data.extended_cpuid_level < SVM_CPUID_FUNC) { in cpu_has_svm()
/Linux-v6.1/arch/um/include/asm/
Dcpufeature.h55 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
62 set_cpu_cap(&boot_cpu_data, bit); \
112 [cap_byte] "m" (((const char *)boot_cpu_data.x86_capability)[bit >> 3]) in _static_cpu_has()
131 #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit))
132 #define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit))
138 #define CPU_FEATURE_TYPEVAL boot_cpu_data.x86_vendor, boot_cpu_data.x86, \
139 boot_cpu_data.x86_model
Dprocessor-generic.h92 extern struct cpuinfo_um boot_cpu_data;
94 #define cpu_data (&boot_cpu_data)
95 #define current_cpu_data boot_cpu_data
96 #define cache_line_size() (boot_cpu_data.cache_alignment)
/Linux-v6.1/arch/x86/kernel/cpu/
Dperfctr-watchdog.c48 switch (boot_cpu_data.x86_vendor) { in nmi_perfctr_msr_to_bit()
55 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_perfctr_msr_to_bit()
58 switch (boot_cpu_data.x86) { in nmi_perfctr_msr_to_bit()
81 switch (boot_cpu_data.x86_vendor) { in nmi_evntsel_msr_to_bit()
88 if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) in nmi_evntsel_msr_to_bit()
91 switch (boot_cpu_data.x86) { in nmi_evntsel_msr_to_bit()
/Linux-v6.1/arch/x86/kernel/
Damd_nb.c219 if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) { in amd_cache_northbridges()
291 if (boot_cpu_data.x86 == 0x10 && in amd_cache_northbridges()
292 boot_cpu_data.x86_model >= 0x8 && in amd_cache_northbridges()
293 (boot_cpu_data.x86_model > 0x9 || in amd_cache_northbridges()
294 boot_cpu_data.x86_stepping >= 0x1)) in amd_cache_northbridges()
297 if (boot_cpu_data.x86 == 0x15) in amd_cache_northbridges()
301 if (boot_cpu_data.x86 == 0x15) in amd_cache_northbridges()
317 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD && in early_is_amd_nb()
318 boot_cpu_data.x86_vendor != X86_VENDOR_HYGON) in early_is_amd_nb()
321 if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) in early_is_amd_nb()
[all …]
/Linux-v6.1/drivers/hwmon/
Dk10temp.c305 if (boot_cpu_data.x86 != 0x10) in has_erratum_319()
331 return boot_cpu_data.x86_model < 4 || in has_erratum_319()
332 (boot_cpu_data.x86_model == 4 && boot_cpu_data.x86_stepping <= 2); in has_erratum_319()
406 if (boot_cpu_data.x86 == 0x15 && in k10temp_probe()
407 ((boot_cpu_data.x86_model & 0xf0) == 0x60 || in k10temp_probe()
408 (boot_cpu_data.x86_model & 0xf0) == 0x70)) { in k10temp_probe()
411 } else if (boot_cpu_data.x86 == 0x17 || boot_cpu_data.x86 == 0x18) { in k10temp_probe()
416 switch (boot_cpu_data.x86_model) { in k10temp_probe()
436 } else if (boot_cpu_data.x86 == 0x19) { in k10temp_probe()
441 switch (boot_cpu_data.x86_model) { in k10temp_probe()
[all …]
/Linux-v6.1/drivers/staging/media/atomisp/include/linux/
Datomisp_platform.h223 #define __IS_SOC(x) (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && \
224 boot_cpu_data.x86 == 6 && \
225 boot_cpu_data.x86_model == (x))
226 #define __IS_SOCS(x,y) (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && \
227 boot_cpu_data.x86 == 6 && \
228 (boot_cpu_data.x86_model == (x) || \
229 boot_cpu_data.x86_model == (y)))
/Linux-v6.1/arch/x86/crypto/
Dtwofish_glue_3way.c107 if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) in is_blacklisted_cpu()
110 if (boot_cpu_data.x86 == 0x06 && in is_blacklisted_cpu()
111 (boot_cpu_data.x86_model == 0x1c || in is_blacklisted_cpu()
112 boot_cpu_data.x86_model == 0x26 || in is_blacklisted_cpu()
113 boot_cpu_data.x86_model == 0x36)) { in is_blacklisted_cpu()
126 if (boot_cpu_data.x86 == 0x0f) { in is_blacklisted_cpu()
/Linux-v6.1/arch/um/kernel/
Dum_arch.c57 struct cpuinfo_um boot_cpu_data = { variable
64 EXPORT_SYMBOL(boot_cpu_data);
82 seq_printf(m, "fpu\t\t: %s\n", cpu_has(&boot_cpu_data, X86_FEATURE_FPU) ? "yes" : "no"); in show_cpuinfo()
85 if (cpu_has(&boot_cpu_data, i) && (x86_cap_flags[i] != NULL)) in show_cpuinfo()
88 seq_printf(m, "cache_alignment\t: %d\n", boot_cpu_data.cache_alignment); in show_cpuinfo()
287 set_cpu_cap(&boot_cpu_data, i); in parse_host_cpu_flags()
300 boot_cpu_data.cache_alignment = res; in parse_cache_line()
302 boot_cpu_data.cache_alignment = L1_CACHE_BYTES; in parse_cache_line()
/Linux-v6.1/arch/x86/kernel/cpu/mtrr/
Dmtrr.c330 (boot_cpu_data.x86_phys_bits - PAGE_SHIFT)) { in mtrr_add_page()
709 if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && in mtrr_bp_init()
710 boot_cpu_data.x86 == 0xF && in mtrr_bp_init()
711 boot_cpu_data.x86_model == 0x3 && in mtrr_bp_init()
712 (boot_cpu_data.x86_stepping == 0x3 || in mtrr_bp_init()
713 boot_cpu_data.x86_stepping == 0x4)) in mtrr_bp_init()
718 } else if (boot_cpu_data.x86_vendor == X86_VENDOR_CENTAUR && in mtrr_bp_init()
719 boot_cpu_data.x86 == 6) { in mtrr_bp_init()
729 switch (boot_cpu_data.x86_vendor) { in mtrr_bp_init()
/Linux-v6.1/arch/x86/xen/
Dpmu.c72 if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) { in xen_pmu_arch_init()
74 switch (boot_cpu_data.x86) { in xen_pmu_arch_init()
94 } else if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) { in xen_pmu_arch_init()
134 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD && in is_amd_pmu_msr()
135 boot_cpu_data.x86_vendor != X86_VENDOR_HYGON) in is_amd_pmu_msr()
151 if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL && in is_intel_pmu_msr()
152 boot_cpu_data.x86_vendor != X86_VENDOR_CENTAUR && in is_intel_pmu_msr()
153 boot_cpu_data.x86_vendor != X86_VENDOR_ZHAOXIN) in is_intel_pmu_msr()
402 if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) in xen_read_pmc()
/Linux-v6.1/arch/x86/events/amd/
Duncore.c199 if (boot_cpu_data.x86 <= 0x18) in l3_thread_slice_mask()
267 return boot_cpu_data.x86 >= 0x17 && boot_cpu_data.x86 < 0x19 ? in amd_f17h_uncore_is_visible()
274 return boot_cpu_data.x86 >= 0x19 ? attr->mode : 0; in amd_f19h_uncore_is_visible()
653 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD && in amd_uncore_init()
654 boot_cpu_data.x86_vendor != X86_VENDOR_HYGON) in amd_uncore_init()
665 if (boot_cpu_data.x86 >= 0x17) { in amd_uncore_init()
682 } else if (boot_cpu_data.x86 >= 0x17) { in amd_uncore_init()
701 boot_cpu_data.x86_vendor == X86_VENDOR_HYGON ? "HYGON" : "", in amd_uncore_init()
708 if (boot_cpu_data.x86 >= 0x19) { in amd_uncore_init()
712 } else if (boot_cpu_data.x86 >= 0x17) { in amd_uncore_init()
[all …]

12345678