/linux-6.12.1/arch/sh/kernel/cpu/sh4/ |
D | probe.c | 35 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-6.12.1/arch/sh/kernel/cpu/sh2a/ |
D | probe.c | 15 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-6.12.1/arch/parisc/kernel/ |
D | processor.c | 34 struct system_cpuinfo_parisc boot_cpu_data __ro_after_init; 35 EXPORT_SYMBOL(boot_cpu_data); 94 if (boot_cpu_data.cpu_count > 0) { in processor_probe() 103 cpuid = boot_cpu_data.cpu_count; in processor_probe() 152 boot_cpu_data.cpu_count--; in processor_probe() 162 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 …]
|
D | perf.c | 493 if (boot_cpu_data.cpu_type == pcxu || in perf_init() 494 boot_cpu_data.cpu_type == pcxu_) { in perf_init() 496 } else if (boot_cpu_data.cpu_type == pcxw || in perf_init() 497 boot_cpu_data.cpu_type == pcxw_ || in perf_init() 498 boot_cpu_data.cpu_type == pcxw2 || in perf_init() 499 boot_cpu_data.cpu_type == mako || in perf_init() 500 boot_cpu_data.cpu_type == mako2) { in perf_init() 502 if (boot_cpu_data.cpu_type == pcxw2 || in perf_init() 503 boot_cpu_data.cpu_type == mako || in perf_init() 504 boot_cpu_data.cpu_type == mako2) in perf_init()
|
D | setup.c | 85 switch (boot_cpu_data.cpu_type) { in dma_ops_init() 261 boot_cpu_data.cpu_name, in parisc_init() 262 boot_cpu_data.cpu_hz / 1000000, in parisc_init() 263 boot_cpu_data.cpu_hz % 1000000 ); in parisc_init()
|
/linux-6.12.1/arch/sh/kernel/cpu/sh3/ |
D | probe.c | 50 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-6.12.1/arch/sh/kernel/cpu/sh2/ |
D | probe.c | 33 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-6.12.1/arch/sh/mm/ |
D | cache.c | 66 if (boot_cpu_data.dcache.n_aliases && folio_mapped(folio) && in copy_to_user_page() 73 if (boot_cpu_data.dcache.n_aliases) in copy_to_user_page() 87 if (boot_cpu_data.dcache.n_aliases && folio_mapped(folio) && in copy_from_user_page() 94 if (boot_cpu_data.dcache.n_aliases) in copy_from_user_page() 107 if (boot_cpu_data.dcache.n_aliases && folio_mapped(src) && in copy_user_highpage() 146 if (!boot_cpu_data.dcache.n_aliases) in __update_cache() 164 if (boot_cpu_data.dcache.n_aliases && folio_mapped(folio) && in __flush_anon_page() 186 if (boot_cpu_data.dcache.n_aliases == 0) in flush_cache_mm() 194 if (boot_cpu_data.dcache.n_aliases == 0) in flush_cache_dup_mm() 268 boot_cpu_data.icache.ways, in emit_cache_params() [all …]
|
D | cache-shx3.c | 28 if (boot_cpu_data.dcache.n_aliases || boot_cpu_data.icache.n_aliases) { in shx3_cache_init() 31 boot_cpu_data.icache.n_aliases = 0; in shx3_cache_init() 32 boot_cpu_data.dcache.n_aliases = 0; in shx3_cache_init()
|
/linux-6.12.1/arch/x86/include/asm/ |
D | geode.h | 16 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()
|
D | cpufeature.h | 145 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) 157 set_cpu_cap(&boot_cpu_data, bit); \ 187 [cap_byte] "i" (&((const char *)boot_cpu_data.x86_capability)[bit >> 3]) in _static_cpu_has() 207 #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit)) 208 #define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit)) 214 #define CPU_FEATURE_TYPEVAL boot_cpu_data.x86_vendor, boot_cpu_data.x86, \ 215 boot_cpu_data.x86_model
|
D | amd_nb.h | 104 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()
|
D | acpi.h | 99 if (boot_cpu_data.x86 == 0x0F && in acpi_processor_cstate_check() 100 boot_cpu_data.x86_vendor == X86_VENDOR_AMD && in acpi_processor_cstate_check() 101 boot_cpu_data.x86_model <= 0x05 && in acpi_processor_cstate_check() 102 boot_cpu_data.x86_stepping < 0x0A) in acpi_processor_cstate_check()
|
/linux-6.12.1/arch/um/include/asm/ |
D | cpufeature.h | 54 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) 61 set_cpu_cap(&boot_cpu_data, bit); \ 111 [cap_byte] "m" (((const char *)boot_cpu_data.x86_capability)[bit >> 3]) in _static_cpu_has() 130 #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit)) 131 #define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit)) 137 #define CPU_FEATURE_TYPEVAL boot_cpu_data.x86_vendor, boot_cpu_data.x86, \ 138 boot_cpu_data.x86_model
|
D | processor-generic.h | 81 extern struct cpuinfo_um boot_cpu_data; 83 #define cpu_data(cpu) boot_cpu_data 84 #define current_cpu_data boot_cpu_data 85 #define cache_line_size() (boot_cpu_data.cache_alignment)
|
/linux-6.12.1/arch/x86/kernel/acpi/ |
D | cppc.c | 27 switch (boot_cpu_data.x86_vendor) { in cpc_supported_by_cpu() 30 if (boot_cpu_data.x86 == 0x19 && ((boot_cpu_data.x86_model <= 0x0f) || in cpc_supported_by_cpu() 31 (boot_cpu_data.x86_model >= 0x20 && boot_cpu_data.x86_model <= 0x2f))) in cpc_supported_by_cpu() 33 else if (boot_cpu_data.x86 == 0x17 && in cpc_supported_by_cpu() 34 boot_cpu_data.x86_model >= 0x30 && boot_cpu_data.x86_model <= 0x7f) in cpc_supported_by_cpu() 120 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) in init_freq_invariance_cppc() 261 switch (boot_cpu_data.x86_model) { in amd_get_boost_ratio_numerator()
|
/linux-6.12.1/drivers/hwmon/ |
D | k10temp.c | 325 if (boot_cpu_data.x86 != 0x10) in has_erratum_319() 351 return boot_cpu_data.x86_model < 4 || in has_erratum_319() 352 (boot_cpu_data.x86_model == 4 && boot_cpu_data.x86_stepping <= 2); in has_erratum_319() 436 if (boot_cpu_data.x86 == 0x17 && in k10temp_probe() 437 strstr(boot_cpu_data.x86_model_id, AMD_I3255_STR)) { in k10temp_probe() 445 } else if (boot_cpu_data.x86 == 0x15 && in k10temp_probe() 446 ((boot_cpu_data.x86_model & 0xf0) == 0x60 || in k10temp_probe() 447 (boot_cpu_data.x86_model & 0xf0) == 0x70)) { in k10temp_probe() 455 if (boot_cpu_data.x86 == 0x17 || boot_cpu_data.x86 == 0x18) { in k10temp_probe() 456 switch (boot_cpu_data.x86_model) { in k10temp_probe() [all …]
|
/linux-6.12.1/arch/x86/kernel/cpu/ |
D | perfctr-watchdog.c | 48 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()
|
D | match.c | 39 struct cpuinfo_x86 *c = &boot_cpu_data; in x86_match_cpu() 62 struct cpuinfo_x86 *c = &boot_cpu_data; in x86_match_cpu_with_stepping() 83 if (!res || res->x86_microcode_rev > boot_cpu_data.microcode) in x86_cpu_has_min_microcode_rev()
|
/linux-6.12.1/arch/x86/kernel/ |
D | amd_nb.c | 294 if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) { in amd_cache_northbridges() 366 if (boot_cpu_data.x86 == 0x10 && in amd_cache_northbridges() 367 boot_cpu_data.x86_model >= 0x8 && in amd_cache_northbridges() 368 (boot_cpu_data.x86_model > 0x9 || in amd_cache_northbridges() 369 boot_cpu_data.x86_stepping >= 0x1)) in amd_cache_northbridges() 372 if (boot_cpu_data.x86 == 0x15) in amd_cache_northbridges() 376 if (boot_cpu_data.x86 == 0x15) in amd_cache_northbridges() 392 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD && in early_is_amd_nb() 393 boot_cpu_data.x86_vendor != X86_VENDOR_HYGON) in early_is_amd_nb() 396 if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) in early_is_amd_nb() [all …]
|
/linux-6.12.1/arch/um/kernel/ |
D | um_arch.c | 59 struct cpuinfo_um boot_cpu_data = { variable 66 EXPORT_SYMBOL(boot_cpu_data); 84 seq_printf(m, "fpu\t\t: %s\n", cpu_has(&boot_cpu_data, X86_FEATURE_FPU) ? "yes" : "no"); in show_cpuinfo() 87 if (cpu_has(&boot_cpu_data, i) && (x86_cap_flags[i] != NULL)) in show_cpuinfo() 90 seq_printf(m, "cache_alignment\t: %d\n", boot_cpu_data.cache_alignment); in show_cpuinfo() 101 return *pos < nr_cpu_ids ? &boot_cpu_data + *pos : NULL; in c_start() 286 set_cpu_cap(&boot_cpu_data, i); in parse_host_cpu_flags() 299 boot_cpu_data.cache_alignment = res; in parse_cache_line() 301 boot_cpu_data.cache_alignment = L1_CACHE_BYTES; in parse_cache_line()
|
/linux-6.12.1/arch/loongarch/kernel/ |
D | hw_breakpoint.c | 195 max_slots = boot_cpu_data.watch_ireg_count; in hw_breakpoint_control() 199 max_slots = boot_cpu_data.watch_dreg_count; in hw_breakpoint_control() 426 max_slots = boot_cpu_data.watch_ireg_count; in update_bp_registers() 430 max_slots = boot_cpu_data.watch_dreg_count; in update_bp_registers() 481 for (i = 0; i < boot_cpu_data.watch_ireg_count; ++i) { in breakpoint_handler() 501 for (i = 0; i < boot_cpu_data.watch_dreg_count; ++i) { in watchpoint_handler() 518 boot_cpu_data.watch_ireg_count = get_num_brps(); in arch_hw_breakpoint_init() 519 boot_cpu_data.watch_dreg_count = get_num_wrps(); in arch_hw_breakpoint_init() 522 boot_cpu_data.watch_ireg_count, boot_cpu_data.watch_dreg_count); in arch_hw_breakpoint_init() 525 cpu_data[cpu].watch_ireg_count = boot_cpu_data.watch_ireg_count; in arch_hw_breakpoint_init() [all …]
|
/linux-6.12.1/arch/x86/xen/ |
D | pmu.c | 71 if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) { in xen_pmu_arch_init() 73 switch (boot_cpu_data.x86) { in xen_pmu_arch_init() 93 } else if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) { in xen_pmu_arch_init() 133 if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD && in is_amd_pmu_msr() 134 boot_cpu_data.x86_vendor != X86_VENDOR_HYGON) in is_amd_pmu_msr() 150 if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL && in is_intel_pmu_msr() 151 boot_cpu_data.x86_vendor != X86_VENDOR_CENTAUR && in is_intel_pmu_msr() 152 boot_cpu_data.x86_vendor != X86_VENDOR_ZHAOXIN) in is_intel_pmu_msr() 401 if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) in xen_read_pmc()
|
/linux-6.12.1/drivers/mtd/nand/raw/ |
D | cs553x_nand.c | 329 if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD && in is_geode() 330 boot_cpu_data.x86 == 5 && in is_geode() 331 boot_cpu_data.x86_model == 10) in is_geode() 334 if ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC || in is_geode() 335 boot_cpu_data.x86_vendor == X86_VENDOR_CYRIX) && in is_geode() 336 boot_cpu_data.x86 == 5 && in is_geode() 337 boot_cpu_data.x86_model == 5) in is_geode()
|
/linux-6.12.1/arch/x86/kernel/apic/ |
D | apic.c | 201 if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD && in modern_apic() 202 boot_cpu_data.x86 >= 0xf) in modern_apic() 206 if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) in modern_apic() 558 if (boot_cpu_data.microcode >= rev) in apic_validate_deadline_timer() 1222 if (modern_apic() || boot_cpu_data.x86_vendor == X86_VENDOR_AMD) in sync_Arb_IDs() 1325 if ((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) && in init_bsp_APIC() 1326 (boot_cpu_data.x86 == 15)) in init_bsp_APIC() 1960 set_cpu_cap(&boot_cpu_data, X86_FEATURE_APIC); in apic_verify() 1963 if (boot_cpu_data.x86 >= 6) { in apic_verify() 1986 if (boot_cpu_data.x86 >= 6) { in apic_force_enable() [all …]
|