/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A 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 …]
|
H A 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()
|
H A D | pgtable.c | 171 unsigned long old_pmd; in pmdp_invalidate() local 174 old_pmd = pmd_hugepage_update(vma->vm_mm, address, pmdp, _PAGE_PRESENT, _PAGE_INVALID); in pmdp_invalidate() 176 return __pmd(old_pmd); in pmdp_invalidate()
|
H A 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()
|
/openbmc/linux/mm/ |
H A D | mremap.c | 276 old_ptl = pmd_lock(vma->vm_mm, old_pmd); in move_normal_pmd() 281 pmd = *old_pmd; in move_normal_pmd() 287 pmd_clear(old_pmd); in move_normal_pmd() 506 pmd_t *old_pmd, *new_pmd; in move_page_tables() local 553 if (!old_pmd) in move_page_tables() 559 if (is_swap_pmd(*old_pmd) || pmd_trans_huge(*old_pmd) || in move_page_tables() 560 pmd_devmap(*old_pmd)) { in move_page_tables() 563 old_pmd, new_pmd, need_rmap_locks)) in move_page_tables() 565 split_huge_pmd(vma, old_pmd, old_addr); in move_page_tables() 573 old_pmd, new_pmd, true)) in move_page_tables() [all …]
|
H A D | huge_memory.c | 2019 pmd_t _pmd, old_pmd; in __split_huge_zero_page_pmd() local 2044 if (pmd_uffd_wp(old_pmd)) in __split_huge_zero_page_pmd() 2061 pmd_t old_pmd, _pmd; in __split_huge_pmd_locked() local 2092 page = pmd_page(old_pmd); in __split_huge_pmd_locked() 2121 old_pmd = *pmd; in __split_huge_pmd_locked() 2122 entry = pmd_to_swp_entry(old_pmd); in __split_huge_pmd_locked() 2156 page = pmd_page(old_pmd); in __split_huge_pmd_locked() 2157 if (pmd_dirty(old_pmd)) { in __split_huge_pmd_locked() 2161 write = pmd_write(old_pmd); in __split_huge_pmd_locked() 2162 young = pmd_young(old_pmd); in __split_huge_pmd_locked() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/book3s/64/ |
H A D | hash.h | 250 pmd_t *pmdp, unsigned long old_pmd); 254 unsigned long old_pmd) in hpte_do_hugepage_flush() argument
|
/openbmc/linux/include/linux/ |
H A D | pgtable.h | 667 pmd_t old_pmd = *pmdp; in pmdp_set_wrprotect() local 668 set_pmd_at(mm, address, pmdp, pmd_wrprotect(old_pmd)); in pmdp_set_wrprotect() 736 pmd_t old_pmd = *pmdp; in generic_pmdp_establish() local 738 return old_pmd; in generic_pmdp_establish()
|
H A D | huge_mm.h | 35 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd);
|
/openbmc/linux/arch/arm64/mm/ |
H A 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()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | pgtable.h | 1363 pmd_t old_pmd, new_pmd; in pmdp_set_wrprotect() local 1365 old_pmd = READ_ONCE(*pmdp); in pmdp_set_wrprotect() 1367 new_pmd = pmd_wrprotect(old_pmd); in pmdp_set_wrprotect() 1368 } while (!try_cmpxchg((long *)pmdp, (long *)&old_pmd, *(long *)&new_pmd)); in pmdp_set_wrprotect()
|