Lines Matching +full:word +full:- +full:size
1 /* SPDX-License-Identifier: GPL-2.0 */
8 #include <asm/asm-offsets.h>
17 * vma_vm_mm - get mm pointer from vma pointer (vma->vm_mm)
24 * vma_vm_flags - get vma->vm_flags
31 * act_mm - get current->active_mm
42 * mmid - get context id from mm pointer (mm->context.id)
43 * note, this field is 64bit, so in big-endian the two words are swapped too.
54 * mask_asid - mask the ASID from the context ID
62 .word \clear
63 .word \mmuset
65 .word \clear
66 .word \ucset
71 * dcache_line_size - get the minimum D-cache line size from the CTR register
83 and \tmp, \tmp, #0xf @ cache line size encoding
84 mov \reg, #4 @ bytes per word
85 mov \reg, \reg, lsl \tmp @ actual cache line size
89 * icache_line_size - get the minimum I-cache line size from the CTR register
100 and \tmp, \tmp, #0xf @ cache line size encoding
101 mov \reg, #4 @ bytes per word
102 mov \reg, \reg, lsl \tmp @ actual cache line size
106 * Sanity check the PTE configuration for the code below - which makes
173 @ user read-only -> kernel read-only
236 * with work-arounds. r3 must be preserved by code between these
258 orrne r2, r2, #PTE_EXT_AP_URO_SRW @ yes -> user r/o, system r/w
261 orreq r2, r2, #PTE_EXT_AP_UNO_SRW @ yes -> user n/a, system r/w
262 @ combined with user -> user r/w
267 movne r2, #0 @ no -> fault
286 .word \dabort
287 .word \pabort
288 .word cpu_\name\()_proc_init
289 .word \bugs
290 .word cpu_\name\()_proc_fin
291 .word cpu_\name\()_reset
292 .word cpu_\name\()_do_idle
293 .word cpu_\name\()_dcache_clean_area
294 .word cpu_\name\()_switch_mm
297 .word 0
299 .word cpu_\name\()_set_pte_ext
303 .word cpu_\name\()_suspend_size
305 .word cpu_\name\()_do_suspend
306 .word cpu_\name\()_do_resume
308 .word 0
309 .word 0
312 .word 0
313 .word 0
314 .word 0
317 .size \name\()_processor_functions, . - \name\()_processor_functions
329 .long \func - \base
333 * Macro to calculate the log2 size for the protection region
334 * registers. This calculates rd = log2(size) - 1. tmp must
337 .macro pr_sz, rd, size, tmp
338 mov \tmp, \size, lsr #12
347 * given a pre-masked address, size, and enable bit.
348 * Corrupts size.
350 .macro pr_val, dest, addr, size, enable
351 pr_sz \dest, \size, \size @ calculate log2(size) - 1
352 orr \dest, \addr, \dest, lsl #1 @ mask in the region size