/Linux-v4.19/arch/mips/mm/ |
D | sc-mips.c | 144 c->scache.linesz = 2 << tmp; in mips_sc_is_activated() 162 c->scache.sets = 64 << sets; in mips_sc_probe_cm3() 167 c->scache.linesz = 2 << line_sz; in mips_sc_probe_cm3() 171 c->scache.ways = assoc + 1; in mips_sc_probe_cm3() 172 c->scache.waysize = c->scache.sets * c->scache.linesz; in mips_sc_probe_cm3() 173 c->scache.waybit = __ffs(c->scache.waysize); in mips_sc_probe_cm3() 175 if (c->scache.linesz) { in mips_sc_probe_cm3() 176 c->scache.flags &= ~MIPS_CACHE_NOT_PRESENT; in mips_sc_probe_cm3() 191 c->scache.flags |= MIPS_CACHE_NOT_PRESENT; in mips_sc_probe() 214 c->scache.sets = 64 << tmp; in mips_sc_probe() [all …]
|
D | sc-rm7k.c | 237 c->scache.linesz = sc_lsize; in rm7k_sc_init() 238 c->scache.ways = 4; in rm7k_sc_init() 239 c->scache.waybit= __ffs(scache_size / c->scache.ways); in rm7k_sc_init() 240 c->scache.waysize = scache_size / c->scache.ways; in rm7k_sc_init() 241 c->scache.sets = scache_size / (c->scache.linesz * c->scache.ways); in rm7k_sc_init()
|
D | c-r4k.c | 1640 c->scache.linesz = 16 << ((config & R4K_CONF_SB) >> 22); in probe_scache() 1641 c->scache.ways = 1; in probe_scache() 1642 c->scache.waybit = 0; /* does not matter */ in probe_scache() 1652 c->scache.linesz = 32; in loongson2_sc_init() 1653 c->scache.ways = 4; in loongson2_sc_init() 1654 c->scache.waybit = 0; 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() 1671 c->scache.linesz = 2 << lsize; in loongson3_sc_init() [all …]
|
/Linux-v4.19/arch/sh/kernel/cpu/sh4/ |
D | probe.c | 245 boot_cpu_data.scache.way_incr = (1 << 16); in cpu_probe() 246 boot_cpu_data.scache.entry_shift = 5; in cpu_probe() 247 boot_cpu_data.scache.ways = 4; in cpu_probe() 248 boot_cpu_data.scache.linesz = L1_CACHE_BYTES; in cpu_probe() 250 boot_cpu_data.scache.entry_mask = in cpu_probe() 251 (boot_cpu_data.scache.way_incr - in cpu_probe() 252 boot_cpu_data.scache.linesz); in cpu_probe() 254 boot_cpu_data.scache.sets = size / in cpu_probe() 255 (boot_cpu_data.scache.linesz * in cpu_probe() 256 boot_cpu_data.scache.ways); in cpu_probe() [all …]
|
/Linux-v4.19/arch/microblaze/kernel/cpu/ |
D | cache.c | 508 struct scache *mbc; 511 static const struct scache wb_msr = { 527 static const struct scache wb_nomsr = { 543 static const struct scache wt_msr = { 558 static const struct scache wt_nomsr = { 574 static const struct scache wt_msr_noirq = { 589 static const struct scache wt_nomsr_noirq = { 613 mbc = (struct scache *)&wb_msr; in microblaze_cache_init() 621 mbc = (struct scache *)&wt_msr_noirq; in microblaze_cache_init() 624 mbc = (struct scache *)&wt_msr; in microblaze_cache_init() [all …]
|
/Linux-v4.19/arch/mips/include/asm/ |
D | r4kcache.h | 634 __BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 16, ) 638 __BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 32, ) 641 __BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 64, ) 644 __BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 128, ) 648 __BUILD_BLAST_CACHE(inv_s, scache, Index_Writeback_Inv_SD, Hit_Invalidate_SD, 16, ) 649 __BUILD_BLAST_CACHE(inv_s, scache, Index_Writeback_Inv_SD, Hit_Invalidate_SD, 32, ) 650 __BUILD_BLAST_CACHE(inv_s, scache, Index_Writeback_Inv_SD, Hit_Invalidate_SD, 64, ) 651 __BUILD_BLAST_CACHE(inv_s, scache, Index_Writeback_Inv_SD, Hit_Invalidate_SD, 128, ) 740 __BUILD_BLAST_CACHE_RANGE(s, scache, Hit_Writeback_Inv_SD, protected_, ) 745 __BUILD_BLAST_CACHE_RANGE(s, scache, Hit_Writeback_Inv_SD, , ) [all …]
|
D | cpu-info.h | 78 struct cache_desc scache; /* Secondary cache */ member
|
D | cpu-features.h | 468 #define cpu_scache_line_size() cpu_data[0].scache.linesz
|
/Linux-v4.19/arch/sh/mm/ |
D | cache.c | 282 boot_cpu_data.scache.ways, in emit_cache_params() 283 boot_cpu_data.scache.sets, in emit_cache_params() 284 boot_cpu_data.scache.way_incr); in emit_cache_params() 286 boot_cpu_data.scache.entry_mask, in emit_cache_params() 287 boot_cpu_data.scache.alias_mask, in emit_cache_params() 288 boot_cpu_data.scache.n_aliases); in emit_cache_params() 302 compute_alias(&boot_cpu_data.scache); in cpu_cache_init()
|
/Linux-v4.19/arch/mips/kernel/ |
D | cacheinfo.c | 49 if (c->scache.waysize) { in __init_cache_level() 77 if (c->scache.waysize) in __populate_cache_leaves() 78 populate_cache(scache, this_leaf, 2, CACHE_TYPE_UNIFIED); in __populate_cache_leaves()
|
D | cpu-probe.c | 694 c->scache.flags &= ~MIPS_CACHE_NOT_PRESENT; in decode_config2() 873 c->scache.flags = MIPS_CACHE_NOT_PRESENT; in decode_configs() 1734 c->scache.ways = 8; in cpu_probe_sandcraft()
|
/Linux-v4.19/arch/microblaze/include/asm/ |
D | cacheflush.h | 35 struct scache { struct 53 extern struct scache *mbc; argument
|
/Linux-v4.19/arch/sh/include/asm/ |
D | processor.h | 84 struct cache_info scache; /* Secondary cache */ member
|
/Linux-v4.19/arch/sh/kernel/cpu/ |
D | proc.c | 123 show_cacheinfo(m, "scache", c->scache); in show_cpuinfo()
|
D | init.c | 215 l2_cache_shape = CACHE_DESC_SHAPE(current_cpu_data.scache); in detect_cache_shape()
|