Home
last modified time | relevance | path

Searched refs:old_pmd (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/arch/powerpc/mm/book3s64/
Dhash_hugepage.c28 unsigned long old_pmd, new_pmd; in __hash_page_thp() local
38 old_pmd = pmd_val(pmd); in __hash_page_thp()
40 if (unlikely(old_pmd & H_PAGE_BUSY)) in __hash_page_thp()
43 if (unlikely(!check_pte_access(access, old_pmd))) in __hash_page_thp()
49 new_pmd = old_pmd | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_thp()
52 } while (!pmd_xchg(pmdp, __pmd(old_pmd), __pmd(new_pmd))); in __hash_page_thp()
57 if (!(old_pmd & (H_PAGE_THP_HUGE | _PAGE_DEVMAP))) in __hash_page_thp()
87 if ((old_pmd & H_PAGE_HASHPTE) && !(old_pmd & H_PAGE_COMBO)) { in __hash_page_thp()
133 pa = pmd_pfn(__pmd(old_pmd)) << PAGE_SHIFT; in __hash_page_thp()
165 *pmdp = __pmd(old_pmd); in __hash_page_thp()
[all …]
Dhash_pgtable.c313 pmd_t *pmdp, unsigned long old_pmd) in hpte_do_hugepage_flush() argument
325 if (old_pmd & H_PAGE_COMBO) in hpte_do_hugepage_flush()
348 pmd_t old_pmd; in hash__pmdp_huge_get_and_clear() local
354 old_pmd = __pmd(old); in hash__pmdp_huge_get_and_clear()
367 return old_pmd; in hash__pmdp_huge_get_and_clear()
Dpgtable.c171 unsigned long old_pmd; in pmdp_invalidate() local
173 old_pmd = pmd_hugepage_update(vma->vm_mm, address, pmdp, _PAGE_PRESENT, _PAGE_INVALID); in pmdp_invalidate()
175 return __pmd(old_pmd); in pmdp_invalidate()
Dradix_pgtable.c1460 pmd_t old_pmd; in radix__pmdp_huge_get_and_clear() local
1464 old_pmd = __pmd(old); in radix__pmdp_huge_get_and_clear()
1465 return old_pmd; in radix__pmdp_huge_get_and_clear()
/linux-6.6.21/mm/
Dmremap.c136 static int move_ptes(struct vm_area_struct *vma, pmd_t *old_pmd, in move_ptes() argument
173 old_pte = pte_offset_map_lock(mm, old_pmd, old_addr, &old_ptl); in move_ptes()
237 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd) in move_normal_pmd() argument
275 old_ptl = pmd_lock(vma->vm_mm, old_pmd); in move_normal_pmd()
281 pmd = *old_pmd; in move_normal_pmd()
282 pmd_clear(old_pmd); in move_normal_pmd()
296 unsigned long old_addr, unsigned long new_addr, pmd_t *old_pmd, in move_normal_pmd() argument
499 pmd_t *old_pmd, *new_pmd; in move_page_tables() local
545 old_pmd = get_old_pmd(vma->vm_mm, old_addr); in move_page_tables()
546 if (!old_pmd) in move_page_tables()
[all …]
Dhuge_memory.c1749 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd) in move_huge_pmd() argument
1770 old_ptl = __pmd_trans_huge_lock(old_pmd, vma); in move_huge_pmd()
1775 pmd = pmdp_huge_get_and_clear(mm, old_addr, old_pmd); in move_huge_pmd()
1782 pgtable = pgtable_trans_huge_withdraw(mm, old_pmd); in move_huge_pmd()
2030 pmd_t _pmd, old_pmd; in __split_huge_zero_page_pmd() local
2043 old_pmd = pmdp_huge_clear_flush(vma, haddr, pmd); in __split_huge_zero_page_pmd()
2055 if (pmd_uffd_wp(old_pmd)) in __split_huge_zero_page_pmd()
2072 pmd_t old_pmd, _pmd; in __split_huge_pmd_locked() local
2088 old_pmd = pmdp_huge_clear_flush(vma, haddr, pmd); in __split_huge_pmd_locked()
2097 if (unlikely(is_pmd_migration_entry(old_pmd))) { in __split_huge_pmd_locked()
[all …]
/linux-6.6.21/arch/powerpc/include/asm/book3s/64/
Dhash.h250 pmd_t *pmdp, unsigned long old_pmd);
254 unsigned long old_pmd) in hpte_do_hugepage_flush() argument
/linux-6.6.21/include/linux/
Dpgtable.h646 pmd_t old_pmd = *pmdp; in pmdp_set_wrprotect() local
647 set_pmd_at(mm, address, pmdp, pmd_wrprotect(old_pmd)); in pmdp_set_wrprotect()
715 pmd_t old_pmd = *pmdp; in generic_pmdp_establish() local
717 return old_pmd; in generic_pmdp_establish()
Dhuge_mm.h35 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd);
/linux-6.6.21/arch/arm64/mm/
Dmmu.c244 pmd_t old_pmd = READ_ONCE(*pmdp); in init_pmd() local
257 BUG_ON(!pgattr_change_is_safe(pmd_val(old_pmd), in init_pmd()
263 BUG_ON(pmd_val(old_pmd) != 0 && in init_pmd()
264 pmd_val(old_pmd) != READ_ONCE(pmd_val(*pmdp))); in init_pmd()
/linux-6.6.21/arch/x86/include/asm/
Dpgtable.h1379 pmd_t old_pmd, new_pmd; in pmdp_set_wrprotect() local
1381 old_pmd = READ_ONCE(*pmdp); in pmdp_set_wrprotect()
1383 new_pmd = pmd_wrprotect(old_pmd); in pmdp_set_wrprotect()
1384 } while (!try_cmpxchg((long *)pmdp, (long *)&old_pmd, *(long *)&new_pmd)); in pmdp_set_wrprotect()