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

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * linux/arch/arm/mm/proc-arm1022.S: MMU functions for ARM1022E
7 * hacked for non-paged-MM by Hyok S. Choi, 2003.
16 #include <asm/asm-offsets.h>
18 #include <asm/pgtable-hwdef.h>
21 #include "proc-macros.S"
25 * using the single invalidate entry instructions. Anything larger
59 ENTRY(cpu_arm1022_proc_init)
65 ENTRY(cpu_arm1022_proc_fin)
83 ENTRY(cpu_arm1022_reset)
102 ENTRY(cpu_arm1022_do_idle)
115 ENTRY(arm1022_flush_icache_all)
126 * Invalidate all cache entries in a particular address
129 ENTRY(arm1022_flush_user_cache_all)
136 ENTRY(arm1022_flush_kern_cache_all)
141 mov r1, #(CACHE_DSEGMENTS - 1) << 5 @ 16 segments
142 1: orr r3, r1, #(CACHE_DENTRIES - 1) << 26 @ 64 entries
160 * address space.
162 * - start - start address (inclusive)
163 * - end - end address (exclusive)
164 * - flags - vm_flags for this space
166 ENTRY(arm1022_flush_user_cache_range)
173 1: mcr p15, 0, r0, c7, c14, 1 @ clean+invalidate D entry
189 * region described by start. If you have non-snooping
192 * - start - virtual start address
193 * - end - virtual end address
195 ENTRY(arm1022_coherent_kern_range)
202 * region described by start. If you have non-snooping
205 * - start - virtual start address
206 * - end - virtual end address
208 ENTRY(arm1022_coherent_user_range)
210 bic r0, r0, #CACHE_DLINESIZE - 1
213 mcr p15, 0, r0, c7, c10, 1 @ clean D entry
216 mcr p15, 0, r0, c7, c5, 1 @ invalidate I entry
231 * - addr - kernel address
232 * - size - region size
234 ENTRY(arm1022_flush_kern_dcache_area)
238 1: mcr p15, 0, r0, c7, c14, 1 @ clean+invalidate D entry
249 * Invalidate (discard) the specified virtual address range.
254 * - start - virtual start address
255 * - end - virtual end address
262 tst r0, #CACHE_DLINESIZE - 1
263 bic r0, r0, #CACHE_DLINESIZE - 1
264 mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
265 tst r1, #CACHE_DLINESIZE - 1
266 mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
267 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
278 * Clean the specified virtual address range.
280 * - start - virtual start address
281 * - end - virtual end address
288 bic r0, r0, #CACHE_DLINESIZE - 1
289 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
300 * Clean and invalidate the specified virtual address range.
302 * - start - virtual start address
303 * - end - virtual end address
305 ENTRY(arm1022_dma_flush_range)
308 bic r0, r0, #CACHE_DLINESIZE - 1
309 1: mcr p15, 0, r0, c7, c14, 1 @ clean+invalidate D entry
319 * - start - kernel virtual start address
320 * - size - size of region
321 * - dir - DMA direction
323 ENTRY(arm1022_dma_map_area)
333 * - start - kernel virtual start address
334 * - size - size of region
335 * - dir - DMA direction
337 ENTRY(arm1022_dma_unmap_area)
344 @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S)
348 ENTRY(cpu_arm1022_dcache_clean_area)
351 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
368 ENTRY(cpu_arm1022_switch_mm)
371 mov r1, #(CACHE_DSEGMENTS - 1) << 5 @ 16 segments
372 1: orr r3, r1, #(CACHE_DENTRIES - 1) << 26 @ 64 entries
395 ENTRY(cpu_arm1022_set_pte_ext)
400 mcr p15, 0, r0, c7, c10, 1 @ clean D entry
422 .size __arm1022_setup, . - __arm1022_setup
435 @ define struct processor (see <asm/proc-fns.h> and proc-macros.S)
469 .size __arm1022_proc_info, . - __arm1022_proc_info