Lines Matching +full:i +full:- +full:tlb +full:- +full:size

1 // SPDX-License-Identifier: GPL-2.0-or-later
41 if (!of_property_read_bool(cpu, "altr,has-initda")) in setup_cpuinfo()
43 "hardware system to have more than 4-byte line data " in setup_cpuinfo()
46 cpuinfo.cpu_clock_freq = fcpu(cpu, "clock-frequency"); 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()
76 cpuinfo.tlb_num_ways = fcpu(cpu, "altr,tlb-num-ways"); in setup_cpuinfo()
78 panic("altr,tlb-num-ways can't be 0. Please check your hardware " in setup_cpuinfo()
80 cpuinfo.icache_line_size = fcpu(cpu, "icache-line-size"); in setup_cpuinfo()
81 cpuinfo.icache_size = fcpu(cpu, "icache-size"); in setup_cpuinfo()
83 pr_warn("Warning: icache size configuration mismatch " in setup_cpuinfo()
85 "device tree icache-size\n", in setup_cpuinfo()
88 cpuinfo.dcache_line_size = fcpu(cpu, "dcache-line-size"); in setup_cpuinfo()
90 pr_warn("Warning: dcache line size configuration mismatch " in setup_cpuinfo()
92 "device tree dcache-line-size\n", in setup_cpuinfo()
94 cpuinfo.dcache_size = fcpu(cpu, "dcache-size"); in setup_cpuinfo()
96 pr_warn("Warning: dcache size configuration mismatch " in setup_cpuinfo()
98 "device tree dcache-size\n", in setup_cpuinfo()
101 cpuinfo.tlb_pid_num_bits = fcpu(cpu, "altr,pid-num-bits"); in setup_cpuinfo()
103 cpuinfo.tlb_num_entries = fcpu(cpu, "altr,tlb-num-entries"); in setup_cpuinfo()
105 cpuinfo.tlb_ptr_sz = fcpu(cpu, "altr,tlb-ptr-sz"); in setup_cpuinfo()
107 cpuinfo.reset_addr = fcpu(cpu, "altr,reset-addr"); in setup_cpuinfo()
108 cpuinfo.exception_addr = fcpu(cpu, "altr,exception-addr"); in setup_cpuinfo()
109 cpuinfo.fast_tlb_miss_exc_addr = fcpu(cpu, "altr,fast-tlb-miss-addr"); in setup_cpuinfo()
125 "REV:\t\t%i\n" in show_cpuinfo()
163 "TLB:\t\t%u ways, %u entries, %u PID bits\n", in show_cpuinfo()
173 unsigned long i = *pos; in cpuinfo_start() local
175 return i < num_possible_cpus() ? (void *) (i + 1) : NULL; in cpuinfo_start()