Lines Matching +full:left +full:- +full:shifted

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/mm/cache-v7.S
16 #include <asm/hardware/cache-b15-rac.h>
18 #include "proc-macros.S"
20 .arch armv7-a
52 mov r3, r3, lsl r1 @ NumWays-1 shifted into bits [31:...]
53 movs r1, r2, lsl r1 @ #1 shifted left by same amount
65 subs r0, r0, #1 @ Set--
67 subs r3, r3, r1 @ Way--
69 mrc p15, 1, r0, c0, c0, 0 @ re-read cache geometry from CCSIDR
79 * Flush the whole I-cache.
82 * r0 - set to 0
86 ALT_SMP(mcr p15, 0, r0, c7, c1, 0) @ invalidate I-cache inner shareable
94 * Flush the D-cache up to the Level of Unification Inner Shareable
96 * Corrupted registers: r0-r6, r9-r10
121 * Flush the whole D-cache.
123 * Corrupted registers: r0-r6, r9-r10
125 * - mm - mm_struct describing address space
140 blt skip @ skip if no cache, or just i-cache
158 movne r4, r4, lsl r5 @ # of ways shifted into bits [31:...]
159 movne r6, r6, lsl r5 @ 1 shifted left by same amount
198 stmfd sp!, {r4-r6, r9-r10, lr}
201 ALT_SMP(mcr p15, 0, r0, c7, c1, 0) @ invalidate I-cache inner shareable
203 ldmfd sp!, {r4-r6, r9-r10, lr}
211 * Invalidate the I-cache to the point of unification.
214 stmfd sp!, {r4-r6, r9-r10, lr}
217 ALT_SMP(mcr p15, 0, r0, c7, c1, 0) @ invalidate I-cache inner shareable
219 ldmfd sp!, {r4-r6, r9-r10, lr}
228 * - mm - mm_struct describing address space
239 * - start - start address (may not be aligned)
240 * - end - end address (exclusive, may not be aligned)
241 * - flags - vm_area_struct flags describing address space
244 * - we have a VIPT cache.
257 * - start - virtual start address of region
258 * - end - virtual end address of region
261 * - the Icache does not read data from the write buffer
276 * - start - virtual start address of region
277 * - end - virtual end address of region
280 * - the Icache does not read data from the write buffer
319 * isn't mapped, fail with -EFAULT.
325 mov r0, #-EFAULT
336 * - addr - kernel address
337 * - size - region size
364 * - start - virtual start address of region
365 * - end - virtual end address of region
394 * - start - virtual start address of region
395 * - end - virtual end address of region
416 * - start - virtual start address of region
417 * - end - virtual end address of region
438 * - start - kernel virtual start address
439 * - size - size of region
440 * - dir - DMA direction
451 * - start - kernel virtual start address
452 * - size - size of region
453 * - dir - DMA direction