/Linux-v4.19/arch/mips/mm/ |
D | c-octeon.c | 204 c->dcache.linesz = 128; in probe_octeon() 206 c->dcache.sets = 2; /* CN5XXX has two Dcache sets */ in probe_octeon() 208 c->dcache.sets = 1; /* CN3XXX has one Dcache set */ in probe_octeon() 209 c->dcache.ways = 64; in probe_octeon() 211 c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon() 212 c->dcache.waybit = ffs(dcache_size / c->dcache.ways) - 1; in probe_octeon() 223 c->dcache.linesz = 128; in probe_octeon() 224 c->dcache.ways = 32; in probe_octeon() 225 c->dcache.sets = 8; in probe_octeon() 226 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon() [all …]
|
D | c-r4k.c | 1178 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache() 1179 c->dcache.ways = 2; in probe_pcache() 1180 c->dcache.waybit= __ffs(dcache_size/2); in probe_pcache() 1193 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache() 1194 c->dcache.ways = 2; in probe_pcache() 1195 c->dcache.waybit = 0; in probe_pcache() 1207 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache() 1208 c->dcache.ways = 4; in probe_pcache() 1209 c->dcache.waybit = 0; in probe_pcache() 1228 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache() [all …]
|
D | c-tx39.c | 296 unsigned long dc_lsize = current_cpu_data.dcache.linesz; in tx39_flush_cache_sigtramp() 327 current_cpu_data.dcache.ways = 1; in tx39_probe_cache() 328 current_cpu_data.dcache.linesz = 4; in tx39_probe_cache() 333 current_cpu_data.dcache.ways = 2; in tx39_probe_cache() 334 current_cpu_data.dcache.linesz = 16; in tx39_probe_cache() 340 current_cpu_data.dcache.ways = 1; in tx39_probe_cache() 341 current_cpu_data.dcache.linesz = 16; in tx39_probe_cache() 409 (dcache_size / current_cpu_data.dcache.ways) - 1, in tx39_cache_init() 419 current_cpu_data.dcache.waysize = dcache_size / current_cpu_data.dcache.ways; in tx39_cache_init() 423 current_cpu_data.dcache.sets = in tx39_cache_init() [all …]
|
/Linux-v4.19/arch/sh/kernel/cpu/sh2/ |
D | probe.c | 37 boot_cpu_data.dcache.ways = 4; in cpu_probe() 38 boot_cpu_data.dcache.way_incr = (1<<12); in cpu_probe() 39 boot_cpu_data.dcache.sets = 256; in cpu_probe() 40 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe() 41 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe() 42 boot_cpu_data.dcache.flags = 0; in cpu_probe() 59 boot_cpu_data.dcache.ways = 1; in cpu_probe() 60 boot_cpu_data.dcache.sets = 256; in cpu_probe() 61 boot_cpu_data.dcache.entry_shift = 5; in cpu_probe() 62 boot_cpu_data.dcache.linesz = 32; in cpu_probe() [all …]
|
/Linux-v4.19/arch/sh/kernel/cpu/sh3/ |
D | probe.c | 53 boot_cpu_data.dcache.ways = 4; in cpu_probe() 54 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe() 55 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe() 56 boot_cpu_data.dcache.flags = 0; in cpu_probe() 63 boot_cpu_data.dcache.way_incr = (1 << 11); in cpu_probe() 64 boot_cpu_data.dcache.entry_mask = 0x7f0; in cpu_probe() 65 boot_cpu_data.dcache.sets = 128; in cpu_probe() 70 boot_cpu_data.dcache.way_incr = (1 << 12); in cpu_probe() 71 boot_cpu_data.dcache.entry_mask = 0xff0; in cpu_probe() 72 boot_cpu_data.dcache.sets = 256; in cpu_probe() [all …]
|
/Linux-v4.19/arch/sh/kernel/cpu/ |
D | init.c | 131 waysize = current_cpu_data.dcache.sets; in cache_init() 142 waysize <<= current_cpu_data.dcache.entry_shift; in cache_init() 150 ways = current_cpu_data.dcache.ways; in cache_init() 158 addr += current_cpu_data.dcache.linesz) in cache_init() 161 addrstart += current_cpu_data.dcache.way_incr; in cache_init() 173 if (current_cpu_data.dcache.ways > 1) in cache_init() 207 l1d_cache_shape = CACHE_DESC_SHAPE(current_cpu_data.dcache); in detect_cache_shape() 209 if (current_cpu_data.dcache.flags & SH_CACHE_COMBINED) in detect_cache_shape() 316 current_cpu_data.dcache.entry_mask = current_cpu_data.dcache.way_incr - in cpu_init() 317 current_cpu_data.dcache.linesz; in cpu_init() [all …]
|
/Linux-v4.19/arch/sh/mm/ |
D | cache-sh7705.c | 36 ways = current_cpu_data.dcache.ways; in cache_wback_all() 37 waysize = current_cpu_data.dcache.sets; in cache_wback_all() 38 waysize <<= current_cpu_data.dcache.entry_shift; in cache_wback_all() 47 addr += current_cpu_data.dcache.linesz) { in cache_wback_all() 58 addrstart += current_cpu_data.dcache.way_incr; in cache_wback_all() 104 ways = current_cpu_data.dcache.ways; in __flush_dcache_page() 105 waysize = current_cpu_data.dcache.sets; in __flush_dcache_page() 106 waysize <<= current_cpu_data.dcache.entry_shift; in __flush_dcache_page() 115 addr += current_cpu_data.dcache.linesz) { in __flush_dcache_page() 125 addrstart += current_cpu_data.dcache.way_incr; in __flush_dcache_page()
|
D | cache.c | 65 if (boot_cpu_data.dcache.n_aliases && page_mapcount(page) && in copy_to_user_page() 72 if (boot_cpu_data.dcache.n_aliases) in copy_to_user_page() 84 if (boot_cpu_data.dcache.n_aliases && page_mapcount(page) && in copy_from_user_page() 91 if (boot_cpu_data.dcache.n_aliases) in copy_from_user_page() 103 if (boot_cpu_data.dcache.n_aliases && page_mapcount(from) && in copy_user_highpage() 143 if (!boot_cpu_data.dcache.n_aliases) in __update_cache() 159 if (boot_cpu_data.dcache.n_aliases && page_mapcount(page) && in __flush_anon_page() 180 if (boot_cpu_data.dcache.n_aliases == 0) in flush_cache_mm() 188 if (boot_cpu_data.dcache.n_aliases == 0) in flush_cache_dup_mm() 269 boot_cpu_data.dcache.ways, in emit_cache_params() [all …]
|
D | cache-sh4.c | 154 (current_cpu_data.dcache.sets << in flush_dcache_all() 155 current_cpu_data.dcache.entry_shift) * in flush_dcache_all() 156 current_cpu_data.dcache.ways; in flush_dcache_all() 158 entry_offset = 1 << current_cpu_data.dcache.entry_shift; in flush_dcache_all() 242 map_coherent = (current_cpu_data.dcache.n_aliases && in sh4_flush_cache_page() 293 if (boot_cpu_data.dcache.n_aliases == 0) in sh4_flush_cache_range() 321 struct cache_info *dcache; in __flush_cache_one() local 326 dcache = &boot_cpu_data.dcache; in __flush_cache_one() 328 way_count = dcache->ways; in __flush_cache_one() 329 way_incr = dcache->way_incr; in __flush_cache_one()
|
D | cache-sh5.c | 249 cpu_data->dcache.entry_mask) >> in sh64_dcache_purge_sets() 250 cpu_data->dcache.entry_shift; in sh64_dcache_purge_sets() 254 set_offset &= (cpu_data->dcache.sets - 1); in sh64_dcache_purge_sets() 256 (set_offset << cpu_data->dcache.entry_shift); in sh64_dcache_purge_sets() 265 eaddr1 = eaddr0 + cpu_data->dcache.way_size * in sh64_dcache_purge_sets() 266 cpu_data->dcache.ways; in sh64_dcache_purge_sets() 269 eaddr += cpu_data->dcache.way_size) { in sh64_dcache_purge_sets() 274 eaddr1 = eaddr0 + cpu_data->dcache.way_size * in sh64_dcache_purge_sets() 275 cpu_data->dcache.ways; in sh64_dcache_purge_sets() 278 eaddr += cpu_data->dcache.way_size) { in sh64_dcache_purge_sets() [all …]
|
D | cache-sh3.c | 47 for (j = 0; j < current_cpu_data.dcache.ways; j++) { in sh3__flush_wback_region() 51 addr = addrstart | (v & current_cpu_data.dcache.entry_mask); in sh3__flush_wback_region() 63 addrstart += current_cpu_data.dcache.way_incr; in sh3__flush_wback_region() 88 (v & current_cpu_data.dcache.entry_mask) | SH_CACHE_ASSOC; in sh3__flush_purge_region()
|
D | cache-shx3.c | 27 if (boot_cpu_data.dcache.n_aliases || boot_cpu_data.icache.n_aliases) { in shx3_cache_init() 31 boot_cpu_data.dcache.n_aliases = 0; in shx3_cache_init()
|
D | cache-sh2a.c | 61 nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_wback_region() 69 end = begin + (nr_ways * current_cpu_data.dcache.way_size); in sh2a__flush_wback_region() 108 int nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_purge_region()
|
/Linux-v4.19/arch/sh/kernel/cpu/sh4/ |
D | probe.c | 47 boot_cpu_data.dcache.way_incr = (1 << 14); in cpu_probe() 48 boot_cpu_data.dcache.entry_shift = 5; in cpu_probe() 49 boot_cpu_data.dcache.sets = 512; in cpu_probe() 50 boot_cpu_data.dcache.ways = 1; in cpu_probe() 51 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe() 71 boot_cpu_data.dcache.ways = 4; in cpu_probe() 175 boot_cpu_data.dcache.ways = 2; in cpu_probe() 180 boot_cpu_data.dcache.ways = 2; in cpu_probe() 196 boot_cpu_data.dcache.ways = 2; in cpu_probe() 213 if (boot_cpu_data.dcache.ways > 1) { in cpu_probe() [all …]
|
/Linux-v4.19/arch/sh/kernel/cpu/sh2a/ |
D | probe.c | 46 boot_cpu_data.dcache.ways = 4; in cpu_probe() 47 boot_cpu_data.dcache.way_incr = (1 << 11); in cpu_probe() 48 boot_cpu_data.dcache.sets = 128; in cpu_probe() 49 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe() 50 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe() 51 boot_cpu_data.dcache.flags = 0; in cpu_probe() 59 boot_cpu_data.icache = boot_cpu_data.dcache; in cpu_probe()
|
/Linux-v4.19/arch/mips/include/asm/ |
D | r4kcache.h | 632 __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 16, ) 635 __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 32, ) 639 __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 64, ) 642 __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 128, ) 646 __BUILD_BLAST_CACHE(inv_d, dcache, Index_Writeback_Inv_D, Hit_Invalidate_D, 16, ) 647 __BUILD_BLAST_CACHE(inv_d, dcache, Index_Writeback_Inv_D, Hit_Invalidate_D, 32, ) 669 __BUILD_BLAST_USER_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 672 __BUILD_BLAST_USER_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 675 __BUILD_BLAST_USER_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 702 __BUILD_BLAST_CACHE_RANGE(d, dcache, Hit_Writeback_Inv_D, protected_, ) [all …]
|
/Linux-v4.19/arch/sh/kernel/cpu/sh5/ |
D | probe.c | 62 boot_cpu_data.dcache = boot_cpu_data.icache; in cpu_probe() 68 set_bit(SH_CACHE_MODE_WT, &(boot_cpu_data.dcache.flags)); in cpu_probe() 70 set_bit(SH_CACHE_MODE_WB, &(boot_cpu_data.dcache.flags)); in cpu_probe()
|
/Linux-v4.19/Documentation/filesystems/nfs/ |
D | Exporting | 33 The dcache normally contains a proper prefix of any given filesystem 34 tree. This means that if any filesystem object is in the dcache, then 35 all of the ancestors of that filesystem object are also in the dcache. 40 However when objects are included into the dcache by interpreting a 43 the dcache that are not needed for normal filesystem access. 45 1/ The dcache must sometimes contain objects that are not part of the 47 2/ The dcache must be prepared for a newly found (via ->lookup) directory 51 it is a dcache invariant that directories only have one dentry. 53 To implement these features, the dcache has: 61 kept in the dcache. If a dentry that is not already in the dcache [all …]
|
/Linux-v4.19/arch/mips/kernel/ |
D | cacheinfo.c | 41 if (c->dcache.waysize) in __init_cache_level() 71 populate_cache(dcache, this_leaf, 1, CACHE_TYPE_DATA); in __populate_cache_leaves() 74 populate_cache(dcache, this_leaf, 1, CACHE_TYPE_UNIFIED); in __populate_cache_leaves()
|
/Linux-v4.19/Documentation/devicetree/bindings/nios2/ |
D | nios2.txt | 17 - dcache-line-size: Contains data cache line size. 19 - dcache-size: Contains data cache size. 46 dcache-line-size = <32>; 48 dcache-size = <32768>;
|
/Linux-v4.19/arch/powerpc/perf/ |
D | power8-pmu.c | 136 CACHE_EVENT_ATTR(L1-dcache-load-misses, PM_LD_MISS_L1); 137 CACHE_EVENT_ATTR(L1-dcache-loads, PM_LD_REF_L1); 139 CACHE_EVENT_ATTR(L1-dcache-prefetches, PM_L1_PREF); 140 CACHE_EVENT_ATTR(L1-dcache-store-misses, PM_ST_MISS_L1);
|
D | power9-pmu.c | 172 CACHE_EVENT_ATTR(L1-dcache-load-misses, PM_LD_MISS_L1_FIN); 173 CACHE_EVENT_ATTR(L1-dcache-loads, PM_LD_REF_L1); 174 CACHE_EVENT_ATTR(L1-dcache-prefetches, PM_L1_PREF); 175 CACHE_EVENT_ATTR(L1-dcache-store-misses, PM_ST_MISS_L1);
|
/Linux-v4.19/Documentation/filesystems/ |
D | path-lookup.txt | 16 Prior to 2.5.10, dcache_lock was acquired in d_lookup (dcache hash lookup) and 22 Since 2.5.62 kernel, dcache has been using a new locking model that uses RCU to 23 make dcache look-up lock-free. 35 (including dcache look-up) completely "store-free" (so, no locks, atomics, or 69 - perform dcache hash name lookups on (parent, name element) tuples; 74 Safe store-free look-up of dcache hash table 79 In order to lookup a dcache (parent, name) tuple, we take a hash on the tuple 80 and use that to select a bucket in the dcache-hash table. The list of entries 88 Parent and name members of a dentry, as well as its membership in the dcache 177 In refcount based dcache lookups, d_lock is used to serialise access to [all …]
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | cacheinfo.c | 366 struct cache *dcache, *icache; in cache_do_one_devnode_split() local 371 dcache = new_cache(CACHE_TYPE_DATA, level, node); in cache_do_one_devnode_split() 374 if (!dcache || !icache) in cache_do_one_devnode_split() 377 dcache->next_local = icache; in cache_do_one_devnode_split() 379 return dcache; in cache_do_one_devnode_split() 381 release_cache(dcache); in cache_do_one_devnode_split()
|
/Linux-v4.19/arch/microblaze/boot/dts/ |
D | system.dts | 69 xlnx,allow-dcache-wr = <0x1>; 77 xlnx,dcache-addr-tag = <0xf>; 78 xlnx,dcache-always-used = <0x1>; 79 xlnx,dcache-byte-size = <0x2000>; 80 xlnx,dcache-line-len = <0x4>; 81 xlnx,dcache-use-fsl = <0x1>; 119 xlnx,use-dcache = <0x1>;
|