Lines Matching +full:entry +full:- +full:address

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/mm/cache-fa.S
6 * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
8 * Based on cache-v4wb.S:
9 * Copyright (C) 1997-2002 Russell king
18 #include "proc-macros.S"
42 ENTRY(fa_flush_icache_all)
51 * Clean and invalidate all cache entries in a particular address
54 ENTRY(fa_flush_user_cache_all)
61 ENTRY(fa_flush_kern_cache_all)
77 * address space.
79 * - start - start address (inclusive, page aligned)
80 * - end - end address (exclusive, page aligned)
81 * - flags - vma_area_struct flags describing address space
83 ENTRY(fa_flush_user_cache_range)
91 mcr p15, 0, r0, c7, c14, 1 @ clean and invalidate D entry
105 * region described by start. If you have non-snooping
108 * - start - virtual start address
109 * - end - virtual end address
111 ENTRY(fa_coherent_kern_range)
118 * region described by start. If you have non-snooping
121 * - start - virtual start address
122 * - end - virtual end address
124 ENTRY(fa_coherent_user_range)
125 bic r0, r0, #CACHE_DLINESIZE - 1
126 1: mcr p15, 0, r0, c7, c14, 1 @ clean and invalidate D entry
127 mcr p15, 0, r0, c7, c5, 1 @ invalidate I entry
143 * - addr - kernel address
144 * - size - size of region
146 ENTRY(fa_flush_kern_dcache_area)
160 * Invalidate (discard) the specified virtual address range.
165 * - start - virtual start address
166 * - end - virtual end address
169 tst r0, #CACHE_DLINESIZE - 1
170 bic r0, r0, #CACHE_DLINESIZE - 1
171 mcrne p15, 0, r0, c7, c14, 1 @ clean & invalidate D entry
172 tst r1, #CACHE_DLINESIZE - 1
173 bic r1, r1, #CACHE_DLINESIZE - 1
174 mcrne p15, 0, r1, c7, c14, 1 @ clean & invalidate D entry
175 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
186 * Clean (write back) the specified virtual address range.
188 * - start - virtual start address
189 * - end - virtual end address
192 bic r0, r0, #CACHE_DLINESIZE - 1
193 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
203 * - start - virtual start address of region
204 * - end - virtual end address of region
206 ENTRY(fa_dma_flush_range)
207 bic r0, r0, #CACHE_DLINESIZE - 1
208 1: mcr p15, 0, r0, c7, c14, 1 @ clean & invalidate D entry
218 * - start - kernel virtual start address
219 * - size - size of region
220 * - dir - DMA direction
222 ENTRY(fa_dma_map_area)
232 * - start - kernel virtual start address
233 * - size - size of region
234 * - dir - DMA direction
236 ENTRY(fa_dma_unmap_area)
245 @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S)