Lines Matching refs:c
190 struct cpuinfo_mips *c = ¤t_cpu_data; in probe_octeon() local
197 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon()
198 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_octeon()
199 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon()
200 c->icache.flags |= MIPS_CACHE_VTAG; in probe_octeon()
202 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
203 c->icache.waybit = ffs(icache_size / c->icache.ways) - 1; in probe_octeon()
204 c->dcache.linesz = 128; in probe_octeon()
206 c->dcache.sets = 2; /* CN5XXX has two Dcache sets */ in probe_octeon()
208 c->dcache.sets = 1; /* CN3XXX has one Dcache set */ in probe_octeon()
209 c->dcache.ways = 64; in probe_octeon()
211 c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
212 c->dcache.waybit = ffs(dcache_size / c->dcache.ways) - 1; in probe_octeon()
213 c->options |= MIPS_CPU_PREFETCH; in probe_octeon()
217 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon()
218 c->icache.sets = 8; in probe_octeon()
219 c->icache.ways = 37; in probe_octeon()
220 c->icache.flags |= MIPS_CACHE_VTAG; in probe_octeon()
221 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
223 c->dcache.linesz = 128; in probe_octeon()
224 c->dcache.ways = 32; in probe_octeon()
225 c->dcache.sets = 8; in probe_octeon()
226 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
227 c->options |= MIPS_CPU_PREFETCH; in probe_octeon()
231 c->icache.linesz = 128; in probe_octeon()
232 c->icache.sets = 16; in probe_octeon()
233 c->icache.ways = 39; in probe_octeon()
234 c->icache.flags |= MIPS_CACHE_VTAG; in probe_octeon()
235 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
237 c->dcache.linesz = 128; in probe_octeon()
238 c->dcache.ways = 32; in probe_octeon()
239 c->dcache.sets = 8; in probe_octeon()
240 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
241 c->options |= MIPS_CPU_PREFETCH; in probe_octeon()
250 c->icache.waysize = icache_size / c->icache.ways; in probe_octeon()
251 c->dcache.waysize = dcache_size / c->dcache.ways; in probe_octeon()
253 c->icache.sets = icache_size / (c->icache.linesz * c->icache.ways); in probe_octeon()
254 c->dcache.sets = dcache_size / (c->dcache.linesz * c->dcache.ways); in probe_octeon()
262 c->icache.ways, c->icache.sets, c->icache.linesz); in probe_octeon()
266 dcache_size >> 10, c->dcache.ways, in probe_octeon()
267 c->dcache.sets, c->dcache.linesz); in probe_octeon()