Lines Matching refs:c
120 static inline int mips_sc_is_activated(struct cpuinfo_mips *c) in mips_sc_is_activated() argument
143 c->scache.linesz = 2 << tmp; in mips_sc_is_activated()
151 struct cpuinfo_mips *c = ¤t_cpu_data; in mips_sc_probe_cm3() local
161 c->scache.sets = 64 << sets; in mips_sc_probe_cm3()
166 c->scache.linesz = 2 << line_sz; in mips_sc_probe_cm3()
170 c->scache.ways = assoc + 1; in mips_sc_probe_cm3()
171 c->scache.waysize = c->scache.sets * c->scache.linesz; in mips_sc_probe_cm3()
172 c->scache.waybit = __ffs(c->scache.waysize); in mips_sc_probe_cm3()
174 if (c->scache.linesz) { in mips_sc_probe_cm3()
175 c->scache.flags &= ~MIPS_CACHE_NOT_PRESENT; in mips_sc_probe_cm3()
176 c->options |= MIPS_CPU_INCLUSIVE_CACHES; in mips_sc_probe_cm3()
185 struct cpuinfo_mips *c = ¤t_cpu_data; in mips_sc_probe() local
190 c->scache.flags |= MIPS_CACHE_NOT_PRESENT; in mips_sc_probe()
196 if (!(c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1 | in mips_sc_probe()
209 if (!mips_sc_is_activated(c)) in mips_sc_probe()
214 c->scache.sets = 64 << tmp; in mips_sc_probe()
220 c->scache.ways = tmp + 1; in mips_sc_probe()
232 c->scache.ways = 4; in mips_sc_probe()
241 c->scache.sets = 256; in mips_sc_probe()
242 c->scache.ways = 4; in mips_sc_probe()
247 c->scache.waysize = c->scache.sets * c->scache.linesz; in mips_sc_probe()
248 c->scache.waybit = __ffs(c->scache.waysize); in mips_sc_probe()
250 c->scache.flags &= ~MIPS_CACHE_NOT_PRESENT; in mips_sc_probe()