Lines Matching refs:cpuinfo
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()
187 cache_set_size * cpuinfo->icache_ways * cpuinfo->icache_block_size; in setup_cpuinfo()
190 cpuinfo->dcache_ways = 1 << (dccfgr & SPR_DCCFGR_NCW); in setup_cpuinfo()
192 cpuinfo->dcache_block_size = 16 << ((dccfgr & SPR_DCCFGR_CBS) >> 7); in setup_cpuinfo()
193 cpuinfo->dcache_size = in setup_cpuinfo()
194 cache_set_size * cpuinfo->dcache_ways * cpuinfo->dcache_block_size; in setup_cpuinfo()
197 &cpuinfo->clock_frequency)) { in setup_cpuinfo()
204 cpuinfo->coreid = mfspr(SPR_COREID); in setup_cpuinfo()
312 struct cpuinfo_or1k *cpuinfo = v; in show_cpuinfo() local
318 seq_printf(m, "processor\t\t: %d\n", cpuinfo->coreid); in show_cpuinfo()
338 seq_printf(m, "dcache size\t\t: %d bytes\n", cpuinfo->dcache_size); in show_cpuinfo()
340 cpuinfo->dcache_block_size); in show_cpuinfo()
341 seq_printf(m, "dcache ways\t\t: %d\n", cpuinfo->dcache_ways); in show_cpuinfo()
342 seq_printf(m, "icache size\t\t: %d bytes\n", cpuinfo->icache_size); in show_cpuinfo()
344 cpuinfo->icache_block_size); in show_cpuinfo()
345 seq_printf(m, "icache ways\t\t: %d\n", cpuinfo->icache_ways); in show_cpuinfo()