Lines Matching refs:dcache
1014 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1015 c->dcache.ways = 2; in probe_pcache()
1016 c->dcache.waybit= __ffs(dcache_size/2); in probe_pcache()
1028 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1029 c->dcache.ways = 2; in probe_pcache()
1030 c->dcache.waybit = 0; in probe_pcache()
1042 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1043 c->dcache.ways = 4; in probe_pcache()
1044 c->dcache.waybit = 0; in probe_pcache()
1063 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1064 c->dcache.ways = 1; in probe_pcache()
1065 c->dcache.waybit = 0; /* does not matter */ in probe_pcache()
1080 c->dcache.linesz = 32; in probe_pcache()
1081 c->dcache.ways = 2; in probe_pcache()
1082 c->dcache.waybit = 0; in probe_pcache()
1096 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1097 c->dcache.ways = 4; in probe_pcache()
1098 c->dcache.waybit = __ffs(dcache_size / c->dcache.ways); in probe_pcache()
1114 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1116 c->dcache.ways = 4; in probe_pcache()
1118 c->dcache.ways = 2; in probe_pcache()
1119 c->dcache.waybit = 0; in probe_pcache()
1138 c->dcache.linesz = 2 << lsize; in probe_pcache()
1140 c->dcache.linesz = 0; in probe_pcache()
1141 c->dcache.sets = 64 << ((config1 >> 13) & 7); in probe_pcache()
1142 c->dcache.ways = 1 + ((config1 >> 7) & 7); in probe_pcache()
1143 dcache_size = c->dcache.sets * in probe_pcache()
1144 c->dcache.ways * in probe_pcache()
1145 c->dcache.linesz; in probe_pcache()
1146 c->dcache.waybit = 0; in probe_pcache()
1161 c->dcache.linesz = 128; in probe_pcache()
1162 c->dcache.ways = 8; in probe_pcache()
1163 c->dcache.sets = 8; in probe_pcache()
1164 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_pcache()
1200 c->dcache.flags = 0; in probe_pcache()
1208 c->dcache.linesz = lsize ? 2 << lsize : 0; in probe_pcache()
1210 c->dcache.sets = 32 << (((config1 >> 13) + 1) & 7); in probe_pcache()
1211 c->dcache.ways = 1 + ((config1 >> 7) & 7); in probe_pcache()
1213 dcache_size = c->dcache.sets * in probe_pcache()
1214 c->dcache.ways * in probe_pcache()
1215 c->dcache.linesz; in probe_pcache()
1216 c->dcache.waybit = __ffs(dcache_size/c->dcache.ways); in probe_pcache()
1238 c->dcache.waysize = dcache_size / c->dcache.ways; in probe_pcache()
1242 c->dcache.sets = c->dcache.linesz ? in probe_pcache()
1243 dcache_size / (c->dcache.linesz * c->dcache.ways) : 0; in probe_pcache()
1258 c->dcache.flags |= MIPS_CACHE_PINDEX; in probe_pcache()
1291 c->dcache.flags |= MIPS_CACHE_PINDEX; in probe_pcache()
1296 if (has_74k_erratum || c->dcache.waysize > PAGE_SIZE) in probe_pcache()
1297 c->dcache.flags |= MIPS_CACHE_ALIASES; in probe_pcache()
1301 if (c->dcache.flags & MIPS_CACHE_PINDEX) in probe_pcache()
1302 c->dcache.flags &= ~MIPS_CACHE_ALIASES; in probe_pcache()
1330 c->dcache.flags &= ~MIPS_CACHE_ALIASES; in probe_pcache()
1347 dcache_size >> 10, way_string[c->dcache.ways], in probe_pcache()
1348 (c->dcache.flags & MIPS_CACHE_PINDEX) ? "PIPT" : "VIPT", in probe_pcache()
1349 (c->dcache.flags & MIPS_CACHE_ALIASES) ? in probe_pcache()
1351 c->dcache.linesz); in probe_pcache()
1730 if (c->dcache.linesz && cpu_has_dc_aliases) in r4k_cache_init()
1732 c->dcache.sets * c->dcache.linesz - 1, in r4k_cache_init()