Lines Matching +full:write +full:- +full:back

1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/sh/mm/cache-sh2a.c
47 * Write back the dirty D-caches, but not invalidate them.
57 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2a__flush_wback_region()
58 end = ((unsigned long)start + size + L1_CACHE_BYTES-1) in sh2a__flush_wback_region()
59 & ~(L1_CACHE_BYTES-1); in sh2a__flush_wback_region()
66 if (((end - begin) >> PAGE_SHIFT) >= MAX_OCACHE_PAGES) { in sh2a__flush_wback_region()
89 * Write back the dirty D-caches and invalidate them.
97 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2a__flush_purge_region()
98 end = ((unsigned long)start + size + L1_CACHE_BYTES-1) in sh2a__flush_purge_region()
99 & ~(L1_CACHE_BYTES-1); in sh2a__flush_purge_region()
119 * Invalidate the D-caches, but no write back please
127 begin = (unsigned long)start & ~(L1_CACHE_BYTES-1); in sh2a__flush_invalidate_region()
128 end = ((unsigned long)start + size + L1_CACHE_BYTES-1) in sh2a__flush_invalidate_region()
129 & ~(L1_CACHE_BYTES-1); in sh2a__flush_invalidate_region()
135 if (((end - begin) >> PAGE_SHIFT) >= MAX_OCACHE_PAGES) { in sh2a__flush_invalidate_region()
148 * Write back the range of D-cache, and purge the I-cache.
157 start = data->addr1 & ~(L1_CACHE_BYTES-1); in sh2a_flush_icache_range()
158 end = (data->addr2 + L1_CACHE_BYTES-1) & ~(L1_CACHE_BYTES-1); in sh2a_flush_icache_range()
161 sh2a__flush_wback_region((void *)start, end-start); in sh2a_flush_icache_range()
167 /* I-Cache invalidate */ in sh2a_flush_icache_range()
169 if (((end - start) >> PAGE_SHIFT) >= MAX_ICACHE_PAGES) { in sh2a_flush_icache_range()