Home
last modified time | relevance | path

Searched refs:dcache (Results 1 – 25 of 71) sorted by relevance

123

/linux-6.3-rc2/arch/mips/mm/
A Dc-octeon.c189 c->dcache.ways = 64; in probe_octeon()
191 c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
192 c->dcache.waybit = ffs(dcache_size / c->dcache.ways) - 1; in probe_octeon()
204 c->dcache.ways = 32; in probe_octeon()
205 c->dcache.sets = 8; in probe_octeon()
206 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
219 c->dcache.sets = 8; in probe_octeon()
220 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_octeon()
231 c->dcache.waysize = dcache_size / c->dcache.ways; in probe_octeon()
234 c->dcache.sets = dcache_size / (c->dcache.linesz * c->dcache.ways); in probe_octeon()
[all …]
A Dc-r4k.c1125 c->dcache.ways = 2; in probe_pcache()
1139 c->dcache.ways = 2; in probe_pcache()
1153 c->dcache.ways = 4; in probe_pcache()
1208 c->dcache.waybit = __ffs(dcache_size / c->dcache.ways); in probe_pcache()
1274 dcache_size = c->dcache.sets * c->dcache.ways * c->dcache.linesz; in probe_pcache()
1326 c->dcache.waybit = __ffs(dcache_size/c->dcache.ways); in probe_pcache()
1348 c->dcache.waysize = dcache_size / c->dcache.ways; in probe_pcache()
1352 c->dcache.sets = c->dcache.linesz ? in probe_pcache()
1353 dcache_size / (c->dcache.linesz * c->dcache.ways) : 0; in probe_pcache()
1461 c->dcache.linesz); in probe_pcache()
[all …]
/linux-6.3-rc2/arch/sh/kernel/cpu/sh2/
A Dprobe.c34 boot_cpu_data.dcache.ways = 4; in cpu_probe()
35 boot_cpu_data.dcache.way_incr = (1<<12); in cpu_probe()
36 boot_cpu_data.dcache.sets = 256; in cpu_probe()
37 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe()
39 boot_cpu_data.dcache.flags = 0; in cpu_probe()
56 boot_cpu_data.dcache.ways = 1; in cpu_probe()
57 boot_cpu_data.dcache.sets = 256; in cpu_probe()
58 boot_cpu_data.dcache.entry_shift = 5; in cpu_probe()
59 boot_cpu_data.dcache.linesz = 32; in cpu_probe()
60 boot_cpu_data.dcache.flags = 0; in cpu_probe()
[all …]
/linux-6.3-rc2/arch/sh/kernel/cpu/sh3/
A Dprobe.c50 boot_cpu_data.dcache.ways = 4; in cpu_probe()
51 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe()
53 boot_cpu_data.dcache.flags = 0; in cpu_probe()
60 boot_cpu_data.dcache.way_incr = (1 << 11); in cpu_probe()
61 boot_cpu_data.dcache.entry_mask = 0x7f0; in cpu_probe()
62 boot_cpu_data.dcache.sets = 128; in cpu_probe()
67 boot_cpu_data.dcache.way_incr = (1 << 12); in cpu_probe()
68 boot_cpu_data.dcache.entry_mask = 0xff0; in cpu_probe()
69 boot_cpu_data.dcache.sets = 256; in cpu_probe()
92 boot_cpu_data.dcache.entry_mask = 0x1ff0; in cpu_probe()
[all …]
/linux-6.3-rc2/arch/sh/kernel/cpu/
A Dinit.c128 waysize = current_cpu_data.dcache.sets; in cache_init()
139 waysize <<= current_cpu_data.dcache.entry_shift; in cache_init()
147 ways = current_cpu_data.dcache.ways; in cache_init()
155 addr += current_cpu_data.dcache.linesz) in cache_init()
158 addrstart += current_cpu_data.dcache.way_incr; in cache_init()
170 if (current_cpu_data.dcache.ways > 1) in cache_init()
313 current_cpu_data.dcache.entry_mask = current_cpu_data.dcache.way_incr - in cpu_init()
314 current_cpu_data.dcache.linesz; in cpu_init()
316 current_cpu_data.dcache.way_size = current_cpu_data.dcache.sets * in cpu_init()
317 current_cpu_data.dcache.linesz; in cpu_init()
[all …]
/linux-6.3-rc2/arch/sh/mm/
A Dcache-sh7705.c35 ways = current_cpu_data.dcache.ways; in cache_wback_all()
36 waysize = current_cpu_data.dcache.sets; in cache_wback_all()
37 waysize <<= current_cpu_data.dcache.entry_shift; in cache_wback_all()
46 addr += current_cpu_data.dcache.linesz) { in cache_wback_all()
57 addrstart += current_cpu_data.dcache.way_incr; in cache_wback_all()
103 ways = current_cpu_data.dcache.ways; in __flush_dcache_page()
104 waysize = current_cpu_data.dcache.sets; in __flush_dcache_page()
105 waysize <<= current_cpu_data.dcache.entry_shift; in __flush_dcache_page()
114 addr += current_cpu_data.dcache.linesz) { in __flush_dcache_page()
124 addrstart += current_cpu_data.dcache.way_incr; in __flush_dcache_page()
A Dcache.c71 if (boot_cpu_data.dcache.n_aliases) in copy_to_user_page()
90 if (boot_cpu_data.dcache.n_aliases) in copy_from_user_page()
142 if (!boot_cpu_data.dcache.n_aliases) in __update_cache()
179 if (boot_cpu_data.dcache.n_aliases == 0) in flush_cache_mm()
268 boot_cpu_data.dcache.ways, in emit_cache_params()
269 boot_cpu_data.dcache.sets, in emit_cache_params()
270 boot_cpu_data.dcache.way_incr); in emit_cache_params()
272 boot_cpu_data.dcache.entry_mask, in emit_cache_params()
273 boot_cpu_data.dcache.alias_mask, in emit_cache_params()
274 boot_cpu_data.dcache.n_aliases); in emit_cache_params()
[all …]
A Dcache-sh4.c154 (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()
238 map_coherent = (current_cpu_data.dcache.n_aliases && in sh4_flush_cache_page()
289 if (boot_cpu_data.dcache.n_aliases == 0) in sh4_flush_cache_range()
317 struct cache_info *dcache; in __flush_cache_one() local
322 dcache = &boot_cpu_data.dcache; in __flush_cache_one()
324 way_count = dcache->ways; in __flush_cache_one()
325 way_incr = dcache->way_incr; in __flush_cache_one()
A Dcache-sh3.c44 for (j = 0; j < current_cpu_data.dcache.ways; j++) { in sh3__flush_wback_region()
48 addr = addrstart | (v & current_cpu_data.dcache.entry_mask); in sh3__flush_wback_region()
60 addrstart += current_cpu_data.dcache.way_incr; in sh3__flush_wback_region()
85 (v & current_cpu_data.dcache.entry_mask) | SH_CACHE_ASSOC; in sh3__flush_purge_region()
A Dcache-shx3.c27 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()
A Dcache-sh2a.c60 nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_wback_region()
68 end = begin + (nr_ways * current_cpu_data.dcache.way_size); in sh2a__flush_wback_region()
107 int nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_purge_region()
/linux-6.3-rc2/arch/sh/kernel/cpu/sh4/
A Dprobe.c44 boot_cpu_data.dcache.way_incr = (1 << 14); in cpu_probe()
45 boot_cpu_data.dcache.entry_shift = 5; in cpu_probe()
46 boot_cpu_data.dcache.sets = 512; in cpu_probe()
47 boot_cpu_data.dcache.ways = 1; in cpu_probe()
48 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe()
68 boot_cpu_data.dcache.ways = 4; in cpu_probe()
172 boot_cpu_data.dcache.ways = 2; in cpu_probe()
177 boot_cpu_data.dcache.ways = 2; in cpu_probe()
193 boot_cpu_data.dcache.ways = 2; in cpu_probe()
210 if (boot_cpu_data.dcache.ways > 1) { in cpu_probe()
[all …]
/linux-6.3-rc2/arch/sh/kernel/cpu/sh2a/
A Dprobe.c43 boot_cpu_data.dcache.ways = 4; in cpu_probe()
44 boot_cpu_data.dcache.way_incr = (1 << 11); in cpu_probe()
45 boot_cpu_data.dcache.sets = 128; in cpu_probe()
46 boot_cpu_data.dcache.entry_shift = 4; in cpu_probe()
47 boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; in cpu_probe()
48 boot_cpu_data.dcache.flags = 0; in cpu_probe()
56 boot_cpu_data.icache = boot_cpu_data.dcache; in cpu_probe()
/linux-6.3-rc2/arch/mips/include/asm/
A Dr4kcache.h240 __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 16, )
243 __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 32, )
247 __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 64, )
250 __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 128, )
254 __BUILD_BLAST_CACHE(inv_d, dcache, Index_Writeback_Inv_D, Hit_Invalidate_D, 16, )
273 __BUILD_BLAST_USER_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D,
276 __BUILD_BLAST_USER_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D,
279 __BUILD_BLAST_USER_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D,
300 __BUILD_BLAST_CACHE_RANGE(d, dcache, Hit_Writeback_Inv_D, protected_, )
305 __BUILD_BLAST_CACHE_RANGE(d, dcache, Hit_Writeback_Inv_D, , )
[all …]
/linux-6.3-rc2/Documentation/devicetree/bindings/nios2/
A Dnios2.txt17 - 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-6.3-rc2/arch/mips/kernel/
A Dcacheinfo.c30 if (c->dcache.waysize) in init_cache_level()
87 populate_cache(dcache, this_leaf, level, CACHE_TYPE_DATA); in populate_cache_leaves()
92 populate_cache(dcache, this_leaf, level, CACHE_TYPE_UNIFIED); in populate_cache_leaves()
/linux-6.3-rc2/Documentation/filesystems/nfs/
A Dexporting.rst34 The dcache normally contains a proper prefix of any given filesystem
35 tree. This means that if any filesystem object is in the dcache, then
36 all of the ancestors of that filesystem object are also in the dcache.
41 However when objects are included into the dcache by interpreting a
44 the dcache that are not needed for normal filesystem access.
46 1. The dcache must sometimes contain objects that are not part of the
48 2. The dcache must be prepared for a newly found (via ->lookup) directory
52 it is a dcache invariant that directories only have one dentry.
54 To implement these features, the dcache has:
62 kept in the dcache. If a dentry that is not already in the dcache
[all …]
/linux-6.3-rc2/arch/powerpc/perf/
A Dpower8-pmu.c133 CACHE_EVENT_ATTR(L1-dcache-load-misses, PM_LD_MISS_L1);
134 CACHE_EVENT_ATTR(L1-dcache-loads, PM_LD_REF_L1);
136 CACHE_EVENT_ATTR(L1-dcache-prefetches, PM_L1_PREF);
137 CACHE_EVENT_ATTR(L1-dcache-store-misses, PM_ST_MISS_L1);
A Dpower9-pmu.c177 CACHE_EVENT_ATTR(L1-dcache-load-misses, PM_LD_MISS_L1_FIN);
178 CACHE_EVENT_ATTR(L1-dcache-loads, PM_LD_REF_L1);
179 CACHE_EVENT_ATTR(L1-dcache-prefetches, PM_L1_PREF);
180 CACHE_EVENT_ATTR(L1-dcache-store-misses, PM_ST_MISS_L1);
A Dpower10-pmu.c133 CACHE_EVENT_ATTR(L1-dcache-load-misses, PM_LD_MISS_L1);
134 CACHE_EVENT_ATTR(L1-dcache-loads, PM_LD_REF_L1);
135 CACHE_EVENT_ATTR(L1-dcache-prefetches, PM_LD_PREFETCH_CACHE_LINE_MISS);
136 CACHE_EVENT_ATTR(L1-dcache-store-misses, PM_ST_MISS_L1);
/linux-6.3-rc2/arch/microblaze/boot/dts/
A Dsystem.dts54 xlnx,allow-dcache-wr = <0x1>;
62 xlnx,dcache-addr-tag = <0xf>;
63 xlnx,dcache-always-used = <0x1>;
64 xlnx,dcache-byte-size = <0x2000>;
65 xlnx,dcache-line-len = <0x4>;
66 xlnx,dcache-use-fsl = <0x1>;
104 xlnx,use-dcache = <0x1>;
/linux-6.3-rc2/Documentation/filesystems/
A Dpath-lookup.txt16 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
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
213 is the traditional[*] way of performing dcache lookups using d_lock to
375 Papers and other documentation on dcache locking
[all …]
A Dapi-summary.rst20 .. kernel-doc:: fs/dcache.c
23 .. kernel-doc:: include/linux/dcache.h
/linux-6.3-rc2/arch/powerpc/kernel/
A Dcacheinfo.c372 struct cache *dcache, *icache; in cache_do_one_devnode_split() local
377 dcache = new_cache(CACHE_TYPE_DATA, level, node, group_id); in cache_do_one_devnode_split()
380 if (!dcache || !icache) in cache_do_one_devnode_split()
383 dcache->next_local = icache; in cache_do_one_devnode_split()
385 return dcache; in cache_do_one_devnode_split()
387 release_cache(dcache); in cache_do_one_devnode_split()
/linux-6.3-rc2/arch/nios2/boot/dts/
A D3c120_devboard.dts27 dcache-line-size = <32>;
29 dcache-size = <32768>;

Completed in 33 milliseconds

123