Lines Matching refs:scache_size
113 static unsigned long scache_size __read_mostly;
414 if (scache_size == 0) in r4k_blast_scache_page_setup()
432 if (scache_size == 0) in r4k_blast_scache_page_indexed_setup()
450 if (scache_size == 0) in r4k_blast_scache_setup()
843 if (size >= scache_size) in r4k_dma_cache_wback_inv()
880 if (size >= scache_size) in r4k_dma_cache_inv()
965 if (!cpu_icache_snoops_remote_store && scache_size) in local_r4k_flush_cache_sigtramp()
1639 scache_size = addr; in probe_scache()
1651 scache_size = 512*1024; in loongson2_sc_init()
1655 c->scache.waysize = scache_size / (c->scache.ways); in loongson2_sc_init()
1656 c->scache.sets = scache_size / (c->scache.linesz * c->scache.ways); in loongson2_sc_init()
1658 scache_size >> 10, way_string[c->scache.ways], c->scache.linesz); in loongson2_sc_init()
1677 scache_size = c->scache.sets * in loongson3_sc_init()
1681 scache_size *= 4; in loongson3_sc_init()
1683 c->scache.waysize = scache_size / c->scache.ways; in loongson3_sc_init()
1685 scache_size >> 10, way_string[c->scache.ways], c->scache.linesz); in loongson3_sc_init()
1686 if (scache_size) in loongson3_sc_init()
1720 scache_size = 0x80000 << ((config & R10K_CONF_SS) >> 16); in setup_scache()
1759 scache_size = c->scache.ways * c->scache.sets * c->scache.linesz; in setup_scache()
1761 scache_size >> 10, in setup_scache()
1777 c->scache.waysize = scache_size / c->scache.ways; in setup_scache()
1779 c->scache.sets = scache_size / (c->scache.linesz * c->scache.ways); in setup_scache()
1782 scache_size >> 10, way_string[c->scache.ways], c->scache.linesz); in setup_scache()