/linux-6.1.9/arch/nios2/kernel/ |
D | cpuinfo.c | 17 struct cpuinfo cpuinfo; variable 46 cpuinfo.cpu_clock_freq = fcpu(cpu, "clock-frequency"); in setup_cpuinfo() 50 strlcpy(cpuinfo.cpu_impl, str, sizeof(cpuinfo.cpu_impl)); in setup_cpuinfo() 52 strcpy(cpuinfo.cpu_impl, "<unknown>"); in setup_cpuinfo() 54 cpuinfo.has_div = of_property_read_bool(cpu, "altr,has-div"); in setup_cpuinfo() 55 cpuinfo.has_mul = of_property_read_bool(cpu, "altr,has-mul"); in setup_cpuinfo() 56 cpuinfo.has_mulx = of_property_read_bool(cpu, "altr,has-mulx"); in setup_cpuinfo() 57 cpuinfo.has_bmx = of_property_read_bool(cpu, "altr,has-bmx"); in setup_cpuinfo() 58 cpuinfo.has_cdx = of_property_read_bool(cpu, "altr,has-cdx"); in setup_cpuinfo() 59 cpuinfo.mmu = of_property_read_bool(cpu, "altr,has-mmu"); in setup_cpuinfo() [all …]
|
/linux-6.1.9/arch/microblaze/kernel/cpu/ |
D | mb.c | 36 if (cpuinfo.fpga_family_code == family_string_lookup[i].k) { in show_cpuinfo() 44 if (cpuinfo.ver_code == cpu_ver_lookup[i].k) { in show_cpuinfo() 58 cpuinfo.endian ? "little" : "big", in show_cpuinfo() 59 cpuinfo.cpu_clock_freq / 1000000, in show_cpuinfo() 60 cpuinfo.cpu_clock_freq % 1000000, in show_cpuinfo() 69 (cpuinfo.use_instr & PVR0_USE_BARREL_MASK) ? "yes" : "no", in show_cpuinfo() 70 (cpuinfo.use_instr & PVR2_USE_MSR_INSTR) ? "yes" : "no", in show_cpuinfo() 71 (cpuinfo.use_instr & PVR2_USE_PCMP_INSTR) ? "yes" : "no", in show_cpuinfo() 72 (cpuinfo.use_instr & PVR0_USE_DIV_MASK) ? "yes" : "no"); in show_cpuinfo() 74 seq_printf(m, " MMU:\t\t%x\n", cpuinfo.mmu); in show_cpuinfo() [all …]
|
D | cache.c | 169 cpuinfo.icache_line_length, cpuinfo.icache_size); in __flush_icache_range_msr_irq() 175 CACHE_RANGE_LOOP_1(start, end, cpuinfo.icache_line_length, wic); in __flush_icache_range_msr_irq() 177 for (i = start; i < end; i += cpuinfo.icache_line_length) in __flush_icache_range_msr_irq() 196 cpuinfo.icache_line_length, cpuinfo.icache_size); in __flush_icache_range_nomsr_irq() 202 CACHE_RANGE_LOOP_1(start, end, cpuinfo.icache_line_length, wic); in __flush_icache_range_nomsr_irq() 204 for (i = start; i < end; i += cpuinfo.icache_line_length) in __flush_icache_range_nomsr_irq() 223 cpuinfo.icache_line_length, cpuinfo.icache_size); in __flush_icache_range_noirq() 225 CACHE_RANGE_LOOP_1(start, end, cpuinfo.icache_line_length, wic); in __flush_icache_range_noirq() 227 for (i = start; i < end; i += cpuinfo.icache_line_length) in __flush_icache_range_noirq() 244 CACHE_ALL_LOOP(cpuinfo.icache_size, cpuinfo.icache_line_length, wic); in __flush_icache_all_msr_irq() [all …]
|
D | cpuinfo.c | 88 struct cpuinfo cpuinfo; variable 103 set_cpuinfo_static(&cpuinfo, cpu); in setup_cpuinfo() 110 set_cpuinfo_static(&cpuinfo, cpu); in setup_cpuinfo() 111 set_cpuinfo_pvr_full(&cpuinfo, cpu); in setup_cpuinfo() 115 set_cpuinfo_static(&cpuinfo, cpu); in setup_cpuinfo() 118 if (cpuinfo.mmu_privins) in setup_cpuinfo() 133 cpuinfo.cpu_clock_freq = fcpu(cpu, "timebase-frequency"); in setup_cpuinfo_clk() 135 cpuinfo.cpu_clock_freq = clk_get_rate(clk); in setup_cpuinfo_clk() 138 if (!cpuinfo.cpu_clock_freq) { in setup_cpuinfo_clk()
|
D | Makefile | 13 obj-y += cache.o cpuinfo.o cpuinfo-pvr-full.o cpuinfo-static.o mb.o pvr.o
|
/linux-6.1.9/arch/openrisc/kernel/ |
D | setup.c | 102 struct cpuinfo_or1k *cpuinfo = &cpuinfo_or1k[smp_processor_id()]; in print_cpuinfo() local 108 version, revision, cpuinfo->clock_frequency / 1000000); in print_cpuinfo() 119 cpuinfo->dcache_size, cpuinfo->dcache_block_size, in print_cpuinfo() 120 cpuinfo->dcache_ways); in print_cpuinfo() 126 cpuinfo->icache_size, cpuinfo->icache_block_size, in print_cpuinfo() 127 cpuinfo->icache_ways); in print_cpuinfo() 176 struct cpuinfo_or1k *cpuinfo = &cpuinfo_or1k[cpu_id]; in setup_cpuinfo() local 183 cpuinfo->icache_ways = 1 << (iccfgr & SPR_ICCFGR_NCW); in setup_cpuinfo() 185 cpuinfo->icache_block_size = 16 << ((iccfgr & SPR_ICCFGR_CBS) >> 7); in setup_cpuinfo() 186 cpuinfo->icache_size = in setup_cpuinfo() [all …]
|
D | dma.c | 28 struct cpuinfo_or1k *cpuinfo = &cpuinfo_or1k[smp_processor_id()]; in page_set_nocache() local 39 for (cl = __pa(addr); cl < __pa(next); cl += cpuinfo->dcache_block_size) in page_set_nocache() 102 struct cpuinfo_or1k *cpuinfo = &cpuinfo_or1k[smp_processor_id()]; in arch_sync_dma_for_device() local 108 cl += cpuinfo->dcache_block_size) in arch_sync_dma_for_device() 114 cl += cpuinfo->dcache_block_size) in arch_sync_dma_for_device()
|
D | time.c | 72 struct cpuinfo_or1k *cpuinfo = &cpuinfo_or1k[cpu]; in openrisc_clockevent_init() local 87 clockevents_config_and_register(evt, cpuinfo->clock_frequency, in openrisc_clockevent_init() 153 struct cpuinfo_or1k *cpuinfo = &cpuinfo_or1k[smp_processor_id()]; in openrisc_timer_init() local 155 if (clocksource_register_hz(&openrisc_timer, cpuinfo->clock_frequency)) in openrisc_timer_init()
|
/linux-6.1.9/tools/testing/selftests/arm64/abi/ |
D | hwcap.c | 117 const char *cpuinfo; member 125 .cpuinfo = "rng", 132 .cpuinfo = "sme", 140 .cpuinfo = "sve", 148 .cpuinfo = "sve2", 155 .cpuinfo = "sveaes", 162 .cpuinfo = "svepmull", 169 .cpuinfo = "svebitperm", 176 .cpuinfo = "svesha3", 183 .cpuinfo = "svesm4", [all …]
|
/linux-6.1.9/arch/mips/include/asm/ |
D | cpu-info.h | 151 static inline unsigned int cpu_cluster(struct cpuinfo_mips *cpuinfo) in cpu_cluster() argument 157 return (cpuinfo->globalnumber & MIPS_GLOBALNUMBER_CLUSTER) >> in cpu_cluster() 161 static inline unsigned int cpu_core(struct cpuinfo_mips *cpuinfo) in cpu_core() argument 163 return (cpuinfo->globalnumber & MIPS_GLOBALNUMBER_CORE) >> in cpu_core() 167 static inline unsigned int cpu_vpe_id(struct cpuinfo_mips *cpuinfo) in cpu_vpe_id() argument 173 return (cpuinfo->globalnumber & MIPS_GLOBALNUMBER_VP) >> in cpu_vpe_id() 177 extern void cpu_set_cluster(struct cpuinfo_mips *cpuinfo, unsigned int cluster); 178 extern void cpu_set_core(struct cpuinfo_mips *cpuinfo, unsigned int core); 179 extern void cpu_set_vpe_id(struct cpuinfo_mips *cpuinfo, unsigned int vpe); 203 static inline unsigned long cpu_asid_mask(struct cpuinfo_mips *cpuinfo) in cpu_asid_mask() argument [all …]
|
/linux-6.1.9/arch/nios2/mm/ |
D | cacheflush.c | 23 start &= ~(cpuinfo.dcache_line_size - 1); in __flush_dcache() 24 end += (cpuinfo.dcache_line_size - 1); in __flush_dcache() 25 end &= ~(cpuinfo.dcache_line_size - 1); in __flush_dcache() 27 if (end > start + cpuinfo.dcache_size) in __flush_dcache() 28 end = start + cpuinfo.dcache_size; in __flush_dcache() 30 for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { in __flush_dcache() 42 start &= ~(cpuinfo.dcache_line_size - 1); in __invalidate_dcache() 43 end += (cpuinfo.dcache_line_size - 1); in __invalidate_dcache() 44 end &= ~(cpuinfo.dcache_line_size - 1); in __invalidate_dcache() 46 for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { in __invalidate_dcache() [all …]
|
D | tlb.c | 22 ((((1UL << (cpuinfo.tlb_ptr_sz - cpuinfo.tlb_num_ways_log2))) - 1) \ 55 for (way = 0; way < cpuinfo.tlb_num_ways; way++) { in replace_tlb_one_pid() 136 for (way = 0; way < cpuinfo.tlb_num_ways; way++) { in flush_tlb_one() 173 line << (PAGE_SHIFT + cpuinfo.tlb_num_ways_log2)); in dump_tlb_line() 180 for (way = 0; way < cpuinfo.tlb_num_ways; way++) { in dump_tlb_line() 212 for (i = 0; i < cpuinfo.tlb_num_lines; i++) in dump_tlb() 226 for (line = 0; line < cpuinfo.tlb_num_lines; line++) { in flush_tlb_pid() 229 for (way = 0; way < cpuinfo.tlb_num_ways; way++) { in flush_tlb_pid() 280 for (line = 0; line < cpuinfo.tlb_num_lines; line++) { in flush_tlb_all() 282 for (way = 0; way < cpuinfo.tlb_num_ways; way++) in flush_tlb_all()
|
/linux-6.1.9/tools/perf/arch/x86/util/ |
D | tsc.c | 29 FILE *cpuinfo; in cpuinfo_tsc_freq() local 33 cpuinfo = fopen("/proc/cpuinfo", "r"); in cpuinfo_tsc_freq() 34 if (!cpuinfo) { in cpuinfo_tsc_freq() 38 while (getline(&line, &len, cpuinfo) > 0) { in cpuinfo_tsc_freq() 53 fclose(cpuinfo); in cpuinfo_tsc_freq()
|
/linux-6.1.9/arch/microblaze/include/asm/ |
D | cpuinfo.h | 30 struct cpuinfo { struct 87 extern struct cpuinfo cpuinfo; argument 93 void set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu); 94 void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu);
|
/linux-6.1.9/arch/loongarch/include/asm/ |
D | cpu-info.h | 112 static inline unsigned long cpu_asid_mask(struct cpuinfo_loongarch *cpuinfo) in cpu_asid_mask() argument 114 return cpuinfo->asid_mask; in cpu_asid_mask() 117 static inline void set_cpu_asid_mask(struct cpuinfo_loongarch *cpuinfo, in set_cpu_asid_mask() argument 120 cpuinfo->asid_mask = asid_mask; in set_cpu_asid_mask()
|
/linux-6.1.9/arch/nios2/include/asm/ |
D | cpuinfo.h | 11 struct cpuinfo { struct 42 extern struct cpuinfo cpuinfo; argument
|
/linux-6.1.9/Documentation/x86/ |
D | cpuinfo.rst | 10 On x86, flags appearing in /proc/cpuinfo have an X86_FEATURE definition 17 try to find the flag in /proc/cpuinfo. If a given flag is present, it 22 If the expected flag does not appear in /proc/cpuinfo, things are murkier. 28 not support the feature and thus has not enabled it. In general, /proc/cpuinfo 42 displayed accordingly in /proc/cpuinfo. For example, the flag "avx2" 83 resulting x86_cap/bug_flags[] are used to populate /proc/cpuinfo. The naming 88 By default, the flag <name> in /proc/cpuinfo is extracted from the respective 100 needed. For instance, /proc/cpuinfo is a userspace interface and must remain 102 shall override the new naming with the name already used in /proc/cpuinfo. 104 c: The naming override can be "", which means it will not appear in /proc/cpuinfo. [all …]
|
/linux-6.1.9/drivers/cpufreq/ |
D | amd-pstate.c | 396 policy->cpuinfo.max_freq = cpudata->max_freq; in amd_pstate_set_boost() 398 policy->cpuinfo.max_freq = cpudata->nominal_freq; in amd_pstate_set_boost() 400 policy->max = policy->cpuinfo.max_freq; in amd_pstate_set_boost() 403 policy->cpuinfo.max_freq); in amd_pstate_set_boost() 466 policy->cpuinfo.transition_latency = AMD_PSTATE_TRANSITION_LATENCY; in amd_pstate_cpu_init() 472 policy->cpuinfo.min_freq = min_freq; in amd_pstate_cpu_init() 473 policy->cpuinfo.max_freq = max_freq; in amd_pstate_cpu_init() 476 policy->cur = policy->cpuinfo.min_freq; in amd_pstate_cpu_init() 482 FREQ_QOS_MIN, policy->cpuinfo.min_freq); in amd_pstate_cpu_init() 489 FREQ_QOS_MAX, policy->cpuinfo.max_freq); in amd_pstate_cpu_init()
|
D | pxa3xx-cpufreq.c | 188 policy->min = policy->cpuinfo.min_freq = 104000; in pxa3xx_cpufreq_init() 189 policy->max = policy->cpuinfo.max_freq = in pxa3xx_cpufreq_init() 191 policy->cpuinfo.transition_latency = 1000; /* FIXME: 1 ms, assumed */ in pxa3xx_cpufreq_init()
|
/linux-6.1.9/arch/um/os-Linux/ |
D | start_up.c | 328 FILE *cpuinfo; in get_host_cpu_features() local 333 cpuinfo = fopen("/proc/cpuinfo", "r"); in get_host_cpu_features() 334 if (cpuinfo == NULL) { in get_host_cpu_features() 337 while ((getline(&line, &len, cpuinfo)) != -1) { in get_host_cpu_features() 351 fclose(cpuinfo); in get_host_cpu_features()
|
/linux-6.1.9/Documentation/translations/zh_CN/cpu-freq/ |
D | cpu-drivers.rst | 110 |policy->cpuinfo.min_freq和 | 该CPU支持的最低和最高频率(kHz) | 111 |policy->cpuinfo.max_freq | | 114 |policy->cpuinfo.transition_latency | CPU在两个频率之间切换所需的时间,以 | 136 对于设置其中的一些值(cpuinfo.min[max]_freq, policy->min[max]),频率表辅助函数可能会有帮
|
/linux-6.1.9/Documentation/translations/zh_TW/cpu-freq/ |
D | cpu-drivers.rst | 107 |policy->cpuinfo.min_freq 和 | | 108 |policy->cpuinfo.max_freq | 該CPU支持的最低和最高頻率(kHz) | 112 |policy->cpuinfo.transition_latency | | 136 對於設置其中的一些值(cpuinfo.min[max]_freq, policy->min[max]),頻率表助手可能會有幫
|
/linux-6.1.9/arch/parisc/kernel/ |
D | time.c | 70 struct cpuinfo_parisc *cpuinfo = &per_cpu(cpu_data, cpu); in timer_interrupt() local 76 next_tick = cpuinfo->it_value; in timer_interrupt() 86 cpuinfo->it_value = next_tick; in timer_interrupt()
|
D | topology.c | 51 const struct cpuinfo_parisc *cpuinfo = &per_cpu(cpu_data, cpu); in store_cpu_topology() local 56 if (cpuinfo->cpu_loc == p->cpu_loc) { in store_cpu_topology()
|
/linux-6.1.9/arch/microblaze/kernel/ |
D | asm-offsets.c | 124 DEFINE(CI_DCS, offsetof(struct cpuinfo, dcache_size)); in main() 125 DEFINE(CI_DCL, offsetof(struct cpuinfo, dcache_line_length)); in main() 126 DEFINE(CI_ICS, offsetof(struct cpuinfo, icache_size)); in main() 127 DEFINE(CI_ICL, offsetof(struct cpuinfo, icache_line_length)); in main()
|