Lines Matching refs:c
172 struct cpuinfo_mips *c = ¤t_cpu_data; in probe_octeon() local
179 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon()
180 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_octeon()
181 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon()
182 c->icache.flags |= MIPS_CACHE_VTAG; in probe_octeon()
184 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
185 c->icache.waybit = ffs(icache_size / c->icache.ways) - 1; in probe_octeon()
186 c->dcache.linesz = 128; in probe_octeon()
188 c->dcache.sets = 2; /* CN5XXX has two Dcache sets */ in probe_octeon()
190 c->dcache.sets = 1; /* CN3XXX has one Dcache set */ in probe_octeon()
191 c->dcache.ways = 64; in probe_octeon()
193 c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
194 c->dcache.waybit = ffs(dcache_size / c->dcache.ways) - 1; in probe_octeon()
195 c->options |= MIPS_CPU_PREFETCH; in probe_octeon()
199 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon()
200 c->icache.sets = 8; in probe_octeon()
201 c->icache.ways = 37; in probe_octeon()
202 c->icache.flags |= MIPS_CACHE_VTAG; in probe_octeon()
203 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
205 c->dcache.linesz = 128; in probe_octeon()
206 c->dcache.ways = 32; in probe_octeon()
207 c->dcache.sets = 8; in probe_octeon()
208 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
209 c->options |= MIPS_CPU_PREFETCH; in probe_octeon()
213 c->icache.linesz = 128; in probe_octeon()
214 c->icache.sets = 16; in probe_octeon()
215 c->icache.ways = 39; in probe_octeon()
216 c->icache.flags |= MIPS_CACHE_VTAG; in probe_octeon()
217 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon()
219 c->dcache.linesz = 128; in probe_octeon()
220 c->dcache.ways = 32; in probe_octeon()
221 c->dcache.sets = 8; in probe_octeon()
222 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
223 c->options |= MIPS_CPU_PREFETCH; in probe_octeon()
232 c->icache.waysize = icache_size / c->icache.ways; in probe_octeon()
233 c->dcache.waysize = dcache_size / c->dcache.ways; in probe_octeon()
235 c->icache.sets = icache_size / (c->icache.linesz * c->icache.ways); in probe_octeon()
236 c->dcache.sets = dcache_size / (c->dcache.linesz * c->dcache.ways); in probe_octeon()
244 c->icache.ways, c->icache.sets, c->icache.linesz); in probe_octeon()
248 dcache_size >> 10, c->dcache.ways, in probe_octeon()
249 c->dcache.sets, c->dcache.linesz); in probe_octeon()