Lines Matching +full:d +full:- +full:cache +full:- +full:sets
1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/sh/mm/cache.c
6 * Copyright (C) 2002 - 2010 Paul Mundt
44 /* Needing IPI for cross-core flush is SHX3-specific. */ in cacheop_on_each_cpu()
65 test_bit(PG_dcache_clean, &page->flags)) { in copy_to_user_page()
72 clear_bit(PG_dcache_clean, &page->flags); in copy_to_user_page()
75 if (vma->vm_flags & VM_EXEC) in copy_to_user_page()
84 test_bit(PG_dcache_clean, &page->flags)) { in copy_from_user_page()
91 clear_bit(PG_dcache_clean, &page->flags); in copy_from_user_page()
103 test_bit(PG_dcache_clean, &from->flags)) { in copy_user_highpage()
114 (vma->vm_flags & VM_EXEC)) in copy_user_highpage()
147 int dirty = !test_and_set_bit(PG_dcache_clean, &page->flags); in __update_cache()
159 test_bit(PG_dcache_clean, &page->flags)) { in __flush_anon_page()
250 c->alias_mask = ((c->sets - 1) << c->entry_shift) & ~(PAGE_SIZE - 1); in compute_alias()
252 c->alias_mask = 0; in compute_alias()
254 c->n_aliases = c->alias_mask ? (c->alias_mask >> PAGE_SHIFT) + 1 : 0; in compute_alias()
259 printk(KERN_NOTICE "I-cache : n_ways=%d n_sets=%d way_incr=%d\n", in emit_cache_params()
261 boot_cpu_data.icache.sets, in emit_cache_params()
263 printk(KERN_NOTICE "I-cache : entry_mask=0x%08x alias_mask=0x%08x n_aliases=%d\n", in emit_cache_params()
267 printk(KERN_NOTICE "D-cache : n_ways=%d n_sets=%d way_incr=%d\n", in emit_cache_params()
269 boot_cpu_data.dcache.sets, in emit_cache_params()
271 printk(KERN_NOTICE "D-cache : entry_mask=0x%08x alias_mask=0x%08x n_aliases=%d\n", in emit_cache_params()
277 * Emit Secondary Cache parameters if the CPU has a probed L2. in emit_cache_params()
280 printk(KERN_NOTICE "S-cache : n_ways=%d n_sets=%d way_incr=%d\n", in emit_cache_params()
282 boot_cpu_data.scache.sets, in emit_cache_params()
284 printk(KERN_NOTICE "S-cache : entry_mask=0x%08x alias_mask=0x%08x n_aliases=%d\n", in emit_cache_params()
308 * No flushing is necessary in the disabled cache case so we can in cpu_cache_init()
336 (boot_cpu_data.dcache.sets == 512)) { in cpu_cache_init()