Lines Matching refs:linesz

791 	unsigned int linesz = cpu_scache_line_size();  in prefetch_cache_inv()  local
794 addr0 &= ~(linesz - 1); in prefetch_cache_inv()
795 addr1 = (addr0 + size - 1) & ~(linesz - 1); in prefetch_cache_inv()
803 addr0 += linesz; in prefetch_cache_inv()
809 addr1 -= linesz; in prefetch_cache_inv()
1009 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
1014 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1023 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
1028 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1037 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
1042 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1058 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
1063 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1075 c->icache.linesz = 64; in probe_pcache()
1080 c->dcache.linesz = 32; in probe_pcache()
1091 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
1096 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1106 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache()
1114 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache()
1126 c->icache.linesz = 2 << lsize; in probe_pcache()
1128 c->icache.linesz = 0; in probe_pcache()
1133 c->icache.linesz; in probe_pcache()
1138 c->dcache.linesz = 2 << lsize; in probe_pcache()
1140 c->dcache.linesz = 0; in probe_pcache()
1145 c->dcache.linesz; in probe_pcache()
1155 c->icache.linesz = 128; in probe_pcache()
1159 icache_size = c->icache.sets * c->icache.ways * c->icache.linesz; in probe_pcache()
1161 c->dcache.linesz = 128; in probe_pcache()
1164 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_pcache()
1184 c->icache.linesz = lsize ? 2 << lsize : 0; in probe_pcache()
1191 c->icache.linesz; in probe_pcache()
1208 c->dcache.linesz = lsize ? 2 << lsize : 0; in probe_pcache()
1215 c->dcache.linesz; in probe_pcache()
1232 !(config & CONF_SC) && c->icache.linesz != 16 && in probe_pcache()
1240 c->icache.sets = c->icache.linesz ? in probe_pcache()
1241 icache_size / (c->icache.linesz * c->icache.ways) : 0; 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()
1344 way_string[c->icache.ways], c->icache.linesz); in probe_pcache()
1351 c->dcache.linesz); in probe_pcache()
1364 c->vcache.linesz = 2 << lsize; in probe_vcache()
1366 c->vcache.linesz = lsize; in probe_vcache()
1371 vcache_size = c->vcache.sets * c->vcache.ways * c->vcache.linesz; in probe_vcache()
1377 vcache_size >> 10, way_string[c->vcache.ways], c->vcache.linesz); in probe_vcache()
1434 c->scache.linesz = 16 << ((config & R4K_CONF_SB) >> 22); in probe_scache()
1446 c->scache.linesz = 32; in loongson2_sc_init()
1450 c->scache.sets = scache_size / (c->scache.linesz * c->scache.ways); in loongson2_sc_init()
1452 scache_size >> 10, way_string[c->scache.ways], c->scache.linesz); in loongson2_sc_init()
1465 c->scache.linesz = 2 << lsize; in loongson3_sc_init()
1467 c->scache.linesz = 0; in loongson3_sc_init()
1477 scache_size = c->scache.sets * c->scache.ways * c->scache.linesz; in loongson3_sc_init()
1482 scache_size >> 10, way_string[c->scache.ways], c->scache.linesz); in loongson3_sc_init()
1518 c->scache.linesz = 64 << ((config >> 13) & 1); in setup_scache()
1556 scache_size = c->scache.ways * c->scache.sets * c->scache.linesz; in setup_scache()
1559 way_string[c->scache.ways], c->scache.linesz); in setup_scache()
1580 c->scache.sets = scache_size / (c->scache.linesz * c->scache.ways); in setup_scache()
1583 scache_size >> 10, way_string[c->scache.ways], c->scache.linesz); in setup_scache()
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()