/linux-6.6.21/arch/powerpc/mm/book3s64/ |
D | hash_hugepage.c | 28 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 …]
|
D | hash_pgtable.c | 313 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()
|
D | pgtable.c | 171 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()
|
D | radix_pgtable.c | 1460 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/ |
D | mremap.c | 136 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 …]
|
D | huge_memory.c | 1749 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/ |
D | hash.h | 250 pmd_t *pmdp, unsigned long old_pmd); 254 unsigned long old_pmd) in hpte_do_hugepage_flush() argument
|
/linux-6.6.21/include/linux/ |
D | pgtable.h | 646 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()
|
D | huge_mm.h | 35 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd);
|
/linux-6.6.21/arch/arm64/mm/ |
D | mmu.c | 244 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/ |
D | pgtable.h | 1379 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()
|