Lines Matching +full:d +full:-
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
14 #define PTRS_PER_PGD_BITS (PAGE_SHIFT - 3)
15 #define PTRS_PER_PUD_BITS (PAGE_SHIFT - 3)
16 #define PTRS_PER_PMD_BITS (PAGE_SHIFT - 3)
17 #define PTRS_PER_PTE_BITS (PAGE_SHIFT - 3)
60 bstrpick.d ra, t0, PTRS_PER_PGD_BITS + PGDIR_SHIFT - 1, PGDIR_SHIFT
61 alsl.d t1, ra, t1, 3
63 ld.d t1, t1, 0
64 bstrpick.d ra, t0, PTRS_PER_PUD_BITS + PUD_SHIFT - 1, PUD_SHIFT
65 alsl.d t1, ra, t1, 3
68 ld.d t1, t1, 0
69 bstrpick.d ra, t0, PTRS_PER_PMD_BITS + PMD_SHIFT - 1, PMD_SHIFT
70 alsl.d t1, ra, t1, 3
72 ld.d ra, t1, 0
79 rotri.d ra, ra, _PAGE_HUGE_SHIFT + 1
82 rotri.d ra, ra, 64 - (_PAGE_HUGE_SHIFT + 1)
83 bstrpick.d t0, t0, PTRS_PER_PTE_BITS + PAGE_SHIFT - 1, PAGE_SHIFT
84 alsl.d t1, t0, ra, _PTE_T_LOG2
88 ll.d t0, t1, 0
90 ld.d t0, t1, 0
97 sc.d t0, t1, 0
100 st.d t0, t1, 0
103 bstrins.d t1, zero, 3, 3
104 ld.d t0, t1, 0
105 ld.d t1, t1, 8
124 ll.d ra, t1, 0
131 sc.d t0, t1, 0
135 rotri.d ra, ra, 64 - (_PAGE_HUGE_SHIFT + 1)
137 st.d t0, t1, 0
157 srli.d t1, t1, (_PAGE_HGLOBAL_SHIFT - _PAGE_GLOBAL_SHIFT)
164 addi.d t1, zero, 1
165 slli.d t1, t1, (HPAGE_SHIFT - 1)
166 add.d t0, t0, t1
170 addu16i.d t0, zero, (CSR_TLBIDX_PS >> 16)
171 addu16i.d t1, zero, (PS_HUGE_SIZE << (CSR_TLBIDX_PS_SHIFT - 16))
176 addu16i.d t0, zero, (CSR_TLBIDX_PS >> 16)
177 addu16i.d t1, zero, (PS_DEFAULT_SIZE << (CSR_TLBIDX_PS_SHIFT - 16))
213 bstrpick.d ra, t0, PTRS_PER_PGD_BITS + PGDIR_SHIFT - 1, PGDIR_SHIFT
214 alsl.d t1, ra, t1, 3
216 ld.d t1, t1, 0
217 bstrpick.d ra, t0, PTRS_PER_PUD_BITS + PUD_SHIFT - 1, PUD_SHIFT
218 alsl.d t1, ra, t1, 3
221 ld.d t1, t1, 0
222 bstrpick.d ra, t0, PTRS_PER_PMD_BITS + PMD_SHIFT - 1, PMD_SHIFT
223 alsl.d t1, ra, t1, 3
225 ld.d ra, t1, 0
232 rotri.d ra, ra, _PAGE_HUGE_SHIFT + 1
235 rotri.d ra, ra, 64 - (_PAGE_HUGE_SHIFT + 1)
236 bstrpick.d t0, t0, PTRS_PER_PTE_BITS + PAGE_SHIFT - 1, PAGE_SHIFT
237 alsl.d t1, t0, ra, _PTE_T_LOG2
241 ll.d t0, t1, 0
243 ld.d t0, t1, 0
251 sc.d t0, t1, 0
254 st.d t0, t1, 0
257 bstrins.d t1, zero, 3, 3
258 ld.d t0, t1, 0
259 ld.d t1, t1, 8
278 ll.d ra, t1, 0
286 sc.d t0, t1, 0
290 rotri.d ra, ra, 64 - (_PAGE_HUGE_SHIFT + 1)
292 st.d t0, t1, 0
312 srli.d t1, t1, (_PAGE_HGLOBAL_SHIFT - _PAGE_GLOBAL_SHIFT)
319 addi.d t1, zero, 1
320 slli.d t1, t1, (HPAGE_SHIFT - 1)
321 add.d t0, t0, t1
325 addu16i.d t0, zero, (CSR_TLBIDX_PS >> 16)
326 addu16i.d t1, zero, (PS_HUGE_SIZE << (CSR_TLBIDX_PS_SHIFT - 16))
332 addu16i.d t0, zero, (CSR_TLBIDX_PS >> 16)
333 addu16i.d t1, zero, (PS_DEFAULT_SIZE << (CSR_TLBIDX_PS_SHIFT - 16))
369 bstrpick.d ra, t0, PTRS_PER_PGD_BITS + PGDIR_SHIFT - 1, PGDIR_SHIFT
370 alsl.d t1, ra, t1, 3
372 ld.d t1, t1, 0
373 bstrpick.d ra, t0, PTRS_PER_PUD_BITS + PUD_SHIFT - 1, PUD_SHIFT
374 alsl.d t1, ra, t1, 3
377 ld.d t1, t1, 0
378 bstrpick.d ra, t0, PTRS_PER_PMD_BITS + PMD_SHIFT - 1, PMD_SHIFT
379 alsl.d t1, ra, t1, 3
381 ld.d ra, t1, 0
388 rotri.d ra, ra, _PAGE_HUGE_SHIFT + 1
391 rotri.d ra, ra, 64 - (_PAGE_HUGE_SHIFT + 1)
392 bstrpick.d t0, t0, PTRS_PER_PTE_BITS + PAGE_SHIFT - 1, PAGE_SHIFT
393 alsl.d t1, t0, ra, _PTE_T_LOG2
397 ll.d t0, t1, 0
399 ld.d t0, t1, 0
406 sc.d t0, t1, 0
409 st.d t0, t1, 0
412 bstrins.d t1, zero, 3, 3
413 ld.d t0, t1, 0
414 ld.d t1, t1, 8
433 ll.d ra, t1, 0
440 sc.d t0, t1, 0
444 rotri.d ra, ra, 64 - (_PAGE_HUGE_SHIFT + 1)
446 st.d t0, t1, 0
466 srli.d t1, t1, (_PAGE_HGLOBAL_SHIFT - _PAGE_GLOBAL_SHIFT)
473 addi.d t1, zero, 1
474 slli.d t1, t1, (HPAGE_SHIFT - 1)
475 add.d t0, t0, t1
479 addu16i.d t0, zero, (CSR_TLBIDX_PS >> 16)
480 addu16i.d t1, zero, (PS_HUGE_SIZE << (CSR_TLBIDX_PS_SHIFT - 16))
486 addu16i.d t0, zero, (CSR_TLBIDX_PS >> 16)
487 addu16i.d t1, zero, (PS_DEFAULT_SIZE << (CSR_TLBIDX_PS_SHIFT - 16))