Home
last modified time | relevance | path

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

/openbmc/linux/arch/powerpc/mm/book3s64/
H A 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 …]
H A 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()
H A Dpgtable.c171 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 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()
/openbmc/linux/mm/
H A Dmremap.c276 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 Dhuge_memory.c2019 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 Dhash.h250 pmd_t *pmdp, unsigned long old_pmd);
254 unsigned long old_pmd) in hpte_do_hugepage_flush() argument
/openbmc/linux/include/linux/
H A Dpgtable.h667 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 Dhuge_mm.h35 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd);
/openbmc/linux/arch/arm64/mm/
H A 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()
/openbmc/linux/arch/x86/include/asm/
H A Dpgtable.h1363 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()